/* FONTS */
@font-face {
  font-family: "Manual Sans";
  src: url("../fonts/LiberationSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Logo Sans";
  src: url("../fonts/ArchivoBlack-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Manual Mono";
  src: url("../fonts/LiberationMono-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Print Mono";
  src: url("../fonts/NimbusMonoPS-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Print Mono";
  font-weight: 700;
  src: url("../fonts/NimbusMonoPS-Bold.otf") format("opentype");
}

:root {
  --font-body: "Print Mono", "Courier New", monospace;
  --font-mono: "Print Mono", "Manual Mono", monospace;
  --cover-blue: #263457;
  --cover-blue-soft: #31436d;
  --ink: #151515;
  --ink-soft: #5a5650;
  --paper: #f3f1eb;
  --line: #cfc8bb;
  --line-strong: #8f8a7e;
  --accent: #d8d2c6;
  --panel: #f7f4ed;
  --nav-width: 264px;
  --content-width: 760px;
  --max-width: 1440px;
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.8rem;
  --space-6: 4.8rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cover-blue);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
}


img { display: block; max-width: 100%; }
a { color: inherit; }

::selection {
  background: var(--cover-blue);
  color: #fff;
}

/* ─── LAYOUT ─────────────────────────────── */

.site-frame {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  min-height: 100vh;
}

.site-stage {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-height: 100vh;
}

/* ─── SIDEBAR ─────────────────────────────── */

.site-header {
  background: #1a2540;
  color: #f4f7ff;
  z-index: 20;
}

.site-header-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #f4f7ff;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-mark {
  width: 126px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Hidden in sidebar — logo already identifies the brand */
.brand-meta {
  display: none;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-strong);
}

/* Light eyebrow for dark backgrounds */
.site-header .eyebrow {
  color: rgba(244, 247, 255, 0.58);
}

.hero .eyebrow {
  color: rgba(244, 240, 230, 0.65);
}

.brand-meta strong {
  display: block;
  margin-top: 0.2rem;
  font-family: "Logo Sans", "Manual Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f4f7ff;
  padding: 0.6rem 0.85rem;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.site-nav {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.nav-secondary-mark {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.nav-secondary-mark-image {
  display: block;
  width: 100%;
  max-width: 185px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.nav-label {
  display: block;
  margin: 14px 0 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.48);
}

.site-nav a {
  display: block;
  padding: 0.46rem 0.7rem;
  border-radius: 8px;
  color: rgba(244, 247, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.3;
  border: none;
  background: transparent;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

/* ─── SUB-NAV ─────────────────────────────── */

.nav-sub {
  margin: 1px 0 4px 0;
  padding-left: 0;
  border-left: none;
}

.nav-sub a {
  font-size: 0.92rem;
  padding: 0.46rem 0.7rem;
  color: rgba(244, 247, 255, 0.82);
}

.nav-sub a:hover { color: #fff; }
.nav-sub a[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
}

/* ─── MAIN STAGE ─────────────────────────── */

.page-main {
  flex: 1;
  padding: 0;
}

.shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

/* ─── HERO (dark cover panel) ────────────── */

.hero {
  position: relative;
  padding: 56px 40px 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    radial-gradient(circle at top, #3d4f7e 0%, var(--cover-blue) 52%, #1f2945 100%);
  color: #f4f0e6;
  overflow: hidden;
}


.hero-title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-4);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: var(--space-4);
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero h1,
.page-intro h1,
.article-header h1,
.section-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 { color: #f4f0e6; }
.page-intro h1 { color: var(--cover-blue); }

.hero .eyebrow {
  color: rgba(244, 240, 230, 0.65);
  margin-bottom: 0.7rem;
}

.hero p.lead,
.page-intro .lead,
.article-header .lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.hero p.lead {
  max-width: none;
  color: rgba(244, 240, 230, 0.78);
}

.page-intro .lead,
.article-header .lead { color: var(--ink-soft); }

/* ─── HERO PANEL ─────────────────────────── */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: #f4f0e6;
}

.hero-panel-box {
  background: rgba(15, 21, 38, 0.28);
  border: 1px solid rgba(232, 227, 214, 0.22);
  padding: var(--space-3);
}

.hero-panel-box .section-label {
  display: block;
  color: rgba(244, 240, 230, 0.58);
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel-box .metric-list li {
  border-top-color: rgba(232, 227, 214, 0.18);
  color: rgba(244, 240, 230, 0.78);
  font-size: 0.86rem;
  padding: 0.6rem 0;
}

.hero-panel-box .metric-list li:first-child { border-top: 0; }

.hero-panel-box .metric-list li strong {
  color: #f4f0e6;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ─── HERO NEWS LIST ─────────────────────── */

.hero-news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
}

.hero-news-list li {
  padding: 0.52rem 0;
  border-top: 1px solid rgba(232, 227, 214, 0.18);
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(244, 240, 230, 0.82);
}

.hero-news-list li:first-child { border-top: 0; }

.hero-news-list time {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.45);
  margin-bottom: 0.18rem;
}

.hero-panel-link {
  display: block;
  margin: -0.2rem -0.35rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.hero-panel-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-panel-link:hover time,
.hero-panel-link:hover strong {
  color: #fff;
}

.hero-panel-metric-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: var(--space-3);
  margin: -0.2rem -0.35rem;
  padding: 0.2rem 0.35rem;
}

.hero-panel-metric-link strong {
  margin-left: auto;
  text-align: right;
}

/* ─── HERO ACTIONS ───────────────────────── */

.hero-actions,
.inline-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.hero-actions {
  position: relative;
  z-index: 1;
  align-items: stretch;
}

/* ─── BUTTONS ────────────────────────────── */

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(35, 49, 79, 0.28);
  background: var(--cover-blue);
  color: #f4f7ff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--cover-blue);
}

.button:hover { opacity: 0.88; }

/* Buttons inside dark hero */
.hero .button {
  flex: 0 0 198px;
  display: block;
  text-align: left;
  line-height: 1.3;
  padding: 0.46rem 0.7rem;
  position: relative;
  top: -2px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(244, 247, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero .button i {
  margin-right: 0.46rem;
  position: relative;
  top: 1px;
}

.hero .button.secondary {
  background: transparent;
  color: rgba(244, 247, 255, 0.82);
}

.hero .button:hover,
.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.text-link {
  padding: 0;
  color: var(--cover-blue);
}

/* ─── HERO PHOTO STRIP ───────────────────── */

.hero-photo-strip {
  position: relative;
  z-index: 1;
  margin: var(--space-4) -40px -48px -40px;
  height: 200px;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) sepia(0.7) hue-rotate(185deg) saturate(3.5) brightness(0.55) contrast(1.15);
  opacity: 0.75;
  display: block;
}

.hero-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.45rem 72px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.9);
  background: rgba(15, 21, 38, 0.72);
}

/* ─── SECTIONS (manual page panels) ─────── */

.section {
  padding: 48px 40px;
  background: var(--paper);
  border-top: 1px solid rgba(56, 54, 49, 0.13);
}

/* ─── SECTION HEADER ─────────────────────── */

.section-header {
  display: block;
  margin-bottom: var(--space-4);
}

.section-header > * + * {
  margin-top: var(--space-3);
}

.section-header h2,
.detail-column h2,
.article-body h2,
.article-body h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cover-blue);
}

.section-header h2,
.detail-column h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.section-header p,
.detail-column p,
.card p,
.entry-panel p,
.support-copy,
.footer-note {
  color: var(--ink-soft);
}

.section-header p {
  margin: 0;
  max-width: 44rem;
}

/* ─── LABELS & META ──────────────────────── */

.section-label,
.meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-strong);
}

/* ─── SECTION GRID & CARDS ───────────────── */

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-3);
}

