/* ==========================================================================
   LEVEL UP PROGRAM LLC — site.css
   One stylesheet for the whole site. Edit tokens in :root to restyle globally.

   Sections:
   01 Tokens            06 Header & navigation
   02 Reset & base      07 Sections, bands & the "step" motif
   03 Layout            08 Components (cards, quotes, accordion, forms)
   04 Typography        09 Footer
   05 Buttons & links   10 Motion & reduced-motion
   ========================================================================== */

/* ==========================================================================
   01 TOKENS
   Brand colours are taken directly from the approved Level Up logo artwork.
   ========================================================================== */
:root {
  /* Colour */
  --ink:        #0b0b0c;   /* logo black */
  --ink-2:      #16161a;
  --ink-3:      #24242b;
  --amber:      #fab407;   /* logo amber */
  --amber-hi:   #ffc93c;
  --amber-lo:   #d99c00;
  --amber-text: #8c6100;   /* the only amber used for TEXT on light grounds: 4.9:1 */
  --paper:      #f6f2e9;   /* warm off-white page ground */
  --paper-hi:   #fffdf9;
  --white:      #ffffff;

  --text-on-paper:      var(--ink);
  --text-on-paper-mute: #55535a;
  --text-on-ink:        #f4f2ee;
  --text-on-ink-mute:   #adaab4;
  --text-on-amber:      var(--ink);

  --rule-on-paper: rgba(11, 11, 12, 0.16);
  --rule-on-ink:   rgba(255, 255, 255, 0.18);
  --rule-on-amber: rgba(11, 11, 12, 0.22);

  --focus: #0047ff;          /* high-contrast focus on light grounds */
  --focus-on-dark: #ffc93c;  /* high-contrast focus on dark grounds */

  /* Type */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-quote: "Bitter", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --step-1:  clamp(1.1875rem, 1.12rem + 0.34vw, 1.375rem);
  --step-2:  clamp(1.375rem, 1.26rem + 0.55vw, 1.75rem);
  --step-3:  clamp(1.625rem, 1.42rem + 1.02vw, 2.375rem);
  --step-4:  clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --step-5:  clamp(2.375rem, 1.72rem + 3.28vw, 4.5rem);
  --step-6:  clamp(2.75rem, 1.7rem + 5.2vw, 6rem);

  /* Space */
  --sp-1: 0.375rem;
  --sp-2: 0.625rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 5.5rem;
  --sp-9: 7rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
  --band-y: clamp(3.5rem, 8vw, 7rem);

  --header-h: 72px;
  --radius: 3px;          /* squared-off, editorial — not a bubbly SaaS card */
  --border: 1.5px solid var(--rule-on-paper);
}

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

* { min-width: 0; }  /* stops flex/grid children forcing horizontal overflow */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 420;
  letter-spacing: 0;
  overflow-x: clip;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* Everything that could ever be wider than its column gets its own scroller. */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   03 LAYOUT
   ========================================================================== */
.wrap {
  width: min(100% - (var(--gutter) * 2), 1240px);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 860px); margin-inline: auto; }

.band { padding-block: var(--band-y); position: relative; }
.band--ink   { background: var(--ink);   color: var(--text-on-ink); }
.band--ink2  { background: var(--ink-2); color: var(--text-on-ink); }
.band--amber { background: var(--amber); color: var(--text-on-amber); }
.band--paper { background: var(--paper); color: var(--text-on-paper); }
.band--white { background: var(--paper-hi); color: var(--text-on-paper); }

.band--ink  a:not(.btn) { color: var(--amber); }
.band--ink2 a:not(.btn) { color: var(--amber); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 62rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Editorial split: wide content column + narrower aside. Collapses cleanly. */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--aside-first > :first-child { order: 2; }
  .split--aside-first > :last-child  { order: 1; }
}

/* ==========================================================================
   04 TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.012em;   /* gentle, never cramped */
  line-height: 1.12;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); line-height: 1.04; font-weight: 850; font-stretch: 96%; }
