@font-face { font-family: 'Oswald'; src: url(/assets/fonts/oswald-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url(/assets/fonts/oswald-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(/assets/fonts/inter-tight-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(/assets/fonts/inter-tight-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --null: #f7f6f2;
  --ink: #17120f;
  --ink-2: #4e453e;
  --rust: #6d3f2e;
  --stone: #a39d92;
  --hair: rgba(23, 18, 15, .16);
  --keep: #f4511e;
  --cream: #ede6d6;
  --margin: clamp(14px, 2.2vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  scrollbar-color: var(--rust) var(--null);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--null); }
::-webkit-scrollbar-thumb { background: var(--rust); }
::selection { background: var(--keep); color: var(--cream); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--null); color: var(--ink); font: 400 15px/1.5 'Inter Tight', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--keep); outline-offset: 2px; }

#city { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: -3; background: var(--null); }
body.walking #city { z-index: 0; }
main { position: relative; }

/* the long thin lines that run the whole height of the page */
.plumb { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: flex; justify-content: space-between; padding: 0 calc(var(--margin) * 1.6); }
.plumb i { width: 1px; background: rgba(23, 18, 15, .085); }
.plumb i:nth-child(even) { background: rgba(23, 18, 15, .05); }

.pointer-dot { position: fixed; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--keep); z-index: 60; pointer-events: none; opacity: 0; }
.pointer-dot.on { opacity: 1; }

/* the white closes in around whatever the Null is doing */
.veil { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 34% 44% at 36% 52%, rgba(247, 246, 242, 0) 34%, rgba(247, 246, 242, .86) 74%, var(--null) 100%); }

