/* =========================================================================
   Oribamise Foundation
   Visual language: adire indigo, Ife brass, aso-oke narrow strip weaving.
   The recurring device is the warp strip. It marks pillars, edges, and rules.
   ========================================================================= */

:root {
  /* Core palette */
  --ink: #101e36;
  --ink-80: rgba(16, 30, 54, 0.8);
  --ink-60: rgba(16, 30, 54, 0.6);
  --ink-40: rgba(16, 30, 54, 0.4);
  --indigo: #1d3461;
  --indigo-mid: #2b4478;
  --indigo-soft: #35538f;
  --indigo-pale: #8fa6cf;
  --raffia: #f4efe3;
  --raffia-deep: #e7dfcd;
  --brass: #b4802b;
  --brass-light: #d9a441;
  --palm: #2c6e55;
  --clayline: #9a3f34;
  --paper: #ffffff;

  /* Pillar warp colors. These encode category, not decoration. */
  --pillar-education: #b4802b;
  --pillar-neurodiversity: #1f7a8c;
  --pillar-health: #9a3f34;
  --pillar-agriculture: #2c6e55;
  --pillar-enterprise: #35538f;
  --pillar-relief: #6b4a8c;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Type scale, a modular fourth trimmed at the ends */
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;
  --t-3xl: 3rem;
  --t-4xl: clamp(2.6rem, 6.2vw, 4.75rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --measure: 66ch;
  --shell: 1180px;
  --radius: 3px;
  --radius-lg: 6px;
}

/* ---------------------------------------------------------------- reset */

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

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

@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;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }

a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 3px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--raffia-deep);
  margin: var(--s-7) 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--raffia);
  padding: var(--s-3) var(--s-4);
  z-index: 200;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- structure */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - 2.5rem, 780px);
  margin-inline: auto;
}

.band { padding-block: var(--s-9); }
.band-tight { padding-block: var(--s-8); }

.band-paper { background: var(--paper); }
.band-raffia { background: var(--raffia); }
.band-ink { background: var(--ink); color: var(--raffia); }
.band-indigo { background: var(--indigo); color: var(--raffia); }

.band-ink h1, .band-ink h2, .band-ink h3,
.band-indigo h1, .band-indigo h2, .band-indigo h3 { color: var(--raffia); }

.band-ink a, .band-indigo a { color: var(--brass-light); }

/* The warp band: the weave motif used as a section divider. */
.warp-rule {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--brass) 0 18px,
      var(--indigo-soft) 18px 28px,
      var(--brass-light) 28px 50px,
      var(--indigo) 50px 62px,
      var(--indigo-pale) 62px 70px);
}

/* ------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--raffia-deep);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 74px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-left: auto;
}

.nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-80);
  text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.nav a.is-current { color: var(--ink); border-bottom-color: var(--brass); }

.nav-tools { display: flex; align-items: center; gap: var(--s-3); margin-left: var(--s-4); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--raffia-deep);
  border-radius: var(--radius);
  padding: var(--s-2) var(--s-3);
  font: inherit;
  font-size: var(--t-sm);
  cursor: pointer;
  margin-left: auto;
}

.announce {
  background: var(--ink);
  color: var(--raffia);
  font-size: var(--t-sm);
  text-align: center;
  padding: var(--s-2) var(--s-4);
}
.announce a { color: var(--brass-light); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--raffia);
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8.5rem);
}

/* The loom: warp strips standing behind the statement. */
.hero-loom {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 5%;
  left: auto;
  width: auto;
  display: flex;
  gap: 12px;
  pointer-events: none;
}

.hero-loom span {
  display: block;
  width: 34px;
  background: var(--indigo-mid);
  transform-origin: bottom;
  animation: warp-rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-loom span:nth-child(1) { background: var(--indigo-soft); animation-delay: 0ms;   width: 20px; }
.hero-loom span:nth-child(2) { background: var(--brass);       animation-delay: 70ms;  width: 46px; }
.hero-loom span:nth-child(3) { background: var(--indigo-mid);  animation-delay: 140ms; width: 24px; }
.hero-loom span:nth-child(4) { background: var(--brass-light); animation-delay: 210ms; width: 34px; }
.hero-loom span:nth-child(5) { background: var(--indigo-soft); animation-delay: 280ms; width: 18px; }
.hero-loom span:nth-child(6) { background: var(--indigo-pale); animation-delay: 350ms; width: 40px; }

/* Weft passes cross the warp so the field reads as cloth rather than bars. */
.hero-loom::before,
.hero-loom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--ink);
  opacity: 0.55;
}
.hero-loom::before { top: 22%; }
.hero-loom::after  { top: 68%; }