h2 { font-size: var(--step-4); line-height: 1.08; }
h3 { font-size: var(--step-2); line-height: 1.22; font-weight: 750; letter-spacing: -0.006em; }
h4 { font-size: var(--step-1); line-height: 1.3;  font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 var(--sp-3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  font-weight: 450;
  max-width: 54ch;
}

.display {
  font-size: var(--step-6);
  line-height: 1.02;
  font-weight: 880;
  font-stretch: 92%;
  letter-spacing: -0.02em;
}

.small { font-size: var(--step--1); line-height: 1.6; }
.mute  { color: var(--text-on-paper-mute); }
.band--ink .mute, .band--ink2 .mute, .hero .mute,
.site-footer .mute { color: var(--text-on-ink-mute); }

/* Section eyebrow: tiny uppercase label preceded by the step mark. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 var(--sp-3);
  color: var(--amber-text);
}
.band--ink .eyebrow, .band--ink2 .eyebrow { color: var(--amber); }
.band--amber .eyebrow { color: var(--ink); }

/* The step mark: three rising blocks, the last one amber. Purely decorative. */
.stepmark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.9em;
}
.stepmark i {
  display: block;
  width: 0.24em;
  background: currentColor;
}
.stepmark i:nth-child(1) { height: 36%; }
.stepmark i:nth-child(2) { height: 68%; }
.stepmark i:nth-child(3) { height: 100%; background: var(--amber); }
.band--amber .stepmark i:nth-child(3) { background: var(--ink); }

/* Brand statement — keeps the serif-italic voice from the original site. */
.statement {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.42;
  letter-spacing: -0.005em;
  max-width: 24ch;
  margin: 0;
}
.statement--wide { max-width: 34ch; }

.overline-rule {
  border: 0;
  border-top: 2px solid currentColor;
  opacity: 0.22;
  margin: var(--sp-5) 0;
}

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.85em;
  margin-bottom: 0.7em;
  max-width: var(--measure);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85em;
  height: 0.85em;
  background: var(--amber);
  clip-path: polygon(0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%, 0 100%);
}
.band--amber .ticks li::before { background: var(--ink); }

/* ==========================================================================
   05 BUTTONS & LINKS
   ========================================================================== */
a { color: inherit; text-underline-offset: 0.18em; }
a:not(.btn):not(.brand):not(.nav__link):not(.card-link) {
  text-decoration-thickness: 1.5px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--ink :focus-visible,
.band--ink2 :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }

.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;              /* comfortable touch target */
  padding: 0.85em 1.4em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-edge);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 750;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  box-shadow: 4px 4px 0 0 var(--btn-edge);
  text-wrap: balance;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--btn-edge); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 var(--btn-edge); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper-hi); box-shadow: none; transform: translateY(-2px); }

.band--ink .btn--ghost, .band--ink2 .btn--ghost, .site-footer .btn--ghost {
  --btn-fg: var(--text-on-ink);
  --btn-edge: rgba(255, 255, 255, 0.55);
}
.band--ink .btn--ghost:hover, .band--ink2 .btn--ghost:hover, .site-footer .btn--ghost:hover {
  background: var(--paper-hi);
  color: var(--ink);
  border-color: var(--paper-hi);
}
.band--ink .btn:not(.btn--ghost), .band--ink2 .btn:not(.btn--ghost) { --btn-edge: var(--amber-lo); }
.band--amber .btn:not(.btn--ghost) { --btn-bg: var(--ink); --btn-fg: var(--amber); --btn-edge: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.btn-row .btn { flex: 0 1 auto; }
@media (max-width: 26rem) {
  .btn-row { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   06 HEADER & NAVIGATION
   ========================================================================== */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper-hi);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 140ms ease;
}
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper-hi);
  border-bottom: 1.5px solid var(--rule-on-paper);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
  padding-block: 0.625rem;
}

