/* =============================================================
   Repair Café Winchester — site.css
   Visual direction: editorial / documentary layout dressed in the official
   Repair Café brand — blue #2d2e82, orange #ed6a42, lavender #e8e8ff, and
   the Roboto typeface. (Token names --pine/--rust are retained for stability
   but now hold the brand blue/orange.)
   Accessibility foundations (contrast, focus, large text, semantics,
   reduced motion) are preserved from the previous build.
   Component class names are kept so every page keeps working; the
   homepage adds bespoke editorial sections on top.
   ============================================================= */

/* -------------------------------------------------------------
   0. Self-hosted display font (works offline, no build step)
   ------------------------------------------------------------- */
/* Roboto — the official Repair Café typeface (Latin subset, self-hosted) */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* -------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------- */
:root {
  /* Base + material (Repair Café brand: white / lavender, warm neutral base) */
  --paper: #f6f4ee;          /* soft off-white — page base */
  --paper-2: #eeecff;        /* brand lavender tint — alternate sections */
  --surface: #ffffff;        /* white cards / inset */
  --white: #ffffff;

  /* Ink (brand navy-charcoal) */
  --ink: #1c1c3a;            /* body text (15:1 on base) */
  --ink-soft: #43436b;       /* secondary text (8.5:1) */

  /* Brand accents */
  --pine: #2d2e82;           /* Repair Café BLUE — primary (links 10.5:1) */
  --pine-deep: #1f2060;      /* darker blue — hover */
  --rust: #ed6a42;           /* Repair Café ORANGE — fills + decoration only */
  --rust-deep: #b8451f;      /* darkened orange — safe for text on paper, lavender & white */
  --sage: #6a6cbf;           /* soft blue-violet support (decorative) */
  --gold: #ed6a42;           /* highlight = brand orange */

  /* Lines + states */
  --line: #d8d6ec;           /* lavender-grey hairline */
  --line-strong: #b9b7dd;
  --focus: #12508f;
  --error: #9a2016;
  --error-bg: #f7e4df;
  --success-bg: #e8e8ff;

  /* Type — Roboto throughout, per the Repair Café brand */
  --font-display: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --text-base: 1.1875rem;    /* ~19px */
  --leading: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;

  /* Layout */
  --page-width: 1180px;
  --measure: 62ch;
  --measure-tight: 34ch;
  --radius: 10px;
  --shadow: 0 18px 40px -24px rgba(36, 31, 26, 0.55);
  --shadow-soft: 0 10px 30px -20px rgba(36, 31, 26, 0.5);
}

/* -------------------------------------------------------------
   2. Base / reset
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--ink);
  background-color: var(--paper);
  /* Barely-there paper grain — understated, does not affect readability. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p, ul, ol, dl, table { margin: 0 0 var(--space-4); }
p, li { max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: var(--space-2); }

strong { font-weight: 700; }

/* -------------------------------------------------------------
   3. Links
   ------------------------------------------------------------- */
a {
  color: var(--pine-deep);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--line-strong);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--rust-deep);
  text-decoration-color: currentColor;
}

/* Editorial "read on" links with a hand-drawn arrow */
.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
  padding-bottom: 2px;
  color: var(--pine-deep);
}
.link-arrow::after { content: " \2192"; color: var(--rust); }
.link-arrow:hover { color: var(--rust-deep); border-color: var(--rust-deep); }

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