/* header: thin ruled cells */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 12px var(--margin); pointer-events: none; }
.bar > * { pointer-events: auto; }
.cells { display: flex; gap: 6px; }
.cells-right { justify-content: flex-end; flex-wrap: wrap; }
.cell { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 15px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; background: rgba(247, 246, 242, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s var(--ease), color .3s var(--ease); }
.cell::before, .cell::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); opacity: .26; transition: opacity .3s var(--ease); }
.cell::before { top: 0; } .cell::after { bottom: 0; }
a.cell:hover, button.cell:not(:disabled):hover { background: var(--ink); color: var(--null); }
.cell.icon { padding: 0 11px; }
.cell.ca { color: var(--ink-2); font-weight: 400; cursor: default; }
.cell.ca.live { color: var(--ink); cursor: copy; font-weight: 500; }
.cell.buy { background: var(--keep); color: #1a0c06; }
.cell.buy::before, .cell.buy::after { opacity: 0; }
.cell.buy:hover { background: var(--ink) !important; color: var(--null); }
.mark { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 8px 5px; background: rgba(247, 246, 242, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-decoration: none; font: 500 13px/1 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.mark img { display: block; }

.side-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 25; writing-mode: vertical-rl; rotate: 180deg; display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 11px; min-height: 148px; background: var(--keep); color: #1a0c06; font-size: 13px; font-weight: 500; text-decoration: none; transition: padding .35s var(--ease); }
.side-tab:hover { padding: 18px 17px; }
.side-tab b { font-weight: 400; font-size: 17px; line-height: 1; }

/* hero: the page's one huge word, and fog that comes up over it */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-line { position: absolute; left: calc(var(--margin) * 2.6); top: clamp(88px, 11vh, 150px); font: italic 500 clamp(22px, 2.1vw, 44px)/1.08 'Cormorant Garamond', Georgia, serif; color: var(--ink); }
.hero-side { position: absolute; right: calc(var(--margin) * 2.6); top: clamp(88px, 11vh, 150px); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--ink); max-width: min(34ch, 40vw); text-align: right; }
.hero-now { font-size: 14px; line-height: 1.34; font-variant-numeric: tabular-nums; }
.walk-cell { min-height: 44px; gap: 48px; padding: 0 18px; color: var(--ink); }
.walk-cell i { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.title { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: .17em; font: 500 24.4vw/1.02 'Oswald', 'Arial Narrow', sans-serif; text-transform: uppercase; color: var(--ink); white-space: nowrap; padding-bottom: 1.2vw; will-change: filter, transform; letter-spacing: -.005em; }
.title span { display: inline-block; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 33vw; background: linear-gradient(to top, var(--null) 0%, var(--null) 30%, rgba(247, 246, 242, .62) 66%, rgba(247, 246, 242, 0) 100%); pointer-events: none; }
.title, .rise { z-index: 1; }
.rise { position: absolute; left: 0; right: 0; bottom: -2px; height: 120%; pointer-events: none; opacity: 0; background: linear-gradient(to top, var(--null) 0%, var(--null) 46%, rgba(247, 246, 242, .82) 66%, rgba(247, 246, 242, 0) 100%); }

/* what it is doing: the block being cut, seen from above */
.now { position: relative; min-height: 190vh; padding: 16vh calc(var(--margin) * 3) 9vh calc(var(--margin) * 2.6); display: grid; grid-template-columns: minmax(0, 340px) 1fr; grid-template-rows: auto 1fr auto; column-gap: 8vw; }
.now-text { grid-column: 1; grid-row: 1; }
.now-text h2 { font: 500 clamp(22px, 1.8vw, 30px)/1.15 'Oswald', sans-serif; margin-bottom: 14px; }
.now-text p { font-size: 14.5px; line-height: 1.42; margin-bottom: 12px; }
.now-block { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; max-width: min(620px, 42vw); text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.now-name { font: italic 500 clamp(36px, 4.4vw, 88px)/.98 'Cormorant Garamond', Georgia, serif; overflow-wrap: normal; word-break: keep-all; }
.now-sub { font-size: 15px; font-variant-numeric: tabular-nums; }
.cuts { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; width: min(100%, 460px); }
.cuts i { height: 26px; background: var(--ink); transition: background .8s var(--ease), opacity .8s var(--ease); }
.cuts i.taken { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.ink-btn, .orange-btn { min-height: 44px; padding: 0 22px; font-size: 14px; font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease); }
.ink-btn { background: var(--ink); color: var(--null); }
.ink-btn:hover { background: var(--keep); color: #1a0c06; }
.orange-btn { background: var(--keep); color: #1a0c06; }
.orange-btn:hover { background: var(--ink); color: var(--null); }
.orange-btn:disabled { opacity: .55; cursor: wait; }
.counts { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 5vw, 90px); align-items: baseline; }
.counts div { display: flex; flex-direction: column-reverse; }
.counts dt { font-size: 14px; }
.counts dd { font: 500 clamp(44px, 6vw, 110px)/1.05 'Oswald', sans-serif; font-variant-numeric: tabular-nums; }

/* the Register: a pinned rail over the live plan, opened by a shutter */
.register { position: relative; min-height: 100vh; overflow: hidden; background: var(--null); display: flex; flex-direction: column; padding: 11vh 0 4vh; }
.plan-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .92; }
.shutter { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; }
.shutter i { flex: 1; background: var(--null); transform-origin: left; }
.register-title { position: relative; z-index: 2; text-align: center; font: 500 clamp(60px, 13vw, 250px)/1 'Oswald', sans-serif; text-transform: uppercase; color: var(--ink); margin-bottom: 3vh; white-space: nowrap; }
.rail-wrap { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; }
.rail { display: flex; gap: clamp(14px, 3vw, 54px); padding: 0 clamp(16px, 9vw, 180px); will-change: transform; align-items: stretch; }
.rail:focus-visible { outline-offset: -4px; }
.entry { position: relative; flex: 0 0 clamp(270px, 33vw, 560px); background: #cfcabd; color: var(--ink); display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(18px, 2.4vw, 36px) clamp(14px, 2vw, 32px) 22px; min-height: clamp(320px, 54vh, 600px); }
.entry h3 { font: 400 clamp(23px, 2.8vw, 48px)/1.02 'Oswald', sans-serif; text-transform: uppercase; color: var(--ink); max-width: 15ch; }
.entry .stood { font-size: 14px; line-height: 1.35; max-width: 38ch; margin: 10px 0 12px; }
.entry canvas { width: 62%; aspect-ratio: 1; flex: 0 1 auto; background: var(--null); margin-top: auto; display: block; }
.entry .where { font-size: 13px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.entry .acts { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; font-weight: 500; }
.entry .acts a, .entry .acts button { text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.entry.blank { background: var(--null); justify-content: center; }
.entry.blank h3 { max-width: 19ch; }
.register-foot { position: relative; z-index: 2; text-align: center; font-size: 14px; margin-top: 3vh; color: var(--ink); text-shadow: 0 0 10px var(--null), 0 0 4px var(--null); }

/* feed and keepers */
.ledger { position: relative; background: var(--null); padding: 15vh calc(var(--margin) * 3) 13vh calc(var(--margin) * 2.6); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8vw; }
.ledger h2, .rules h2 { font: 500 clamp(40px, 6vw, 110px)/1.02 'Oswald', sans-serif; text-transform: uppercase; margin-bottom: 4vh; }
.feed li { display: grid; grid-template-columns: 5.4em 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 16px; line-height: 1.35; }
.feed li.fresh { animation: settle 1.6s var(--ease); }
@keyframes settle { from { filter: blur(6px); opacity: 0; transform: translateY(-8px); } }
.feed time { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.feed a { text-underline-offset: 3px; }
.feed b { font-weight: 500; }
.feed .e-gone b { font: italic 500 1.28em/1 'Cormorant Garamond', serif; }
.feed .e-saved, .feed .e-claim, .feed .e-renew { color: var(--ink); }
.feed .tick { color: var(--keep); font-weight: 500; }
.empty { padding: 14px 0; border-top: 1px solid var(--hair); color: var(--ink-2); font: italic 500 22px/1.2 'Cormorant Garamond', serif; }
.keep-lead { max-width: 40ch; margin-bottom: 26px; font-size: 15px; }
.keepers li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--hair); padding: 12px 0; font-size: 15px; }
.keepers .who { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keepers .who a { font-weight: 400; color: var(--ink-2); margin-left: 8px; text-underline-offset: 3px; }
.keepers .n { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }

/* rules: read like a notice */
.rules { position: relative; background: var(--null); padding: 8vh calc(var(--margin) * 3) 16vh calc(var(--margin) * 2.6 + 8vw); }
.rules-lead { font: italic 500 clamp(24px, 2.6vw, 42px)/1.12 'Cormorant Garamond', serif; max-width: 26ch; margin-bottom: 7vh; }
.rules-grid { columns: 2 380px; column-gap: 7vw; max-width: 1200px; }
.rules-grid div { break-inside: avoid; margin-bottom: 30px; }
.rules-grid h3 { font: 500 21px/1.2 'Oswald', sans-serif; margin-bottom: 6px; }
.rules-grid p { font-size: 15.5px; line-height: 1.46; max-width: 52ch; }
.coin-state { margin-top: 5vh; padding: 16px 20px; max-width: 62ch; background: var(--ink); color: var(--cream); font-size: 15px; }

/* the end: the whole plan from high up, then the last date */
.end { position: relative; min-height: 140vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 calc(var(--margin) * 3) 0 calc(var(--margin) * 2.6); }
.end-quote { font: italic 500 clamp(34px, 5.2vw, 104px)/1 'Cormorant Garamond', serif; max-width: 20ch; color: var(--ink); }
.end-sub { font: 500 clamp(20px, 1.8vw, 30px)/1.3 'Oswald', sans-serif; margin: 14px 0 22px; }
.foot { width: 100%; display: flex; justify-content: space-between; gap: 22px; margin-top: 12vh; padding: 16px 0 18px; font-size: 13px; border-top: 1px solid var(--ink); }
.foot-links { display: flex; gap: 14px; align-items: center; }
.foot-links a { display: inline-flex; padding: 6px; }
.foot span { background: rgba(247, 246, 242, .7); }

/* walking */
.walk-ui { position: fixed; inset: 0; z-index: 40; pointer-events: none; color: var(--ink); }
.walk-ui[hidden] { display: none; }
.walk-ui > * { pointer-events: auto; }
body.walking main, body.walking .side-tab, body.walking .plumb, body.walking .pointer-dot { display: none; }
body.walking { overflow: hidden; touch-action: none; }
body.walking .cells-left, body.walking .mark { visibility: hidden; }
#city.grabbing { cursor: grabbing; }
.walk-exit { position: absolute; left: var(--margin); top: 12px; }
.walk-online { position: absolute; left: var(--margin); top: 60px; padding: 2px 8px; font-size: 14px; pointer-events: none; background: rgba(247, 246, 242, .82); }
.walk-online:empty { display: none; }
.minimap { position: absolute; right: var(--margin); bottom: var(--margin); width: clamp(120px, 15vw, 220px); height: clamp(120px, 15vw, 220px); background: rgba(247, 246, 242, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.walk-card { position: absolute; left: var(--margin); bottom: var(--margin); width: min(440px, calc(100vw - var(--margin) * 2)); background: rgba(247, 246, 242, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 18px 20px 16px; }
.walk-card h2 { font: italic 500 clamp(26px, 2.6vw, 38px)/1.02 'Cormorant Garamond', serif; margin-bottom: 7px; }
.walk-card p { font-size: 14.5px; line-height: 1.36; font-variant-numeric: tabular-nums; }
.walk-card form { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.walk-card input { flex: 1 1 150px; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; background: transparent; border: 1px solid var(--hair); color: var(--ink); border-radius: 0; }
.walk-card input::placeholder { color: var(--ink-2); }
.walk-msg { margin-top: 8px; font-weight: 500; }
.walk-msg:empty { display: none; }
.walk-msg a { text-underline-offset: 3px; margin-right: 12px; }
.walk-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 2px 10px; font-size: 14px; pointer-events: none; text-align: center; background: rgba(247, 246, 242, .82); transition: opacity 1s; }
.stick { display: none; position: absolute; right: var(--margin); bottom: calc(var(--margin) + 136px); width: 112px; height: 112px; border: 1px solid var(--ink); border-radius: 50%; background: rgba(247, 246, 242, .5); touch-action: none; }
.stick i { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: var(--ink); }
@media (hover: none) { .stick { display: block; } }

/* no WebGL: the page still tells the truth */
body.no-gl .walk-cell, body.no-gl #goThere { display: none; }

@media (max-width: 1080px) {
  .bar { grid-template-columns: auto 1fr; gap: 8px; }
  .cells-left { display: none; }
  .mark { flex-direction: row; gap: 7px; align-self: center; }
  .mark span { display: none; }
  .cell { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
  .cell.icon { padding: 0 8px; }
}
@media (max-width: 760px) {
  .plumb i:nth-child(n+4) { display: none; }
  .side-tab { min-height: 112px; padding: 12px 7px; font-size: 12px; top: 58%; }
    .hero-line { top: 96px; left: var(--margin); font-size: 23px; }
  .hero-side { top: 158px; left: var(--margin); right: auto; align-items: flex-start; text-align: left; max-width: 74vw; }
  .now { display: flex; flex-direction: column; gap: 34vh; padding: 10vh 44px 8vh var(--margin); min-height: 0; }
  .now-block { align-items: flex-start; text-align: left; max-width: none; }
  .veil { background: radial-gradient(ellipse 60% 26% at 50% 50%, rgba(247, 246, 242, 0) 34%, rgba(247, 246, 242, .86) 78%, var(--null) 100%); }
  .counts { gap: 0 26px; }
  .rail { padding: 0 var(--margin); }
  .entry { flex-basis: 78vw; }
  .ledger { grid-template-columns: 1fr; padding: 10vh 44px 8vh var(--margin); }
  .rules { padding: 5vh 44px 10vh var(--margin); }
  .rules-grid { columns: 1; }
  .end { padding: 0 44px 0 var(--margin); min-height: 110vh; }
  .foot { flex-direction: column; margin-top: 8vh; }
  .walk-online { top: 54px; }
  .walk-hint { display: none; }
  .minimap { width: 104px; height: 104px; top: 54px; right: var(--margin); bottom: auto; }
  .stick { bottom: calc(var(--margin) + 190px); }
  .walk-card { padding: 13px 14px; }
}
@media (max-width: 400px) {
  .cells-right { gap: 4px; }
  .cell { padding: 0 7px; font-size: 12px; min-height: 32px; }
  .cell.icon { padding: 0 6px; }
  .bar { padding: 8px 8px; }
  .mark img { width: 24px; height: 24px; }
}
@media (min-width: 2200px) {
  body { font-size: 18px; }
  .cell { min-height: 44px; font-size: 16px; padding: 0 20px; }
  .now-text p, .hero-now, .keep-lead, .rules-grid p, .feed li { font-size: 19px; }
  .now-text { max-width: 480px; }
  .now { grid-template-columns: minmax(0, 480px) 1fr; }
  .rules-grid { max-width: 1700px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .pointer-dot { display: none; }
}
