@import url("./tokens.css?v=ink-blue");

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("./fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("./fonts/source-serif-4-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/JetBrainsMono-SemiBold.ttf") format("truetype"); }

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page { width: min(100% - 2 * var(--gutter), var(--content-width)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
main { flex: 1; }

.site-header { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "JetBrains Mono", var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -.055em; text-decoration: none; }
.brand img { flex: none; }
.brand-accent { color: var(--accent); }
.header-status, .eyebrow, .board-caption, .section-index, .status-footnote, .site-footer { font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.header-status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); white-space: nowrap; }
.status-rule { width: 16px; height: 1px; background: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); align-items: center; gap: clamp(56px, 8vw, 132px); padding-block: clamp(80px, 10vw, 142px) clamp(84px, 9vw, 130px); }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 25px; color: var(--accent); font-weight: 700; }
.eyebrow span { padding-inline: 7px; color: var(--line-strong); }
h1 { max-width: 13ch; font-family: var(--serif); font-size: clamp(60px, 5.8vw, 82px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.lead { max-width: 48ch; margin-top: 38px; font-family: var(--sans); font-size: clamp(20px, 1.7vw, 23px); line-height: 1.5; letter-spacing: -.015em; }
.hero-note { max-width: 54ch; margin-top: 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

.board-figure { width: 100%; max-width: 470px; justify-self: end; }
.board-caption { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: var(--ink-soft); font-size: 11px; }
.board-caption span:first-child { color: var(--accent); white-space: nowrap; }
.motion-toggle { width: 24px; height: 24px; margin: -4px 0 -6px; padding: 3px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.motion-toggle svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .play-icon, .motion-toggle[data-paused="true"] .pause-icon { display: none; }
.motion-toggle[data-paused="true"] .play-icon { display: block; }
.motion-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.motion-toggle[hidden] { display: none; }
.board-art { position: relative; aspect-ratio: 1; border: 1px solid var(--line-strong); background: var(--paper-2); }
.board-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, var(--board-line) 1px, transparent 1px), linear-gradient(to bottom, var(--board-line) 1px, transparent 1px); background-size: 12.5% 12.5%; }
.board-grid::before { content: ""; position: absolute; inset: 12.5%; border: 1px solid var(--line-strong); opacity: .6; }
.board-fallback { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #8e412b; stroke-width: 1.7; transition: opacity .8s ease; }
.board-fallback circle { fill: #8e412b; stroke: var(--paper-2); stroke-width: 2; }
.board-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.board-art.is-live .board-fallback { opacity: .13; }
.board-art.is-live .board-canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .board-art.is-live .board-fallback { opacity: 1; } .board-art.is-live .board-canvas { opacity: 0; } .motion-toggle { display: none; } }

.status-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); padding-block: 54px 70px; border-top: 2px solid var(--line-strong); }
.section-index { display: block; margin-bottom: 18px; color: var(--accent); font-weight: 700; }
h2 { max-width: 16ch; font-family: var(--serif); font-size: clamp(34px, 3.2vw, 48px); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; }
.status-copy { max-width: 52ch; padding-top: 32px; color: var(--ink-soft); }
.status-copy p:first-child { font-size: 17px; line-height: 1.7; }
.status-footnote { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--accent); line-height: 1.5; }

.site-footer { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.site-footer span span { padding-inline: 6px; color: var(--accent); }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 58px; padding-block: 80px 90px; }
  .board-figure { max-width: 520px; justify-self: start; }
}
@media (max-width: 600px) {
  .site-header { min-height: 75px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 29px; height: 29px; }
  .header-status { font-size: 0; }
  .status-rule { width: 18px; height: 2px; }
  .hero { gap: 52px; padding-block: 72px 78px; }
  .eyebrow { margin-bottom: 22px; }
  h1 { font-size: clamp(48px, 10vw, 64px); }
  .lead { margin-top: 29px; font-size: 20px; }
  .hero-note { margin-top: 17px; }
  .status-section { grid-template-columns: 1fr; gap: 20px; padding-block: 40px 54px; }
  .status-copy { padding-top: 0; }
  .site-footer { min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding-block: 20px; }
}
