/* Young Black Scholars
 * Colours come from the charts drawn by Atlanta University students for the
 * 1900 Paris Exposition: crimson, gold, blue, pink and green on buff board,
 * lettered in black ink. Type: Archivo (titles) and Newsreader (reading).
 */

:root {
  --board: #e7d9c1;
  --board-deep: #dccbad;
  --paper: #f3eadb;
  --ink: #1c1714;
  --ink-soft: #4a3f36;
  --crimson: #b8182e;
  --crimson-deep: #9a1226;
  --gold: #d9a53a;
  --blue: #5c6fa8;
  --blue-deep: #3d4f86;
  --pink: #e6b3ae;
  --green: #3e7d4f;
  --umber: #7a5a3c;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;

  /* Type scale (px at 16px root): 14 16 19 22 26 32 44 60 */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.375rem;
  --step-3: 1.625rem;
  --step-4: 2rem;
  --step-5: 2.75rem;

  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
  --measure: 34em;
  --space-section: clamp(72px, 11vw, 150px);
  --radius-pill: 999px;
  --focus: 3px solid var(--blue-deep);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background-color: var(--board);
  /* Board texture: a mid-grey grain tile in soft-light over each flat
     colour, so crimson, ink and buff all read as painted board. */
  background-image: url("../img/grain.png");
  background-size: 200px 200px;
  background-blend-mode: soft-light;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-1);
  font-optical-sizing: auto;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }

p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--board); padding: 10px 16px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7em 1.4em;
  border: 2px solid var(--crimson); border-radius: var(--radius-pill);
  background: var(--crimson); color: var(--paper);
  font-family: var(--font-display); font-size: var(--step-0); font-weight: 650;
  font-variation-settings: "wdth" 104;
  letter-spacing: 0.01em; line-height: 1.1; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--small { min-height: 40px; padding: 0.5em 1.15em; font-size: var(--step--1); }
.button--board { background: var(--paper); color: var(--crimson-deep); border-color: var(--paper); }
.button--board:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row--center { justify-content: center; }

.link-strong {
  font-family: var(--font-display); font-weight: 650; font-size: var(--step-0);
  font-variation-settings: "wdth" 104;
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
  text-decoration-color: var(--crimson);
}
.link-strong:hover { text-decoration-thickness: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(231, 217, 193, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 23, 20, 0.14);
}
.site-header__inner {
  max-width: var(--wide); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 35px; }
