@font-face { font-family: 'Geist'; src: url('/assets/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/geist-700.woff2') format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/geist-mono.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/caveat.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #fff;
  --text: #111;
  --muted: #7a7d85;
  --line: #e7e8ec;
  --ink: #8a4b26;
  --ink-soft: #f6ece5;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --hand: 'Caveat', cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .92em; }
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
button { -webkit-tap-highlight-color: transparent; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 14px 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav { display: flex; gap: 20px; }
.nav a, .link { color: var(--muted); text-decoration: none; }
.nav a:hover, .link:hover { color: var(--text); }
.sound { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.sound[aria-pressed="false"] { text-decoration: line-through; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.btn { padding: 7px 16px; border-radius: 999px; background: var(--text); color: #fff; text-decoration: none; font-weight: 500; transition: background .45s var(--ease), transform .45s var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }

/* one narrow column, like a sheet of paper */
.sheet { max-width: 720px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0 0; }
h2 { margin: 0 0 20px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }

.hero { position: relative; padding-top: 12vh; }
.eyebrow { margin: 0 0 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
h1 { margin: 0 0 36px; font-size: clamp(52px, 12vw, 112px); line-height: .95; font-weight: 700; letter-spacing: -.05em; }
.ln { display: block; overflow: hidden; padding-bottom: .04em; }
.ln > span { display: block; }

/* the pile sits next to the sheet, in the right margin */
.bowl { position: absolute; top: calc(12vh + 60px); right: -330px; width: 280px; display: flex; flex-direction: column; align-items: center; }
.pile { width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: end center; touch-action: manipulation; }
.pile img { width: 100%; height: 100%; display: block; pointer-events: none; transform-origin: 50% 94%; will-change: transform; }
.gauge { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.gauge #leftPct { color: var(--ink); }
.poked { opacity: 0; transition: opacity .45s var(--ease); }
.poked.on { opacity: 1; }

.lede { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.45; }
.ca { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 12px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); font-family: var(--mono); font-size: 13px; }
.ca-label { color: var(--muted); }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.copy:hover { text-decoration: underline; }

/* why */
.why p { margin: 0 0 10px; font-size: 24px; line-height: 1.35; letter-spacing: -.01em; }
.why .note { margin-top: 28px; font-family: var(--hand); font-size: 40px; line-height: 1; color: var(--ink); transform: rotate(-2deg); transform-origin: left; }

/* tek */
.after { margin: 20px 0 0; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); font-size: 19px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; font-family: var(--hand); font-size: 34px; color: var(--ink); }

/* numbers: label, dotted leader, value */
.rows { margin: 0; }
.rows > div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.rows dt { color: var(--muted); white-space: nowrap; }
.rows dd { margin: 0; flex: 1; display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; min-width: 0; font-family: var(--mono); font-size: 15px; text-align: right; }
.rows dd::before { content: ''; flex: 1; min-width: 16px; border-bottom: 1px dotted #c5c7ce; transform: translateY(-4px); }
.rows dd b { font-weight: 500; color: var(--ink); }
.sub { color: var(--muted); font-size: 13px; }

/* flush log */
.burns-head { display: flex; align-items: baseline; justify-content: space-between; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--text); font-weight: 400; color: var(--muted); text-align: left; white-space: nowrap; }
td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th:last-child, td:last-child { padding-right: 0; }
.r { text-align: right; }
td .sub { display: block; font-size: 11px; }
.empty { padding: 28px 0; color: var(--muted); font-family: var(--sans); font-size: 15px; white-space: normal; }
.tx { margin-left: 10px; color: var(--muted); text-decoration: none; }
.tx:hover { color: var(--ink); }
tr.fresh td { animation: fresh 2.4s var(--ease); }
@keyframes fresh { from { background: var(--ink-soft); } to { background: transparent; } }

.foot { max-width: 720px; margin: 96px auto 0; padding: 20px 24px 40px; display: flex; gap: 24px; align-items: baseline; font-size: 13px; color: var(--muted); }
.foot span { font-weight: 700; letter-spacing: .08em; color: var(--text); }
.foot p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); padding: 9px 16px; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* headline rises on load */
.js .ln > span { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.js .reveal-lines.in .ln > span { transform: none; }
.js .reveal-lines.in .ln:nth-child(2) > span { transition-delay: .09s; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

td .pending, .pending { color: var(--muted); }
.burned-cell { color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-family: var(--mono); font-size: 13px; }
.pg, .pg-n { border: 0; background: none; padding: 4px 9px; font: inherit; color: var(--muted); cursor: pointer; }
.pg:disabled { opacity: .3; cursor: default; }
.pg-n.on { color: var(--text); border-bottom: 1px solid var(--text); }
.pg-gap { color: var(--muted); }

/* no side margin: small pile on the eyebrow row */
@media (max-width: 1180px) {
  .bowl { top: calc(12vh - 34px); right: 0; width: 96px; }
  .gauge { font-size: 11px; margin-top: 4px; }
  .poked { display: none; }
  .hero .eyebrow { padding-right: 120px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 16px; padding: 12px 16px; }
  .nav { display: none; }
  .sheet { padding: 0 16px; }
  section { padding-top: 56px; }
  .hero { padding-top: 8vh; }
  .bowl { top: calc(8vh - 30px); width: 84px; }
  .hero .eyebrow { padding-right: 104px; line-height: 1.5; }
  .lede { font-size: 19px; }
  .why p { font-size: 20px; }
  .rows > div { flex-wrap: wrap; }
  .hide-sm { display: none; }
  .foot { flex-direction: column; gap: 8px; padding: 20px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ln > span, .js .reveal { transition: none; transform: none; opacity: 1; }
}
.addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration-color: var(--line); text-underline-offset: 3px; }
.addr:hover { color: var(--ink); }