@keyframes warp-rise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-loom span { animation: none; opacity: 0.85; }
}

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

.hero-statement {
  font-family: var(--serif);
  font-size: var(--t-4xl);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17ch;
  margin: 0 0 var(--s-5);
  color: var(--raffia);
}

.hero-statement em {
  font-style: italic;
  color: var(--brass-light);
}

.hero-lede {
  font-size: var(--t-md);
  color: var(--indigo-pale);
  max-width: 48ch;
  margin-bottom: var(--s-6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-meta {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(244, 239, 227, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-7);
  max-width: 880px;
}

.hero-meta div { min-width: 132px; flex: 0 1 auto; }

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--raffia);
  line-height: 1;
}

.hero-meta span {
  font-size: var(--t-sm);
  color: var(--indigo-pale);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-light); color: var(--ink); }

.btn-ink { background: var(--ink); color: var(--raffia); }
.btn-ink:hover { background: var(--indigo); color: var(--raffia); }

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

.btn-ghost-light {
  background: transparent;
  color: var(--raffia);
  border-color: rgba(244, 239, 227, 0.4);
}
.btn-ghost-light:hover { border-color: var(--brass-light); color: var(--brass-light); }

.btn-sm { padding: 0.5rem 0.9rem; font-size: var(--t-xs); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- section head */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { color: var(--ink-60); margin: 0; max-width: 54ch; }
.band-ink .section-head p, .band-indigo .section-head p { color: var(--indigo-pale); }

/* ------------------------------------------------------------- grids */

.grid { display: grid; gap: var(--s-5); }
.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)); }

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: start;
}

.split-even { grid-template-columns: 1fr 1fr; }

/* Used where the wide column comes first, such as a form with a sidebar. */
.split-lead { grid-template-columns: 7fr 5fr; }

/* ------------------------------------------------------- program cards */

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--raffia-deep);
  padding: var(--s-5);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 140ms ease;
}

.program-card:hover { border-color: var(--ink); }

.program-card h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.program-card p { font-size: var(--t-sm); color: var(--ink-60); margin-bottom: var(--s-4); }

.program-card .card-foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--raffia-deep);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  font-size: var(--t-xs);
  color: var(--ink-60);
}

/* The region can run long. It wraps; the count never does. */
.program-card .card-foot > span:first-child { min-width: 0; }
.program-card .card-foot > span:last-child { flex: 0 0 auto; white-space: nowrap; }

.pillar-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s-3);
}

.program-card[data-pillar="education"] .pillar-tag { color: var(--pillar-education); }
.program-card[data-pillar="neurodiversity"] .pillar-tag { color: var(--pillar-neurodiversity); }
.program-card[data-pillar="health"] .pillar-tag { color: var(--pillar-health); }
.program-card[data-pillar="agriculture"] .pillar-tag { color: var(--pillar-agriculture); }
.program-card[data-pillar="enterprise"] .pillar-tag { color: var(--pillar-enterprise); }
.program-card[data-pillar="relief"] .pillar-tag { color: var(--pillar-relief); }

.progress {
  height: 4px;
  background: var(--raffia-deep);
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.progress span { display: block; height: 100%; background: var(--brass); }

/* --------------------------------------------------------- number blocks */

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 239, 227, 0.18);
  border: 1px solid rgba(244, 239, 227, 0.18);
}

.figure {
  background: var(--ink);
  padding: var(--s-5);
}

.band-raffia .figures { background: var(--raffia-deep); border-color: var(--raffia-deep); }
.band-raffia .figure { background: var(--raffia); }

.figure strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-3xl);
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--s-2);
}

.band-ink .figure strong { color: var(--brass-light); }
.band-raffia .figure strong { color: var(--indigo); }

.figure p {
  font-size: var(--t-sm);
  margin: 0;
  color: var(--indigo-pale);
}
.band-raffia .figure p { color: var(--ink-60); }

.figure small {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  color: rgba(143, 166, 207, 0.75);
}
.band-raffia .figure small { color: var(--ink-40); }

/* -------------------------------------------------------------- stories */

.story-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-top: 2px solid var(--ink);
  padding-top: var(--s-4);
}