.brand__name {
  font-family: var(--font-display); font-weight: 750; font-size: 1.0625rem;
  font-variation-settings: "wdth" 108; letter-spacing: 0.005em; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.site-nav ul { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.site-nav ul a {
  font-family: var(--font-display); font-weight: 560; font-size: var(--step-0);
  text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: rgba(184, 24, 46, 0.45); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--crimson); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 650; font-size: var(--step--1);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--board); border-bottom: 2px solid var(--ink);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(28, 23, 20, 0.15); font-size: var(--step-1); }
  .js .site-nav ul a[aria-current="page"] { color: var(--crimson); border-bottom-color: rgba(28, 23, 20, 0.15); }
  .js .site-nav .button { margin-top: 16px; align-self: flex-start; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(calc(100svh - 61px), 980px);
  padding: clamp(28px, 4.5vw, 56px) var(--gutter) clamp(40px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  /* Its own board colour: the grain layer below blends with it. */
  background-color: var(--board);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
/* The same grain over the canvas, so the painted band shares the board's texture. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../img/grain.png") 0 0 / 200px 200px; mix-blend-mode: soft-light; opacity: 0.9;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--wide); margin: 0 auto; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 860; font-variation-settings: "wdth" 116;
  font-size: clamp(2.5rem, 7.1vw, 6.6rem);
  line-height: 0.92; letter-spacing: 0.035em; text-transform: uppercase;
  text-align: center; text-wrap: balance;
}
.hero__subtitle {
  margin: 0.7em auto 0; max-width: 36em;
  color: var(--crimson); font-style: italic;
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.35; text-align: center;
}
.hero__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 56px);
  margin-top: clamp(20px, 3vw, 40px);
}
.hero__side { text-align: center; }
.hero__side--left p { font-size: var(--step-2); line-height: 1.45; max-width: 17em; margin: 0 auto; }
.hero__where { margin: 18px auto 0; font-size: var(--step-0); color: var(--ink-soft); max-width: 18em; }
/* The art box holds only the coil (width / coil height = 1.07, from
   tools/make-art.mjs geometry); the straight bar hangs below it and is cut
   off by the bottom of the hero. */
.hero__art {
  position: relative; justify-self: center;
  width: min(100%, max(260px, calc(100svh - 470px)));
  aspect-ratio: 1.07;
}
.hero__still { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.hero.is-live .hero__still { visibility: hidden; }
.hero__side .hero__caption {
  margin: 18px auto 0; max-width: 20em;
  font-size: var(--step--1); font-style: italic; color: var(--ink-soft);
}
.hero__label {
  position: absolute; z-index: 3; margin: 0; pointer-events: none;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 650; font-size: var(--step--1);
  opacity: 0; transform: translate(-50%, -140%);
  transition: opacity 0.12s ease;
  white-space: nowrap;
}
.hero__label.is-on { opacity: 1; }

/* One column: the spiral comes first and its bar is cut 64px below the
   coil (hero.js clips the canvas at the same line). */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(82%, 380px); margin-bottom: 88px; clip-path: inset(-20px -20px -64px -20px); }
  .hero__side--left p { max-width: 22em; }
}

/* ---------- Plates (page sections) ---------- */

.plate {
  position: relative;
  padding: var(--space-section) var(--gutter);
}
.plate > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.plate__head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.plate__title {
  font-family: var(--font-display);
  font-weight: 820; font-variation-settings: "wdth" 112;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.04; letter-spacing: 0.06em; text-transform: uppercase;
  text-wrap: balance;
}
.plate__subtitle {
  margin: 0.75em auto 0; max-width: 34em;
  color: var(--crimson); font-style: italic; font-size: var(--step-2); line-height: 1.35;
}
.plate__more { text-align: center; margin-top: clamp(32px, 4vw, 52px); }

.plate--ink, .plate--crimson, .give-band, .site-footer {
  background-image: url("../img/grain.png"); background-size: 200px 200px; background-blend-mode: soft-light;
}
.plate--ink { background-color: var(--ink); color: var(--paper); }
.plate--ink .plate__subtitle { color: var(--pink); }
.plate--ink a { color: var(--paper); }

.plate--crimson { background-color: var(--crimson); color: var(--paper); }
.plate--crimson .plate__subtitle { color: var(--paper); opacity: 0.92; }

/* ---------- Legend (colour discs, as on the 1900 charts) ---------- */

.legend { display: grid; gap: clamp(28px, 3.5vw, 44px) clamp(32px, 6vw, 96px); }
.legend--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legend__item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.legend__disc {
  width: clamp(44px, 4.4vw, 58px); aspect-ratio: 1; border-radius: 50%;
  background: var(--disc); margin-top: 2px;
  box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.35);
}
.legend__name {
  font-family: var(--font-display); font-weight: 720; font-variation-settings: "wdth" 106;
  font-size: var(--step-3); line-height: 1.15; margin-bottom: 6px;
}
.legend__item p { margin: 0; max-width: 28em; }
.legend--on-color .legend__name a { text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.legend--on-color .legend__disc { box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.45); }

@media (max-width: 760px) {
  .legend--two { grid-template-columns: 1fr; }
}

/* ---------- Data plate ---------- */