/* -------------------------------------------------------------
   4. Skip link
   ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-2); color: var(--paper); }

/* -------------------------------------------------------------
   5. Layout helpers
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--paper2 { background: var(--paper-2); }
.section--pine { background: var(--pine); color: var(--paper); }
.section--pine h1, .section--pine h2, .section--pine h3 { color: var(--paper); }
.section--pine p, .section--pine li, .section--pine .lead { color: var(--paper); }
.section--pine a { color: #ffd7c8; }
.section--pine .kicker { color: #ffc2ad; }
.section--pine .kicker::before {
  background-image: repeating-linear-gradient(90deg, #ffc2ad 0 5px, transparent 5px 9px);
}

.flow > * + * { margin-top: var(--space-4); }

.lead {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* Small handwritten-feel kicker — used sparingly, NOT everywhere */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--rust-deep);
  margin: 0 0 var(--space-3);
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 3px;
  background: var(--rust);
  /* dashed "stitch" nod to the logo */
  background-image: repeating-linear-gradient(90deg, var(--rust) 0 5px, transparent 5px 9px);
}

/* Running-stitch divider (decorative) */
.stitch {
  border: 0;
  height: 3px;
  margin: 0;
  background-image: repeating-linear-gradient(
    90deg, var(--pine) 0 14px, transparent 14px 24px);
  opacity: 0.6;
}

/* -------------------------------------------------------------
   6. Header + primary navigation
   ------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
/* Brand wordmark — echoes the official REPAIR CAFÉ logo (orange + blue) */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand__repair { color: var(--rust); }   /* REPAIR — brand orange */
.brand__cafe { color: var(--pine); }      /* CAFÉ — brand blue */
.brand__place {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding-top: 4px;
  /* dashed stitch under the wordmark */
  border-top: 2px dashed var(--rust);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  min-height: 48px;
  color: var(--ink);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  min-height: 44px;
  font-size: 1.02rem;
}
.primary-nav a:hover { background: var(--paper-2); color: var(--pine-deep); }
.primary-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--pine-deep);
  box-shadow: inset 0 -3px 0 var(--rust);
  border-radius: 4px 4px 0 0;
}

/* -------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--pine); color: var(--paper); box-shadow: var(--shadow-soft); }
.button--primary:hover { background: var(--pine-deep); color: var(--paper); }
.button--primary::after { content: "\2192"; font-weight: 700; }
.button--secondary { background: var(--rust); color: var(--ink); box-shadow: var(--shadow-soft); }
.button--secondary:hover { background: #ff7d54; color: var(--ink); }
.button--ghost { background: transparent; color: var(--pine-deep); border-color: var(--pine); }
.button--ghost:hover { background: var(--paper-2); color: var(--pine-deep); }

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* -------------------------------------------------------------
   8. Editorial HERO (homepage) — asymmetric, photographic
   ------------------------------------------------------------- */
.hero-ed { position: relative; overflow: hidden; }
.hero-ed__inner {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-7) var(--space-8);
  align-items: center;
}
.hero-ed__title {
  font-size: clamp(2.3rem, 6.2vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}
.hero-ed__title em {
  font-style: italic;
  color: var(--rust-deep);
}
.hero-ed__lead {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-ed__media {
  position: relative;
  margin: 0;
}
.hero-ed__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}
.hero-ed__caption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  max-width: 60%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  transform: rotate(-1.1deg);
}
@media (min-width: 900px) {
  .hero-ed__inner { grid-template-columns: 1.02fr 1fr; gap: var(--space-6); }
  /* let the photo lean toward the page edge */
  .hero-ed__media { margin-right: calc(-1 * var(--space-5)); }
}

/* -------------------------------------------------------------
   9. Next-event STRIP — integrated, not an alert box
   ------------------------------------------------------------- */
