/*! Level Up Foundation — built 2026-09-14 */
/* ==========================================================================
   LEVEL UP FOUNDATION — DESIGN TOKENS
   Colors are taken directly from the Level Up logo and program graphics.
   ========================================================================== */

:root {
  /* Brand colors ------------------------------------------------------- */
  --ink: #0e1110;
  --ink-2: #1b201e;
  --ink-3: #343b38;
  --ink-muted: #5b6360;

  --green-900: #032618;
  --green-800: #04331f;
  --green-700: #05492c;
  --green: #00713d;          /* brand deep green */
  --green-600: #0a8a4e;
  --mint: #5eb485;
  --mint-200: #b3d49f;
  --mint-50: #e7f2e9;

  --gold: #fab407;           /* logo gold */
  --gold-600: #e0a000;
  --gold-100: #fff0c9;

  --orange: #f7821d;         /* brand orange */
  --orange-700: #a34a00;     /* text-safe orange */

  --cream: #f4eee5;
  --cream-2: #ebe3d6;
  --cream-3: #ded4c3;
  --paper: #ffffff;

  --pink: #eb6a90;           /* used once, sparingly */

  /* Semantic ----------------------------------------------------------- */
  --bg: var(--cream);
  --fg: var(--ink);
  --rule: rgba(14, 17, 16, 0.14);
  --rule-strong: rgba(14, 17, 16, 0.28);
  --focus: #0a8a4e;

  /* Type --------------------------------------------------------------- */
  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.3rem, 1.14rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.55rem, 1.25rem + 1.5vw, 2.4rem);
  --step-4: clamp(1.95rem, 1.4rem + 2.7vw, 3.4rem);
  --step-5: clamp(2.4rem, 1.5rem + 4.4vw, 4.8rem);
  --step-6: clamp(2.9rem, 1.4rem + 7vw, 6.6rem);

  /* Space -------------------------------------------------------------- */
  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.75rem);
  /* Vertical rhythm. Two stacked sections leave twice this between them, so
     the gap works out at roughly 96px on a phone and 150px on a desktop. */
  --section-y: clamp(2.6rem, 1.8rem + 2.5vw, 4.15rem);
  --measure: 64ch;

  /* Shape -------------------------------------------------------------- */
  --r-sm: 6px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 16, 0.07), 0 3px 8px rgba(14, 17, 16, 0.06);
  --shadow: 0 2px 4px rgba(14, 17, 16, 0.07), 0 10px 24px rgba(14, 17, 16, 0.1);
  --shadow-lg: 0 4px 10px rgba(14, 17, 16, 0.09), 0 22px 48px rgba(14, 17, 16, 0.16);

  --header-h: 68px;
}

@media (min-width: 900px) {
  :root {
    --header-h: 82px;
  }
}

/* ==========================================================================
   FONTS — self-hosted Poppins subset (SIL Open Font License 1.1)
   ========================================================================== */

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

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Heading rhythm.
   Two rules here matter more than they look:
   1. Leading is set once per level and does not change because a heading
      happens to contain a highlight, so titles wrap identically site-wide.
   2. The space under a heading is an em value CAPPED in rem. Without the cap,
      a 4.8rem display heading opens a 38px hole above its own paragraph while
      a small heading opens 10px, which is what made large titles read as
      floating away from the text they belong to. */
h1,
h2,
h3,
h4 {
  margin: 0 0 clamp(0.55rem, 0.34em, 1.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  line-height: 1.02;
  margin-bottom: clamp(0.8rem, 0.3em, 1.35rem);
}
h2 {
  font-size: var(--step-4);
  line-height: 1.04;
  margin-bottom: clamp(0.7rem, 0.3em, 1.2rem);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.18;
  margin-bottom: 0.5rem;
}
h4 {
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration-color: var(--green-600);
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 2.5rem 0;
}

/* Focus — always visible, never removed ---------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.section--ink :focus-visible,
.section--green :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* Utility ----------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.25rem;
  border-radius: var(--r);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   LAYOUT — containers, sections, headers, footer
   ========================================================================== */

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

.wrap--narrow {
  max-width: 880px;
}

.wrap--wide {
  max-width: 1480px;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2rem, 1.5rem + 1.9vw, 3.25rem);
}

