@font-face {
  font-family: Paperlogy;
  src: url("/assets/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Paperlogy;
  src: url("/assets/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #0d1522;
  --surface: #141f33;
  --paper: #f2f0ea;
  --white: #fff;
  --line: #dcd8cd;
  --line-dark: #26344d;
  --muted: #4e5665;
  --muted-dark: #a8b4c6;
  --accent: #ffe14d;
  --success: #8cd8b3;
  --error: #ffaba7;
  --error-light: #9d231d;
  --wash: rgba(255, 255, 255, .07);
  --shadow: rgba(0, 0, 0, .2);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --heading-sm: 32px;
  --heading-md: 48px;
  --heading-lg: 64px;
  --display: 88px;
  font-family: Paperlogy, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--ink);
  color: var(--white);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}
button:hover, .button:hover { background: var(--wash); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--accent); color: var(--ink); border-color: transparent; }
.primary:hover { background: var(--accent); opacity: .86; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.04em; }
h1 { font-size: clamp(var(--heading-md), 6vw, var(--display)); }
h2 { font-size: clamp(var(--heading-sm), 4vw, var(--heading-lg)); }
h3 { font-size: var(--text-xl); }
p + p { margin-top: var(--space-4); }
.muted { color: var(--muted-dark); }
.eyebrow { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0; }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.reading { max-width: 760px; margin-inline: auto; }
.cluster { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.stack { display: grid; gap: var(--space-6); }
.panel { background: var(--surface); border: 1px solid var(--line-dark); padding: var(--space-8); border-radius: var(--radius-md); }
.media { aspect-ratio: 16/9; width: 100%; object-fit: contain; background: var(--ink); border-radius: var(--radius-md); }
.source-note { font-size: var(--text-sm); color: var(--muted-dark); }
.light { color-scheme: light; background: var(--paper); color: var(--ink); }
.light .muted, .light .source-note { color: var(--muted); }
.light .panel { background: var(--white); border-color: var(--line); }
.light :focus-visible { outline-color: var(--ink); }
.status { display: inline-block; font-size: var(--text-sm); }
.status.success { color: var(--success); }
.status.error { color: var(--error); }
.light .status.error { color: var(--error-light); }
.skip { position: absolute; top: -100px; left: 16px; z-index: 10; }
.skip:focus { top: 16px; }
@media (max-width: 640px) {
  .panel { padding: var(--space-6); }
  h1 { font-size: var(--heading-md); }
}
@media (prefers-reduced-motion: reduce) {
  button, .button { transition: none; }
  button:active, .button:active { transform: none; }
}
