:root {
  --night: #10161c;
  --night-2: #18222c;
  --sheet: #eef3f6;
  --card: #f8fbfc;
  --ink: #14202b;
  --muted: #52616e;
  --line: #c5d2dc;
  --ice: #8ecae6;
  --ice-deep: #1d6f93;
  --amber: #e3a008;
  --amber-ink: #1c1504;
  --bar: 68px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sheet);
  font-family: "Segoe UI", Aptos, "Trebuchet MS", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ice-deep);
}

a:hover {
  color: #0f4f6c;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 8px 12px;
  z-index: 30;
}

.skip:focus {
  top: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar);
  background: var(--night);
  color: #e7eef3;
  border-bottom: 2px solid var(--amber);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--bar);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f8fb;
  text-decoration: none;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark small {
  display: block;
  margin-top: 2px;
  font-family: "Segoe UI", Aptos, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ice);
  text-transform: uppercase;
}

.menu-btn {
  min-width: 84px;
  min-height: 42px;
  border: 1px solid var(--ice);
  background: transparent;
  color: #f4f8fb;
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.section-nav {
  display: none;
  position: absolute;
  top: var(--bar);
  left: 0;
  right: 0;
  background: var(--night-2);
  padding: 6px 18px 14px;
  flex-direction: column;
}

.section-nav.is-open {
  display: flex;
}

.section-nav a {
  color: #e7eef3;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(142, 202, 230, 0.2);
  min-height: 44px;
}

.section-nav a[href*="/tr/"] {
  color: var(--amber);
}

.deck {
  background:
    linear-gradient(180deg, rgba(16, 22, 28, 0.2), rgba(16, 22, 28, 0.55)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(142, 202, 230, 0.08) 28px
    ),
    var(--night);
  color: #e7eef3;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.deck-grid {
  display: grid;
  gap: 28px;
  padding: 36px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ice);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  max-width: 16ch;
  color: #f7fbfe;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 62ch;
  font-size: 1.12rem;
  color: #d5e0e8;
}

.snap {
  margin: 2px 0 16px;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  color: #7a4e00;
}

.deck .snap,
.band-dark .snap {
  color: var(--amber);
}

.action-slot {
  min-height: 108px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  background: var(--amber);
  color: var(--amber-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.action:hover {
  background: #f0b429;
  color: var(--amber-ink);
}

.action-note {
  margin-top: 10px;
  color: #b7c6d2;
  font-size: 0.92rem;
  max-width: 46ch;
}

.mono {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.device {
  margin: 0;
  justify-self: center;
  width: min(100%, 320px);
  background: var(--night-2);
  border: 1px solid rgba(142, 202, 230, 0.35);
  padding: 10px;
}

.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 720;
  background: #0c1218;
}

.device figcaption {
  margin-top: 8px;
  color: #b7c6d2;
  font-size: 0.86rem;
}

.band {
  scroll-margin-top: calc(var(--bar) + 18px);
  padding: 56px 0 28px;
}

.band p,
.notice p,
.colophon p {
  max-width: 68ch;
}

.step-row,
.spec,
.metric-row {
  display: grid;
  gap: 14px;
  margin: 8px 0 20px;
}

.step-row article,
.spec article,
.metric-row article {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ice-deep);
  padding: 16px 16px 6px;
}

.step-row span,
.metric-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--ice-deep);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.checks {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.checks li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.band-dark {
  background: var(--night);
  color: #e7eef3;
}

.band-dark h2,
.band-dark h3 {
  color: #f7fbfe;
}

.band-dark p {
  color: #d5e0e8;
}

.band-dark .spec article {
  background: var(--night-2);
  border-color: rgba(142, 202, 230, 0.28);
  border-top-color: var(--amber);
  color: #e7eef3;
}

.band-dark .spec h3 {
  color: var(--ice);
}

.metric-row strong {
  display: block;
  margin-bottom: 6px;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.notice {
  scroll-margin-top: calc(var(--bar) + 18px);
  padding: 12px 0 64px;
}

.notice-box {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 22px 18px 8px;
  box-shadow: inset 6px 0 0 var(--amber);
}

.age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.1rem;
}

.colophon {
  background: #0c1218;
  color: #d5e0e8;
  padding: 40px 0 52px;
}

.colophon h2 {
  color: #f7fbfe;
  font-size: 1.35rem;
}

.colophon a {
  color: var(--ice);
}

.colophon-grid {
  display: grid;
  gap: 22px;
}

.mail {
  font-family: Consolas, "Cascadia Mono", monospace;
}

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.colophon nav a {
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 202, 230, 0.45);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 880px) {
  .menu-btn {
    display: none;
  }

  .section-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: transparent;
    padding: 0;
  }

  .section-nav a {
    padding: 0;
    border-bottom: 0;
    min-height: 0;
    font-size: 0.95rem;
  }

  .deck-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.7fr);
    align-items: end;
    padding: 64px 0 72px;
  }

  .step-row,
  .spec,
  .metric-row,
  .colophon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .colophon-grid .span-2 {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