/* A trailing paragraph or list must not stack its own bottom margin on top of
   the section padding, otherwise the gap between sections varies by ~20px
   depending on what the section happens to end with. */
.section .wrap > :last-child,
.section .wrap p:last-child,
.section .wrap ul:last-child,
.section .wrap ol:last-child,
.section .wrap dl:last-child {
  margin-bottom: 0;
}

.section--cream {
  background: var(--cream);
}
.section--cream-2 {
  background: var(--cream-2);
}
.section--paper {
  background: var(--paper);
}
.section--ink {
  background: var(--ink);
  color: var(--cream);
}
.section--green {
  background: var(--green-800);
  color: var(--cream);
}

.section--ink p,
.section--green p {
  color: rgba(244, 238, 229, 0.86);
}

/* Plain text links on dark surfaces turn gold. Buttons and chips carry their
   own classes and keep their own colours. */
.section--ink a:not([class]),
.section--green a:not([class]),
.hero a:not([class]),
.page-hero a:not([class]) {
  color: var(--gold);
}

/* Notebook grid texture -------------------------------------------------- */
.texture-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(14, 17, 16, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 17, 16, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
}

.section--ink.texture-grid::before,
.section--green.texture-grid::before {
  background-image: linear-gradient(rgba(244, 238, 229, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 229, 0.075) 1px, transparent 1px);
}

.texture-grid > * {
  position: relative;
  z-index: 1;
}

/* Step rule divider ------------------------------------------------------ */
.step-rule {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--cream);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header[data-stuck='true'] {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 22px rgba(14, 17, 16, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  padding-block: 0.35rem;
}

.brand svg {
  width: 34px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 3px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1080px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.885rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.32rem;
  height: 3px;
  border-radius: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

.nav-link[aria-current='page']::after {
  transform: scaleX(1);
  background: var(--gold);
}

.site-header .header-cta {
  display: none;
}

@media (min-width: 1080px) {
  .site-header .header-cta {
    display: inline-flex;
  }
}

/* Mobile menu ------------------------------------------------------------ */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }
}

/* Very narrow phones: tighten the header so nothing is pushed off screen. */
@media (max-width: 400px) {
  .header-inner {
    gap: 0.5rem;
  }
  .brand svg {
    width: 28px;
  }
  .brand-name {
    font-size: 0.92rem;
  }
  .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
  }
  .nav-toggle {
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 2.5rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.mobile-menu .brand {
  color: var(--cream);
}

.menu-close {
  min-height: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(244, 238, 229, 0.35);
  border-radius: 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-inline: 0.85rem;
  cursor: pointer;
}

.mobile-nav {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(244, 238, 229, 0.16);
}

.mobile-nav li {
  margin: 0;
  border-bottom: 1px solid rgba(244, 238, 229, 0.16);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  min-height: 56px;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--cream);
}

.mobile-nav a[aria-current='page'] {
  color: var(--gold);
}

.mobile-nav .arrow {
  opacity: 0.45;
  flex: 0 0 auto;
}

