

@font-face { font-family: 'Geist'; src: url(../fonts/geist-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(../fonts/geist-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(../fonts/geist-mono-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Pixel'; src: url(../fonts/geist-pixel-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ground: #F4F2EE;
  --ground2: #FFFDFA;
  --text: #17161A;
  
  --text-dim: rgba(23,22,26,0.62);
  --hairline: rgba(23,22,26,0.10);
  --hairline2: rgba(23,22,26,0.16);
  --gold: #B07C20;
  --gold-lit: #D6A448;
  --gold-soft: #E8C88A;
  --gold-wash: rgba(176,124,32,0.10);
  
  --gold-text: #8A5F16;
  --paper: #FFFDFA;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --w: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ground);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.94em; }
::selection { background: rgba(176,124,32,0.18); color: var(--text); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 4px; }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(244,242,238,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.nav-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 15px; padding-bottom: 15px; flex-wrap: wrap; }
.wordmark { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.wordmark .zero, .f-mark .zero { position: relative; display: inline-block; }
.wordmark .zero::after, .f-mark .zero::after { content: ''; position: absolute; left: 16%; right: 16%; top: 50%; height: 1.5px; background: currentColor; transform: rotate(-38deg); }

sup.tm { font-size: 0.56em; line-height: 0; vertical-align: 0.45em; letter-spacing: 0; font-weight: inherit; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }

.nav-links a:not(.btn) { font-size: 13.5px; color: var(--text-dim); text-decoration: none; transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--text); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; text-decoration: none; }

.btn {
  display: inline-block; background: var(--text); color: #fff; border: 1px solid var(--text);
  font-family: var(--sans); font-size: 14px; font-weight: 400; padding: 13px 24px;
  border-radius: 6px; cursor: pointer; text-decoration: none; transition: opacity .18s ease;
}
.btn:hover { opacity: 0.88; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline2); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-nav { padding: 9px 17px; font-size: 13px; }

h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; max-width: 16em; text-wrap: balance; }
h2 { font-size: clamp(23px, 2.5vw, 31px); line-height: 1.18; letter-spacing: -0.018em; font-weight: 600; margin-bottom: 14px; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
p + p, ul + p, ol + p, p + ul, p + ol { margin-top: 14px; }
.lead { max-width: 46em; font-size: 16.5px; line-height: 1.62; color: var(--text-dim); }
.lead b, .sub b { color: var(--text); font-weight: 600; }
.sub { margin-top: 22px; font-size: 18px; line-height: 1.58; color: var(--text-dim); max-width: 40em; }
.small { font-size: 13.5px; color: var(--text-dim); max-width: 46em; }
.kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }

h2.kicker { font-weight: 400; line-height: 1.4; text-wrap: wrap; }

.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(176,124,32,.55); flex: 0 0 6px; }

.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(30px, 4vw, 46px); }
.section { border-top: 1px solid var(--hairline); padding: clamp(44px, 6vw, 68px) 0; }
.section > .wrap > * + h2 { margin-top: 4px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 36px; margin-top: 22px; }
.plain { list-style: none; margin-top: 12px; max-width: 46em; }
.plain > li { padding: 10px 0; border-bottom: 1px solid var(--hairline); color: var(--text-dim); font-size: 14.5px; }
.plain > li:last-child { border-bottom: 0; }
.plain > li b, .plain > li strong { color: var(--text); font-weight: 600; }
ol.plain { list-style: decimal; padding-left: 1.3em; }
ol.plain > li { display: list-item; }
main { counter-reset: q; }
.numbered { list-style: none; margin-top: 18px; }
.numbered > li { position: relative; padding: 16px 0 16px 46px; border-bottom: 1px solid var(--hairline); }
.numbered > li:last-child { border-bottom: 0; }
.numbered > li::before {
  counter-increment: q; content: counter(q, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--gold-text);
}
.numbered h3 { margin-bottom: 6px; }
.numbered p { color: var(--text-dim); font-size: 14.5px; }

.card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px; padding: 22px 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }

.digest { font-family: var(--mono); font-size: clamp(9.5px, 1.05vw, 12px); color: var(--gold-text); word-break: break-all; letter-spacing: 0.01em; }

.role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text); margin: -6px 0 20px;
}

.lead + .lead, .lead + .small, .small + .lead { margin-top: 14px; }

.todo {
  border: 1px dashed var(--gold); border-radius: 12px; padding: 18px 20px;
  background: var(--gold-wash); margin-top: 18px; max-width: 52em;
}
.todo > p:first-child { color: var(--text); font-weight: 600; font-size: 14.5px; }
.todo .small { margin-top: 8px; color: rgba(23,22,26,0.66); }
.todo-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); display: block; margin-bottom: 6px; }

table.grid { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.grid th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 400; }
table.grid td { color: var(--text-dim); }
table.grid td:first-child { color: var(--text); }
.scroll-x { overflow-x: auto; }

.footer { border-top: 1px solid var(--hairline); padding: 44px 0 56px; background: #EDEAE4; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1.4fr; gap: 36px; }
.f-mark { font-weight: 600; font-size: 17px; color: var(--text); margin-bottom: 12px; }
.f-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.footer p { font-size: 12.5px; line-height: 2; color: var(--text-dim); }
.footer p + p { margin-top: 14px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-main { gap: 12px; }
  .actions .btn { width: 100%; text-align: center; }
}

.portrait {
  display: block; width: 168px; height: 168px; border-radius: 14px;
  margin: 18px 0 4px; object-fit: cover;
  border: 1px solid var(--paper-line, rgba(23,22,26,0.10));
}

@media (max-width: 760px) {
  .nav { position: static; }
}
