/* Tattletale. Palette and type follow Ethoic Inc: ink on marble, a little terracotta, Geist and Geist Mono (self-hosted, OFL). */
@font-face {
  font-family:'Geist'; src:url('/assets/fonts/Geist-latin.woff2') format('woff2'); font-style:normal; font-weight:300 900; font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family:'Geist'; src:url('/assets/fonts/Geist-latin-ext.woff2') format('woff2'); font-style:normal; font-weight:300 900; font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face { font-family:'Geist Mono'; src:url('/assets/fonts/GeistMono-Regular.ttf') format('truetype'); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:'Geist Mono'; src:url('/assets/fonts/GeistMono-Medium.ttf') format('truetype'); font-style:normal; font-weight:500; font-display:swap; }

:root {
  --ink:#17140F; --marble:#F4F0E7; --stone:#5E574C; --terra:#B4492B; --glow:#E88A68;
  --line:#17140F1f; --body:#38342E;
  --sans:'Geist',ui-sans-serif,system-ui,-apple-system,sans-serif;
  --mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --wrap:1080px; --gut:24px;
}
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--marble); color:var(--ink); font:400 17px/1.6 var(--sans); -webkit-font-smoothing:antialiased; }
h1,h2,h3,p,ul,ol,figure { margin:0; }
a { color:inherit; text-decoration-color:#B4492B88; text-underline-offset:3px; }
a:hover { color:var(--terra); }
:focus-visible { outline:2px solid var(--terra); outline-offset:3px; }
code { font:400 .9em var(--mono); }
.wrap { max-width:var(--wrap); margin:0 auto; padding:0 var(--gut); }
.skip { position:absolute; left:-10000px; }
.skip:focus { left:var(--gut); top:12px; z-index:10; padding:8px 12px; background:var(--ink); color:var(--marble); }

/* Header and footer */
.top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; column-gap:16px; min-height:72px; }
.word { display:inline-flex; align-items:center; gap:9px; font:500 16px var(--mono); letter-spacing:-.01em; text-decoration:none; color:var(--ink); }
.word .bird { width:32px; height:32px; display:block; }
.top nav { display:flex; flex-wrap:wrap; align-items:center; column-gap:22px; font-size:14px; color:var(--stone); }
.top nav a { text-decoration:none; }
.top nav a:hover,.top nav a[aria-current] { color:var(--ink); }
.motion-toggle { min-height:44px; padding:0; border:0; background:none; color:var(--stone); font:400 12px var(--mono); cursor:pointer; }
.motion-toggle[hidden] { display:none; }
.motion-toggle:disabled { cursor:default; }
.motion-toggle:hover:not(:disabled) { color:var(--ink); }
.foot { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 24px; margin-top:120px; padding:28px 0 40px; border-top:1px solid var(--line); color:var(--stone); font-size:13px; }
.foot nav { display:flex; flex-wrap:wrap; gap:6px 20px; }