/* Cards inside auto-fit grids ignore span classes */
.section-grid .card {
  grid-column: auto;
}

.card {
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(56, 54, 49, 0.12);
}

.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card.span-8 { grid-column: span 8; }

.card h3,
.entry-panel h3,
.entry-panel h2,
.timeline-item h3,
.download-item h3 {
  margin: 0.4rem 0 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--cover-blue);
  letter-spacing: 0;
}

.card p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ─── TWO COLUMN ─────────────────────────── */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.detail-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: var(--space-4);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

/* ─── ENTRY PANELS ───────────────────────── */

.entry-list {
  display: grid;
  gap: var(--space-3);
}

.entry-panel {
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(56, 54, 49, 0.12);
}

.entry-panel-link {
  display: block;
  text-decoration: none;
}

.entry-panel-link:hover {
  background: rgba(255, 255, 255, 0.68);
}

.entry-panel header,
.article-header-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: start;
  margin-bottom: 0.4rem;
}

.entry-panel p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.entry-panel time,
.article-header time,
.muted {
  color: var(--ink-soft);
}

/* ─── META CHIP ──────────────────────────── */

.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.19rem 0.5rem 0;
  border-radius: 6px;
  border: 1px solid rgba(143, 138, 126, 0.35);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── INFO PANEL ─────────────────────────── */

