/* H17 house style tokens (NOUS project doc "house-style", §3, §4, §11). */
:root {
  --paper:#FAF8F3; --sand:#F0EBDF; --slate:#303A50; --ink:#1B1E26; --stone:#5F6675;
  --horizon:#D6401A; --horizon-deep:#B8360F; --horizon-light:#F26B43;
  --mist:#E4E9F2; --fog:#B9BFCC; --rule:#DDD7C9;
  --serif:"Newsreader",Georgia,serif; --sans:"Inter",system-ui,sans-serif; --mono:"JetBrains Mono",ui-monospace,monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--horizon-deep); } a:hover { color: var(--horizon); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 44px; line-height: 1.1; } h2 { font-size: 28px; } h3 { font-size: 26px; }
h1 em, h2 em, .lead em { font-style: italic; color: var(--horizon); }
.on-slate h1 em, .on-slate h2 em, .on-slate p em { color: var(--horizon-light); }
.lead { font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--slate); }
.eyebrow, label, th, .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--stone); font-weight: 500; }
.muted { color: var(--stone); } .small { font-size: 13px; }

nav.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 18px 40px; border-bottom: 1px solid var(--rule); }
nav.top .links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; font-weight: 600; }
nav.top .links a { color: var(--stone); text-decoration: none; padding: 6px 0; }
nav.top .links a.active { color: var(--ink); border-bottom: 2px solid var(--horizon); }
nav.top .who { margin-left: auto; display: flex; gap: 20px; align-items: center; }
nav.top .who a { color: var(--stone); }

main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 40px 80px; display: flex; flex-direction: column; gap: 48px; }
header.page { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
section { display: flex; flex-direction: column; gap: 20px; }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tile { background: var(--sand); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile .big { font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.card { background: var(--sand); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.card.on-slate { background: var(--slate); color: var(--paper); }
.card.on-slate .eyebrow, .card.on-slate .muted { color: var(--fog); }
.card p.serif { font-size: 22px; line-height: 1.35; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--ink); }
.step .num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--horizon); }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; }
dl.facts { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
dl.facts dt { color: var(--stone); } dl.facts dd { margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--slate); color: var(--paper); border: 1px solid var(--slate); padding: 12px 20px; font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--paper); background: #26303f; }
.btn.ghost { background: transparent; color: var(--slate); }
.btn.ghost:hover { color: var(--slate); background: var(--sand); }
.btn.small { padding: 8px 14px; min-height: 40px; font-size: 13px; }
.btn.sun { background: var(--horizon); border-color: var(--horizon); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--rule); background: transparent; color: var(--slate); padding: 8px 14px; font: inherit; font-size: 13px; min-height: 36px; text-decoration: none; }
.chip.active { background: var(--slate); color: var(--paper); border-color: var(--slate); font-weight: 600; }
.dot { width: 8px; height: 8px; display: inline-block; background: var(--slate); margin-right: 8px; vertical-align: middle; }
.dot.hot { background: var(--horizon); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14px; }
td.name { font-family: var(--serif); font-size: 20px; }
td.name a { color: var(--ink); text-decoration: none; }

form { margin: 0; display: flex; flex-direction: column; gap: 20px; }
form.inline { flex-direction: row; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
input, select { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--rule); padding: 10px 12px; width: 100%; min-height: 44px; border-radius: 0; }
input:disabled, select:disabled { background: var(--sand); color: var(--stone); }
.flash { background: var(--sand); border-left: 0; padding: 14px 18px; font-size: 14px; }
.flash.error { background: var(--mist); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hero .bar { display: flex; justify-content: space-between; align-items: center; padding: 32px 48px; }
.hero .body { flex: 1 1 auto; display: flex; align-items: center; padding: 24px 48px 160px; }
.hero .body > div { max-width: 640px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 64px; line-height: 1.05; }
.hero .lead { font-size: 22px; max-width: 540px; }
.hero .line { position: absolute; left: 48px; right: 48px; bottom: 96px; height: 1px; background: var(--ink); }
.hero .sun { position: absolute; right: 120px; bottom: 96px; width: 320px; height: 160px; border-radius: 320px 320px 0 0; background: var(--horizon); }
.hero .foot { padding: 24px 48px; display: flex; gap: 32px; position: relative; }

@media (max-width: 760px) {
  nav.top, main, .hero .bar, .hero .body, .hero .foot { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 32px; }
  h1 { font-size: 34px; } .hero h1 { font-size: 40px; }
  .two, .three, .grid2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .sun { width: 200px; height: 100px; right: 32px; } .hero .line { left: 16px; right: 16px; }
  nav.top .who { margin-left: 0; }
}