.mobile-secondary {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.mobile-secondary a {
  color: rgba(244, 238, 229, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(244, 238, 229, 0.78);
  padding-block: clamp(2.6rem, 2rem + 2.6vw, 4rem) 1.75rem;
  font-size: 0.94rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--cream);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand svg {
  width: 52px;
  color: var(--cream);
}

.footer-title {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.15rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(244, 238, 229, 0.82);
  text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(244, 238, 229, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(244, 238, 229, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(244, 238, 229, 0.58);
  max-width: 62ch;
}

/* Footer legal links need a comfortable tap area on phones. */
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.25rem;
}

.footer-bottom {
  padding-bottom: 0.25rem;
}

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

/* Eyebrow ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  /* An eyebrow labels the title directly under it, so it sits close to it. */
  margin: 0 0 0.7rem;
}

.section--ink .eyebrow,
.section--green .eyebrow,
.on-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* Display headings ------------------------------------------------------- */
.display {
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 clamp(0.8rem, 0.3em, 1.35rem);
}

.display--xl {
  font-size: var(--step-6);
}

.display--sm {
  font-size: var(--step-4);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 56ch;
}

.muted {
  color: var(--ink-muted);
}

.section--ink .muted,
.section--green .muted {
  color: rgba(244, 238, 229, 0.62);
}

.text-center {
  text-align: center;
}

.text-center p,
.text-center .lead {
  margin-inline: auto;
}

/* Brush highlight -------------------------------------------------------- */
/* This is inline-BLOCK on purpose. An inline background box is sized by the
   font's own ascent and descent (roughly 1.4em in Poppins), not by the line
   height, so an inline highlight inside a display heading painted straight
   over the bottom of the line above it and clipped the letters. As a block the
   box is line-height driven, so it sits inside its own lines at any width, and
   a highlight long enough to wrap becomes one clean panel instead of two
   overlapping ones. max-width keeps it inside the screen on a phone. */
.brush {
  display: inline-block;
  max-width: 100%;
  background: var(--green);
  color: var(--cream);
  padding: 0.03em 0.17em;
  border-radius: 5px 16px 7px 18px / 16px 6px 18px 7px;
}

.brush > span {
  color: inherit;
}

.brush--gold {
  background: var(--gold);
  color: var(--ink);
}

.brush--orange {
  background: var(--orange);
  color: var(--ink);
}

.brush--cream {
  background: var(--cream);
  color: var(--ink);
}

/* Underline scribble ----------------------------------------------------- */
.scribble {
  position: relative;
  white-space: nowrap;
}

.scribble svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.34em;
  color: var(--gold);
  overflow: visible;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn svg {
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.btn:hover svg,
.btn:focus-visible svg {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-600);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--green-800);
  border-color: var(--green-800);
}

.btn--green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn--green:hover,
.btn--green:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--ink);
  color: var(--cream);
}

.on-dark .btn--outline,
.section--ink .btn--outline,
.section--green .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline {
  color: var(--cream);
  border-color: rgba(244, 238, 229, 0.55);
}

.on-dark .btn--outline:hover,
.section--ink .btn--outline:hover,
.section--green .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover,
.on-dark .btn--outline:focus-visible,
.section--ink .btn--outline:focus-visible,
.section--green .btn--outline:focus-visible,
.hero .btn--outline:focus-visible,
.page-hero .btn--outline:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* Buttons keep their own colours wherever they sit. */
.btn.btn--primary {
  color: var(--ink);
}
.btn.btn--dark,
.btn.btn--green {
  color: var(--cream);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  border-radius: 11px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-row > * {
  flex: 1 1 auto;
}

@media (min-width: 560px) {
  .btn-row > * {
    flex: 0 0 auto;
  }
}

/* Text link with arrow --------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
  min-height: 44px;
}

.link-arrow svg {
  transition: transform 0.18s ease;
}

.link-arrow:hover svg,
.link-arrow:focus-visible svg {
  transform: translate(3px, -3px);
}

/* Cards ------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  box-shadow: 5px 5px 0 rgba(14, 17, 16, 0.9);
}

.card h3,
.card h4 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--soft {
  border-color: var(--rule);
  box-shadow: var(--shadow-sm);
}

.card--green {
  background: var(--green-800);
  color: var(--cream);
  border-color: var(--green-900);
  box-shadow: 5px 5px 0 var(--green-900);
}

.card--green p {
  color: rgba(244, 238, 229, 0.86);
}

.card--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}

/* Gold cards always take dark text, including inside dark sections. */
.card--gold,
.card--gold p,
.card--gold li,
.card--gold h2,
.card--gold h3,
.card--gold h4,
.card--gold .big-quote,
.section--ink .card--gold p,
.section--green .card--gold p,
.section--ink .card--gold li,
.section--green .card--gold li {
  color: var(--ink);
}

.card--gold .footer-title {
  color: var(--ink);
}

.card--cream {
  background: var(--cream);
}

.card--flat {
  box-shadow: none;
}

/* Grids ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-left {
    grid-template-columns: 1.25fr 1fr;
  }
  .split--wide-right {
    grid-template-columns: 1fr 1.25fr;
  }
  .split--start {
    align-items: start;
  }
}

/* Section head ----------------------------------------------------------- */
.section-head {
  max-width: 46ch;
  margin-bottom: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--wide {
  max-width: 60ch;
}

/* Stat / fact blocks ----------------------------------------------------- */
.fact {
  border-left: 5px solid var(--gold);
  padding-left: 1.1rem;
}

.fact dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.section--ink .fact dt,
.section--green .fact dt {
  color: rgba(244, 238, 229, 0.6);
}

.fact dd {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
}

/* Chips / tags ----------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--paper);
  margin: 0;
}

.section--ink .chip,
.section--green .chip {
  background: transparent;
  border-color: rgba(244, 238, 229, 0.35);
  color: var(--cream);
}

/* Numbered journey ------------------------------------------------------- */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: journey;
  display: grid;
  gap: 0;
}

.journey-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.1rem;
  padding: 1.35rem 0;
  border-top: 2px solid var(--rule);
  margin: 0;
  align-items: start;
}