.info-panel {
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(56, 54, 49, 0.12);
}

.info-panel h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cover-blue);
  margin: 0.4rem 0 var(--space-3);
}

/* ─── STATUS GRID ────────────────────────── */

.status-grid {
  display: grid;
  gap: 1px;
  background: rgba(143, 138, 126, 0.2);
  margin: var(--space-3) 0;
}

.status-grid div {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 400;
}

.status-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}

.status-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.status-grid div span {
  font-weight: 400;
}

.status-grid div i,
.status-link i {
  position: relative;
  top: 0.19rem;
  flex: 0 0 auto;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.status-link span {
  font-weight: 400;
}

/* ─── METRIC LIST ────────────────────────── */

.metric-list,
.mini-list,
.spec-list,
.footer-list,
.entry-meta,
.release-list,
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.7rem 0;
  border-top: 1px solid rgba(111, 105, 93, 0.22);
  font-size: 0.9rem;
}

.metric-list li:first-child { border-top: 0; }

.metric-list li strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ─── DOWNLOAD / TIMELINE ────────────────── */

.download-item,
.timeline-item {
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(111, 105, 93, 0.22);
}

.download-item:first-child,
.timeline-item:first-child { border-top: 0; }

.entry-panel > .section-label + .download-item,
.faq-list .download-item:first-child {
  padding-top: 0;
  border-top: 0;
}

/* ─── NOTE BLOCK ─────────────────────────── */

.note-block,
.project-status {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(56, 54, 49, 0.12);
}

.note-block p:first-child,
.detail-column p:first-child,
.support-copy p:first-child { margin-top: 0; }

/* ─── TABLE ──────────────────────────────── */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table th,
.table td {
  padding: 0.6rem 0.5rem;
  border: 1px solid rgba(143, 138, 126, 0.3);
  text-align: left;
  vertical-align: top;
}

.table th {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.04);
}

/* ─── PAGE INTRO / ARTICLE ───────────────── */

.page-intro,
.article-header {
  padding: var(--space-5) 40px var(--space-4);
  border-bottom: 1px solid rgba(143, 138, 126, 0.2);
  margin-bottom: 0;
}

.article-layout {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-bottom: var(--space-6);
}

.article-body > * + * { margin-top: 1rem; }


.article-body h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
}

.article-body h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.article-body pre,
.article-body code,
.mono {
  font-family: var(--font-mono);
}

.article-body pre {
  overflow-x: auto;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ─── PRODUCT NAV CARDS ──────────────────── */

.product-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.product-nav--3col {
  grid-template-columns: repeat(3, 1fr);
}

.product-nav-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(56, 54, 49, 0.12);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}

.product-nav-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(38, 52, 87, 0.25);
}

.product-nav-icon {
  font-size: 1.5rem;
  color: var(--cover-blue);
  margin-bottom: var(--space-3);
  opacity: 0.75;
}