.data-plate {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center;
}
.bars { display: grid; gap: clamp(28px, 4vw, 48px); }
.bars__name {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 106;
  font-size: var(--step-2); margin-bottom: 12px;
}
.bar {
  position: relative; height: 56px; margin-bottom: 10px;
  background: var(--board-deep);
  box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.5);
}
.bar__fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%);
  background: var(--crimson);
}
.bar__fill--early { background: var(--gold); }
.bar__text {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(var(--v) * 1% + 14px);
  font-size: var(--step-0); white-space: nowrap; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.bar__text strong {
  font-family: var(--font-display); font-weight: 820; font-size: var(--step-4);
  vertical-align: -0.12em; margin-right: 4px;
}
/* Long bars carry their text inside the filled part. */
.bar--inside .bar__text { left: auto; right: calc((100 - var(--v)) * 1% + 14px); color: var(--paper); }
.bar--inside .bar__fill--early ~ .bar__text { color: var(--ink); }
.data-plate__text p { font-size: var(--step-2); line-height: 1.5; max-width: 22em; }
.source {
  margin-top: clamp(36px, 5vw, 56px); max-width: 60em; font-size: var(--step--1);
  color: var(--ink-soft); line-height: 1.55;
}
@media (max-width: 860px) {
  .data-plate { grid-template-columns: 1fr; }
}

/* ---------- Lineage plate ---------- */

.lineage { display: grid; gap: clamp(36px, 5vw, 64px); }
.lineage__text { columns: 2 22em; column-gap: clamp(32px, 5vw, 72px); }
.lineage__text p { font-size: var(--step-1); break-inside: avoid; }
/* Justified rows: every picture keeps its own shape, and the pictures in a
   row share one height. --ar is width / height, set on each item. */
.gallery { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); }
.gallery__item { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 240px); min-width: 0; }
.gallery__item figure { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; background: #2a231e; }
.gallery__item figcaption { margin-top: 10px; font-size: var(--step--1); line-height: 1.4; color: #d9cbb3; max-width: 30em; }
.gallery__item figcaption a { color: #f3eadb; }
.gallery__break { flex-basis: 100%; height: 0; }

@media (max-width: 700px) {
  .gallery { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(var(--gutter) * -1); }
  .gallery__item { flex: 0 0 auto; width: min(78vw, calc(var(--ar) * 360px)); scroll-snap-align: start; }
  .gallery__item:last-child { margin-right: var(--gutter); }
  .gallery__break { display: none; }
}

/* ---------- Street map ---------- */

.street-map {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); align-items: start;
}
.street-map__figure { margin: 0; }
.street-map__frame {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--board);
  box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.55);
  touch-action: pan-y;
}
.street-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.street-map__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--ink); }
html:not(.js) .street-map__frame { aspect-ratio: auto; padding: 24px; }
.street-map__label {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 650; font-size: var(--step--1); line-height: 1.2;
  transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap;
}
.street-map__legend {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px;
  font-size: var(--step--1); color: var(--ink-soft);
}
.key { display: inline-flex; align-items: center; gap: 8px; }
.key__swatch { width: 22px; height: 14px; display: inline-block; }
.key__swatch--zip { background: var(--crimson); }
.key__swatch--street { height: 2px; background: var(--ink); }
.key__star { color: var(--gold); font-size: 1.3em; line-height: 1; -webkit-text-stroke: 1px var(--ink); }
.street-map__heading {
  font-family: var(--font-display); font-weight: 720; font-size: var(--step-2); margin-bottom: 10px;
}
.street-map__aside address { font-size: var(--step-2); line-height: 1.45; margin-bottom: 14px; }
.street-map__note { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 860px) {
  .street-map { grid-template-columns: 1fr; }
  .street-map__frame { aspect-ratio: 4 / 3; }
}

/* ---------- Inner pages ---------- */

.page-head { padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(24px, 4vw, 48px); text-align: center; }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 860; font-variation-settings: "wdth" 116;
  font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 0.98; letter-spacing: 0.04em;
  text-transform: uppercase; text-wrap: balance;
}
.page-head__lede {
  margin: 0.8em auto 0; max-width: 32em; color: var(--crimson);
  font-style: italic; font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.4;
}
.page-head__mark { width: 54px; margin: 0 auto 22px; }

.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display); font-weight: 760; font-variation-settings: "wdth" 108;
  font-size: var(--step-4); line-height: 1.12; margin: 2em 0 0.6em;
}
.prose h3 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2);
  margin: 1.6em 0 0.4em;
}
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--crimson); }
.lead { font-size: var(--step-2); line-height: 1.5; }

.section { padding: clamp(40px, 6vw, 80px) var(--gutter); }
.section--tight-top { padding-top: 0; }

/* Program rows: disc, name, text */
.programs { max-width: 980px; margin: 0 auto; display: grid; gap: clamp(48px, 6vw, 80px); }
.program { display: grid; grid-template-columns: clamp(64px, 9vw, 120px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; scroll-margin-top: 100px; }
.program__disc { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--disc); box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.35); }
.program__name {
  font-family: var(--font-display); font-weight: 780; font-variation-settings: "wdth" 110;
  font-size: var(--step-4); line-height: 1.1; margin-bottom: 0.4em;
}
.program p { max-width: var(--measure); }
.program ul { list-style: disc; padding-left: 1.2em; max-width: var(--measure); }
.program li { margin-bottom: 0.35em; }
.program li::marker { color: var(--crimson); }

