/* ==========================================================================
   RL LFG website design system
   --------------------------------------------------------------------------
   One stylesheet for every page. No build step, no JavaScript needed.
   Dark only (navy), Rocket League-style blue vs orange accents, gold for
   prizes. Mobile first: base styles are for phones, @media (min-width: …)
   blocks add the tablet/desktop layout.

   Contents
     0.  Fonts (self-hosted Inter)
     1.  Design tokens (CSS variables)
     2.  Reset and base elements
     3.  Typography (display headings, eyebrow, lead, inline code, /commands)
     4.  Accessibility helpers (focus, skip link, visually-hidden)
     5.  Layout (container, section, stack, grid)
     6.  Site header and nav (works without JavaScript)
     7.  Buttons
     8.  Hero (landing page)
     9.  Example LFG card (the Discord-style card in the hero)
     10. Cards and feature grid
     11. Steps list
     12. Prize band and pills (cups)
     13. Guide cards
     14. Sponsor row
     15. FAQ (details/summary)
     16. Callouts
     17. Tables
     18. Facts list (key/value details)
     19. Article pages: breadcrumbs, article header, table of contents
     20. Prose (long-form guide text)
     21. CTA block
     22. Footer
     23. 404 page
     24. Utilities
     25. Reduced motion and print
   ========================================================================== */


/* 0. Fonts
   --------------------------------------------------------------------------
   Inter (variable, Latin subset), self-hosted so pages don't load anything
   from Google. SIL Open Font License: see /assets/fonts/OFL.txt.
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


/* 1. Design tokens
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Surfaces (darkest to lightest) */
  --bg-deep: #070d1b;
  --bg: #0a1224;            /* page background, dark navy */
  --surface: #111c35;       /* cards */
  --surface-2: #17264a;     /* raised cards, hover */
  --surface-3: #1d2f5a;
  --border: #253866;
  --border-strong: #34497d;

  /* Text */
  --text: #eef3ff;          /* 16:1 on --bg */
  --text-muted: #aab7d6;    /* 9:1 on --bg */
  --text-faint: #8a9abf;    /* 5.8:1 on --surface, use for small meta text */

  /* Brand */
  --blue: #1f8fff;          /* Rocket League-style blue team */
  --blue-strong: #1271dc;   /* button fill: white text passes AA (4.7:1) */
  --blue-hover: #0d62c3;
  --blue-text: #5fb0ff;     /* links and blue text on dark surfaces */
  --blue-soft: rgba(31, 143, 255, 0.14);
  --orange: #ff8a1f;        /* orange team */
  --orange-text: #ffa04d;
  --orange-soft: rgba(255, 138, 31, 0.14);
  --gold: #ffcf40;          /* prizes only */
  --gold-soft: rgba(255, 207, 64, 0.12);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, 0.12);
  --red: #ff6b78;
  --red-soft: rgba(255, 107, 120, 0.12);
  --boost: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-300: 0.875rem;                                   /* small / meta */
  --fs-400: 1.0625rem;                                  /* body (17px) */
  --fs-500: 1.25rem;                                    /* lead, h3 */
  --fs-600: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);        /* h2 in prose */
  --fs-700: clamp(1.85rem, 1.35rem + 2.4vw, 2.75rem);   /* section h2 */
  --fs-800: clamp(2.35rem, 1.5rem + 4.2vw, 4.25rem);    /* h1 */
  --lh-tight: 1.08;
  --lh-body: 1.65;

  /* Shape and depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);

  /* Spacing and widths */
  --gutter: 16px;
  --container: 1120px;
  --container-narrow: 760px;   /* reading width for guides */
  --section-space: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --header-h: 72px;
}


