@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --paper: #f5f3ee;
  --ink: #16140f;
  --ink-2: #625d54;
  --ink-3: #9a948a;
  --hair: #dcd7cc;
  --accent: #ef4a1a;
  --pad: clamp(22px, 5vw, 88px);
  --col: min(46vw, 760px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }

/* Top bar */
.bar {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 640; font-size: 21px; letter-spacing: -0.035em; }
.glyph { width: 26px; height: 26px; color: var(--ink); }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav a { text-decoration: none; font-size: 15px; font-weight: 480; color: var(--ink); letter-spacing: -0.01em; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease; }
.nav a:hover { background-size: 100% 1px; }

/* Scene: the sculpture stays pinned while the content scrolls over it */
.landing .scene { position: relative; }
.landing .stage { position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; overflow: hidden; pointer-events: none; }
.landing .stage canvas { display: block; width: 100%; height: 100%; }
.landing .flow { position: relative; margin-top: -100vh; margin-top: -100svh; }

/* Hero */
.landing .hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 0 var(--pad); display: flex; flex-direction: column; }
.landing .hero-copy { padding-top: clamp(130px, 21vh, 220px); max-width: 820px; }
h1 {
  font-size: clamp(46px, 7.4vw, 124px);
  line-height: 0.93;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.landing .lede { margin-top: 30px; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.012em; }
.landing .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  font: inherit; font-size: 16px; font-weight: 540; letter-spacing: -0.015em; text-decoration: none;
  border-radius: 3px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }

