@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/Newsreader-VF.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #10100f;
  --paper: #f3f0e8;
  --muted: #6f6d67;
  --line: rgba(16, 16, 15, 0.18);
  --signal: #d8ff4f;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 255, 79, 0.24), transparent 24rem),
    linear-gradient(rgba(16,16,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,16,15,.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: .72rem; align-items: center; text-decoration: none; font-weight: 720; letter-spacing: -.02em; }
.mark { width: 1.1rem; height: 1.1rem; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.mark::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border: 1px solid currentColor; border-radius: 50%; left: .28rem; top: -.34rem; }
.live-pill { display: inline-flex; align-items: center; gap: .55rem; font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.live-pill span { width: .55rem; height: .55rem; border-radius: 50%; background: #4ea92f; box-shadow: 0 0 0 .3rem rgba(78,169,47,.13); }
.landing-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .8rem; }
.landing-nav a { text-underline-offset: .25em; }
.back-link { font-size: .9rem; text-underline-offset: .25em; }

.hero { min-height: 690px; display: grid; align-content: center; padding: 7rem 0 6rem; border-bottom: 1px solid var(--line); position: relative; }
.hero::after { content: ""; position: absolute; width: clamp(11rem, 24vw, 20rem); aspect-ratio: 1; right: 2%; top: 17%; border: 1px solid var(--ink); border-radius: 50%; box-shadow: 2.3rem 1.2rem 0 -1px var(--paper), 2.3rem 1.2rem 0 0 var(--ink), 4.6rem 2.4rem 0 -1px var(--paper), 4.6rem 2.4rem 0 0 var(--ink); opacity: .2; pointer-events: none; }
.eyebrow, .kicker { margin: 0 0 1.2rem; font: 650 .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; text-transform: uppercase; }
h1 { max-width: 1040px; margin: 0; font-family: Newsreader, Georgia, "Times New Roman", serif; font-size: clamp(4.2rem, 9.2vw, 8.6rem); font-weight: 470; line-height: .86; letter-spacing: -.065em; position: relative; z-index: 1; }
.lede { max-width: 690px; margin: 2.5rem 0 0; color: #3e3d39; font-family: Newsreader, Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.47; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 680; font-size: .9rem; transition: transform .15s ease, background .15s ease, color .15s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.secondary:hover { background: var(--signal); }

.record, .explain { padding: 7rem 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
h2 { margin: 0; font-family: Newsreader, Georgia, "Times New Roman", serif; font-weight: 480; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.045em; }
.record-grid { margin: 5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.record-grid div { padding: 1.2rem 1rem 2.2rem 0; border-bottom: 1px solid var(--line); }
dt { margin-bottom: .7rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
dd { margin: 0; font: 560 clamp(.78rem, 1.35vw, 1rem)/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.uri-row { margin-top: 1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); padding: 1rem 1.15rem; }
.uri-row code { overflow: hidden; text-overflow: ellipsis; font-size: .75rem; white-space: nowrap; }
.uri-row button { flex: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: transparent; color: inherit; padding: .55rem .85rem; cursor: pointer; font-weight: 650; }
.uri-row button:hover, .uri-row button:focus-visible { background: var(--signal); color: var(--ink); }
.columns { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.columns p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.55; }

.atlas-tease { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(460px, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; margin: 4rem 0; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 1.2rem; background: #0a0b0a; color: #f0ede4; overflow: hidden; }
.atlas-tease-copy > p:not(.kicker) { max-width: 560px; margin: 1.5rem 0 0; color: #aaa99f; font-family: Newsreader, Georgia, serif; font-size: 1.08rem; line-height: 1.5; }
.atlas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.atlas-stats div { padding-top: .8rem; }
.atlas-stats dt { margin: 0; color: #f0ede4; font-family: Newsreader, Georgia, serif; font-size: 2.2rem; line-height: 1; }
.atlas-stats dd { margin: .3rem 0 0; color: #77796f; font: .6rem ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.text-link { color: var(--signal); font-size: .8rem; text-underline-offset: .3em; }
.atlas-preview-link { position: relative; display: block; min-height: 520px; border: 1px solid rgba(255,255,255,.14); border-radius: .8rem; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(216,255,79,.06), transparent 50%), #060706; }
.atlas-preview-link::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; }
#atlas-preview { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-preview-link > span { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(6,7,6,.72); color: #f0ede4; font-size: .7rem; backdrop-filter: blur(10px); }
.about-graph { margin-top: 7rem; padding-top: 5rem; border-top: 1px solid var(--line); }
.about-graph > p:not(.kicker) { max-width: 760px; margin: 2rem 0; color: #46443f; font-family: Newsreader, Georgia, serif; font-size: 1.18rem; line-height: 1.55; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2.1rem 0 3rem; color: var(--muted); font-size: .8rem; }
footer p { margin: 0; }
footer nav { display: flex; gap: 1.2rem; }
footer a { text-underline-offset: .25em; }

.inner-shell { min-height: 100vh; display: flex; flex-direction: column; }
.article { flex: 1; padding: 8rem 0 6rem; }
.article h1 { font-size: clamp(4rem, 9vw, 8rem); }
.article .lede { margin-bottom: 5rem; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 1fr 5fr; gap: 2rem; padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.steps > li > span { font: 650 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps h2 { font-family: inherit; font-size: 1.2rem; letter-spacing: -.02em; font-weight: 720; }
.steps p { max-width: 680px; color: #46443f; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.55; }
.steps code { font-size: .82em; }
aside { margin: 6rem 0 0 auto; max-width: 670px; padding: 2rem; background: var(--signal); }
aside > p:last-child { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.35; }

:focus-visible { outline: 3px solid #2b6cff; outline-offset: 3px; }
@media (max-width: 780px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 72px; }
  .live-pill { font-size: .62rem; }
  .hero { min-height: 640px; padding: 5rem 0; }
  .hero::after { top: 12%; right: 0; }
  h1 { font-size: clamp(3.7rem, 19vw, 6.2rem); }
  .section-heading, .columns { grid-template-columns: 1fr; }
  .atlas-tease { grid-template-columns: 1fr; margin: 2rem 0; padding: 1.3rem; }
  .atlas-preview-link { min-height: 430px; }
  .record, .explain { padding: 5rem 0; }
  .record-grid { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
  .uri-row { align-items: stretch; flex-direction: column; }
  .uri-row button { align-self: flex-start; }
  footer { flex-direction: column; }
  .article { padding: 5rem 0; }
  .steps li { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