/* 2. Reset and base elements
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(56rem 36rem at -12% -8%, rgba(31, 143, 255, 0.16), transparent 62%),
    radial-gradient(48rem 34rem at 112% 2%, rgba(255, 138, 31, 0.11), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input, button, select, textarea { font: inherit; color: inherit; }

a {
  color: var(--blue-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: #8cc6ff; }

hr {
  border: 0;
  height: 3px;
  background: var(--boost);
  border-radius: var(--radius-pill);
  opacity: 0.7;
}

::selection { background: rgba(31, 143, 255, 0.45); color: #fff; }


/* 3. Typography
   --------------------------------------------------------------------------
   h1 and h2 use the bold italic "display" style automatically.
   Add .display to any other element to get the same look.
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h1, h2, .display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.022em;
}

h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-500); font-weight: 800; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; font-weight: 800; }

p { text-wrap: pretty; }

strong, b { font-weight: 800; color: var(--text); }

/* Small uppercase label above a heading: <p class="eyebrow">Guide</p> */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--orange-text);
  font-size: 0.8125rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--boost);
  transform: skewX(-20deg);
}
.eyebrow--blue { color: var(--blue-text); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--gold::before { background: var(--gold); }

/* Intro paragraph under a heading */
.lead {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  line-height: 1.6;
}

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-300); }

/* Blue -> orange gradient text for one or two highlighted words in a heading */
.text-boost {
  background: linear-gradient(90deg, #4aa6ff 0%, #ffa04d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* stops italic letters getting clipped */
}
.text-blue { color: var(--blue-text); }
.text-orange { color: var(--orange-text); }
.text-gold { color: var(--gold); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #dfe8ff;
  overflow-wrap: anywhere;
}
kbd {
  padding: 0.1em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  background: var(--surface);
}

/* A Discord slash command, e.g. <code class="cmd">/lfg</code> */
code.cmd,
.cmd {
  padding: 0.12em 0.5em;
  border: 0;
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.22);
  color: #c9cffd;
  font-family: var(--font-sans);
  font-weight: 700;
  white-space: nowrap;
}


/* 4. Accessibility helpers
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { border-radius: 12px; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #1d1500;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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


/* 5. Layout
   --------------------------------------------------------------------------
   .container          centered, max 1120px, 16px side gutter on phones
   .container--narrow  max 760px (guides, reading pages)
   .section            vertical rhythm between page sections
   .section--alt       slightly lighter band to separate sections
   .stack              even vertical spacing between children
   .grid               responsive auto-fit grid (cards)
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

main { display: block; }

.section { padding-block: var(--section-space); }
.section--tight { padding-block: calc(var(--section-space) * 0.6); }
.section--alt {
  background: linear-gradient(180deg, rgba(17, 28, 53, 0.65), rgba(17, 28, 53, 0.25));
  border-block: 1px solid rgba(37, 56, 102, 0.6);
}

/* Section heading group */
.section__head {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-lg > * + * { margin-top: 2rem; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .grid { gap: 1.25rem; }
}


/* 6. Site header and nav
   --------------------------------------------------------------------------
   No JavaScript. On phones: logo + Join button on row one, nav links on a
   second row that scrolls sideways if it ever gets too long. From 860px the
   three parts sit on one row and the header sticks to the top.
   Mark the current page with aria-current="page" on its nav link.
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(10, 18, 36, 0.94);
  border-bottom: 1px solid rgba(37, 56, 102, 0.8);
}
.site-header::after { /* thin boost stripe */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--boost);
  opacity: 0.55;
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand cta"
    "nav   nav";
  align-items: center;
  column-gap: 0.75rem;
  padding-top: 0.75rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand__name span { color: var(--orange); }

.site-header__cta { grid-area: cta; white-space: nowrap; }

.site-nav {
  grid-area: nav;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem var(--gutter) 0.4rem;
  list-style: none;
  white-space: nowrap;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.8rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none;
}
.site-nav__list li:first-child a { margin-left: -0.8rem; }
.site-nav__list a:hover { color: var(--text); background: var(--surface); }
.site-nav__list a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--orange);
  border-radius: 10px 10px 2px 2px;
}

@media (max-width: 359px) {
  .brand__name { font-size: 1.1rem; }
  .brand__mark { width: 30px; height: 30px; }
  .site-header__cta { padding-inline: 0.7rem; font-size: 0.875rem; }
}

@media (min-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    background: rgba(10, 18, 36, 0.82);
  }
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    min-height: var(--header-h);
    padding-block: 0.6rem;
    column-gap: 1.5rem;
  }
  .site-nav { margin: 0; overflow: visible; }
  .site-nav__list { justify-content: center; padding: 0; gap: 0.35rem; }
  .site-nav__list li:first-child a { margin-left: 0; }
  html { scroll-padding-top: calc(var(--header-h) + 1rem); }
}