.story-card:hover h3 { color: var(--brass); }

.story-card .story-meta {
  font-size: var(--t-xs);
  color: var(--ink-60);
  margin-bottom: var(--s-3);
}

.story-card h3 { font-size: var(--t-md); margin-bottom: var(--s-3); }
.story-card p { font-size: var(--t-sm); color: var(--ink-60); }

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: var(--s-4);
}

/* ---------------------------------------------------------------- people */

.person {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-6);
  align-items: start;
  padding-block: var(--s-6);
  border-top: 1px solid var(--raffia-deep);
}

.person:first-of-type { border-top: 0; padding-top: 0; }

.person-portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: var(--raffia-deep);
}

.person-placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg,
      var(--indigo) 0 14px,
      var(--indigo-mid) 14px 22px,
      var(--brass) 22px 34px,
      var(--indigo-soft) 34px 42px);
  color: var(--raffia);
  font-family: var(--serif);
  font-size: var(--t-2xl);
}

.person h3 { margin-bottom: var(--s-1); }

.person .person-role {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--brass);
  margin-bottom: var(--s-4);
}

.person-links { display: flex; gap: var(--s-4); font-size: var(--t-sm); }

/* ------------------------------------------------------------ quote block */

.quote {
  max-width: 62ch;
  padding-left: var(--s-6);
}

/* Hanging opening quote. The mark sits in the margin so the text edge stays
   flush with the citation below it. */
.quote blockquote { text-indent: calc(var(--s-6) * -1); }

.quote blockquote::before {
  content: "\201C";
  color: var(--brass);
  font-family: var(--serif);
}

.quote blockquote {
  margin: 0 0 var(--s-4);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.34;
}

.quote cite {
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--ink-60);
}
.band-ink .quote cite, .band-indigo .quote cite { color: var(--indigo-pale); }

/* ------------------------------------------------------------------ prose */

.prose { max-width: var(--measure); font-size: var(--t-md); line-height: 1.72; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-7); }
.prose h3 { font-size: var(--t-lg); margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: var(--s-4); max-width: var(--measure); }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote {
  margin: var(--s-6) 0;
  padding-left: var(--s-5);
  border-left: 1px solid var(--ink-40);
  font-family: var(--serif);
  font-style: italic;
}
.prose img { margin-block: var(--s-5); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-5); font-size: var(--t-sm); }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--raffia-deep); }

/* ------------------------------------------------------------- page head */

.page-head {
  background: var(--ink);
  color: var(--raffia);
  padding-block: var(--s-8) var(--s-7);
}

.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; }
.page-head p { color: var(--indigo-pale); font-size: var(--t-md); max-width: 58ch; }

.crumb {
  font-size: var(--t-sm);
  color: var(--indigo-pale);
  margin-bottom: var(--s-4);
}
.crumb a { color: var(--indigo-pale); }
.crumb a:hover { color: var(--brass-light); }

/* ----------------------------------------------------------------- forms */

.field { margin-bottom: var(--s-5); }

.field label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: var(--s-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--t-base);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ink-40);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

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

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo);
  outline: 3px solid rgba(180, 128, 43, 0.35);
  outline-offset: 0;
}

.field .hint { font-size: var(--t-xs); color: var(--ink-60); margin-top: var(--s-2); }
.field .error { font-size: var(--t-xs); color: var(--clayline); margin-top: var(--s-2); font-weight: 600; }

.field-check { display: flex; gap: var(--s-3); align-items: flex-start; }
.field-check input { margin-top: 0.3rem; }
.field-check label { font-weight: 500; margin: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.amount-choices { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-4); }

.amount-choice {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink-40);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
}
.amount-choice:hover, .amount-choice.is-active {
  border-color: var(--brass);
  background: var(--brass);
  color: #fff;
}

.form-panel {
  background: var(--paper);
  border: 1px solid var(--raffia-deep);
  padding: var(--s-6);
}

/* ----------------------------------------------------------------- flash */

.flash-stack { margin-block: var(--s-4); }

.flash {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--indigo);
  background: var(--raffia);
  font-size: var(--t-sm);
  margin-bottom: var(--s-3);
}

.flash-success { border-color: var(--palm); }
.flash-error { border-color: var(--clayline); }
.flash-info { border-color: var(--indigo-soft); }

.flash button {
  background: none; border: 0; cursor: pointer;
  font-size: var(--t-md); line-height: 1; color: var(--ink-60);
}

