:root {
  --ink: #090c0a;
  --ink-raised: #10140f;
  --ink-raised-2: #161c14;
  --ink-line: #26312a;
  --paper: #d9e6d6;
  --paper-dim: #86a08a;
  --paper-faint: #4d5f50;
  --phosphor: #4ee08a;
  --phosphor-bright: #8dffb8;
  --amber: #d9a13d;
  --amber-bright: #f3c46a;
  --spine-1: #3f6b4a;
  --spine-2: #3a6e72;
  --spine-3: #b8863f;
  --spine-4: #7a3b42;
  --spine-5: #4a5a72;
  --font-display: "Iowan Old Style", "Sitka Small", "STIX Two Text", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --max: 1180px;
  --edge: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(ellipse 60% 40% at 82% -6%, rgb(78 224 138 / 11%), transparent 60%),
    radial-gradient(ellipse 50% 35% at 8% 4%, rgb(78 224 138 / 5%), transparent 60%);
}
body::after {
  background: repeating-linear-gradient(to bottom, rgb(217 230 214 / 2.8%) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
header, main, footer { position: relative; z-index: 1; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-mono); font-weight: 700; text-wrap: balance; }
img { display: block; max-width: 100%; }
.wrap { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--edge); }
::selection { background: var(--phosphor); color: var(--ink); }
:focus-visible { outline: 2px solid var(--phosphor-bright); outline-offset: 3px; }
.caps {
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mark { display: block; flex: 0 0 auto; }
.mark .bracket { fill: none; stroke: var(--phosphor-bright); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.mark .bar.s1 { fill: var(--spine-1); }
.mark .bar.s2 { fill: var(--spine-2); }
.mark .bar.s3 { fill: var(--spine-3); }
.mark .bar.s4 { fill: var(--spine-4); }
.mark .bar.s5 { fill: var(--spine-5); }
.mark .cursor { fill: var(--amber-bright); }

.site-header { border-bottom: 1px solid var(--ink-line); padding-block: 1.45rem; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1.2rem; text-decoration: none; }
.brand .mark { width: 1.8rem; height: 1.8rem; transition: filter .2s ease; }
.brand:hover .mark { filter: drop-shadow(0 0 8px rgb(78 224 138 / 45%)); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav-link, .footer-link {
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-link:hover, .footer-link:hover { color: var(--phosphor-bright); }
.nav-button {
  border: 1px solid var(--phosphor);
  color: var(--phosphor-bright);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .09em;
  padding: .55rem .8rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.nav-button:hover { background: var(--phosphor); color: var(--ink); }
.live-tag, .status-pill { display: inline-flex; align-items: center; gap: .5rem; color: var(--paper-dim); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 0 3px rgb(78 224 138 / 18%); flex: 0 0 auto; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(4rem, 7vw, 7rem) clamp(3rem, 5vw, 5rem); }
.hero-eyebrow { margin-bottom: 1.35rem; }
.hero h1 { font-size: clamp(2.8rem, 2rem + 4vw, 5.4rem); line-height: 1.05; letter-spacing: -.025em; }
.hero h1 em { background: var(--phosphor); color: var(--ink); font-style: normal; padding-inline: .14em; }
.hero-copy { max-width: 34rem; margin-top: 1.6rem; color: var(--paper); font-size: 1.12rem; opacity: .86; }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 2.4rem; }
.btn-primary { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--phosphor); background: var(--phosphor); color: var(--ink); font-size: .95rem; font-weight: 650; padding: .85rem 1.4rem; text-decoration: none; transition: background .2s ease, box-shadow .2s ease; }
.btn-primary:hover { background: var(--phosphor-bright); box-shadow: 0 0 16px rgb(78 224 138 / 35%); }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.hero-mark { display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--ink-line); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero-mark .mark { width: clamp(7rem, 12vw, 10rem); height: clamp(7rem, 12vw, 10rem); filter: drop-shadow(0 0 20px rgb(78 224 138 / 22%)); }

section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--ink-line); margin-bottom: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem; }
.section-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.35rem); }
.section-head .caps { margin-bottom: .4rem; }
.section-note { max-width: 24rem; color: var(--paper-faint); font-family: var(--font-mono); font-size: .76rem; text-align: right; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: clamp(1rem, 2.8vw, 2rem); }
.screen-shot { margin: 0; }
.screen-shot.featured { margin-top: clamp(0rem, 3vw, 2.5rem); }
.screen-shot img { width: 100%; border: 1px solid var(--ink-line); background: var(--ink-raised); box-shadow: 0 18px 45px rgb(0 0 0 / 24%); }
.screen-shot figcaption { display: flex; align-items: center; gap: .75rem; border-top: 1px solid var(--ink-line); color: var(--paper-dim); font-family: var(--font-mono); font-size: .82rem; margin-top: .9rem; padding-top: .7rem; }
.screen-number { color: var(--phosphor); }

