/* ============================================================
   MAABPsi — Metro Atlanta Chapter, Association of Black Psychologists
   Design language: printed program / movement poster. Warm paper,
   bold pan-African color blocks, ruled borders, sharp edges.
   Bricolage Grotesque display + Archivo body.
   ============================================================ */

/* Self-hosted fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #FBF8F0;
  --paper-warm: #F4EEDF;
  --ink: #161310;
  --ink-soft: #514A40;
  --red: #C03323;
  --red-deep: #8E2318;
  --green: #1D6B44;
  --green-deep: #124A2E;
  --peach: #E58A5B;
  --peach-soft: #F3C9AB;
  --oxblood: #401009;
  --rule: 2px solid var(--ink);
  --hairline: 1px solid rgba(22, 19, 16, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Archivo", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Links inside running text are always visibly underlined (a11y) */
p a, li a, .meta-line a, .stat-src a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* Highlighted word in headlines: painted underline sweep */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -0.08em; right: -0.08em;
  bottom: 0.04em; height: 0.28em; z-index: -1;
  transform: skewX(-8deg);
}
.hl-red::after { background: var(--red); opacity: 0.85; }
.hl-green::after { background: var(--green); opacity: 0.8; }
.hl-peach::after { background: var(--peach); }
.accent-red { color: var(--red); }
.accent-green { color: var(--green); }
.accent-peach { color: var(--peach); }

/* ---------- Tricolor band ---------- */
.band {
  height: 8px;
  background: linear-gradient(90deg,
    var(--red) 0 33.3%, var(--green) 33.3% 66.6%, var(--peach) 66.6% 100%);
}

/* ---------- Nav: ruled top bar ---------- */
.nav-shell { position: sticky; top: 0; z-index: 100; }
.nav-shell::before {
  content: ""; display: block; height: 8px;
  background: linear-gradient(90deg,
    var(--red) 0 33.3%, var(--green) 33.3% 66.6%, var(--peach) 66.6% 100%);
}
.nav {
  background: var(--paper);
  border-bottom: var(--rule);
  display: flex; align-items: center; gap: 1.8rem;
  padding: 0.8rem clamp(1.1rem, 4vw, 2.5rem);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; margin-right: auto; min-width: 0;
}
.nav-brand img { width: 40px; height: auto; }
.nav-brand .nb-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 1.05rem; letter-spacing: 0.005em;
  white-space: nowrap; line-height: 1.1;
}
.nav-brand .nb-sub {
  display: block; font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  text-decoration: none; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink);
  border-bottom: 3px solid transparent; padding: 0.25rem 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover { border-bottom-color: var(--peach); }
.nav-links a.active { border-bottom-color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--red); color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.7rem 1.3rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn .btn-ic { font-size: 1rem; line-height: 1; }
.btn.btn-red { background: var(--red); }
.btn.btn-green { background: var(--green); }
.btn.btn-light { background: var(--paper); color: var(--ink); }
.btn.btn-peach { background: var(--peach); color: var(--ink); }

/* Hamburger */
.burger {
  display: none;
  width: 2.7rem; height: 2.7rem; border-radius: 0;
  background: var(--ink); border: 2px solid var(--ink); cursor: pointer;
  position: relative; flex-shrink: 0;
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 1.1rem; height: 2px; background: var(--paper);
  transform: translate(-50%, calc(-50% - 4px));
  transition: transform 0.4s var(--ease);
}
.burger span:last-child { transform: translate(-50%, calc(-50% + 4px)); }
.burger.open span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.burger.open span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--paper);
  display: flex; flex-direction: column;
  justify-content: center; padding: 0 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  color: var(--ink); text-decoration: none;
  padding: 0.5rem 0; border-bottom: var(--hairline);
  transform: translateY(1.6rem); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.24s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.28s; }