/* Brand lock-up: the approved logo artwork, unmodified, with clear space,
   sitting beside — never underneath or on top of — the site name. */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 1 auto;
  padding: 4px;
  margin: -4px;
}
.brand__logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}
.brand__logo img { width: 100%; height: 100%; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name b {
  font-size: 1.0625rem;
  font-weight: 830;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.brand__name span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-paper-mute);
}
@media (max-width: 24rem) {
  .brand__name span { display: none; }
  .brand__logo { width: 40px; height: 40px; }
}

.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { flex: 0 0 auto; }
.nav__link {
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  font-weight: 620;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
}
.nav__link:hover { border-bottom-color: var(--amber); }
.nav__link[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0.6em 1.1em; box-shadow: 3px 3px 0 0 var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2px; background: currentColor; }

@media (max-width: 66rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: block;
    background: var(--paper-hi);
    border-top: 1.5px solid var(--rule-on-paper);
    padding: var(--sp-4) var(--gutter) var(--sp-7);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav[hidden] { display: none; }
  .nav__list { display: block; }
  .nav__list li + li { border-top: 1px solid var(--rule-on-paper); }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 0;
    border-left: 4px solid transparent;
    padding-left: 0.85rem;
    margin-left: -0.85rem;
  }
  .nav__link:hover { border-bottom-color: transparent; border-left-color: var(--amber); }
  .nav__link[aria-current="page"] { border-left-color: var(--ink); }
  .nav .btn { display: flex; width: 100%; margin-top: var(--sp-4); }
}

/* ==========================================================================
   07 THE STEP MOTIF
   A rising staircase, borrowed straight from the logo, used as the divider
   between colour bands. Built from flex children so it scales without
   distorting and never overlaps content.
   ========================================================================== */
.stepedge {
  background: var(--edge-ground, var(--ink));   /* the colour of the band above */
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: clamp(28px, 4.2vw, 56px);
  line-height: 0;
}
.stepedge span { flex: 1 1 0; display: block; }
.stepedge span:nth-child(1) { height: 16%; }
.stepedge span:nth-child(2) { height: 32%; }
.stepedge span:nth-child(3) { height: 48%; }
.stepedge span:nth-child(4) { height: 64%; }
.stepedge span:nth-child(5) { height: 80%; }
.stepedge span:nth-child(6) { height: 100%; }
.stepedge--ink span   { background: var(--ink); }
.stepedge--amber span { background: var(--amber); }
.stepedge--paper span { background: var(--paper); }
.stepedge--white span { background: var(--paper-hi); }
.stepedge--flip { transform: scaleX(-1); }

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

/* --- Card ---------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--paper-hi);
  border: 1.5px solid var(--rule-on-paper);
  border-radius: var(--radius);
  position: relative;
  height: 100%;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.25rem; }
.card p { max-width: none; }

/* The stepped tab is a background layer, so it can never clip a focus ring. */
.card::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  width: 42px;
  height: 14px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 66% 100%, 66% 50%, 33% 50%, 33% 100%, 0 100%);
}
.band--ink .card, .band--ink2 .card {
  background: var(--ink-3);
  border-color: var(--rule-on-ink);
  color: var(--text-on-ink);
}
.band--amber .card { background: var(--paper-hi); border-color: var(--rule-on-amber); }
.band--amber .card::before { background: var(--ink); }

.card--link { transition: transform 170ms ease, box-shadow 170ms ease; }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 10px 0 -4px rgba(11,11,12,.14); }
.band--ink .card--link:hover { box-shadow: 0 10px 0 -4px rgba(0,0,0,.5); }