/* Sections: one idea each, lots of room */
section { padding:72px 0; }
.eyebrow { color:var(--terra); font:500 11px/1.4 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
h2 { margin-top:14px; font-size:clamp(26px,3.2vw,34px); font-weight:500; line-height:1.15; letter-spacing:-.03em; }
.lede { max-width:56ch; margin-top:14px; color:var(--body); font-size:18px; }

.hero { padding:clamp(56px,11vw,128px) 0 40px; }
.hero h1 { max-width:17ch; margin-top:22px; font-size:clamp(38px,6.4vw,72px); font-weight:500; line-height:1.04; letter-spacing:-.045em; }
.hero .lede { margin-top:26px; font-size:clamp(18px,2vw,21px); }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 26px; margin-top:34px; }
.btn { display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:0 22px; border-radius:999px; background:var(--ink); color:var(--marble); font:500 15px var(--sans); text-decoration:none; box-shadow:0 8px 20px #17140f24; transition:transform .2s ease, box-shadow .2s ease; }
.btn:hover { color:var(--marble); transform:translateY(-1px); box-shadow:0 12px 26px #17140f33; }
.link { font-size:15px; }
.arrow { font-family:var(--mono); }

.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin-top:44px; padding:0; list-style:none; counter-reset:step; }
.steps li { padding-top:20px; border-top:1px solid var(--line); }
.steps li::before { counter-increment:step; content:"0" counter(step); color:var(--terra); font:500 12px var(--mono); letter-spacing:.08em; }
.steps h3 { margin-top:12px; font-size:19px; font-weight:500; letter-spacing:-.02em; }
.steps p { margin-top:6px; color:var(--body); font-size:15.5px; }

/* The ledger: one character per visit, oldest first. Adapted from the Ethoic journal's activity ledger. */
@property --z { syntax:'<number>'; inherits:false; initial-value:1; }
@property --lift { syntax:'<number>'; inherits:false; initial-value:0; }
.ledger { --ch:16px; --cell-font:13px; margin-top:40px; padding:clamp(20px,4vw,40px); border-radius:6px; background:radial-gradient(130% 120% at 0% 0%,#2b241b 0%,#1b1712 48%,var(--ink) 100%); color:var(--marble); box-shadow:inset 0 -3px 0 var(--terra), 0 22px 56px #17140f2e; }
.ledger__head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:10px 28px; }
.ledger__totals { display:flex; gap:32px; margin:0; font:500 12px var(--mono); color:#F4F0E7a6; }
.ledger__totals div { margin:0; }
.ledger__totals dd { margin:0; color:var(--marble); font-size:clamp(28px,4vw,40px); letter-spacing:-.03em; line-height:1.1; }
.ledger__totals .caught dd { color:var(--glow); }
.ledger__status { color:#F4F0E78c; font:400 12px var(--mono); }
.ledger__status.is-sample { color:var(--glow); }
.ledger__frame { position:relative; margin-top:26px; }
.ledger__cells { display:grid; grid-auto-flow:column; grid-template-rows:repeat(12,var(--ch)); grid-template-columns:repeat(36,1fr); font:400 var(--cell-font)/1 var(--mono); touch-action:pan-y; cursor:crosshair; user-select:none; -webkit-user-select:none; }
.ledger__cells i,.ledger__key i { --rgb:244 240 231; --a:.3; display:flex; align-items:center; justify-content:center; font-style:normal; color:rgb(var(--rgb) / var(--a)); }
.ledger__cells i::before,.ledger__key i::before { content:attr(data-g); }
.ledger__cells i { color:rgb(var(--rgb) / min(1, calc(var(--a) + var(--lift, 0)))); transform:scale(var(--z,1)); transition:--z .7s cubic-bezier(.2,.7,.2,1), --lift 1.1s ease-out, opacity .25s ease; }
.ledger .l2 { --a:.5; } .ledger .l3 { --a:.8; }
.ledger .l5 { --a:1; font-weight:500; text-shadow:0 0 8px #F4F0E780; }
.ledger .s { --rgb:232 138 104; }
.ledger .s.l5 { text-shadow:0 0 8px #E88A6880; }
.ledger .you { --a:1; font-weight:500; text-shadow:0 0 10px #F4F0E7b3; }
.ledger__cells i.is-pending { opacity:0; transition:none; }
.ledger__cells i.is-under { transition:opacity .25s ease; }
.ledger__lens { position:absolute; left:0; top:0; width:86px; height:86px; margin:-43px 0 0 -43px; border-radius:50%; pointer-events:none; opacity:0; transition:opacity .2s ease;
  background:radial-gradient(120% 100% at 30% 15%,#F4F0E724,#F4F0E700 55%), radial-gradient(circle at 50% 50%,#F4F0E70a,#F4F0E700 70%);
  box-shadow:inset 0 1px 0 #F4F0E759, inset 0 0 0 1px #F4F0E72e, inset 0 -8px 16px #00000040, 0 12px 26px #0000008c; }
.ledger.is-lensing .ledger__lens { opacity:1; }
.ledger__readout { min-height:22px; margin-top:18px; color:var(--marble); font:400 12.5px/1.6 var(--mono); }
.ledger__key { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:12px; padding:0; list-style:none; color:#F4F0E7a6; font-size:12.5px; }
.ledger__key li { display:inline-flex; align-items:center; gap:7px; }
.ledger__key i { width:12px; font:400 13px/1 var(--mono); }
.ledger__note { max-width:64ch; margin-top:18px; color:#F4F0E7b3; font-size:14px; line-height:1.6; }
.ledger__note a { color:var(--marble); text-decoration-color:#E88A6899; }
.ledger__note a:hover { color:var(--glow); }
.ledger.is-alive .s.l5 { animation:breathe 3.4s ease-in-out infinite; }
.ledger.is-alive .you { animation:breathe-marble 3.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { text-shadow:0 0 5px #E88A6859; } 50% { text-shadow:0 0 14px #E88A68b3; } }
@keyframes breathe-marble { 0%,100% { text-shadow:0 0 5px #F4F0E759; } 50% { text-shadow:0 0 14px #F4F0E7b3; } }
.try { margin-top:44px; font-size:16px; color:var(--body); }
.try code { color:var(--ink); }

/* Results: a short table, not a chart wall */
.table-wrap { overflow-x:auto; margin-top:32px; }
.results { width:100%; border-collapse:collapse; font-size:15px; }
.results th,.results td { padding:14px 16px 14px 0; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.results thead th { color:var(--stone); font:500 11px var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.results tbody th { font-weight:500; }
.results td { font:400 14px var(--mono); }
.results small { display:block; color:var(--stone); font:400 12px var(--mono); }
.results .empty { color:var(--stone); font:400 15px var(--sans); }
.fine { max-width:64ch; margin-top:16px; color:var(--stone); font-size:14px; }

/* Read more */
.more { display:grid; grid-template-columns:repeat(2,1fr); gap:0 40px; margin-top:28px; padding:0; list-style:none; }
.more a { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:22px 0; border-top:1px solid var(--line); text-decoration:none; }
.more strong { font-size:19px; font-weight:500; letter-spacing:-.02em; }
.more a span:not(.arrow) { display:block; margin-top:2px; color:var(--stone); font-size:14.5px; }
.more .arrow { color:var(--terra); transition:transform .2s ease; }
.more a:hover .arrow { transform:translateX(3px); }

/* Methodology and disclosure */
.prose { max-width:68ch; padding:clamp(48px,8vw,96px) 0 0; }
.prose h1 { margin-top:18px; font-size:clamp(34px,5vw,52px); font-weight:500; line-height:1.08; letter-spacing:-.04em; }
.prose .lede { margin-top:22px; font-size:19px; }
.prose h2 { margin-top:56px; font-size:24px; }
.prose h3 { margin-top:32px; font-size:18px; font-weight:500; }
.prose p,.prose ul,.prose ol { margin-top:14px; color:var(--body); }
.prose ul,.prose ol { padding-left:22px; }
.prose li { margin:8px 0; padding-left:4px; }
.prose strong { color:var(--ink); font-weight:500; }

@media(hover:none) { .btn:hover { transform:none; } }
@media(max-width:800px) {
  .steps { grid-template-columns:1fr; gap:28px; }
  .more { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  :root { --gut:16px; }
  body { font-size:16px; }
  .top nav { column-gap:14px; font-size:13px; }
  .top nav .wide { display:none; }
  section { padding:52px 0; }
  .ledger { --ch:14px; --cell-font:11px; padding:20px 16px; }
  .ledger__cells { grid-auto-flow:row; grid-template-columns:repeat(12,1fr); grid-template-rows:repeat(36,var(--ch)); }
  .ledger__lens { width:64px; height:64px; margin:-32px 0 0 -32px; }
  .ledger__readout { font-size:11.5px; }
  .foot { margin-top:72px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
html.motion-off { scroll-behavior:auto; }
.motion-off *,.motion-off *::before,.motion-off *::after { animation:none!important; transition:none!important; }