.journey-item:last-child {
  border-bottom: 2px solid var(--rule);
}

.section--ink .journey-item,
.section--green .journey-item {
  border-color: rgba(244, 238, 229, 0.2);
}

.journey-num {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--green);
  line-height: 1;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.section--ink .journey-num,
.section--green .journey-num {
  color: var(--gold);
}

.journey-item h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}

.journey-item p {
  margin: 0;
  font-size: 0.97rem;
}

@media (min-width: 760px) {
  .journey-item {
    grid-template-columns: 5rem 18ch 1fr;
    gap: 1.5rem 2rem;
    align-items: baseline;
    padding: 1.55rem 0;
  }
  .journey-item h3 {
    margin: 0;
  }
}

/* Pathway cards ---------------------------------------------------------- */
.pathway {
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pathway[open] {
  box-shadow: 3px 3px 0 var(--ink);
}

.pathway > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  min-height: 60px;
}

.pathway > summary::-webkit-details-marker {
  display: none;
}

.pathway > summary:hover {
  background: var(--cream);
}

.pathway-title {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  grid-column: 1;
}

.pathway-summary {
  grid-column: 1 / -1;
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 52ch;
}

.pathway-plus {
  grid-column: 2;
  grid-row: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pathway[open] .pathway-plus {
  transform: rotate(45deg);
  background: var(--gold);
}

.pathway-body {
  padding: 0 1.3rem 1.4rem;
  border-top: 2px dashed var(--rule);
  margin-top: 0.25rem;
  padding-top: 1.1rem;
}

.pathway-body p:last-child {
  margin-bottom: 0;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  border-bottom: 2px solid var(--rule);
}

.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.faq > summary::-webkit-details-marker {
  display: none;
}

.faq > summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-body {
  padding-bottom: 1.3rem;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* Marquee ---------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  padding-block: 0.7rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 38s linear infinite;
}

.marquee span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Callout / quote -------------------------------------------------------- */
.callout {
  border: 2px solid var(--ink);
  border-left-width: 10px;
  border-radius: var(--r);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  background: var(--paper);
}

.callout--gold {
  border-left-color: var(--gold);
}
.callout--green {
  border-left-color: var(--green);
}
.callout--orange {
  border-left-color: var(--orange);
}

.big-quote {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

/* Notice / disclosure ---------------------------------------------------- */
.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: var(--cream-2);
  border: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.6;
}

.notice p {
  margin: 0;
  max-width: none;
}

.notice svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--green);
}

.section--ink .notice,
.section--green .notice {
  background: rgba(244, 238, 229, 0.08);
  border-color: rgba(244, 238, 229, 0.2);
  color: rgba(244, 238, 229, 0.86);
}

.section--ink .notice svg,
.section--green .notice svg {
  color: var(--gold);
}

/* Placeholder marker (for content the owner still needs to supply) -------- */
.placeholder {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold-100),
    var(--gold-100) 8px,
    #fff6de 8px,
    #fff6de 16px
  );
  border: 1px dashed var(--gold-600);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--ink-2);
}

/* Reveal on scroll ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

/* Headings keep one leading whether or not they contain a highlight. The old
   :has() override loosened only the pages whose title happened to use one,
   which is why large titles wrapped differently from page to page. */

/* ==========================================================================
   PAGE SECTIONS — hero, feedback wall, workbook, forms
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3.4vw, 4.5rem) clamp(2.25rem, 1.8rem + 2.4vw, 3.5rem);
}

/* A hero's last paragraph must not stack its own bottom margin on top of the
   hero padding — that is where an extra 20px of dead space came from. */
