/* ==========================================================================
   FITLEAGUE — base styles
   System-font stack only: zero webfont requests, zero layout shift, zero
   render-blocking network calls. Theme is driven by CSS custom properties
   and a [data-theme] attribute set before first paint (see inline head script).
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #060606;
  --bg-elevated: #101010;
  --bg-elevated-2: #161616;
  --text: #f5f5f3;
  --text-dim: #9c9c9c;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #ff3b30;
  --accent-ink: #0a0a0a;
  --focus: #ff3b30;
  --shadow: rgba(0, 0, 0, 0.5);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f0efed;
  --text: #0a0a0a;
  --text-dim: #5c5c5c;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.25);
  --accent: #e3271b;
  --accent-ink: #ffffff;
  --focus: #e3271b;
  --shadow: rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p, figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ==========================================================================
   Type
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-style: italic;
}

.h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  font-style: italic;
}

.h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 54ch;
  line-height: 1.6;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(32px, 6vw, 56px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--solid {
  background: var(--text);
  color: var(--bg);
}
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 11px 20px; font-size: 12px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow, a:hover .arrow { transform: translate(3px, -3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 20px;
  width: auto;
  aspect-ratio: 560 / 101;
  filter: invert(0);
}
:root:not([data-theme="light"]) .brand img { filter: invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.nav-links a:not(.btn) {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 2px;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { right: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
  transition: border-color 0.25s var(--ease), transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 69px 0 0 0;
    height: calc(100dvh - 69px);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a:not(.btn) {
    font-size: 22px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-links .btn { margin-top: 20px; align-self: flex-start; }
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(60px, 12vw, 120px) clamp(40px, 8vw, 80px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-heading {
  font-size: clamp(2.2rem, 6.2vw, 4.4rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 16ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--text-dim), transparent);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding-block: 22px;
  padding-inline: 24px;
  white-space: nowrap;
}
.marquee-track span img {
  height: 20px;
  width: auto;
  aspect-ratio: 560 / 101;
  filter: invert(0);
}
:root:not([data-theme="light"]) .marquee-track span img { filter: invert(1); }
.marquee-track span::after {
  content: "●";
  margin-left: 24px;
  color: var(--accent);
  font-size: 10px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

section { padding-block: clamp(64px, 10vw, 120px); }

.section-alt { background: var(--bg-elevated); }

/* About */

.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.about-copy p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; }

/* Listen */

.listen-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .listen-grid { grid-template-columns: 1fr; }
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-elevated);
  transition: background-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.platform-row:hover { background: var(--bg-elevated-2); padding-left: 28px; }
.platform-row-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}
.platform-row-name svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.platform-row-sub { font-size: 12px; color: var(--text-dim); text-align: right; }
@media (max-width: 480px) {
  .platform-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .platform-row-sub { text-align: left; }
}

/* Submit / playlisting cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 26px;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated-2);
}
.platform-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.platform-card-mark {
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.platform-card-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.platform-card-arrow svg { width: 14px; height: 14px; }
.platform-card:hover .platform-card-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.platform-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

.note-box {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.note-box strong { color: var(--text); }
.note-box a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Demo section */

.demo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 64px);
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

.info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.info-item { display: flex; gap: 16px; }
.info-item-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.info-item-icon svg { width: 17px; height: 17px; }
.info-item h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.info-item p { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; line-height: 1.55; }

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.genre-tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Forms */

.form-card {
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
}

.cta-card { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cta-card-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.cta-card-copy { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 8px; }

/* FAQ */

.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { background: var(--bg); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 26px; height: 26px;
  flex-shrink: 0;
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--text);
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease);
}
.faq-item summary .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item summary .plus::after { top: 0; left: 50%; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item[open] summary .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary .plus::before { background: var(--accent); }
.faq-item .faq-body { padding: 0 24px 24px; color: var(--text-dim); font-size: 14.5px; line-height: 1.65; max-width: 68ch; }
.faq-item .faq-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Scam notice */

.scam-banner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.scam-banner svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.scam-banner h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; }
.scam-banner p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.scam-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */

.contact-direct { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  font-style: italic;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--border-strong);
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 620px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .social-grid { grid-template-columns: 1fr; } }
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-link:hover { border-color: var(--accent); transform: translateY(-2px); }

/* CTA band */

.cta-band {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { display: inline-flex; }
.footer-logo img { width: auto; height: 16px; aspect-ratio: 560 / 101; filter: invert(0); }
:root:not([data-theme="light"]) .footer-logo img { filter: invert(1); }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-icon svg { width: 16px; height: 16px; }
.footer-icon:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--text); }

/* ==========================================================================
   Simple sub-page layout (privacy / scam warning)
   ========================================================================== */

.legal-page { padding-block: clamp(120px, 14vw, 160px) 100px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { font-size: 13px; color: var(--text-dim); margin-bottom: 40px; }
.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
}
.legal-page p, .legal-page li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-page strong { color: var(--text); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.back-link:hover { color: var(--text); }

/* Standalone logo (used outside header/hero, e.g. 404 page) */
.theme-logo { filter: none; }
:root:not([data-theme="light"]) .theme-logo { filter: invert(1); }

/* 404 */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 40px;
}
.error-page .theme-logo { width: min(420px, 80vw); height: auto; aspect-ratio: 560 / 101; }
.error-page .code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
}