.event-strip {
  background: var(--pine);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4) var(--space-5);
  position: relative;
  z-index: 5;
  display: grid;
  gap: var(--space-3) var(--space-5);
  align-items: center;
}
.event-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  margin: 0 0 var(--space-1);
}
.event-strip__eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--rust) 0 5px, transparent 5px 9px);
}
.event-strip__date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--paper);
  margin: 0;
  line-height: 1.1;
}
.event-strip__facts {
  margin: 0;
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  align-items: baseline;
}
.event-strip__facts strong { color: var(--paper); }
.event-strip__facts .sep { opacity: 0.5; }
.event-strip__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.event-strip__note { margin: 0; color: var(--paper); font-weight: 600; opacity: 0.9; }
.event-empty { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.event-strip .button--ghost {
  background: var(--paper); border-color: var(--paper); color: var(--pine-deep);
}
.event-strip .button--ghost:hover { background: #fff; color: var(--pine-deep); }
.event-strip .button--onpine {
  background: var(--rust); color: var(--ink); border-color: var(--rust);
}
.event-strip .button--onpine:hover { background: #ff7d54; border-color: #ff7d54; color: var(--ink); }
@media (min-width: 820px) {
  .event-strip { grid-template-columns: auto 1fr auto; }
}

/* Status badge (kept; used on events page + strip) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px var(--space-3);
  border-radius: 999px;
  border: 2px solid currentColor;
  white-space: nowrap;
}
.badge--open { color: var(--pine-deep); background: var(--success-bg); }
.badge--soon { color: var(--rust-deep); background: #f4e6d8; }
.badge--full { color: var(--error); background: var(--error-bg); }
.badge--onpine { color: var(--paper); background: rgba(251,246,236,0.14); border-color: var(--paper); }

/* -------------------------------------------------------------
   10. Editorial "how it works" — big serif numerals, no boxes
   ------------------------------------------------------------- */
.how { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .how { grid-template-columns: 0.8fr 1.2fr; } }

.how__steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.how__steps li {
  position: relative;
  padding-left: 4.5rem;
  padding-bottom: var(--space-5);
  max-width: 46ch;
}
.how__steps li + li { border-top: 1px dashed var(--line-strong); padding-top: var(--space-5); }
.how__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--rust-deep);
}
.how__steps h3 { margin-bottom: var(--space-2); }
.how__steps p { margin-bottom: 0; }

/* -------------------------------------------------------------
   11. Full-bleed photograph with overlaid quote panel
   ------------------------------------------------------------- */
.bleed { position: relative; }
.bleed__img {
  width: 100%;
  height: clamp(340px, 52vh, 560px);
  object-fit: cover;
  display: block;
}
.bleed__panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--space-5);
  width: min(92%, var(--page-width));
  padding-inline: var(--space-4);
  pointer-events: none;
}
.bleed__quote {
  pointer-events: auto;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  max-width: 30ch;
  box-shadow: var(--shadow);
}
.bleed__quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  color: var(--paper);
  margin: 0;
  max-width: none;
}
.bleed__quote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--paper);
  opacity: 0.85;
}

/* -------------------------------------------------------------
   12. Repair "index" — contents-page treatment, not pills
   ------------------------------------------------------------- */
.repair-index {
  columns: 2;
  column-gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  max-width: 46rem;
}
.repair-index li {
  break-inside: avoid;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--line-strong);
  max-width: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.repair-index li::before { content: "\2713"; color: var(--pine); font-size: 0.9em; }
@media (max-width: 560px) { .repair-index { columns: 1; } }

/* -------------------------------------------------------------
   13. Spread — generic asymmetric two-column with media
   ------------------------------------------------------------- */