.card__num {
  font-size: var(--step-3);
  font-weight: 850;
  line-height: 1;
  color: var(--amber-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.band--ink .card__num, .band--ink2 .card__num { color: var(--amber); }

/* --- Skill tile ---------------------------------------------------------- */
.tiles { display: grid; gap: 2px; background: var(--rule-on-ink); border: 2px solid var(--rule-on-ink); }
@media (min-width: 34rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  background: var(--ink);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 9.5rem;
}
.tile__n {
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.tile h3 { font-size: var(--step-1); margin: 0; line-height: 1.25; }

/* --- Statement panel ----------------------------------------------------- */
.panel {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 2px solid currentColor;
  border-radius: var(--radius);
}
.panel--amber { background: var(--amber); color: var(--ink); border-color: var(--ink); }
.panel--ink   { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }

/* --- Facts strip --------------------------------------------------------- */
.facts {
  display: grid;
  gap: 2px;
  background: var(--rule-on-amber);
  border-block: 2px solid var(--ink);
}
@media (min-width: 46rem) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact {
  background: var(--amber);
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(1rem, 2.4vw, 1.75rem);
}
.fact dt {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.fact dd {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.008em;
}

/* --- Student feedback wall ---------------------------------------------- */
.wall { display: grid; gap: clamp(1.25rem, 2.6vw, 2rem); }
@media (min-width: 44rem) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.scrap {
  display: flex;
  flex-direction: column;
  background: var(--paper-hi);
  border: 1.5px solid var(--rule-on-paper);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}
.scrap__q {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 0.85rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
  margin: 0;
}
.scrap__img { background: #eceae4; padding: 0.75rem; }
.scrap__img img {
  width: 100%;
  border: 1px solid var(--rule-on-paper);
  background: var(--white);
}
.scrap__t {
  padding: 1rem 1.1rem 1.15rem;
  margin: 0;
  font-family: var(--font-quote);
  font-size: 1.0625rem;
  line-height: 1.6;
  border-top: 1px dashed var(--rule-on-paper);
}
.scrap__t cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-paper-mute);
}

/* --- Materials / workbook preview --------------------------------------- */
.preview {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: start;
}
@media (min-width: 46rem) { .preview--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.preview figure img { width: 100%; border-radius: 2px; }
.preview figure {
  margin: 0;
  background: var(--paper-hi);
  border: 1.5px solid var(--rule-on-paper);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.band--ink .preview figure, .band--ink2 .preview figure {
  background: var(--ink-3);
  border-color: var(--rule-on-ink);
}
.preview figcaption {
  font-size: 0.8125rem;
  line-height: 1.5;
  padding-top: 0.7rem;
  color: var(--text-on-paper-mute);
}
.band--ink .preview figcaption, .band--ink2 .preview figcaption { color: var(--text-on-ink-mute); }

/* --- Accordion (FAQ) ----------------------------------------------------- */
.faq { border-top: 1.5px solid var(--rule-on-paper); }
.faq details {
  border-bottom: 1.5px solid var(--rule-on-paper);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 18px;
  height: 18px;
  margin-top: 0.4em;
  background: currentColor;
  clip-path: polygon(42% 0, 58% 0, 58% 42%, 100% 42%, 100% 58%, 58% 58%, 58% 100%, 42% 100%, 42% 58%, 0 58%, 0 42%, 42% 42%);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 1.4rem; }
.faq .faq__a > :last-child { margin-bottom: 0; }

/* --- Form ---------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
}
.field .req { color: #b3261e; font-weight: 800; }
.band--ink .field .req, .band--ink2 .field .req { color: var(--amber); }
.field .hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-on-paper-mute);
}
.band--ink .field .hint, .band--ink2 .field .hint { color: var(--text-on-ink-mute); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 1rem;              /* 16px minimum stops iOS zoom-on-focus */
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(11, 11, 12, 0.35);
  border-radius: var(--radius);
  appearance: none;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 1.45rem, calc(100% - 0.85rem) 1.45rem;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #b3261e; background: #fff6f5; }
.field .error {
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
  color: #8c1d18;
}
.band--ink .field .error, .band--ink2 .field .error { color: #ffb4ab; }
.field .error:empty { display: none; }

.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Honeypot — hidden from people, visible to naive bots. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.form__status { border-radius: var(--radius); }
.form__status:empty { display: none; }
.form__status[data-state] { padding: 1rem 1.15rem; border: 2px solid currentColor; }
.form__status[data-state="ok"]   { background: #edf7ed; color: #14532d; }
.form__status[data-state="err"]  { background: #fdeceb; color: #8c1d18; }
.form__status[data-state="busy"] { background: #f2f0ea; color: var(--ink); }
.form__status > :last-child { margin-bottom: 0; }

.notice {
  max-width: 72ch;
  padding: 1rem 1.15rem;
  border-left: 5px solid var(--amber);
  background: rgba(250, 180, 7, 0.14);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.notice > :last-child { margin-bottom: 0; }
.band--ink .notice, .band--ink2 .notice { background: rgba(250, 180, 7, 0.1); }

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

.breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: var(--sp-3);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

.pagehead { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.pagehead h1 { max-width: 20ch; }
.pagehead .lede { margin-top: var(--sp-4); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tag-list li {
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.45em 0.95em;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
}

/* ==========================================================================
   09 FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-ink);
  padding-block: var(--sp-7) var(--sp-5);
}
.site-footer a { color: var(--text-on-ink); }
.site-footer a:hover { color: var(--amber); }

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 52rem) { .footer-grid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); } }

/* The logo keeps its own white ground — the background changes for it,
   never the other way round. */
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  width: 108px;
}
.footer-logo img { width: 100%; }

.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: 0.35rem; }
.footer-nav a { display: inline-block; padding-block: 0.2rem; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-title {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 var(--sp-3);
}

.footer-legal {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule-on-ink);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-on-ink-mute);
}
.footer-legal p { max-width: 68ch; margin: 0; }

/* ==========================================================================
   10 MOTION
   Reveals are opt-in via JS, so the page is fully readable with JS disabled.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(.2,.6,.2,1), transform 520ms cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .card--link:hover { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .btn, .stepedge { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding-block: 1.5rem; background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   11 PAGE PIECES
   Layout blocks used by one or two pages. Kept at the bottom so the
   system above stays easy to read.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lede { color: #e6e3dd; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero__meta li { display: flex; align-items: center; gap: 0.6rem; }
.hero__meta li + li::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  flex: 0 0 auto;
}

/* Two covers, side by side, the second stepped down. No overlap, ever. */
.covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  align-items: start;
}
.covers figure { margin: 0; }
@media (min-width: 30rem) {
  .covers figure:nth-child(2) { margin-top: clamp(1.25rem, 4vw, 3rem); }
}
.covers img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.covers figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-ink-mute);
  line-height: 1.5;
}

/* --- Illustration figure -------------------------------------------------*/
.figure-frame { margin: 0; }
.figure-frame img {
  width: 100%;
  border: 1.5px solid var(--rule-on-paper);
  border-radius: var(--radius);
}
.figure-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-on-paper-mute);
}
.band--ink .figure-frame img, .band--ink2 .figure-frame img { border-color: var(--rule-on-ink); }
.band--ink .figure-frame figcaption, .band--ink2 .figure-frame figcaption { color: var(--text-on-ink-mute); }

/* --- Settings list ------------------------------------------------------- */
.settings {
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 38rem) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .settings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.settings li {
  background: var(--ink);
  outline: 1px solid var(--rule-on-ink);
  padding: 1.1rem 1.25rem;
  font-weight: 650;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.settings li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background: var(--amber);
  clip-path: polygon(0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%, 0 100%);
}

/* --- Closing call to action --------------------------------------------- */
.closer { text-align: left; }
.closer h2 { font-size: var(--step-5); line-height: 1.04; max-width: 16ch; }
.closer .lede { max-width: 48ch; }

/* --- Contact detail list ------------------------------------------------- */
.detail-list { margin: 0; }
.detail-list dt {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-paper-mute);
  margin-top: var(--sp-4);
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 0.25rem 0 0; font-weight: 600; }
.band--ink .detail-list dt, .band--ink2 .detail-list dt { color: var(--amber); }

/* --- Legal / long-form text pages ---------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-6); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--amber-text); font-weight: 700; }

/* --- 404 ----------------------------------------------------------------- */
.lost { min-height: 52vh; display: flex; align-items: center; }

/* ==========================================================================
   12 UTILITIES
   A small, fixed set of spacing and alignment helpers. Using these instead of
   inline style="" attributes is what lets the site run a strict Content
   Security Policy that blocks injected styles and scripts.
   ========================================================================== */
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 0.75rem; }
.mt-3  { margin-top: var(--sp-3); }
.mt-4  { margin-top: var(--sp-4); }
.mt-5  { margin-top: var(--sp-5); }
.mt-6  { margin-top: var(--sp-6); }
.mb-5  { margin-bottom: var(--sp-5); }
.mb-6  { margin-bottom: var(--sp-6); }
.my-5  { margin-block: var(--sp-5); }

.fw-600 { font-weight: 600; }
.fg-ink { color: var(--ink); }
.items-start   { align-items: start; }
.content-start { align-content: start; }
.band-flush { padding-block: 0; }

.footer-blurb { margin-top: var(--sp-4); max-width: 34ch; }

.panel--outline { border-color: var(--rule-on-ink); }

.figure-frame--boxed {
  background: var(--paper-hi);
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.figure-frame--boxed figcaption { color: var(--ink); }

/* Typed transcription that sits under a quoted scan. */
.scrap__tr {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-style: normal;
}


/* Stacked workbook previews — used where the preview column sits next to a
   tall block of text and two small tiles would leave it looking empty. */
.items-center { align-items: center; }

/* ==========================================================================
   13 ALTERNATIVE SECTION SHAPES
   Added so that consecutive sections don't all land as the same card grid.
   Same colours, same type scale, same spacing — only the arrangement differs.
   ========================================================================== */

/* --- Labelled list: a term and one line, in two columns ------------------
   Used where a card grid would be the third grid in a row.                */
.deflist {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin: 0;
  border-top: 1.5px solid var(--rule-on-paper);
}
@media (min-width: 48rem) { .deflist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deflist > div {
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 0;
  border-bottom: 1.5px solid var(--rule-on-paper);
}
.deflist dt { font-weight: 750; font-size: var(--step-1); line-height: 1.32; }
.deflist dd { margin: 0; font-size: 0.9688rem; line-height: 1.62; color: var(--text-on-paper-mute); max-width: 46ch; }
.band--ink .deflist, .band--ink2 .deflist { border-color: var(--rule-on-ink); }
.band--ink .deflist > div, .band--ink2 .deflist > div { border-color: var(--rule-on-ink); }
.band--ink .deflist dd, .band--ink2 .deflist dd { color: var(--text-on-ink-mute); }
.band--amber .deflist, .band--amber .deflist > div { border-color: var(--rule-on-amber); }
.band--amber .deflist dd { color: var(--ink); }

/* --- Numbered list: the step number carries the rhythm, not a card ------- */
.numlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--rule-on-ink);
}
@media (min-width: 52rem) { .numlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.numlist li {
  display: flex;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-on-ink);
}
.numlist > li > b {
  flex: 0 0 auto;
  min-width: 1.9em;
  font-size: var(--step-2);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.numlist li > div { min-width: 0; }
.numlist h3 { margin: 0 0 0.3rem; font-size: var(--step-1); line-height: 1.3; }
.numlist p { margin: 0; font-size: 0.9688rem; line-height: 1.62; color: var(--text-on-ink-mute); max-width: 46ch; }

/* --- Pull quote: one student's words at full size, between two groups ---- */
.pullquote {
  margin: clamp(2rem, 4vw, 3.25rem) 0;
  padding: clamp(1.5rem, 3.4vw, 2.5rem) 0 clamp(1.5rem, 3.4vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem);
  border-left: 6px solid var(--amber);
  border-block: 1.5px solid var(--rule-on-paper);
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.42;
  letter-spacing: -0.005em;
  max-width: 30ch;
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-paper-mute);
}


/* --- Page header carrying an image --------------------------------------- */
.pagehead--media > .wrap {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .pagehead--media > .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
}
.pagehead--media img { border-radius: var(--radius); }

/* --- End cap: a one-line close where a full CTA band would be a fourth --- */
.endcap { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.endcap > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.endcap p {
  margin: 0;
  max-width: 46ch;
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.45;
}
.endcap .btn-row { margin-top: 0; }

/* --- Fact strip on a light ground, and a four-up variant ----------------- */
.facts--paper { background: var(--rule-on-paper); border-block-color: var(--ink); }
.facts--paper .fact { background: var(--paper-hi); }
@media (min-width: 46rem) { .facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact p { margin: 0.5rem 0 0; font-size: 0.9375rem; font-weight: 450; line-height: 1.55; }
.endcap h2 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.endcap > .wrap > div:first-child { flex: 1 1 22rem; }
.band--ink .pullquote, .band--ink2 .pullquote { border-block-color: var(--rule-on-ink); }
.band--ink .pullquote cite, .band--ink2 .pullquote cite { color: var(--text-on-ink-mute); }
.pagehead--media .scrap { max-width: 26rem; }

/* A feedback card carries its own colours, so it stays readable wherever it
   sits — including on a dark band, where it would otherwise inherit light
   text onto its own white ground. */
.scrap { color: var(--text-on-paper); }
.scrap__t { color: var(--text-on-paper); }
.scrap__t cite { color: var(--text-on-paper-mute); }
.band--ink .scrap a, .band--ink2 .scrap a { color: var(--ink); }

/* A tall scan holding two answers gets its own block rather than being forced
   into a grid built for single responses. */
.scrap--tall { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 52rem) { .scrap--tall { grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); } }
.scrap--tall > figure { margin: 0; }
.scrap--tall img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border: 1px solid var(--rule-on-paper);
  background: var(--white);
  border-radius: var(--radius);
}
.scrap--tall blockquote {
  margin: 0 0 1.5rem;
  max-width: 58ch;
  font-family: var(--font-quote);
  font-size: 1.0625rem;
  line-height: 1.62;
  padding-left: 1.1rem;
  border-left: 4px solid var(--amber);
}
.scrap--tall blockquote:last-child { margin-bottom: 0; }
.scrap--tall .scrap__q {
  background: none;
  color: inherit;
  padding: 0 0 0.5rem;
  border-bottom: 1.5px solid var(--rule-on-paper);
  margin-bottom: 0.9rem;
}

/* ==========================================================================
   14 FULL PAGES, SHOWN WHOLE, AND THE ENLARGED VIEW
   Workbook pages and feedback scans are published complete — nothing is
   cropped by the browser and nothing is cropped in the file. A portrait page
   set beside a column of text is capped so it doesn't tower over it, and any
   image marked data-zoom can be opened larger. The enlarging is added by
   JavaScript: with scripts off the images still show whole, which is the
   part that matters.
   ========================================================================== */

/* A whole portrait page sitting beside body text. */
.figure-frame--page img { max-width: 23rem; }
.preview--single { justify-items: start; }
.preview--single figure { max-width: 23rem; }

/* The button JavaScript wraps around an enlargeable image. */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  position: relative;
  border-radius: 2px;
}
.zoom img { display: block; }
.zoom__hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(11, 11, 12, 0.86);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.zoom:hover .zoom__hint,
.zoom:focus-visible .zoom__hint { opacity: 1; }
.zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band--ink .zoom:focus-visible,
.band--ink2 .zoom:focus-visible { outline-color: var(--focus-on-dark); }

/* The enlarged view. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(11, 11, 12, 0.97);
  padding: clamp(0.75rem, 2.5vw, 2rem);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-bottom: 0.5rem;
}
.lightbox__close {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b0b0c;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  min-height: 44px;
}
.lightbox__close:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 3px; }
.lightbox__fig {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  gap: 0.75rem;
}
.lightbox__fig img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  background: #fff;
}
.lightbox__cap {
  flex: 0 0 auto;
  margin: 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .zoom__hint { transition: none; }
}