/* 7. Buttons
   --------------------------------------------------------------------------
   .btn .btn--primary    Discord call to action (use for every "Join the Discord")
   .btn .btn--secondary  outline button for secondary links
   .btn .btn--orange     orange accent button
   .btn .btn--gold       prize / cups button
   Sizes: .btn--sm, .btn--lg, .btn--block (full width)
   Put several buttons in <div class="btn-row">.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

.btn--primary {
  background: var(--blue-strong);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(31, 143, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(31, 143, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--secondary {
  background: rgba(17, 28, 53, 0.6);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--secondary:hover { border-color: var(--blue); background: var(--blue-soft); }

.btn--orange { background: var(--orange); color: #1f0e00; }
.btn--orange:hover { background: #ff9a3d; color: #1f0e00; }

.btn--gold { background: var(--gold); color: #1d1500; }
.btn--gold:hover { background: #ffd960; color: #1d1500; }

.btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.9375rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0.95rem 1.7rem; font-size: 1.125rem; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Arrow after a text link: <a class="link-arrow" href="…">Read the guide</a> */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }


/* 8. Hero (landing page)
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero::before { /* speed stripes on the right */
  content: "";
  position: absolute;
  top: -10%;
  right: -12rem;
  width: 26rem;
  height: 130%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 138, 31, 0.10) 18% 38%, transparent 38% 48%, rgba(255, 138, 31, 0.18) 48% 54%, transparent 54% 62%, rgba(255, 138, 31, 0.28) 62% 64%, transparent 64%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__title { font-size: var(--fs-800); max-width: 14ch; }
.hero__lead { margin-top: 1.1rem; max-width: 36rem; }
.hero__actions { margin-top: 1.75rem; }
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--fs-300);
  font-weight: 600;
}
.hero__note li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__note li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
  transform: skewX(-15deg);
}
.hero__note li:nth-child(odd)::before { background: var(--blue); }

.hero__card { margin: 0; }
.hero__caption {
  margin-top: 1.4rem;
  color: var(--text-faint);
  font-size: var(--fs-300);
  text-align: center;
}

@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; }
}


/* 9. Example LFG card (mirrors the real /lfg Discord embed)
   ========================================================================== */
.lfg-card {
  position: relative;
  max-width: 27rem;
  margin-inline: auto;
  padding: 1.1rem 1.15rem 1rem 1.35rem;
  border-radius: 12px;
  background: #1e2a45;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  line-height: 1.45;
  transform: rotate(-1.2deg);
}
.lfg-card::before { /* embed color bar (rank color) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: #e8b84a;
}
.lfg-card__label {
  position: absolute;
  top: -0.8rem;
  right: 1rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #1f0e00;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lfg-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}
.lfg-card__avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--boost);
  color: #0a1224;
  font-size: 0.8rem;
  font-weight: 900;
}
.lfg-card__author,
.lfg-card__title { padding-right: 64px; }
.lfg-card__title {
  margin-top: 0.5rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}
.lfg-card__desc { margin-top: 0.35rem; color: #d3dbef; }
.lfg-card__desc .mention {
  padding: 0 0.2em;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.3);
  color: #dee0fc;
  font-weight: 600;
}
.lfg-card__note {
  margin-top: 0.6rem;
  padding-left: 0.7rem;
  border-left: 4px solid #4e5a78;
  color: #d3dbef;
}
.lfg-card__rank { /* stand-in rank badge, not the official icon */
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #ffe08a, #c98a1b);
  color: #3a2500;
  font-size: 0.85rem;
  font-weight: 900;
  font-style: italic;
}
.lfg-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.9rem;
  margin-top: 0.85rem;
}
.lfg-card__fields dt { color: var(--text); font-size: 0.8125rem; font-weight: 800; }
.lfg-card__fields dd { margin: 0; color: #c6d0e8; }
.lfg-card__fields code { font-size: 0.85em; padding: 0.05em 0.35em; }
.lfg-card__foot {
  margin-top: 0.85rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}
@media (min-width: 420px) {
  .lfg-card__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* 10. Cards and feature grid
   --------------------------------------------------------------------------
   .card                      basic panel
   .card--link                whole card is a link (put the <a> on the card)
   .card--blue/--orange/--gold  colored top edge
   .feature-grid > .feature   icon + title + text tiles (use <ul>/<li>)
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 28, 53, 0.7) 100%);
  box-shadow: var(--shadow);
}
.card > * + * { margin-top: 0.6rem; }
.card__title { font-size: 1.15rem; font-weight: 800; }
.card__title--lg { font-size: 1.6rem; }
.card__meta { color: var(--text-faint); font-size: var(--fs-300); font-weight: 600; }

