:root {
  --ink: #121c15;
  --text: #121c15;
  --paper: #f3faf5;
  --surface: #ffffff;
  --primary: #293E2F;
  --on-primary: #e8f2eb;
  --action: #46a464;
  --action-hover: #31b95c;
  --on-action: #121c15;
  --line: #cce3d3;
  --dark: #0c100d;
  --on-dark: #e8f2eb;
  --quiet: #8fae98;
  --hero: #161c18;
  --error: #a53a29;
  --focus: #004616;
  --focus-band: #ffffff;
  --veil: rgb(22 28 24 / 0.64);
  --link: #034f1b;
  --t-1: 0.875rem;
  --t0: 1rem;
  --t1: 1.25rem;
  --t2: 1.5625rem;
  --t3: 1.9375rem;
  --t4: 2.4375rem;
  --t5: 2.8125rem;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.75rem;
  --s6: 2.75rem;
  --s7: 4.5rem;
  --s8: 7.25rem;
  --s9: 11.75rem;
  --r-control: 0.25rem;
  --r-field: 0.5rem;
  --r-surface: 0.75rem;
  --r-modal: 1rem;
  --hairline: 1px;
  --emphasis: 2px;
  --ring: 3px;
  --ring-offset: 2px;
  --ring-band: 2px;
  --feedback: 120ms;
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --body-font: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --voice-font: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f2eb;
    --text: #e8f2eb;
    --paper: #0c100d;
    --surface: #161c18;
    --primary: #293E2F;
    --link: #46a464;
    --line: #27332b;
    --dark: #161c18;
    --error: #d48b7f;
    --focus: #00ef4c;
    --focus-band: #0c100d;
  }
}

/* THE SITE'S STYLESHEET. Every size is a step of the house ladder and every gap a step of the spacing axis, both in rem so
   a reader who sets larger text gets it; every colour is a token of the skin, written above this line from the store's theme
   record - its dark mode too, from the record's dark_mode_* fields - and none is written here by hand, so a skin that leaves one
   out writes nothing. Nothing here is styled per page.

   The whole UDD applies, as the Founder ruled on 2026-11-15 (ANCHOR1 (a), ui-udd decision-v0:anchor-s-live-site-takes-the-
   whole-udd-stylesheet-sizes-that-follow-the-reader, after the audit followup-v0:anchor-s-site-against-the-udd-audited-
   2026-11-15-its-words-all-clear-their): sizes that follow the reader, a dark mode in Anchor's own hues, a white band inside
   the amber focus ring so it reads on the green header, the motion table's press (animation-v0:button), and sections, not
   cards, for what leads nowhere (decision-v0:the-basis-card-is-one-entity-with-one-destination-panel-and-section-are-
   distinct). Its colours are the house palette's at its own green and its words the reader's own system font, BASE1 (c)
   (ui-udd decision-v0:anchor-s-live-site-takes-the-house-s-rules-with-its-own-green-as-the-one-number), all in the theme record. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Poppins-600.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/PTSerif-400-italic.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  /* THE TYPE LADDER (--t-1 to --t5) and THE SPACING SCALE (--s1 to --s9) are written above this line by the builder: the
     ladder from the engine's ruled scale, the spacing from the house scale SPACE1 ruled (a 4 px quantum grown by the golden
     ratio), both in rem so they grow with the reader's text. A control's own size is not a gap and never borrows a step.
     THE CORNER RADII (--r-control, --r-field, --r-surface, --r-modal), THE STROKES (--hairline, --emphasis, --ring,
     --ring-offset, --ring-band) and THE MOTION (--feedback, --ease-out-strong) are written there too, from the skin's named
     numbers. A pill's corner is half its height, a formula here, never a number. */
  --glyph: 1.5rem;
  --tile: 4rem;
  --tile-glyph: 2rem;
  /* THE TOUCH MINIMUM is a finger, not a word: it stays in px. */
  --touch: 44px;
  --measure: 65ch;
  --page: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s4); background: var(--dark); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--t0)/1.5 var(--body-font), system-ui, sans-serif;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h2 { font-size: var(--t3); }
h3 { font-size: var(--t1); }
p + p { margin-top: var(--s4); }
a { color: var(--link); text-underline-offset: 2px; }