.hero .wrap > :last-child,
.hero .wrap > div > :last-child,
.page-hero .wrap > :last-child {
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 238, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 229, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 20%, #000 20%, transparent 90%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -30%;
  width: min(86vw, 820px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle closest-side at 50% 50%,
    rgba(0, 113, 61, 0.55),
    rgba(0, 113, 61, 0) 100%
  );
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.22fr 0.78fr;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 1rem + 5.1vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(0.9rem, 0.28em, 1.3rem);
  max-width: 22ch;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  color: rgba(244, 238, 229, 0.84);
  max-width: 52ch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  border: 1px solid rgba(244, 238, 229, 0.28);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, 0.9);
  margin-bottom: 1.5rem;
  background: rgba(244, 238, 229, 0.05);
}

.hero-badge svg {
  width: 22px;
  color: var(--gold);
}

/* Animated stair graphic ------------------------------------------------- */
.stair-graphic {
  position: relative;
  display: grid;
  place-items: center;
}

.stair-graphic svg {
  width: min(100%, 420px);
  height: auto;
  overflow: visible;
}

.stair-graphic .lu-steps,
.stair-graphic .lu-gold,
.stair-graphic .lu-arrow {
  opacity: 0;
  animation: stairIn 0.75s cubic-bezier(0.2, 0.75, 0.3, 1) forwards;
}

.stair-graphic .lu-steps {
  animation-delay: 0.15s;
}
.stair-graphic .lu-gold {
  animation-delay: 0.4s;
}
.stair-graphic .lu-arrow {
  animation-delay: 0.65s;
}

@keyframes stairIn {
  from {
    opacity: 0;
    transform: translate(-18px, 22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stair-graphic .lu-steps,
  .stair-graphic .lu-gold,
  .stair-graphic .lu-arrow {
    opacity: 1;
    animation: none;
  }
}

.stair-caption {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(244, 238, 229, 0.7);
  max-width: 34ch;
  text-align: center;
}

/* Page hero (interior pages) -------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.25rem, 1.8rem + 2.6vw, 3.75rem) clamp(1.6rem, 1.3rem + 1.9vw, 2.6rem);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 238, 229, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 229, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(100deg, #000 5%, transparent 70%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: var(--step-5);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 20ch;
}

.page-hero .lead {
  color: rgba(244, 238, 229, 0.84);
}

.page-hero--green {
  background: var(--green-800);
}

.breadcrumbs {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(244, 238, 229, 0.6);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs a {
  color: rgba(244, 238, 229, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.breadcrumbs a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.45rem;
  opacity: 0.5;
}

/* ==========================================================================
   FEEDBACK WALL
   ========================================================================== */

.wall-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.wall-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.wall-filter[aria-pressed='true'] {
  background: var(--ink);
  color: var(--cream);
}

.wall-filter .count {
  font-size: 0.76rem;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.wall {
  columns: 1;
  column-gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .wall {
    columns: 2;
  }
}

@media (min-width: 1000px) {
  .wall {
    columns: 3;
  }
}

@media (min-width: 1300px) {
  .wall {
    columns: 4;
  }
}

.fb {
  break-inside: avoid;
  margin: 0 0 clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
  display: block;
}

.fb-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.2s ease;
  transform: rotate(var(--tilt, 0deg));
  filter: drop-shadow(4px 6px 10px rgba(14, 17, 16, 0.18));
}

.fb-card:hover,
.fb-card:focus-visible {
  transform: rotate(0deg) scale(1.025);
  filter: drop-shadow(6px 10px 18px rgba(14, 17, 16, 0.26));
  z-index: 3;
}

.fb-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--cream-2);
}

.fb-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(var(--tape, -3deg));
  background: rgba(250, 180, 7, 0.72);
  border-left: 1px dashed rgba(14, 17, 16, 0.18);
  border-right: 1px dashed rgba(14, 17, 16, 0.18);
  pointer-events: none;
}

.fb-meta {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fb-meta::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green-600);
}

.fb-meta--constructive::before {
  background: var(--orange);
}

.fb[hidden] {
  display: none;
}

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 640px);
  width: 100%;
  max-height: 92dvh;
  overflow: visible;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(14, 17, 16, 0.82);
  backdrop-filter: blur(3px);
}