/* ---------- Eyebrow: square archival tag ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 0;
  padding: 0.3rem 0.8rem;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--red); }
.eyebrow.on-dark {
  background: transparent; border-color: rgba(251,248,240,0.5);
  color: var(--paper);
}
.eyebrow.on-dark .dot { background: var(--peach); }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 48rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 1.1rem 0 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vh, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: var(--rule);
  position: relative;
  background: var(--paper);
}
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1.masthead {
  font-size: clamp(3rem, 8.2vw, 6.4rem);
  margin: 1.4rem 0 0;
  max-width: none;
  letter-spacing: -0.028em;
}
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-seal {
  display: flex; justify-content: center; align-items: center;
  border-left: var(--rule); padding-left: clamp(1.5rem, 3vw, 3rem);
  align-self: stretch;
}
.seal-caption {
  margin-top: 1.1rem; padding-top: 0.9rem; border-top: var(--rule);
  font-size: 0.64rem; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 700; color: var(--ink);
}

/* ---------- Lineage strip ---------- */
.lineage {
  background: var(--oxblood); color: var(--paper);
  border-bottom: var(--rule);
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
}
.lineage-inner {
  display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3rem);
  flex-wrap: wrap; justify-content: space-between;
}
.lineage p {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.3; max-width: 46rem;
}
.lineage .tag {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--peach-soft); font-weight: 700; display: block; margin-bottom: 0.6rem;
}

/* ---------- Cards ---------- */
.shell { height: 100%; }
.core {
  background: #FFFDF7;
  border: var(--rule); border-radius: 0;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease);
}

.core h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.core p { color: var(--ink-soft); font-size: 0.95rem; }
.core .glyph {
  width: 2.6rem; height: 2.6rem; border: var(--rule); border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1.1rem;
  background: var(--peach-soft); color: var(--ink);
}
.core.on-green { background: var(--green); }
.core.on-green h3 { color: var(--paper); }
.core.on-green p { color: rgba(251,248,240,0.88); }
.core.on-red { background: var(--red); }
.core.on-red h3 { color: var(--paper); }
.core.on-red p { color: rgba(251,248,240,0.9); }
.core.on-ink { background: var(--oxblood); }
.core.on-ink h3 { color: var(--paper); }
.core.on-ink p { color: rgba(251,248,240,0.82); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.3rem; }
.b-7 { grid-column: span 7; } .b-5 { grid-column: span 5; }
.b-8 { grid-column: span 8; } .b-4 { grid-column: span 4; }
.b-6 { grid-column: span 6; } .b-12 { grid-column: span 12; }

/* ---------- Stats ---------- */
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 4.2rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
}
.stat-label { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.6rem; }
.stat-src { font-size: 0.72rem; color: var(--ink-soft); opacity: 0.75; margin-top: 0.7rem; }
.stat-src a { color: inherit; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 1.1rem 0 1.2rem; }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.5rem; top: 0.4rem; bottom: 0.4rem;
  width: 2px; background: var(--ink);
}
.tl-item { position: relative; padding: 0 0 2.2rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 1.05rem; height: 1.05rem;
  background: var(--peach); border: var(--rule);
}
.tl-item:nth-child(odd)::before { background: var(--red); }
.tl-item:nth-child(3n)::before { background: var(--green); }
.tl-year {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.4rem; font-weight: 800;
}
.tl-item p { color: var(--ink-soft); font-size: 0.95rem; max-width: 38rem; }

/* ---------- List rows ---------- */
.rows { border-top: var(--rule); }
.row {
  display: grid; grid-template-columns: 4.5rem minmax(9rem, 0.72fr) 2.28fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem 0; border-bottom: var(--hairline);
  align-items: baseline;
}
.row .r-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem; color: var(--red); font-weight: 800;
}
.row h3 { font-size: 1.22rem; }
.row p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Resource cards ---------- */
.res-link { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.res-link .core { gap: 0.4rem; }
.res-tag {
  align-self: flex-start;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--paper); background: var(--green);
  border: 2px solid var(--ink); border-radius: 0;
  padding: 0.18rem 0.55rem; margin-bottom: 0.7rem;
}
.res-arrow { margin-top: auto; padding-top: 1rem; font-size: 0.88rem; font-weight: 700; color: var(--red); }