/* FOCUS: amber, static, outside the element's edge, with a white band inside it so it reads on any colour beneath. */
:focus-visible { outline: var(--ring) solid var(--focus); outline-offset: var(--ring-offset); box-shadow: 0 0 0 var(--ring-band) var(--focus-band); }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 2;
  padding: var(--s3) var(--s4); background: var(--surface); color: var(--ink); border-radius: var(--r-surface);
}
.skip:focus { top: var(--s4); }

.top {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2) var(--s7);
  padding: var(--s3) var(--s4);
  background: var(--primary);
}
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--primary); }
.top .brand { display: block; line-height: 0; border-radius: var(--r-control); }
.top .brand img { width: 9.375rem; height: auto; }
.top nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s1); }
.top nav a {
  display: flex; align-items: center; min-height: var(--touch); padding: 0 var(--s3);
  color: var(--on-primary); font-weight: 500; font-size: var(--t-1); text-decoration: none; border-radius: var(--r-control);
  white-space: nowrap;
}
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: var(--emphasis); text-underline-offset: 6px; }

.hero { position: relative; display: grid; min-height: 17.5rem; background: var(--hero); color: var(--on-dark); isolation: isolate; }
.hero.home { min-height: 26.25rem; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* The veil is the skin's: the builder fails where it does not hold the hero's words at 4.5:1 over a pure white patch of photo. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--veil); }
.hero .words { align-self: center; justify-self: center; max-width: var(--page); padding: var(--s6) var(--s4); text-align: center; }
.hero h1 { color: var(--on-dark); font-size: var(--t4); }
.hero p { margin-top: var(--s3); font: italic 400 var(--t1)/1.4 var(--voice-font), serif; }

.band { max-width: var(--page); margin-inline: auto; padding: var(--s7) var(--s4); }
.band + .band { padding-top: 0; }
.kicker { margin-bottom: var(--s2); color: var(--link); font-size: var(--t-1); font-weight: 500; }
.words-column > h2 + p, .words-column > h2 + div { margin-top: var(--s4); }

.split { display: grid; gap: var(--s6); align-items: center; }
.split .side img, .split .side iframe { width: 100%; border-radius: var(--r-surface); }
.split .side img { aspect-ratio: 3 / 2; object-fit: cover; }
.split .side iframe { display: block; aspect-ratio: 4 / 3; border: var(--hairline) solid var(--line); background: var(--surface); }

.text { max-width: var(--measure); margin-inline: auto; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--touch); margin-top: var(--s5); padding: 0 var(--s5);
  background: var(--action); color: var(--on-action); font: 500 var(--t0)/1.2 var(--body-font), system-ui, sans-serif; text-decoration: none;
  border: 0; border-radius: calc(var(--touch) / 2); cursor: pointer;
}
.button[aria-busy="true"] { opacity: 0.75; cursor: progress; }

.gallery h2, .centred { text-align: center; }
.gallery .grid { display: grid; gap: var(--s4); margin-top: var(--s5); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-surface); }

/* SECTIONS, NOT CARDS: each names no destination, so each is a labelled group set off by a rule and by space. */
.cards .grid { display: grid; gap: var(--s6) var(--s7); margin-top: var(--s6); }
.card { padding: var(--s4) 0 0; border-top: var(--hairline) solid var(--line); }
.card h3 + p { margin-top: var(--s2); }

.accordion details { border-top: var(--hairline) solid var(--line); }
.accordion details:last-of-type { border-bottom: var(--hairline) solid var(--line); }
.accordion h2 { margin-bottom: var(--s5); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: var(--touch); padding: var(--s3) 0; color: var(--ink); font-weight: 500; cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; font-size: var(--t1); line-height: 1; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion .answer { padding-bottom: var(--s4); }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s5); }
.links a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--s5);
  color: var(--ink); font-weight: 500; text-decoration: none;
  background: var(--surface); border: var(--hairline) solid var(--line); border-radius: calc(var(--touch) / 2);
}

.glyph { width: var(--glyph); height: var(--glyph); fill: currentColor; }
.social { position: relative; }
.social .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.links .social {
  justify-content: center; width: var(--tile); height: var(--tile); padding: 0;
  color: var(--on-primary); background: var(--primary); border: 0; border-radius: var(--r-surface);
}
.links .social .glyph { width: var(--tile-glyph); height: var(--tile-glyph); }