.lightbox-inner {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1rem;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.lightbox-question {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0.85rem 0 0.3rem;
  max-width: none;
}

.lightbox-transcript {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

.lightbox-tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--mint-50);
  border: 1px solid var(--green);
  color: var(--green-700);
}

.lightbox-tag--constructive {
  background: #fdeedd;
  border-color: var(--orange-700);
  color: var(--orange-700);
}

/* ==========================================================================
   WORKBOOK
   ========================================================================== */

.workbook-stack {
  position: relative;
  display: grid;
  gap: 0;
  min-height: 320px;
  place-items: center;
}

.wb-page {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.3rem;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease;
}

.wb-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .wb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wb-page:nth-child(odd) {
  transform: rotate(-0.9deg);
}
.wb-page:nth-child(even) {
  transform: rotate(0.8deg);
}

.wb-page:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Topic card. This describes a part of the workbook. It is not a picture of a
   page and is not styled to look like one. */
.wb-page--topic {
  display: grid;
  align-content: start;
  gap: 0.1rem;
  padding: 1.35rem 1.3rem 1.5rem;
  background: var(--paper);
  border-left: 7px solid var(--gold);
}

.wb-topic-mark {
  display: block;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.wb-topic-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
}

.wb-page--topic .wb-label {
  font-size: var(--step-1);
  margin: 0.3rem 0 0;
}

.wb-page--topic .wb-caption {
  margin-top: 0.5rem;
}

.wb-page--photo {
  margin: 0;
}

.wb-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.wb-caption {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.wb-label {
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  margin: 0.7rem 0 0;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form {
  display: grid;
  gap: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > label,
.fieldset-legend {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field .req {
  color: var(--orange-700);
  font-weight: 700;
}

.field .hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink-3);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e1110' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 138, 78, 0.2);
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: #b3261e;
  background: #fff7f6;
}

.field-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8c1d18;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  max-width: none;
}

.field-error:empty {
  display: none;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 2px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}

.checkbox-row input[type='checkbox'] {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.checkbox-row label {
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

.form-status {
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 2px solid;
}

.form-status[data-state='error'] {
  background: #fff4f3;
  border-color: #b3261e;
  color: #7a1912;
}

.form-status[data-state='success'] {
  background: var(--mint-50);
  border-color: var(--green);
  color: var(--green-700);
}

.form-status h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
}

.form-status p {
  margin: 0;
  max-width: none;
}

.btn[data-loading='true'] {
  pointer-events: none;
  opacity: 0.75;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hp-field input {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  min-height: 38vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.error-code {
  font-size: clamp(5rem, 3rem + 14vw, 12rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ==========================================================================
   MISC
   ========================================================================== */

.img-frame {
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 8px 8px 0 var(--ink);
}

.img-frame img {
  width: 100%;
  height: auto;
}

.img-caption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  line-height: 1.55;
}

.section--ink .img-caption,
.section--green .img-caption {
  color: rgba(244, 238, 229, 0.65);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.list-check li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  line-height: 1.6;
}

.list-check svg {
  margin-top: 5px;
  color: var(--green-600);
  flex: 0 0 auto;
}

.section--ink .list-check svg,
.section--green .list-check svg {
  color: var(--gold);
}

.list-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: s;
}

.list-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  counter-increment: s;
  margin: 0;
}

.list-steps li::before {
  content: counter(s);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.divider-steps {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--ink);
  opacity: 0.18;
}

.tilt-1 {
  transform: rotate(-1.2deg);
}
.tilt-2 {
  transform: rotate(1deg);
}

.overlap-up {
  margin-top: clamp(-4rem, -2rem - 4vw, -2rem);
}

.anchor-offset {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ==========================================================================
   LONG-FORM PAGES (privacy, terms, accessibility)
   ========================================================================== */

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--rule);
  text-transform: none;
  letter-spacing: -0.02em;
}

.prose h2:first-of-type {
  margin-top: 1.25rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  line-height: 1.65;
}

.prose > p:first-child {
  font-size: var(--step-1);
  line-height: 1.55;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--paper);
}

.toc a:hover,
.toc a:focus-visible {
  border-color: var(--ink);
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}