.landing .said { margin-top: auto; padding: 48px 0 clamp(36px, 7vh, 72px); max-width: min(64vw, 1180px); }
.landing .said-label { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 14px; }
.landing .said-label > span:first-child { color: var(--accent); }
.landing .said-text {
  font-size: clamp(26px, 3.3vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 440;
  min-height: 2.16em;
}
.landing .said-text .w { transition: opacity .6s ease, color .9s ease; }
.landing .said-text .w.off { opacity: 0; }
.landing .said-text .w.now { color: var(--accent); }

/* Sections */
.landing .flow > section:not(.hero) { padding: clamp(110px, 20vh, 220px) var(--pad) 0; }
.sec-head { max-width: var(--col); margin-bottom: clamp(36px, 6vh, 64px); }
h2 { font-size: clamp(34px, 4.2vw, 66px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.sec-head p { margin-top: 18px; color: var(--ink-2); font-size: 18px; letter-spacing: -0.012em; }

/* The notebook */
.landing .rows { max-width: min(58vw, 980px); }
.landing .row {
  display: grid; grid-template-columns: 74px 1fr auto; align-items: baseline; gap: 20px;
  padding: 20px 0 22px; border-top: 1px solid var(--hair);
}
.landing .row:last-child { border-bottom: 1px solid var(--hair); }
.landing .row-n { font-size: 14px; font-weight: 560; color: var(--accent); }
.landing .row-thought { font-size: clamp(20px, 1.85vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 440; }
.landing .row-ago { font-size: 14px; color: var(--ink-3); white-space: nowrap; min-width: 6.5em; text-align: right; }
.landing .row-empty { grid-template-columns: 1fr; }
.landing .row-empty .row-thought { color: var(--ink-2); }

/* Beats */
.landing .beats { max-width: var(--col); display: grid; gap: clamp(30px, 5vh, 52px); }
.landing .beats li { display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: baseline; }
.landing .beat-n { font-size: clamp(40px, 3.4vw, 56px); font-weight: 250; letter-spacing: -0.04em; color: var(--ink-3); line-height: 1; }
.landing .beats h3 { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 560; }
.landing .beats p { margin-top: 10px; color: var(--ink-2); max-width: 30em; }

/* Three things nobody sees */
.landing .unseen-grid { max-width: var(--col); display: grid; gap: clamp(48px, 7vh, 72px); }
.landing .three { display: grid; gap: 26px; }
.landing .three div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 20px; }
.landing .three dt { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.landing .three dd { font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 540; }
.landing .tx { border-top: 1px solid var(--ink); padding-top: 22px; }
.landing .tx-head { font-size: 15px; font-weight: 560; letter-spacing: -0.01em; margin-bottom: 22px; }
.landing .tx-part + .tx-part { margin-top: 18px; }
.landing .tx-label { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.landing .tx-val { font-size: 19px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.landing .ring-list { display: grid; grid-template-columns: repeat(8, auto); gap: 6px 14px; justify-content: start; font-size: 17px; }
.landing .tx-none { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.03em; color: var(--ink-2); }

/* Register */
.reg { max-width: var(--col); display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 56px); }
.reg > div { padding: 22px 0 26px; border-top: 1px solid var(--hair); min-width: 0; }
.reg > .reg-wide { grid-column: 1 / -1; }
.reg dt { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.reg dd { font-size: clamp(36px, 4vw, 66px); line-height: 1; letter-spacing: -0.05em; font-weight: 520; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg .of { font-size: 0.34em; letter-spacing: -0.01em; color: var(--ink-2); font-weight: 460; white-space: normal; }

/* Token */
.landing .token { max-width: var(--col); }
.landing .token h2 { color: var(--ink); }
.landing .token-row { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.landing .ca { flex: 1 1 100%; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; padding: 14px 0; border-bottom: 1px solid var(--ink); margin-bottom: 10px; }
.landing .ca:hover { color: var(--accent); }

/* Footer */
.foot { position: relative; padding: clamp(120px, 22vh, 240px) var(--pad) 48px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.foot-line { margin-top: 28px; font-size: clamp(30px, 4.4vw, 72px); letter-spacing: -0.055em; font-weight: 600; line-height: 1; }

@media (max-width: 820px) {
  :root { --col: 100%; }
  body { font-size: 16px; }
  .bar { padding: 18px 20px; }
  .bar .nav { display: none; }
  .mark { font-size: 20px; }
  .landing .hero { padding: 0 20px; }
  .landing .hero-copy { padding-top: 47svh; }
  h1 { font-size: clamp(44px, 12.4vw, 64px); }
  .landing .lede { margin-top: 18px; font-size: 16.5px; }
  .landing .actions { margin-top: 26px; }
  .landing .actions .btn { flex: 1 1 0; padding: 0 12px; }
  .landing .said { max-width: none; padding: 40px 0 36px; }
  .landing .said-text { font-size: 27px; }
  .landing .flow > section:not(.hero) { padding: 104px 20px 0; }
  .landing .rows { max-width: none; }
  .landing .row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0 18px; }
  .landing .row-n { grid-column: 1; grid-row: 1; }
  .landing .row-ago { grid-column: 2; grid-row: 1; }
  .landing .row-thought { grid-column: 1 / -1; font-size: 22px; }
  .landing .beats li { grid-template-columns: 44px 1fr; gap: 12px; }
  .landing .three div { grid-template-columns: 1fr; gap: 4px; }
  .landing .ring-list { grid-template-columns: repeat(4, auto); gap: 6px 22px; }
  .reg dd { font-size: 38px; white-space: normal; }
  .reg .of { display: block; margin-top: 8px; font-size: 14px; }
  .reg { grid-template-columns: 1fr 1fr; }
  .foot { padding: 120px 20px 40px; }
  .nav-foot ul { flex-wrap: wrap; gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.nav-x a { font-weight: 600; }
.menu { display: none; }
@media (max-width: 820px) {
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 540; padding: 8px 0 8px 16px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { color: var(--accent); }
  .menu-nav { position: absolute; right: 0; top: 46px; background: var(--paper); border: 1px solid var(--ink); padding: 10px 0; min-width: 200px; }
  .menu-nav ul { display: block; }
  .menu-nav a { display: block; padding: 11px 22px; text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
  .menu-nav a:hover { color: var(--accent); }
}

/* Shared pieces for every page */
.nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-nav a[aria-current="page"] { color: var(--accent); }
.page { padding: clamp(130px, 20vh, 200px) var(--pad) 0; max-width: 1280px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.input { font: inherit; font-size: 17px; height: 52px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); width: 100%; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.muted { color: var(--ink-2); }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }

.landing .token-burn { margin-top: 22px; font-size: 18px; letter-spacing: -0.012em; color: var(--ink-2); }
.landing .token-burn a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
.landing .token-burn strong { font-weight: 620; }
.landing .token-burn span { margin-left: 10px; }