.card--blue { border-top: 3px solid var(--blue); }
.card--orange { border-top: 3px solid var(--orange); }
.card--gold { border-top: 3px solid var(--gold); background: linear-gradient(180deg, rgba(255, 207, 64, 0.07), var(--surface) 55%); }

/* Sponsor package cards: the button sits at the bottom of each card */
.card--package { display: flex; flex-direction: column; }
.card--package .display { font-size: 1.75rem; }
.card--package .card__actions { margin-top: auto; padding-top: 1.25rem; }

.card--link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.card--link:hover {
  color: var(--text-muted);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.card--link .card__title { color: var(--text); }

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature h3 { font-size: 1.125rem; }
.feature p { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.975rem; line-height: 1.6; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-text);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature--orange .feature__icon { background: var(--orange-soft); color: var(--orange-text); }
.feature--gold .feature__icon { background: var(--gold-soft); color: var(--gold); }
.feature--gold { border-color: rgba(255, 207, 64, 0.35); }

@media (min-width: 720px) {
  .feature-grid { gap: 1.25rem; }
  .feature { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; padding: 1.25rem; }
  .feature h3 { margin-top: 0.3rem; }
}


/* 11. Steps list
   --------------------------------------------------------------------------
   <ol class="steps"><li class="step"><h3 class="step__title">…</h3><p>…</p></li></ol>
   Numbers are added by CSS (sits beside the title). Add .steps--vertical to
   keep one column on desktop (best inside guides).
   ========================================================================== */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--blue-strong);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  transform: skewX(-10deg);
}
.step:nth-child(2)::before { background: linear-gradient(135deg, var(--blue-strong), #c76a14); }
.step:nth-child(3)::before { background: var(--orange); color: #1f0e00; }
.step__title { font-size: 1.15rem; }
.step > :not(.step__title) { grid-column: 1 / -1; color: var(--text-muted); }

@media (min-width: 860px) {
  .steps:not(.steps--vertical) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .steps:not(.steps--vertical) .step { align-content: start; padding: 1.4rem; }
}


/* 12. Prize band and pills
   --------------------------------------------------------------------------
   .prize-band        gold-edged panel for cups / prizes
   .prize-badge       big gold amount, e.g. <span class="prize-badge">$20</span>
   .pill              small rounded label; .pill--blue/--orange/--gold
   ========================================================================== */
.prize-band {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  border: 1px solid rgba(255, 207, 64, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgba(255, 207, 64, 0.14), transparent 70%),
    linear-gradient(135deg, #1a2440 0%, #141c33 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.prize-band > div > * + * { margin-top: 0.9rem; }
.prize-band .btn-row { margin-top: 1.4rem; }
.prize-badge-wrap {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}
.prize-badge {
  display: inline-block;
  padding: 0.15em 0.45em;
  border: 3px solid var(--gold);
  border-radius: 18px;
  color: var(--gold);
  font-size: clamp(3rem, 2rem + 5vw, 5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 28px rgba(255, 207, 64, 0.35);
  transform: skewX(-6deg);
}
.prize-badge-wrap .small { color: var(--text-muted); font-weight: 700; }

@media (min-width: 760px) {
  .prize-band { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.pill--blue { border-color: rgba(31, 143, 255, 0.5); background: var(--blue-soft); color: var(--blue-text); }
.pill--orange { border-color: rgba(255, 138, 31, 0.5); background: var(--orange-soft); color: var(--orange-text); }
.pill--gold { border-color: rgba(255, 207, 64, 0.55); background: var(--gold-soft); color: var(--gold); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }


/* 13. Guide cards
   --------------------------------------------------------------------------
   <ul class="guide-list"><li><a class="guide-card" href="/guides/…">   (2 per row; add .guide-list--3 for 3)
     <span class="guide-card__tag">Guide</span>
     <h3 class="guide-card__title">…</h3><p>…</p>
     <span class="link-arrow">Read the guide</span></a></li></ul>
   ========================================================================== */
.guide-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { color: var(--text-muted); border-color: var(--orange); transform: translateY(-2px); }
.guide-card__tag {
  align-self: flex-start;
  color: var(--orange-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guide-card__title { color: var(--text); font-size: 1.2rem; }
.guide-card p { font-size: 0.975rem; }
.guide-card .link-arrow { margin-top: auto; padding-top: 0.35rem; color: var(--blue-text); }

@media (min-width: 720px) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 960px) {
  .guide-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* 14. Sponsor row
   --------------------------------------------------------------------------
   <ul class="sponsor-row" aria-label="Cup sponsors">
     <li class="sponsor-logo"><a href="…"><img src="…" alt="Brand name" width="160" height="60"></a></li>
     <li class="sponsor-slot">Your logo here</li>
   </ul>
   Real logos only. Use .sponsor-slot for an open spot.
   ========================================================================== */
.sponsor-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.sponsor-logo,
.sponsor-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}
.sponsor-logo {
  border: 1px solid var(--border);
  background: var(--surface);
}
.sponsor-logo img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.85;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.sponsor-logo a:hover img,
.sponsor-logo a:focus-visible img,
.sponsor-logo--color img { filter: none; opacity: 1; }
.sponsor-slot {
  border: 2px dashed var(--border-strong);
  color: var(--text-faint);
  font-size: var(--fs-300);
  font-weight: 700;
}

/* Sponsor teaser panel on the landing page */
.sponsor-teaser {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 1rem + 2.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(31, 143, 255, 0.6), rgba(255, 138, 31, 0.6)) border-box;
  border-color: transparent;
}
.sponsor-teaser > div > * + * { margin-top: 0.8rem; }
@media (min-width: 760px) {
  .sponsor-teaser { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}


/* 15. FAQ
   --------------------------------------------------------------------------
   <div class="faq"><details><summary>Question?</summary><div class="faq__answer"><p>…</p></div></details></div>
   ========================================================================== */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--border-strong); background: #13203d; }
.faq summary {
  position: relative;
  display: block;
  padding: 1.05rem 3.25rem 1.05rem 1.2rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { /* plus / minus */
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--orange), var(--orange)) center / 14px 3px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 3px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--orange), var(--orange)) center / 14px 3px no-repeat;
  transform: rotate(180deg);
}
.faq summary:hover { color: #fff; }
.faq__answer { padding: 0 1.2rem 1.2rem; color: var(--text-muted); }
.faq__answer > * + * { margin-top: 0.75rem; }


/* 16. Callouts
   --------------------------------------------------------------------------
   <aside class="callout callout--tip"><p class="callout__title">Tip</p><p>…</p></aside>
   Variants: (default, blue info) --tip (green) --warning (orange) --prize (gold) --danger (red)
   ========================================================================== */
.callout {
  --callout-color: var(--blue);
  --callout-bg: var(--blue-soft);
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--callout-color) 40%, transparent);
  border-left: 4px solid var(--callout-color);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
  background: var(--callout-bg);
  color: var(--text);
}
.callout > * + * { margin-top: 0.5rem; }
.callout__title {
  color: var(--callout-color);
  font-size: 0.8125rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.callout--tip { --callout-color: var(--green); --callout-bg: var(--green-soft); }
.callout--warning { --callout-color: var(--orange); --callout-bg: var(--orange-soft); }
.callout--prize { --callout-color: var(--gold); --callout-bg: var(--gold-soft); }
.callout--danger { --callout-color: var(--red); --callout-bg: var(--red-soft); }
.callout--info .callout__title,
.callout:not([class*="callout--"]) .callout__title { color: var(--blue-text); }


/* 17. Tables
   --------------------------------------------------------------------------
   Wrap every table so it scrolls on phones instead of breaking the page:
   <div class="table-wrap" role="region" aria-label="Rank list" tabindex="0">
     <table class="table"><caption>…</caption><thead>…</thead><tbody>…</tbody></table>
   </div>
   Tables inside .prose get the same styles without the class.
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}
.table caption,
.prose table caption {
  padding: 0.85rem 1rem 0.25rem;
  color: var(--text-muted);
  font-size: var(--fs-300);
  font-weight: 700;
  text-align: left;
}
.table th,
.table td,
.prose th,
.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table thead th,
.prose thead th {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: normal;
  background: var(--surface-2);
}
.table tbody tr:last-child td,
.table tbody tr:last-child th,
.prose tbody tr:last-child td,
.prose tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:nth-child(even),
.prose tbody tr:nth-child(even) { background: rgba(23, 38, 74, 0.45); }
.table tbody th,
.prose tbody th { color: var(--text); font-weight: 700; }
.table td,
.prose td { color: var(--text-muted); }
.table--compact th,
.table--compact td { padding: 0.5rem 0.75rem; }


/* 18. Facts list (key/value details, e.g. cup format, prize, region)
   --------------------------------------------------------------------------
   <dl class="facts"><div><dt>Format</dt><dd>2v2, single elimination</dd></div>…</dl>
   ========================================================================== */
.facts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.facts > div {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts dt {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts dd { margin: 0.25rem 0 0; color: var(--text); font-weight: 700; }
.facts .facts__prize dd { color: var(--gold); font-size: 1.35rem; font-style: italic; font-weight: 900; }


/* 19. Article pages: breadcrumbs, article header, table of contents
   ========================================================================== */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-faint);
  font-size: var(--fs-300);
  font-weight: 600;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--text-faint);
  border-right: 2px solid var(--text-faint);
  transform: rotate(45deg);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text-faint); }

.article-header {
  display: grid;
  gap: 0.9rem;
  padding-block: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.article-header h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.25rem); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  color: var(--text-faint);
  font-size: var(--fs-300);
  font-weight: 600;
}

.toc {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc__title {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toc ol { margin-top: 0.5rem; padding-left: 1.25rem; }
.toc li + li { margin-top: 0.3rem; }
.toc li::marker { color: var(--orange); font-weight: 800; }
.toc a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--blue-text); text-decoration: underline; }


/* 20. Prose (long-form guide text)
   --------------------------------------------------------------------------
   Wrap guide body content in <div class="prose">. Plain HTML inside
   (h2, h3, p, ul, ol, blockquote, table, figure, code) is styled for you.
   Callouts, tables, steps and .cta-block work inside it too.
   ========================================================================== */
.prose {
  max-width: var(--container-narrow);
  color: #d6def2;
  font-size: var(--fs-400);
  line-height: 1.72;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: var(--fs-600);
  line-height: 1.15;
}
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.3; }
.prose h4 { margin-top: 1.5em; }
.prose h2 + *,
.prose h3 + *,
.prose h4 + * { margin-top: 0.6em; }
.prose ul,
.prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose li > ul,
.prose li > ol { margin-top: 0.45em; }
.prose li::marker { color: var(--orange); font-weight: 800; }
.prose a:not([class]) { color: var(--blue-text); text-decoration: underline; }
.prose a:not([class]):hover { color: #8cc6ff; }
.prose blockquote {
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 4px solid var(--blue);
  color: var(--text-muted);
  font-style: italic;
}
.prose img,
.prose video { border-radius: var(--radius); border: 1px solid var(--border); }
.prose figure > * + * { margin-top: 0.6rem; }
.prose figcaption { color: var(--text-faint); font-size: var(--fs-300); text-align: center; }
.prose hr { margin-block: 2.5em; }
.prose .table-wrap table { margin: 0; }
.prose > .callout,
.prose > .table-wrap,
.prose > .steps,
.prose > .cta-block,
.prose > .toc { margin-top: 1.6em; }
.prose > .callout + *,
.prose > .table-wrap + *,
.prose > .steps + *,
.prose > .toc + * { margin-top: 1.6em; }

/* Components used inside .prose keep their own spacing and list styles */
.prose :is(.steps, .feature-grid, .guide-list, .pill-row, .sponsor-row, .list-plain) { padding-left: 0; }
.prose :is(.steps, .feature-grid, .guide-list, .pill-row, .sponsor-row) > li + li { margin-top: 0; }
.prose :is(.step, .feature, .guide-card, .cta-block, .sponsor-teaser, .prize-band) :is(h2, h3, h4) { margin-top: 0; }
.prose :is(.card, .callout) > :is(h2, h3, h4):first-child { margin-top: 0; }
.prose :is(.step, .feature, .guide-card, .cta-block, .sponsor-teaser, .prize-band) :is(h2, h3, h4) + * { margin-top: 0; }
.prose :is(.card, .callout) > :is(h2, h3, h4) + * { margin-top: 0.6rem; }
.prose .toc a { color: var(--text-muted); text-decoration: none; }
.prose .toc a:hover { color: var(--blue-text); text-decoration: underline; }


/* 21. CTA block
   --------------------------------------------------------------------------
   <section class="cta-block"><h2>…</h2><p>…</p>
     <a class="btn btn--primary btn--lg" href="https://discord.gg/rllfg">Join the Discord</a></section>
   Add .cta-block--compact for a smaller version inside guide text.
   ========================================================================== */
.cta-block {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.25rem) clamp(1.25rem, 1rem + 2vw, 3rem);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(26rem 14rem at 0% 0%, rgba(31, 143, 255, 0.22), transparent 70%),
    radial-gradient(26rem 14rem at 100% 100%, rgba(255, 138, 31, 0.18), transparent 70%),
    linear-gradient(#111c35, #111c35) padding-box,
    linear-gradient(120deg, var(--blue), var(--orange)) border-box;
  text-align: center;
  overflow: hidden;
}
.cta-block h2 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem); max-width: 20ch; }
.cta-block p { max-width: 36rem; color: var(--text-muted); }
.cta-block .btn { margin-top: 0.35rem; }
.cta-block__note { color: var(--text-faint); font-size: var(--fs-300); }
.cta-block--compact { justify-items: start; text-align: left; padding: 1.4rem 1.4rem 1.5rem; }
.cta-block--compact h2,
.cta-block--compact h3 { font-size: 1.4rem; max-width: none; margin-top: 0; }


