@font-face {
  font-family: Poppins;
  src: url(/fonts/poppins-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/fonts/poppins-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/fonts/poppins-600.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/fonts/poppins-700.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Same tokens as the Daily House brief. Hierarchy comes from size and weight. */
:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --bg-elevated: #16181e;
  --surface: #1c212b;
  --surface-2: #242a36;
  --surface-top: #222938;
  --border: #313846;
  --border-soft: #2a3140;
  --border-strong: #46516a;
  --text: #eef1f4;
  --heading: #ffffff;
  --text-muted: #c9d2dc;
  --text-dim: #aeb8c6;
  --accent: #0c63ff;
  --accent-bright: #4d8dff;
  --accent-text: #a8c7ff;
  --accent-dim: rgba(12, 99, 255, 0.16);
  --focus: #0da6ff;
  --green: #22c55e;
  --font: Poppins, system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-card: 18px;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 36px -26px rgba(0, 0, 0, 0.9);
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #3a4356 transparent; }
body {
  margin: 0;
  background:
    radial-gradient(980px 460px at 16% -120px, rgba(12, 99, 255, 0.24), transparent 68%),
    radial-gradient(720px 380px at 96% -140px, rgba(13, 166, 255, 0.12), transparent 66%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(12, 99, 255, 0.5); color: #fff; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font); letter-spacing: -0.02em; color: var(--heading); }
p { margin: 0 0 10px; }
img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--heading); }

.shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px var(--gutter) 72px;
}
.side { position: sticky; top: 28px; align-self: start; }
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  margin: 2px 0 24px 2px;
  padding-left: 52px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-mark { font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; color: var(--heading); }
.brand-sub { color: var(--text-dim); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-list a:hover { background: var(--surface); color: var(--heading); text-decoration: none; }
.nav-list a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(12, 99, 255, 0.3), rgba(12, 99, 255, 0.08));
  box-shadow: inset 3px 0 0 var(--accent-bright);
  color: var(--heading);
  font-weight: 600;
}

.hero { margin-bottom: 24px; }
.hero-rule {
  margin-bottom: 18px;
  padding-bottom: 16px;
  background: linear-gradient(90deg, var(--accent-bright), rgba(77, 141, 255, 0.28) 38%, rgba(77, 141, 255, 0) 86%) left bottom / 100% 1px no-repeat;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
}
.eyebrow::before { content: ""; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-bright); }
h1 { font-size: clamp(32px, 2.2vw + 22px, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.lede, .prose p, .prose li { color: var(--text-muted); }
.lede { font-size: 17px; line-height: 1.6; max-width: 68ch; }
.hero-grid, .split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-primary {
  background: linear-gradient(180deg, #3d82ff, var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -8px rgba(12, 99, 255, 0.9);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.glance, .card, .panel, .kit-card {
  background: linear-gradient(180deg, var(--surface-top), var(--surface) 88px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.glance { position: relative; overflow: hidden; padding: 18px; }
.glance::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--focus));
}
.crew { display: block; width: 100%; height: auto; }

.section { margin-top: 36px; }
.section h2, .prose h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 32px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.6; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 0.3em 0; font-size: 16.5px; line-height: 1.55; }
.prose a, .lede a { font-weight: 600; }

.doors, .card-row, .kit-grid { display: grid; gap: 22px; }
.doors, .card-row { grid-template-columns: 1fr 1fr; }
.kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-wide { display: grid; grid-template-columns: 1.05fr 1fr; }
.card-copy { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card h2, .card h3 { font-size: 23px; font-weight: 600; }
.card p, .card li { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.55; }
.photo-card { position: relative; height: 240px; overflow: hidden; background: var(--bg-elevated); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.92) saturate(.92); }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, var(--surface));
}
.card-wide .photo-card { height: 100%; min-height: 280px; }
.card-wide .photo-card::after {
  inset: 0;
  background: linear-gradient(to right, transparent 52%, var(--surface));
}