/* ------------------------------------------------------------ filter bar */

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }

.filters {
  border-bottom: 1px solid var(--raffia-deep);
  gap: var(--s-5);
}

.filters a {
  font-size: var(--t-sm);
  padding: 0 0 var(--s-3);
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-60);
}

.filters a:hover { color: var(--ink); }
.filters a.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}

.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.gallery-item figcaption {
  font-size: var(--t-xs);
  color: var(--ink-60);
  padding-top: var(--s-2);
}

/* -------------------------------------------------------------- partners */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--raffia-deep);
  border: 1px solid var(--raffia-deep);
}

.partner-cell { background: var(--paper); padding: var(--s-5); min-height: 150px; }
.partner-cell img { max-height: 44px; width: auto; margin-bottom: var(--s-3); }
.partner-cell h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.partner-cell p { font-size: var(--t-xs); color: var(--ink-60); margin: 0; }

/* ---------------------------------------------------------------- events */

.event-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--s-5);
  align-items: center;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--raffia-deep);
}

.event-date {
  font-family: var(--serif);
  text-align: center;
  border: 1px solid var(--ink);
  padding: var(--s-3);
}
.event-date strong { display: block; font-size: var(--t-xl); line-height: 1; }
.event-date span { font-size: var(--t-xs); font-family: var(--sans); }

.event-row h3 { margin-bottom: var(--s-1); font-size: var(--t-md); }
.event-row p { font-size: var(--t-sm); color: var(--ink-60); margin: 0; }

/* ------------------------------------------------------------- pagination */

.pagination { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-7); }

.pagination a, .pagination span {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--raffia-deep);
  text-decoration: none;
  font-size: var(--t-sm);
  color: var(--ink-60);
}
.pagination a:hover { border-color: var(--brass); color: var(--brass); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: var(--raffia); }

/* --------------------------------------------------------------- footer */

.footer { background: var(--ink); color: var(--raffia); padding-block: var(--s-8) var(--s-6); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

.footer h4 {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brass-light);
  margin-bottom: var(--s-4);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--s-2); }
.footer a { color: rgba(244, 239, 227, 0.78); text-decoration: none; font-size: var(--t-sm); }
.footer a:hover { color: var(--brass-light); }
.footer p { color: rgba(244, 239, 227, 0.6); font-size: var(--t-sm); }
.footer img.footer-logo { height: 46px; margin-bottom: var(--s-4); }

.footer-form { display: flex; gap: var(--s-2); margin-top: var(--s-3); }

.footer-form input {
  flex: 1;
  font: inherit;
  font-size: var(--t-sm);
  padding: 0.65rem 0.8rem;
  background: rgba(244, 239, 227, 0.08);
  border: 1px solid rgba(244, 239, 227, 0.28);
  border-radius: var(--radius);
  color: var(--raffia);
}
.footer-form input::placeholder { color: rgba(244, 239, 227, 0.45); }

.footer-base {
  border-top: 1px solid rgba(244, 239, 227, 0.14);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--t-xs);
  color: rgba(244, 239, 227, 0.55);
}

.footer-base ul { display: flex; gap: var(--s-4); }

/* ------------------------------------------------------------- call band */

.cta-band {
  background: var(--brass);
  color: #fff;
  padding-block: var(--s-8);
}

.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin-bottom: var(--s-5); }
.cta-band .btn-ink { background: var(--ink); }

/* ----------------------------------------------------------------- error */

.error-page { text-align: center; padding-block: var(--s-9); }
.error-page .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 9rem);
  color: var(--brass);
  line-height: 1;
  margin-bottom: var(--s-4);
}
.error-page p { margin-inline: auto; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-even, .split-lead { grid-template-columns: 1fr; gap: var(--s-6); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-loom { opacity: 0.6; gap: 8px; }
  .hero-loom span { width: 18px !important; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--raffia-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) 0; border-bottom: 1px solid var(--raffia-deep); }
  .nav-tools { margin: var(--s-4) 0 0; }
  .nav-tools .btn { width: 100%; }
  .nav-toggle { display: inline-block; }
  .masthead-inner { position: relative; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-portrait, .person-placeholder { max-width: 200px; }
  .field-row { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 90px 1fr; }
  .event-row .btn { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-loom { display: none; }
  .band { padding-block: var(--s-7); }
}

@media print {
  .masthead, .footer, .cta-band, .hero-loom { display: none; }
  body { color: #000; }
}