.giving .rows { margin-top: var(--s5); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--r-surface); }
.giving .row { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s3); align-items: center; padding: var(--s3) var(--s4); }
.giving .row + .row { border-top: var(--hairline) solid var(--line); }
.giving dt { grid-column: 1; color: var(--text); font-size: var(--t-1); }
.giving dd { grid-column: 1; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.giving button {
  grid-column: 2; grid-row: 1 / span 2; min-width: 6rem; min-height: var(--touch); padding: 0 var(--s3);
  background: transparent; color: var(--link); font: 500 var(--t-1)/1.2 var(--body-font), system-ui, sans-serif;
  border: var(--hairline) solid var(--link); border-radius: calc(var(--touch) / 2); cursor: pointer;
}

.contact { max-width: 30rem; margin-inline: auto; }
.contact > p { margin-top: var(--s3); }
.contact form { margin-top: var(--s5); }
.field { margin-top: var(--s4); }
.field label { display: block; margin-bottom: var(--s1); color: var(--ink); font-weight: 500; }
.field .optional { color: var(--text); font-size: var(--t-1); font-weight: 400; }
.field input, .field textarea {
  display: block; width: 100%; min-height: var(--touch); padding: var(--s2) var(--s3);
  background: var(--surface); color: var(--ink); font: 400 var(--t0)/1.5 var(--body-font), system-ui, sans-serif;
  border: var(--hairline) solid var(--text); border-radius: var(--r-field);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field [aria-invalid="true"] { border: var(--emphasis) solid var(--error); }
.problem { margin-top: var(--s1); color: var(--error); font-size: var(--t-1); }
.problem[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .button { width: 100%; }
.status { margin-top: var(--s3); }
.status.failed { color: var(--error); }
.sent { margin-top: var(--s5); padding: var(--s5); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--r-surface); }
.sent:focus { outline: none; }
.sent h3 + p { margin-top: var(--s2); }
/* UNDER THE FORM, what happens to a message: a step down the ladder, as a field's "optional" is, so it reads as a note on
   the form rather than more of the page's words. */
.contact .under { font-size: var(--t-1); }

.foot { margin-top: var(--s7); padding: var(--s6) var(--s4); background: var(--dark); color: var(--on-dark); text-align: center; font-size: var(--t-1); }
.foot a { color: var(--on-dark); }
.foot .when { font-size: var(--t0); font-weight: 600; }
.foot .when + .where { margin-top: var(--s1); }
.foot .follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s1); margin: var(--s4) 0; }
.foot .follow a { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--s3); }
.foot .follow .social { justify-content: center; min-width: var(--touch); padding: 0; }
.foot .quiet { color: var(--quiet); font-size: var(--t-1); }

@media (hover: hover) {
  .button:hover { background: var(--action-hover); }
  .links a:hover, .giving button:hover { background: var(--paper); }
  .links .social:hover { background: var(--ink); color: var(--paper); }
  .foot .follow .social:hover { color: var(--quiet); }
  .top nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .field input:hover, .field textarea:hover { border-color: var(--ink); }
}

/* WIDTH DECIDES THE LAYOUT, and only width. 45rem is 720 px at the default size. */
@media (min-width: 45rem) {
  .top { padding-inline: var(--s6); }
  .top .brand img { width: 11.25rem; }
  .top nav a { font-size: var(--t0); }
  .hero { min-height: 22.5rem; }
  .hero.home { min-height: 35rem; }
  .hero h1 { font-size: var(--t5); }
  .band { padding: var(--s8) var(--s6); }
  h2 { font-size: var(--t4); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .split.flip .side { order: -1; }
  .gallery .grid { grid-template-columns: 1fr 1fr; }
  .cards .grid { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
}

/* THE PRESS, as the motion table's button: a transform on its strong ease-out. */
@media (prefers-reduced-motion: no-preference) {
  .button, .links a, .giving button { transition: transform var(--feedback) var(--ease-out-strong); }
  .button:active, .links a:active, .giving button:active { transform: scale(0.97); }
}
/* Under reduced motion, opacity only. */
@media (prefers-reduced-motion: reduce) {
  .button, .links a, .giving button { transition: opacity var(--feedback) var(--ease-out-strong); }
  .button:active, .links a:active, .giving button:active { opacity: 0.8; }
}
