/* ============================================
   BET ON NASCAR — OLED Dark Theme
   Space Mono + Syncopate · Neon Amber Accents
   ============================================ */


/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --surface: #121212;
  --surface2: #1a1a1a;
  --surface3: #222222;
  --border: #2a2a2a;
  --amber: #ffb300;
  --amber-glow: rgba(255, 179, 0, 0.18);
  --amber-dim: #cc8c00;
  --text: #e0e0e0;
  --text-muted: #888888;
  --text-dim: #555555;
  --white: #ffffff;
  --radius-card: 28px;
  --radius-pill: 9999px;
  --radius-sm: 6px;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-display: 'Syncopate', 'Arial Black', sans-serif;
  --font-body: 'Space Mono', 'Courier New', monospace;
  --max-prose: 72ch;
  --max-wrap: 1280px;
  --header-h: 68px;
  color-scheme: dark;
}

html {
  font-size: 16px;
  line-height: 1.6;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
}

a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover, a:focus-visible {
  color: var(--white);
  text-shadow: 0 0 10px var(--amber);
  outline: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding-left: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--white);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; margin-top: 2.4rem; margin-bottom: 0.5rem; }
h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 700; margin-top: 1.8rem; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.4rem; }

p { margin-bottom: 1.1rem; }

strong { color: var(--white); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

table th {
  background: var(--surface2);
  color: var(--amber);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--amber);
}

table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

table tr:hover td {
  background: var(--surface2);
}

blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--surface2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--surface2);
  border-radius: var(--radius-sm);
}

code { padding: 0.1em 0.4em; }

pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--border);
}

/* === LAYOUT SYSTEM === */

/* Site aside + layout-wrapper sit side by side */
body > aside.site-aside,
.layout-wrapper {
  /* both are children of body — use flex on body via a wrap approach */
}

/* We wrap everything so aside and layout can flex */
body {
  display: flex;
  flex-direction: column;
}

/* The aside and layout-wrapper are siblings produced by each layout module */
/* They need a flex row container — achieved by placing them inside the body flex flow
   and using position for the aside */

.site-aside {
  position: fixed;
  left: 0;
  top: var(--header-h);
  width: 220px;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 200;
  padding: 1.5rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.site-aside.open {
  transform: translateX(0);
}

.layout-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .site-aside {
    transform: translateX(0);
    position: fixed;
  }

  .layout-wrapper {
    margin-left: 220px;
  }
}

/* === ASIDE INTERNALS === */

.site-aside nav ul {
  list-style: none;
  padding: 0;
}

.site-aside nav li {
  margin-bottom: 0.1rem;
}

.site-aside nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-aside nav a:hover,
.site-aside nav a:focus-visible {
  background: var(--surface2);
  color: var(--amber);
  text-shadow: none;
}

.site-aside nav li.active > a {
  color: var(--amber);
  background: var(--amber-glow);
}

.aside-heading {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 1.4rem 0 0.5rem;
  padding: 0 0.75rem;
}

.sibling-nav,
.aside-related {
  margin-top: 0.5rem;
}

/* === HEADER === */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 300;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px var(--amber);
  white-space: nowrap;
}

.site-logo {
  height: 36px;
  width: auto;
}

.logo-mark {
  height: 36px;
  width: auto;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.header-nav {
  flex: 1;
  overflow: hidden;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar { display: none; }

.pill-nav li a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
}

.pill-nav li a:hover,
.pill-nav li a:focus-visible {
  background: var(--surface2);
  color: var(--amber);
  border-color: var(--border);
  text-shadow: none;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cta-signup {
  background: var(--amber);
  color: var(--black);
  border: 2px solid var(--amber);
}

.cta-signup:hover, .cta-signup:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  box-shadow: 0 0 16px var(--amber);
  text-shadow: none;
  outline: none;
}

.cta-login {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
}

.cta-login:hover, .cta-login:focus-visible {
  background: var(--amber-glow);
  color: var(--white);
  text-shadow: none;
  outline: none;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MAIN WRAP === */

main {
  flex: 1;
  padding-top: 0;
}

.wrap {
  max-width: var(--max-wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HOME HERO === */

.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 3rem 1.5rem 3rem;
  background: var(--black);
}

.hero-slant {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, var(--black) 48%, var(--surface) 48%);
  z-index: 0;
}

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-card);
  opacity: 0.45;
}

.hero-img-1 {
  left: 0;
  top: 0;
  width: 58%;
  height: 100%;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.hero-img-2 {
  left: 32%;
  top: 8%;
  width: 36%;
  height: 84%;
  border-radius: var(--radius-card);
  opacity: 0.3;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 44%;
  text-align: right;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-copy h1 {
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.15);
}

.hero-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  min-height: 44px;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--white);
  box-shadow: 0 0 20px var(--amber);
  color: var(--black);
  text-shadow: none;
}

/* === CONTENT SECTION === */

.content-section {
  padding: 3rem 0 1rem;
}

.page-article {
  max-width: var(--max-prose);
}

/* === CHILD GRID (HOME) === */

.child-grid-section {
  padding: 2rem 0 3rem;
}

.child-grid-section > h2 {
  margin-bottom: 0.3rem;
}

.child-grid-section > p.subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

/* Child cards: div > section direct children */
.child-grid-section > section.child-card {
  display: inline-block;
  vertical-align: top;
  width: calc(50% - 1rem);
  margin: 0 0.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.child-grid-section > section.child-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 179, 0, 0.1);
}