.product-nav-card h3 {
  margin: 0 0 0.18rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cover-blue);
  letter-spacing: -0.01em;
}

.product-nav-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  flex: 1;
}

.download-item p,
.timeline-item p {
  margin-top: 0;
  margin-bottom: 0;
}

.product-nav-count {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--line-strong);
}

@media (max-width: 640px) {
  .product-nav,
  .product-nav--3col {
    grid-template-columns: 1fr;
  }
}

/* ─── TEXT LINK ──────────────────────────── */

.text-link {
  color: var(--cover-blue);
}

/* ─── COMPACT ────────────────────────────── */

.compact { max-width: 30rem; }

/* ─── SECTION HEADING ────────────────────── */

.section-heading {
  color: var(--cover-blue);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}

/* ─── KICKER / META ROWS ─────────────────── */

.kicker-row,
.entry-meta,
.release-row,
.project-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.entry-meta {
  width: 100%;
  justify-content: flex-end;
}

.entry-panel header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* ─── FOOTER ─────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(56, 54, 49, 0.15);
  padding: var(--space-5) 24px;
  background: var(--cover-blue);
  color: rgba(244, 247, 255, 0.65);
}

.site-footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(120px, 1fr));
  gap: var(--space-5);
}

.site-footer .brand-mark {
  filter: brightness(0) invert(1);
  opacity: 0.72;
  width: 110px;
}

.site-footer h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.45);
}

.footer-list li + li { margin-top: 0.45rem; }

.footer-list a {
  text-decoration: none;
  color: rgba(244, 247, 255, 0.62);
  font-size: 0.9rem;
}

.footer-list a:hover { color: #fff; }

.footer-note {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(244, 247, 255, 0.48);
}

/* ─── RESPONSIVE ─────────────────────────── */

/* Collapse multi-column layouts before they get too narrow.
   With a 264px sidebar, stage = viewport - 264px.
   At 1050px viewport: stage ≈ 786px — hero-grid and two-column
   start getting cramped. Collapse them here. */
@media (max-width: 1050px) {
  .hero-grid,
  .two-column,
  .detail-grid,
  .about-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar collapses to top bar — stage becomes full viewport width */
@media (max-width: 980px) {
  .site-frame {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    height: auto;
    overflow: visible;
    padding: 14px 16px;
  }

  .site-header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding-right: 14px;
    margin-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .brand-mark { width: 104px; }

  /* Show brand text alongside logo in top-bar mode */
  .brand-meta {
    display: block;
    padding: 0;
    border: none;
  }

  .nav-label { display: none; }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
  }

  .nav-secondary-mark {
    display: none;
  }

  .site-nav a {
    padding: 0.38rem 0.65rem;
    font-size: 0.88rem;
    border-radius: 6px;
  }

  /* Restore two-column on wide stage once sidebar is gone */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  }

  .two-column,
  .detail-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle { display: none; }

  .hero,
  .section {
    padding: 36px 40px;
  }

  .page-intro, .article-header { padding-left: 40px; padding-right: 40px; }

  .hero-photo-strip {
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -36px;
    margin-top: var(--space-4);
  }

  .hero-photo-caption {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-footer { padding: var(--space-4) 16px; }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Narrow phones — everything single column */
@media (max-width: 640px) {
  .hero-grid,
  .two-column,
  .detail-grid,
  .about-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .card.span-4,
  .card.span-6,
  .card.span-8 {
    grid-column: span 12;
  }

  .hero { padding: 28px 24px 32px; }
  .section { padding: 28px 24px; }
  .page-intro, .article-header { padding-left: 24px; padding-right: 24px; }

  .hero-photo-strip {
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -32px;
    height: 160px;
  }

  .hero-photo-caption {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-secondary-mark {
    display: none;
  }

  .site-nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }

  .site-header-inner { flex-wrap: wrap; }

  .brand {
    flex: 1;
    border-right: none;
  }

  .site-footer-inner { grid-template-columns: 1fr; }
}