.badge, .pills { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.badge {
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.seg {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.seg.on { background: var(--accent); color: #fff; }
.seg.off { color: var(--text-dim); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill.green { background: rgba(34, 197, 94, 0.15); color: #86efac; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.3); }
.pill.blue { background: rgba(12, 99, 255, 0.2); color: var(--accent-text); box-shadow: inset 0 0 0 1px rgba(77, 141, 255, 0.35); }
.title-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.count { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.build-rows { list-style: none; padding: 0; margin: 0; width: 100%; }
.build-rows li { padding: 10px 0; border-top: 1px solid var(--border-soft); }
.family {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
.family::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.family-intro { max-width: 72ch; color: var(--text-muted); margin: 0 0 18px; }

.crumbs { margin: 0 0 8px; font-size: 13.5px; color: var(--text-dim); }
.crumbs a { font-weight: 600; }
.facts, .pdf-note, .small { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; margin: 0; }
.build-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.build-copy h1 { margin: 0; }
.goes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg-elevated);
  padding: 10px 14px;
  font-size: 14px;
}
.goes span { color: var(--text-muted); }
.media { position: relative; }
.photo-hero img {
  width: 100%;
  display: block;
  border-radius: 14px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 58%, transparent 100%);
  filter: brightness(.92) saturate(.92);
}
.as-drawn {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 196px;
  margin: 0;
  background: #0e0f13;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
.as-drawn img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: 8px;
}
.as-drawn figcaption { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.photo-screenshot, .photo-inline { margin: 8px 0 18px; }
.photo-screenshot img, .photo-inline img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}
.photo-inline img { filter: brightness(.92) saturate(.92); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 18px; }
.pair figcaption { color: var(--text-dim); font-size: 12.5px; margin-top: 8px; }
.indicator { list-style: none; padding: 0; margin: 0 0 16px; max-width: 440px; }
.indicator li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.indicator .on { color: #86efac; font-weight: 600; }
.indicator .off { color: var(--text-dim); }

.kit-card, .panel { padding: 20px 22px; }
.kit-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.kit-card .setno, .panel .setno { color: var(--text-dim); font-size: 13.5px; margin: 0 0 10px; }
.kit-card p, .panel p { color: var(--text-muted); font-size: 15.5px; line-height: 1.55; }
.panel { margin: 22px 0; }
.panel h2 { font-size: 20px; margin-bottom: 10px; }
.panel p:last-child { margin-bottom: 0; }

.footer { border-top: 1px solid var(--border-soft); margin-top: 48px; padding-top: 22px; }
.footer .links { color: var(--text-muted); font-size: 13.5px; font-weight: 500; }
.footer .links a { color: var(--accent-text); font-weight: 600; }
.footer .fine { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; max-width: 110ch; margin-top: 10px; }

@media (max-width: 1100px) {
  .kit-grid, .card-wide, .hero-grid, .split, .pair { grid-template-columns: 1fr; }
  .card-wide .photo-card { height: 240px; }
  .card-wide .photo-card::after { inset: 55% 0 0 0; background: linear-gradient(to bottom, transparent, var(--surface)); }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  }
  .side {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 15, 19, 0.86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    margin: 0 -16px 18px;
    padding: calc(8px + env(safe-area-inset-top)) 0 8px 16px;
    border-bottom: 1px solid var(--border-soft);
  }
  .brand { flex-direction: row; align-items: center; gap: 9px; min-height: 0; margin: 0; padding-left: 0; }
  .brand-sub { display: none; }
  .brand-mark { font-size: 16px; }
  .brand-icon { position: static; width: 30px; height: 30px; }
  .nav-list {
    flex: 1;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    padding-right: 16px;
  }
  .nav-list a {
    white-space: nowrap;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border-soft);
    color: var(--text);
  }
  .nav-list a[aria-current="page"] {
    background: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-bright);
    color: #fff;
  }
  .doors, .card-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