.spread { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 860px) {
  .spread { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .spread--wide-left { grid-template-columns: 1.25fr 0.75fr; }
  .spread--wide-right { grid-template-columns: 0.75fr 1.25fr; }
  .spread--flip > .spread__media { order: 2; }
}
.spread__media { margin: 0; }
.spread__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.spread__media figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* Big pull-quote block (volunteer voice) */
.quote-block { max-width: 24ch; }
.quote-block p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  max-width: none;
}
.quote-block .quote-mark { color: var(--rust); }
.quote-block cite {
  font-style: normal;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------
   14. Closing call to action (pine field, textured)
   ------------------------------------------------------------- */
.closing { background: var(--pine); color: var(--paper); text-align: center; }
.closing h2 {
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: var(--space-3);
}
.closing p { color: var(--paper); margin-inline: auto; }
.closing .button-group { justify-content: center; }
.closing .button--ghost { background: var(--paper); border-color: var(--paper); color: var(--pine-deep); }
.closing .button--ghost:hover { background: #fff; color: var(--pine-deep); }

/* -------------------------------------------------------------
   15. Support columns (editorial, minimal borders)
   ------------------------------------------------------------- */
.support-list { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 760px) { .support-list { grid-template-columns: repeat(3, 1fr); } }
.support-list > div { border-top: 3px solid var(--rust); padding-top: var(--space-3); }
.support-list h3 { margin-bottom: var(--space-2); }

/* -------------------------------------------------------------
   16. Cards & grids (retained for other pages, warmed up)
   ------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0; }
.card__media { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3); }
.card__media img {
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.card__meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust-deep);
  margin-bottom: var(--space-1);
}
.card__foot { margin-top: auto; padding-top: var(--space-3); }

/* News cards, editorial variant (homepage) */
.stories { display: grid; gap: var(--space-5); }
@media (min-width: 820px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story { margin: 0; }
.story img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.story__meta {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rust-deep); margin: var(--space-3) 0 var(--space-1);
}
.story h3 { margin: 0 0 var(--space-2); }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }

/* Legacy steps + pill-list kept so untouched pages still render */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-4); padding-top: var(--space-5);
  max-width: none; box-shadow: var(--shadow-soft);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: calc(-1 * var(--space-3)); left: var(--space-4);
  width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center;
  background: var(--rust); color: var(--ink); font-family: var(--font-display);
  font-weight: 900; border-radius: 50%;
}
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-list li {
  margin: 0; max-width: none; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: var(--space-2) var(--space-4); font-size: 1.02rem;
}

/* -------------------------------------------------------------
   17. CTA band (retained), callouts, notes
   ------------------------------------------------------------- */
.cta-band { background: var(--pine); color: var(--paper); }
.cta-band h2, .cta-band p { color: var(--paper); }
.cta-band a.button--ghost { background: var(--paper); border-color: var(--paper); color: var(--pine-deep); }
.cta-band a.button--ghost:hover { background: #fff; }

.note {
  border-left: 6px solid var(--pine);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-soft);
}
.note--warn { border-left-color: var(--rust); }
.note--review { border-left-color: var(--rust); background: #f4e6d8; font-size: 0.98rem; }
.note > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------
   18. Forms (retained, warmed)
   ------------------------------------------------------------- */
.form { max-width: 40rem; }
.field { margin-bottom: var(--space-4); }
.field > label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.field__hint { display: block; font-size: 0.98rem; color: var(--ink-soft); margin-bottom: var(--space-2); }
.req { color: var(--rust-deep); font-weight: 700; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink-soft); border-radius: var(--radius);
  padding: var(--space-2) var(--space-3); min-height: 50px;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.checkbox { display: flex; align-items: flex-start; gap: var(--space-3); max-width: var(--measure); }
.checkbox input { flex: none; width: 1.6rem; height: 1.6rem; margin-top: 0.15rem; }
.checkbox label { font-weight: 400; }
.field--error input, .field--error select, .field--error textarea {
  border-color: var(--error); background: var(--error-bg);
}
.field-error {
  display: flex; align-items: flex-start; gap: var(--space-1);
  color: var(--error); font-weight: 700; margin-top: var(--space-2);
}
.field-error::before { content: "\26A0"; font-size: 1.1em; }
.form__required-note { font-size: 0.98rem; color: var(--ink-soft); }

/* -------------------------------------------------------------
   19. Inner-page header (retained, editorial)
   ------------------------------------------------------------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: var(--space-7); }
.page-head h1 { margin-bottom: var(--space-3); }
.page-head p { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); margin-bottom: 0; max-width: var(--measure); }

/* -------------------------------------------------------------
   20. Tables (retained)
   ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; min-width: 32rem; }
table.data th, table.data td {
  text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data th { background: var(--paper-2); font-family: var(--font-display); }

/* -------------------------------------------------------------
   21. Footer
   ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #efe7d8; padding-block: var(--space-7); margin-top: 0; }
.site-footer a { color: #efe7d8; text-decoration-color: rgba(239,231,216,0.4); }
.site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.25rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2); margin-top: var(--space-5);
  padding-top: var(--space-4); font-size: 0.95rem; color: #d8ceba;
}
.footer-bottom p { max-width: none; }

/* -------------------------------------------------------------
   22. Utilities
   ------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------
   23. Mobile navigation
   ------------------------------------------------------------- */
@media (max-width: 760px) {
  /* Deterministic header layout: brand | toggle on row 1, nav on row 2 */
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: var(--space-3);
  }
  .brand { min-width: 0; font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { grid-column: 1 / -1; }
  .primary-nav[hidden] { display: none; }
  .primary-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: var(--space-2); }
  .primary-nav a { min-height: 50px; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--rust); }
}
.no-js .primary-nav[hidden] { display: block; }