.ledger { border-bottom: 1px solid var(--ink-line); }
.ledger-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-line); }
.ledger-cell { border-left: 1px solid var(--ink-line); padding: 1.8rem clamp(1.2rem, 2.5vw, 2.2rem); }
.ledger-cell:first-child { border-left: 0; }
.ledger-cell h3 { font-size: 1.2rem; margin: .5rem 0 .6rem; }
.ledger-cell > p:last-child { color: var(--paper-dim); font-size: .9rem; }
.scrubber-wrap { border-top: 1px solid var(--ink-line); padding: 1.6rem clamp(1.2rem, 2.5vw, 2.2rem) 1.9rem; }
.scrubber-labels { display: flex; justify-content: space-between; color: var(--paper-faint); font-family: var(--font-mono); font-size: .76rem; margin-bottom: .7rem; }
.scrubber-labels strong { color: var(--phosphor); font-weight: 600; }
.scrubber { position: relative; height: 5px; border-radius: 2px; background: repeating-linear-gradient(to right, var(--ink-line), var(--ink-line) 1px, transparent 1px, transparent calc(100% / 28)); }
.scrubber-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--phosphor); transition: width .7s ease; }
.scrubber-thumb { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border: 2px solid var(--ink); border-radius: 50%; background: var(--phosphor-bright); box-shadow: 0 0 0 3px rgb(78 224 138 / 22%); transform: translate(-50%, -50%); transition: left .7s ease; }

.update-card { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--ink-line); background: var(--ink-raised); padding: clamp(1.6rem, 3vw, 2.4rem); }
.update-meta { display: flex; flex-direction: column; gap: .6rem; min-width: 9rem; border-right: 1px solid var(--ink-line); padding-right: clamp(1.5rem, 4vw, 3rem); }
.update-date { color: var(--paper-faint); font-family: var(--font-mono); font-size: .76rem; font-variant-numeric: tabular-nums; }
.verified-badge { display: inline-flex; align-items: center; gap: .5rem; color: var(--amber-bright); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.verified-badge .led { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 6px rgb(217 161 63 / 65%); }
.update-card h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.3; }
.update-card p { max-width: 42rem; margin-top: .9rem; color: var(--paper-dim); font-size: .9rem; }
.update-card .nav-link { display: inline-block; margin-top: 1.3rem; }

.updates-main { width: min(100%, 960px); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--edge); }
.updates-intro { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.updates-intro h1 { margin: .5rem 0 1rem; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; }
.updates-intro > p:last-child { max-width: 42rem; color: var(--paper-dim); }
.build-now { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; border: 1px solid var(--ink-line); background: var(--ink-raised); padding: clamp(1.5rem, 4vw, 2.5rem); }
.build-now h2 { margin-top: .45rem; font-size: clamp(1.15rem, 3vw, 1.65rem); }
.build-now > p { color: var(--paper-dim); }
.timeline-section { padding-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; border-top: 1px solid var(--ink-line); padding: 2rem 0 2rem 2.2rem; }
.timeline-item::before { content: ""; position: absolute; top: 2.55rem; left: .15rem; width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 0 4px rgb(78 224 138 / 13%); }
.timeline-item::after { content: ""; position: absolute; top: 3rem; bottom: -1px; left: .37rem; width: 1px; background: var(--ink-line); }
.timeline-item:last-child::after { display: none; }
.timeline-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .65rem; }
.timeline article h3 { font-size: 1.18rem; }
.timeline-summary { max-width: 46rem; margin-top: .65rem; color: var(--paper-dim); }
.timeline-details { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--paper-faint); font-size: .9rem; }
.timeline-details li + li { margin-top: .5rem; }
.feed-error { color: var(--amber-bright) !important; }

footer { border-top: 1px solid var(--ink-line); padding-block: 2.4rem; }
.footer-row { align-items: flex-start; }
.tagline { max-width: 38rem; color: var(--paper-faint); font-family: var(--font-mono); font-size: .72rem; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .mark .cursor { animation: blink 1.1s steps(1) infinite; }
  .live-dot { animation: breathe 3.2s ease-in-out infinite; }
  .hero-mark .mark { animation: settle .8s cubic-bezier(.16, .8, .3, 1) both; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 50% { opacity: .45; } }
@keyframes settle { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { order: -1; border-bottom: 0; padding-bottom: 0; }
  .hero-mark .mark { width: 5.5rem; height: 5.5rem; }
  .live-tag { display: none; }
  .build-now { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  nav { gap: .7rem; }
  .site-header .nav-link { display: none; }
  .screens { grid-template-columns: 1fr; gap: 2.2rem; }
  .screen-shot, .screen-shot.featured { width: min(100%, 23rem); margin: 0 auto; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-cell { border-top: 1px solid var(--ink-line); border-left: 0; }
  .ledger-cell:first-child { border-top: 0; }
  .section-head { align-items: start; flex-direction: column; }
  .section-note { text-align: left; }
  .update-card { grid-template-columns: 1fr; }
  .update-meta { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--ink-line); padding: 0 0 1rem; }
  .footer-row { align-items: center; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scrubber-fill, .scrubber-thumb { transition: none; }
}