/* ---------- Crisis banner ---------- */
.crisis {
  background: var(--red); color: #FDF6EC;
  border: var(--rule); border-radius: 0;
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.crisis h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 0.6rem; }
.crisis p { max-width: 44rem; }
.crisis .crisis-lines { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.crisis .cl b {
  display: block; font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 1.8rem;
}
.crisis .cl span { font-size: 0.84rem; color: #FFF3E4; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--green);
  border: var(--rule);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4.2rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  text-align: left;
}
.cta-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 33.3%, var(--peach) 33.3% 66.6%, var(--paper) 66.6% 100%);
}
.cta-panel h2 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin: 1.2rem 0 1rem; max-width: 22ch; }
.cta-panel p { color: rgba(251,248,240,0.85); max-width: 46rem; margin: 0 0 2rem; }
.cta-panel .btn { background: var(--peach); color: var(--ink); }
.cta-panel.cta-oxblood { background: var(--oxblood); }
.cta-panel.cta-oxblood::before {
  background: linear-gradient(90deg,
    var(--red) 0 33.3%, var(--green) 33.3% 66.6%, var(--peach) 66.6% 100%);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: var(--paper);
  border-top: var(--rule);
  padding: 0 0 2.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
footer::before {
  content: ""; display: block; height: 8px; margin-bottom: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(90deg,
    var(--red) 0 33.3%, var(--green) 33.3% 66.6%, var(--peach) 66.6% 100%);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem;
}
footer h4 {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 1.1rem; font-weight: 700;
}
footer a { color: rgba(251,248,240,0.85); text-decoration: none; transition: color 0.3s var(--ease); }
footer a:hover { color: var(--peach); }
footer li a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
footer li { list-style: none; margin-bottom: 0.55rem; font-size: 0.92rem; }
.foot-brand img { width: 52px; margin-bottom: 1rem; filter: brightness(0) invert(0.95); opacity: 0.95; }
.foot-brand p { color: rgba(251,248,240,0.72); font-size: 0.9rem; max-width: 22rem; }
.foot-brand .fb-name {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.3rem; margin-bottom: 0.6rem; color: var(--paper);
}
.foot-note {
  border-top: 1px solid rgba(251,248,240,0.18);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(251,248,240,0.55);
}
.foot-disclaimer { font-size: 0.78rem; color: rgba(251,248,240,0.55); max-width: 60rem; margin-bottom: 1.6rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: var(--rule);
  background: var(--paper);
}
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin: 1.3rem 0 1.2rem; max-width: 18ch; }
.page-hero .lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 42rem; }

/* ---------- Reveal on scroll (gentle, early, GPU-only) ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.1s; }
.reveal-d3 { transition-delay: 0.15s; }
.no-observer .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Peach mark ---------- */
.peach-mark { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.14em; }

/* ---------- Detail / meta ---------- */
.meta-line { font-size: 0.8rem; color: var(--ink-soft); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.pill-list span {
  border: 2px solid var(--ink); border-radius: 0;
  padding: 0.3rem 0.8rem; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--paper-warm);
}