/* 22. Footer
   ========================================================================== */
.site-footer {
  margin-top: var(--section-space);
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-footer__inner {
  display: grid;
  gap: 2rem;
}
.site-footer__about > * + * { margin-top: 0.9rem; }
.site-footer__about p { max-width: 26rem; }
.site-footer__heading {
  color: var(--text);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer__nav ul { margin-top: 0.6rem; padding: 0; list-style: none; }
.site-footer__nav li + li { margin-top: 0.15rem; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer__legal {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: var(--fs-300);
}

@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

/* A page that ends with its own CTA does not need the extra footer gap */
main > :last-child.section { padding-bottom: 0; }


/* 23. 404 page
   ========================================================================== */
.error-page {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem) 1rem;
  text-align: center;
}
.error-page__code {
  background: linear-gradient(90deg, #4aa6ff, #ffa04d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 0.9;
  padding-right: 0.08em;
}
.error-page .lead { max-width: 32rem; }
.error-page .btn-row { justify-content: center; margin-top: 0.5rem; }
.error-page__links {
  width: 100%;
  max-width: 34rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.error-page__links ul {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.6rem;
  padding: 0;
  list-style: none;
}
.error-page__links a { display: inline-flex; min-height: 40px; align-items: center; }


/* 24. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.center { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.max-w-prose { max-width: var(--container-narrow); }
.boost-line { /* decorative blue -> orange divider */
  height: 3px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--boost);
}
.list-plain { margin: 0; padding: 0; list-style: none; }
.nowrap { white-space: nowrap; }


/* 25. Reduced motion and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .card--link:hover,
  .guide-card:hover { transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer__nav, .skip-link, .hero::before { display: none; }
  a { color: #000; }
  .prose { color: #000; }
}