/* -------------------------------------------------------------
   24. Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .button:hover { transform: none; }
  .hero-ed__media img, .hero-ed__caption { transform: none; }
}

/* =============================================================
   25. Grav theme adjustments (Phase 2 vertical slice)
   Small STRUCTURAL additions required by the CMS implementation.
   No branding or visual refinement — layout/semantics only.
   ============================================================= */

/* Split Content keeps text-first DOM (reading order) for both media sides;
   media_side=left moves the figure to the first column visually. */
@media (min-width: 860px) {
  .spread--media-left > .spread__media { order: -1; }
}

/* Card Grid (text variant) two-column option. */
@media (min-width: 760px) {
  .support-list[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
}

/* CTA lead text colour on the dark "closing"/orange bands — replaces the
   prototype's inline style so the component emits no inline CSS. */
.closing .lead,
.cta-band .lead {
  color: var(--paper);
  max-width: 42ch;
  margin-inline: auto;
}

/* Robustness: Hero/Split with no image collapse to a single readable column
   instead of leaving an empty grid track. */
@media (min-width: 900px) {
  .hero-ed--text-only .hero-ed__inner { grid-template-columns: 1fr; }
}

/* Quote on the blue theme must keep light text for contrast (overrides the
   default navy quote colour). */
.section--pine .quote-block p,
.section--pine .quote-block cite { color: var(--paper); }

/* Safety net for pathologically long single words in a hero heading. */
.hero-ed__title { overflow-wrap: anywhere; }

/* =============================================================
   26. Phase 3 component structures (structural only, no branding)
   ============================================================= */

/* --- Card Grid: icon style --- */
.support-list .c-icon { display: block; color: var(--rust-deep); margin-bottom: var(--space-2); }

/* --- Card Grid: column options --- */
@media (min-width: 760px) {
  .support-list[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .support-list[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px) {
  .stories[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
  .stories[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}

/* --- Card Grid: logos style --- */
.logo-grid {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); align-items: center;
}
@media (min-width: 640px) {
  .logo-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
  .logo-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
.logo-grid__item { display: flex; align-items: center; justify-content: center; padding: var(--space-3); }
.logo-grid__item img { max-height: 64px; width: auto; }

/* --- Section Heading --- */
.section-heading--centre { text-align: center; }
.section-heading--centre .kicker { justify-content: center; }
.section-heading--centre .lead { margin-inline: auto; }

/* --- Rich Text: statement style --- */
.rich-text__body--statement > p:first-of-type { font-size: 1.3rem; color: var(--ink); }

/* --- Checklist (repair-index) options --- */
.repair-index[data-columns="1"] { columns: 1; }
.repair-index--plain li { padding-left: 0; }
.repair-index--plain li::before { display: none; }

/* --- Divider --- */
.divider { padding-block: var(--space-5); }
.divider--large { padding-block: var(--space-7); }
.stitch--plain { height: 1px; opacity: 1; background: var(--line-strong); background-image: none; }

/* --- Callout extra bits --- */
.note__flag {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  font-weight: 700; color: var(--rust-deep); margin: 0 0 var(--space-1);
}
.note__title { margin-bottom: var(--space-1); }

/* --- FAQ (native details/summary) --- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  padding: var(--space-3) 0; display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-3);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--rust-deep); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__a { padding-bottom: var(--space-3); }
.faq__a > :last-child { margin-bottom: 0; }

/* =============================================================
   27. Phase 3 media/data component structures (structural only)
   ============================================================= */

/* --- Feature Media extras --- */
.bleed--tall .bleed__img { height: clamp(420px, 70vh, 720px); }
.bleed__panel--end .bleed__quote { margin-left: auto; }

/* --- Gallery --- */
.gallery {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
  .gallery[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.gallery figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: var(--space-2); }

/* --- Statistics --- */
.stats {
  list-style: none; margin: var(--space-5) 0 0; padding: 0;
  display: grid; gap: var(--space-5); grid-template-columns: 1fr; text-align: center;
}
@media (min-width: 640px) {
  .stats[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
  .stats[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
  .stats[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .stats[data-columns="4"] { grid-template-columns: repeat(4, 1fr); } }
.statistic { display: flex; flex-direction: column-reverse; gap: var(--space-1); }
.statistic__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--pine); }
.statistic__label { color: var(--ink-soft); }
.section--pine .statistic__value, .section--pine .statistic__label { color: var(--paper); }

/* --- Contact Panel --- */
.contact-panel__email { font-size: 1.15rem; }
.contact-panel__venues { list-style: none; padding: 0; margin: 0; }
.contact-panel__venues li { margin-bottom: var(--space-2); }
.contact-panel__venues address { font-style: normal; display: inline; }

/* --- Forms: fieldset reset (replaces per-form inline styles) --- */
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.form legend { font-weight: 700; padding: 0; margin-bottom: var(--space-2); }

/* --- Live forms (Grav Form plugin output) — map plugin markup to the design --- */
.form-field { margin-bottom: var(--space-4); }
.form-label label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.form-label label:empty { display: none; margin: 0; }
.form .required { color: var(--rust-deep); font-weight: 700; }
.form-description { display: block; font-size: 0.98rem; color: var(--ink-soft); margin-top: var(--space-2); }
/* Visible, on-brand custom checkboxes (replaces the pale native control on
   both the single consent box and the multi-select role group). */
.form input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  flex: none; width: 1.6rem; height: 1.6rem; margin: 0;
  border: 2px solid var(--pine); border-radius: 6px;
  background: var(--surface); cursor: pointer;
  display: inline-grid; place-content: center;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.form input[type="checkbox"]::before {
  content: ""; width: 0.9rem; height: 0.9rem; transform: scale(0);
  transition: transform 0.12s ease-in-out; background: var(--paper);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 40% 72%);
}
.form input[type="checkbox"]:checked { background: var(--pine); border-color: var(--pine); }
.form input[type="checkbox"]:checked::before { transform: scale(1); }
.form input[type="checkbox"]:hover { border-color: var(--pine-deep); }
.form input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Consent row: box beside its (non-empty) inline label */
.form-field .form-input-wrapper input[type="checkbox"] { margin-right: var(--space-3); vertical-align: top; }
.form-field .form-input-wrapper label.inline {
  display: inline; font-weight: 400; max-width: var(--measure);
}
/* Multi-checkbox group (Grav `checkboxes` field): a 2-column grid auto-flows
   each box + label onto its OWN row (vertical stack) despite the flat markup. */
.form-field .checkboxes {
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--space-3); align-items: center;
  margin-top: var(--space-2);
}
.form-field .checkboxes label { font-weight: 400; margin: 0; }
.form-block { scroll-margin-top: var(--space-5); }
.form .buttons { margin-top: var(--space-5); }
/* The Form plugin renders the submit as a bare `.button` (no colour modifier),
   so give it the primary treatment + clear hover/active/focus feedback. */
.form .buttons .button,
.form button[type="submit"] {
  background: var(--pine); color: var(--paper); border-color: var(--pine);
  box-shadow: var(--shadow-soft);
}
.form .buttons .button::after,
.form button[type="submit"]::after { content: "\2192"; font-weight: 700; }
.form .buttons .button:hover,
.form button[type="submit"]:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--paper); }
.form .buttons .button:active,
.form button[type="submit"]:active { transform: translateY(1px); box-shadow: none; }
.form .buttons .button:focus-visible,
.form button[type="submit"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Confirmation / error banner shown after submit — made unmistakably a status
   message (icon + strong colour) rather than looking like page content. */
.form .notices {
  display: flex; align-items: flex-start; gap: var(--space-3);
  border: 2px solid var(--pine); border-left-width: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-weight: 600; font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
}
.form .notices::before {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 1.1rem;
}
.form .notices > :last-child { margin-bottom: 0; }
/* Success: green accent + tick (green is used ONLY for this success signal) */
.form .notices.success, .form .notices.green {
  border-color: #1e7a44; background: #eaf6ef; color: #14532d;
}
.form .notices.success::before, .form .notices.green::before {
  background-color: #1e7a44;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
}
/* Error: red accent + cross */
.form .notices.red, .form .notices.error {
  border-color: var(--error); background: var(--error-bg); color: var(--error);
}
.form .notices.red::before, .form .notices.error::before {
  background-color: var(--error);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E");
}
/* Inline field validation errors */
.form-field .form-input-wrapper .form-error,
.form .form-errors { color: var(--error); font-weight: 700; margin-top: var(--space-2); }

/* =============================================================
   28. Phase 3.5 remediation: image credits + form note spacing
   ============================================================= */
.credit { color: var(--ink-soft); font-size: 0.85em; }
.bleed__credit {
  position: absolute; right: var(--space-2); bottom: var(--space-2); margin: 0;
  font-size: 0.78rem; color: var(--paper); background: rgba(20,20,40,0.55);
  padding: 2px 8px; border-radius: 4px;
}
.form__required-note--end { margin-top: var(--space-3); }

/* =============================================================
   29. Review round 1 — alignment & spacing fixes (structural)
   ============================================================= */

/* Fix 2 — CTA text aligns with heading/buttons in the left-aligned
   (orange/cta-band) variant; the centred "closing" variant keeps auto margins. */
.cta-band .lead { margin-inline: 0; }

/* Fix 3 — Quote is not squashed: fills its column in the portrait variant,
   and is more generous when standalone. */
.quote-block { max-width: 40ch; }
.spread .quote-block { max-width: none; }

/* Fix 4 & 7 — tighter vertical rhythm between sections and around the
   next-event strip (was over-generous). */
.section { padding-block: var(--space-6); }
.hero-ed__inner { padding-block: var(--space-7) var(--space-6); }
/* Only overlap the strip upward when it directly follows a photographic hero
   (homepage). On pages where it follows a plain page-header band (e.g. Events),
   the pull-up left a broken vertical gap — keep normal section rhythm there. */
.hero-ed + .section .event-strip { margin-top: calc(-1 * var(--space-6)); }

/* Component footer link (Fix 4) — a "read more" link that sits INSIDE a
   card-grid / checklist instead of becoming its own padded section. */
.component-footer-link { margin-top: var(--space-4); }

/* Fix (review) — Checklist / index: keep heading, intro and list aligned as
   one block (all left-aligned together) and centre that block in the container,
   rather than a wide heading with a narrow list stuck to one side. */
.checklist__block { max-width: 46rem; margin-inline: auto; }
.checklist__block .repair-index { max-width: none; }