/* Values as a ring of four */
.values-head { max-width: 980px; margin: 0 auto 1.2em; }
.values-head h2 { font-family: var(--font-display); font-weight: 760; font-variation-settings: "wdth" 108; font-size: var(--step-4); line-height: 1.12; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 980px; margin: 0 auto; }
.value { padding: clamp(24px, 3.5vw, 44px); border-top: 2px solid var(--ink); }
.value:nth-child(odd) { border-right: 2px solid var(--ink); }
.value__name {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 760; font-size: var(--step-3); margin-bottom: 0.4em;
}
.value__name::before { content: ""; width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--disc); flex: none; }
.value p { margin: 0; }
@media (max-width: 700px) {
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd) { border-right: 0; }
}

/* Ways to help */
.ways { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 88px); }
.way { scroll-margin-top: 100px; }
.way__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.way__disc { width: 46px; height: 46px; border-radius: 50%; background: var(--disc); flex: none; box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.35); }
.way__name { font-family: var(--font-display); font-weight: 780; font-variation-settings: "wdth" 110; font-size: var(--step-4); line-height: 1.1; }
.way ul { list-style: disc; padding-left: 1.2em; }
.way li::marker { color: var(--crimson); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

.give-band { background-color: var(--crimson); color: var(--paper); padding: clamp(56px, 8vw, 100px) var(--gutter); }
.give-band__inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.give-band h2 { font-family: var(--font-display); font-weight: 820; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 0.5em; }
.give-band address { font-size: var(--step-2); line-height: 1.45; }
.give-band .fine { font-size: var(--step-0); opacity: 0.95; }
@media (max-width: 760px) { .give-band__inner { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: var(--measure); margin: 0 auto; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, 0.4);
  transition: background-color 0.15s ease;
}
.faq details[open] summary::after { background: var(--crimson); }
.faq details > div { padding: 0 0 18px; }

/* ---------- Forms ---------- */

.form-wrap { max-width: 760px; margin: 0 auto; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--font-display); font-weight: 650; font-size: var(--step-0);
}
.field .optional { font-family: var(--font-text); font-weight: 400; font-style: italic; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: var(--step-0); line-height: 1.4;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--crimson); box-shadow: 0 0 0 1px var(--crimson); }
.field__error { color: var(--crimson-deep); font-size: var(--step--1); font-weight: 600; margin: 0; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { margin: 0; font-size: var(--step-0); }
.form__status.is-error { color: var(--crimson-deep); font-weight: 600; }
.form__status.is-ok { color: var(--green); font-weight: 600; }
.form__privacy { grid-column: 1 / -1; font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-card address { font-size: var(--step-2); line-height: 1.45; margin-bottom: 16px; }
.contact-card h2 { font-family: var(--font-display); font-weight: 760; font-size: var(--step-3); margin-bottom: 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Credits ---------- */

.credits { max-width: var(--measure); margin: 0 auto; font-size: var(--step-0); list-style: disc; padding-left: 1.2em; }
.credits li::marker { color: var(--crimson); }
.credits li { margin-bottom: 0.7em; }

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--board-deep);
  border-top: 2px solid var(--ink);
  padding: clamp(48px, 7vw, 88px) var(--gutter) 28px;
  font-size: var(--step-0);
}
.site-footer__inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: clamp(28px, 5vw, 72px);
}
.site-footer__brand img { width: 52px; margin-bottom: 14px; }
.site-footer__name { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: var(--step-3); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.05; margin-bottom: 8px; }
.site-footer__line { color: var(--ink-soft); max-width: 22em; }
.site-footer__note { color: var(--ink-soft); max-width: 26em; margin-top: 18px; font-size: var(--step--1); }
.site-footer__heading { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); margin-bottom: 10px; }
.site-footer address { line-height: 1.55; margin-bottom: 10px; }
.site-footer ul li { margin-bottom: 6px; }
.site-footer__legal {
  max-width: var(--wide); margin: clamp(36px, 5vw, 56px) auto 0; padding-top: 18px;
  border-top: 1px solid rgba(28, 23, 20, 0.25);
  font-size: var(--step--1); color: var(--ink-soft);
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(72px, 12vw, 160px) var(--gutter); }
.notfound img { width: 120px; margin: 0 auto 28px; }

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body, .plate--ink, .plate--crimson, .give-band, .site-footer { background-image: none; }
  body { background-color: #fff; }
  .hero::after { display: none; }
  .site-header, .nav-toggle, .hero__canvas, .street-map__frame, .form-wrap { display: none !important; }
  .hero.is-live .hero__still { visibility: visible; }
  .plate--ink, .plate--crimson, .give-band { background: #fff; color: #000; }
}

/* Contact page: the address is already in the card above the map. */
.page-contact .street-map { grid-template-columns: 1fr; }
.page-contact .street-map__aside { display: none; }
