/* hyperstack's page. System fonts only; nothing loaded from elsewhere. */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #474747;
  --accent: #0b5cad;
  --line: #c9ced6;
  --panel: #f3f5f8;
  --slot: #8a5a00;
  --focus: #0b5cad;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --fg: #e8e8e8;
    --muted: #b8bcc4;
    --accent: #8ebcff;
    --line: #3a404a;
    --panel: #1c2026;
    --slot: #f0c060;
    --focus: #8ebcff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 0.15em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--focus);
  z-index: 10;
}
.skip:focus { top: 1rem; }

.site-header, main, .site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.wordmark { margin: 0; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.wordmark a { color: var(--fg); text-decoration: none; }

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

main section { padding: 1.5rem 0; }

h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; margin: 1rem 0 0.75rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }

.lede { font-size: 1.15rem; color: var(--muted); }

.notice {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

ul { padding-left: 1.25rem; }
.claims li { margin-bottom: 0.5rem; }

.slot-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slot);
  border: 1px dashed var(--slot);
  border-radius: 3px;
  padding: 0 0.4rem;
  margin-right: 0.25rem;
}

.slot-video { margin: 0; }
.slot-frame {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--slot);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
}
.slot-frame p { margin: 0.25rem 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

.status { margin: 0; }
.status dt { font-weight: 700; margin-top: 0.75rem; }
.status dd { margin: 0.15rem 0 0; }

.site-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0.25rem 0; }