.card-inner {
  padding: 1.5rem 1.6rem;
}

.card-inner h3 {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card-inner h3 a {
  color: var(--white);
  text-decoration: none;
}

.card-inner h3 a:hover {
  color: var(--amber);
  text-shadow: 0 0 10px var(--amber);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.card-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.8rem;
}

.card-cta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-decoration: none;
}

.card-cta:hover { color: var(--white); text-shadow: 0 0 8px var(--amber); }

@media (max-width: 700px) {
  .child-grid-section > section.child-card {
    width: 100%;
    margin: 0 0 1rem;
  }
}

/* === GUIDE LAYOUT === */

.guide-section {
  padding: 2.5rem 0 3rem;
}

.guide-article {
  max-width: var(--max-prose);
}

.guide-header {
  margin-bottom: 2rem;
}

.guide-header h1 {
  margin: 0.5rem 0 0.8rem;
}

.guide-hero {
  margin: 1.5rem 0;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.guide-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.guide-toc-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.toc-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* === FAQ LAYOUT === */

.faq-section {
  padding: 2.5rem 0 3rem;
}

.faq-article {
  max-width: var(--max-prose);
}

.faq-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.faq-header h1 {
  margin: 0.5rem 0 0.6rem;
}

/* === CHANGELOG LAYOUT === */

.changelog-section {
  padding: 2.5rem 0 3rem;
}

.changelog-article {
  max-width: var(--max-prose);
}

.changelog-header {
  margin-bottom: 2rem;
}

.changelog-timeline {
  position: relative;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  opacity: 0.4;
}

/* === ABOUT LAYOUT === */

.about-section {
  padding: 2.5rem 0 3rem;
}

.about-article {
  max-width: var(--max-prose);
}

.about-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.about-header h1 {
  margin: 0.5rem 0 0.5rem;
}

.author-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.author-section > h2 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  color: var(--amber);
  text-shadow: 0 0 10px var(--amber-glow);
}

.author-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.8rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.author-credentials {
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.author-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* === PRIVACY LAYOUT === */

.privacy-section {
  padding: 2.5rem 0 3rem;
}

.privacy-article {
  max-width: var(--max-prose);
}

.privacy-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.privacy-header h1 {
  margin: 0.5rem 0 0.5rem;
}

/* === SHARED COMPONENTS === */

/* Subtitle paragraph (immediately after h2) */
.subtitle, p.subtitle, p.subhead, p.desc, p.lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -0.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--amber); }

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.2rem;
  flex-wrap: wrap;
}

.byline-by { color: var(--amber); }
.byline-sep { color: var(--text-dim); }

.byline time {
  color: var(--text-muted);
}

/* Stage badge */
.stage-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.stage-awareness { background: rgba(0, 120, 255, 0.15); color: #5b9fff; border: 1px solid rgba(0, 120, 255, 0.3); }
.stage-consideration { background: rgba(255, 179, 0, 0.12); color: var(--amber); border: 1px solid rgba(255, 179, 0, 0.3); }
.stage-decision { background: rgba(0, 200, 80, 0.12); color: #00c850; border: 1px solid rgba(0, 200, 80, 0.3); }

/* Article footer meta */
.article-footer-meta {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.last-reviewed {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.last-reviewed time { color: var(--text-muted); }

/* Prose styles */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.prose h2 + p {
  color: var(--text-muted);
}

.prose a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--white); text-shadow: 0 0 8px var(--amber); }

.prose ul, .prose ol {
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* === FOOTER === */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* footer > div direct children */
.site-footer > div {
  display: block;
}

.footer-brand {
  padding: 2.5rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px var(--amber-glow);
  display: inline-block;
}

.footer-links {
  max-width: var(--max-wrap);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.footer-links nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-links nav a:hover { color: var(--amber); text-shadow: none; }

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.trust-link {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.trust-link:hover { color: var(--amber); text-shadow: none; }

.footer-legal {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  max-width: var(--max-wrap);
  margin: 0 auto;
  width: 100%;
}

.rg-notice {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.copyright {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0;
}

/* === SCROLL REVEAL === */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === MOBILE RESPONSIVE === */

@media (max-width: 1023px) {
  .site-aside {
    top: 0;
    height: 100vh;
    z-index: 400;
    padding-top: calc(var(--header-h) + 1rem);
  }

  .layout-wrapper {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .header-nav-wrap {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.97);
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    z-index: 350;
    border-bottom: 1px solid var(--border);
  }

  .header-nav-wrap.open {
    display: flex;
  }

  .pill-nav {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .pill-nav li a {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-copy {
    max-width: 100%;
    text-align: left;
  }

  .hero-collage {
    display: none;
  }

  .hero-slant {
    background: var(--black);
  }

  .hero-section {
    min-height: auto;
    padding: 2.5rem 1.5rem 2rem;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .wrap {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .footer-links {
    flex-direction: column;
    padding: 1.2rem 1rem;
  }

  .footer-brand {
    padding: 1.5rem 1rem 0.8rem;
  }

  .footer-legal {
    padding: 0.8rem 1rem 1.2rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }

  .changelog-timeline::before {
    left: -1rem;
  }
}

/* === UTILITY === */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Ensure no horizontal overflow */
html, body {
  overflow-x: hidden;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}