table.dues { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.dues th, table.dues td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: var(--hairline); }
table.dues th { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
table.dues td:last-child { font-weight: 700; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bento .b-7, .bento .b-5, .bento .b-8, .bento .b-4, .bento .b-6 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-seal { justify-content: flex-start; }
  .seal-plain img { width: 150px; }
  .hero-seal { border-left: none; padding-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.3rem 0; }
  section { padding: 3.2rem 0; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-brand .nb-name { font-size: 0.92rem; }
  .crisis, .cta-panel { box-shadow: 5px 5px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Archive figure ---------- */
.archive-figure { margin: 0; }
.archive-figure img { border: var(--rule); box-shadow: 8px 8px 0 var(--peach-soft); }
.archive-figure figcaption {
  margin-top: 1rem; font-size: 0.8rem; color: var(--ink-soft);
  border-left: 3px solid var(--peach); padding-left: 0.8rem;
}

/* ---------- Paper grain ---------- */
body::after {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 90; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Folio section labels ---------- */
.folio {
  display: block;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red);
}
.folio-dark { color: var(--peach-soft); }

/* ---------- Unframed hero seal ---------- */
.seal-plain { text-align: center; }
.seal-plain img { width: clamp(200px, 24vw, 300px); margin: 0 auto; }
.seal-plain .seal-caption {
  margin-top: 0.9rem; display: inline-block;
  border-top: var(--rule); padding-top: 0.7rem;
  font-size: 0.64rem; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 700;
}

/* ---------- Stat stack (bordered, internally divided) ---------- */
.stat-stack { border: var(--rule); background: #FFFDF7; }
.stat-stack > div { padding: clamp(1.3rem, 2.2vw, 1.8rem); }
.stat-stack > div + div { border-top: var(--rule); }

/* ---------- Stat strip (3 across, ruled dividers) ---------- */
.stat-strip {
  border: var(--rule); background: #FFFDF7;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-strip > div { padding: clamp(1.3rem, 2.4vw, 2rem); }
.stat-strip > div + div { border-left: var(--rule); }

/* ---------- Ledger row links ---------- */
.row-link {
  text-decoration: none;
  transition: background 0.2s ease-out;
}
.row-link:hover { background: var(--paper-warm); }
.row-link h3 { font-size: 1.15rem; }
.row-tag {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--green); margin-top: 0.25rem;
}
.row-link > p { align-self: center; }
.row-arrow { font-weight: 700; color: var(--red); white-space: nowrap; }

/* ---------- Footer colophon ---------- */
.foot-colophon {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.1;
  padding-bottom: 2rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(251,248,240,0.2);
  max-width: 30ch;
}

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.contact-form label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 0.7rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: "Archivo", sans-serif; font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: var(--rule); border-radius: 0;
  background: var(--paper); color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 3px solid var(--peach); outline-offset: 0;
}
.contact-form button { margin-top: 1.2rem; align-self: flex-start; }

@media (max-width: 860px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div + div { border-left: none; border-top: var(--rule); }
  .seal-plain img { width: 170px; }
}

/* ---------- Warm band sections ---------- */
.section-warm {
  background: var(--paper-warm);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.section-warm + section { padding-top: clamp(4rem, 8vw, 7.5rem); }
.section-warm .row { border-bottom-color: rgba(22,19,16,0.25); }

/* ---------- Stat ledger (staggered numbers as ledger entries) ---------- */
.stat-ledger .row { grid-template-columns: minmax(7rem, 0.55fr) 1.6fr 1fr; align-items: center; }
.stat-ledger .stat-num { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.stat-ledger .stat-src { margin-top: 0; }
@media (max-width: 860px) {
  .stat-ledger .row { grid-template-columns: 1fr; }
}

/* ---------- Rule-top run-in heading ---------- */
.rule-top { position: relative; padding-top: 1.2rem; }
.rule-top::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4.5rem; height: 4px; background: var(--red);
}

/* ---------- Paper closer (contact) ---------- */
.closer-paper {
  border-top: var(--rule); border-bottom: var(--rule);
  background: var(--paper-warm);
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}
.closer-paper h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.closer-paper p { color: var(--ink-soft); max-width: 44rem; margin-bottom: 1.6rem; }

/* ---------- Archival scan treatment ---------- */
.archive-figure img {
  transform: rotate(-1.4deg);
  filter: sepia(0.08) contrast(0.98);
  box-shadow: 8px 8px 0 var(--peach-soft), 0 1px 3px rgba(22,19,16,0.3);
}
.archive-figure { padding: 0.5rem 0; }

/* ---------- Photo figures ---------- */
.photo-figure { margin: 0; }
.photo-figure img { border: var(--rule); width: 100%; object-fit: cover; }
.photo-figure figcaption {
  margin-top: 0.8rem; font-size: 0.8rem; color: var(--ink-soft);
  border-left: 3px solid var(--green); padding-left: 0.8rem;
}
.bento .photo-figure img { height: 100%; max-height: 560px; }

/* Tilted photo variant breaks the grid */
.photo-tilt img {
  transform: rotate(1.4deg);
  box-shadow: 6px 6px 0 var(--peach-soft);
}
.photo-tilt { padding: 0.4rem 0.6rem 0 0; }
