/* ============================================================
   Ashanti Regional Library Network — rebrand concept
   Card-catalog design system: drawers, index tabs, ruled cards,
   stamped numbers, brass hardware.
   Palette (brief): oxblood #5E1F1B · parchment #F2E9D8 ·
                    brass #A67C3D · midnight #1E1B18
   Contrast (WCAG relative luminance, computed):
     midnight on parchment 14.22 · oxblood on parchment 10.32
     parchment on oxblood 10.32 · parchment on midnight 14.22
     muted #4A3B32 on parchment 8.88
     brass-text #654A1E on parchment 6.83 (AA+ small text)
     brass #A67C3D on parchment 3.13 — DECORATIVE ONLY
     brass-light #D9B36A on oxblood 6.28 (large text only) / midnight 8.66
   ============================================================ */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --oxblood: #5E1F1B;
  --oxblood-deep: #47160F;
  --rust: #7A2E24;
  --parchment: #F2E9D8;
  --parchment-hi: #F9F3E6;
  --brass: #A67C3D;          /* decorative hardware only */
  --brass-text: #654A1E;     /* AA small text on parchment (6.83) */
  --brass-light: #D9B36A;    /* large text / labels on dark grounds */
  --midnight: #1E1B18;
  --ink: #241f1b;
  --muted: #4A3B32;
  --rule: rgba(94, 31, 27, 0.16);
  --line: #D9CBB0;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.22rem, 1.12rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3: clamp(1.95rem, 1.55rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem);

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: clamp(4rem, 3vw + 3rem, 7rem);

  --measure: 66ch;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(30, 27, 24, 0.08), 0 10px 30px -12px rgba(30, 27, 24, 0.25);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 2rem; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--oxblood); color: var(--parchment); }

@supports (scrollbar-color: red blue) {
  html { scrollbar-color: var(--brass) var(--parchment); }
}

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.55em; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.015em;
  color: var(--oxblood);
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--brass-text); }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--parchment-hi);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

a { color: var(--oxblood); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--brass); }
a:hover { text-decoration-thickness: 3px; text-decoration-color: currentColor; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--parchment);
  border-radius: 2px;
}
.section-oxblood :focus-visible,
.section-campaign :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible,
.concept-banner :focus-visible {
  outline-color: var(--parchment);
  box-shadow: 0 0 0 2px var(--midnight);
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-150%);
  background: var(--oxblood);
  color: var(--parchment);
  font-weight: 700;
  padding: 0.9rem 1.4rem;
  z-index: 100;
  border-bottom-right-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { transform: none; }

/* ---------- Concept banner ---------- */
.concept-banner {
  background: var(--midnight);
  color: var(--parchment);
  font-size: 0.92rem;
  padding: 0.5rem 0;
  border-bottom: 3px solid var(--brass);
}
.concept-banner .wrap { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.concept-banner strong {
  background: var(--brass);
  color: var(--midnight);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.14rem 0.6rem;
  border-radius: 3px;
}
.concept-banner a { color: var(--parchment); text-decoration-color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  background: var(--oxblood);
  color: var(--parchment);
  border-bottom: 4px double var(--brass);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--parchment); }
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; background: var(--parchment); border-radius: 5px; padding: 2px; }
.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 0.32rem;
}
.site-header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  max-width: none;
}
.site-header nav li { margin: 0; }
.site-header nav a {
  display: block;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 3px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--brass-light); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(242, 233, 216, 0), rgba(242, 233, 216, 0) 78%, rgba(94, 31, 27, 0.05)),
    var(--parchment);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
  padding: var(--sp-5) 0 var(--sp-5);
}
.hero-kicker {
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-text);
  margin: 0 auto var(--sp-4);
  max-width: none;
}
.hero-kicker::before, .hero-kicker::after {
  content: "—";
  color: var(--brass);
  margin: 0 0.6rem;
}
.wordmark {
  display: block;
  width: min(38rem, 86%);
  margin: 0 auto var(--sp-4);
  overflow: visible;
}
.wordmark-lockup {
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-text);
  margin: calc(-1 * var(--sp-3)) auto var(--sp-4);
  max-width: none;
}
.js .wordmark-lockup { opacity: 0; transition: opacity 0.8s ease 1.1s; }
.js .wordmark.assembled + .wordmark-lockup { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .wordmark-lockup { opacity: 1; transition: none; }
}

.hero h1 {
  font-size: var(--step-3);
  max-width: 24ch;
  margin-inline: auto;
  color: var(--midnight);
}
.hero .lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 1.4em;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-4); }

/* wordmark assembly — inner group scatters, .assembled brings it home */
.js .wordmark .spine-in {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--tx), var(--ty)) rotate(var(--tr));
  opacity: 0;
  transition:
    transform 1s cubic-bezier(0.2, 0.9, 0.25, 1.05) var(--d, 0s),
    opacity 0.5s ease var(--d, 0s);
}
.js .wordmark.assembled .spine-in { transform: none; opacity: 1; }
.js .wordmark .shelf-line { opacity: 0; transition: opacity 0.7s ease 0.9s; }
.js .wordmark.assembled .shelf-line { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .wordmark .spine-in { transform: none; opacity: 1; transition: none; }
  .js .wordmark .shelf-line { opacity: 1; transition: none; }
}

/* ---------- Stamps ---------- */
.stamp-row {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  max-width: none;
}
.stamp-row li { margin: 0; }
.stamp {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  border: 2px solid var(--oxblood);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  transform: rotate(-1.2deg);
  opacity: 0.85;
}
.stamp-row li:nth-child(2) .stamp { transform: rotate(0.9deg); }
.stamp-row li:nth-child(3) .stamp { transform: rotate(-0.6deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.5rem 1.7rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid var(--oxblood);
  cursor: pointer;
  text-decoration: none;
  background: var(--oxblood);
  color: var(--parchment);
  transition: background 140ms ease, transform 140ms ease;
}
.btn:hover { background: var(--oxblood-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--oxblood); }
.btn-secondary:hover { background: rgba(94, 31, 27, 0.08); }
.btn-light { background: var(--parchment); color: var(--oxblood); border-color: var(--parchment); }
.btn-light:hover { background: var(--parchment-hi); }

/* ---------- Sections & catalog tabs ---------- */
.section { padding: var(--sp-6) 0; }
.section-alt { background: var(--parchment-hi); border-block: 1px solid var(--line); }
.section-oxblood { background: var(--oxblood); color: var(--parchment); }
.section-oxblood h2, .section-oxblood h3 { color: var(--parchment); }
.section-oxblood p { color: var(--parchment); }
.section-campaign { background: var(--midnight); color: var(--parchment); }
.section-campaign h2 { color: var(--parchment); }

/* index-card ruled background for the process drawer */
.section-ruled {
  background:
    linear-gradient(to right, transparent 0, transparent calc(50% - 33ch - 1.6rem), var(--rule) calc(50% - 33ch - 1.6rem), var(--rule) calc(50% - 33ch - 1.6rem + 1px), transparent calc(50% - 33ch - 1.6rem + 1px)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(1.65 * var(--step-0) - 1px),
      rgba(94, 31, 27, 0.07) calc(1.65 * var(--step-0) - 1px),
      rgba(94, 31, 27, 0.07) calc(1.65 * var(--step-0))
    ),
    var(--parchment);
}

.catalog-tab {
  display: inline-block;
  position: relative;
  background: var(--parchment-hi);
  border: 1.5px solid var(--line);
  border-bottom: 3px solid var(--brass);
  border-radius: 8px 14px 0 0;
  padding: 0.9rem 1.6rem 0.7rem;
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow);
}
.catalog-tab h2 { margin: 0; font-size: var(--step-2); }
.tab-no {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 0.25rem;
}
.tab-on-dark { background: var(--parchment); border-color: var(--brass); }
.tab-on-dark h2 { color: var(--oxblood); }
.section-lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; margin-bottom: var(--sp-4); }
.section-oxblood .section-lede, .section-campaign .section-lede { color: var(--parchment); }

/* ---------- The shelf ---------- */
.shelf-unit { margin: var(--sp-4) 0 var(--sp-3); }
.shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2px, 0.5vw, 6px);
  padding: 2.4rem clamp(0.4rem, 2vw, 2rem) 0;
  min-height: 15.5rem;
}
.spine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: clamp(2.3rem, 7.5vw, 3.6rem);
  height: 13.2rem;
  padding: 0.9rem 0.2rem 0.55rem;
  border: 0;
  border-radius: 4px 4px 2px 2px;
  cursor: pointer;
  font: inherit;
  box-shadow: inset -4px 0 6px -3px rgba(0, 0, 0, 0.45), inset 2px 0 3px -1px rgba(255, 255, 255, 0.18);
  transition: transform 220ms cubic-bezier(0.34, 1.4, 0.5, 1);
  transform-origin: bottom center;
}
.spine.sp-tall { height: 14.4rem; }
.spine.sp-short { height: 12.2rem; }
/* spine title bands */
.spine::before, .spine::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.9;
}
.spine::before { top: 0.45rem; }
.spine::after { bottom: 2rem; }
.s-oxblood { background: linear-gradient(105deg, #6B2620, var(--oxblood) 55%, #4E1A16); color: var(--brass-light); }
.s-midnight { background: linear-gradient(105deg, #2B2622, var(--midnight) 55%, #14120F); color: var(--parchment); }
.s-brass { background: linear-gradient(105deg, #B58A48, var(--brass) 55%, #8F6A31); color: var(--midnight); }
.s-rust { background: linear-gradient(105deg, #8A382C, var(--rust) 55%, #672519); color: var(--parchment); }
.spine-title {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(0.86rem, 1.4vw, 1.05rem);
  letter-spacing: 0.08em;
  color: inherit;
  max-height: 9rem;
}
.s-oxblood .spine-title, .s-midnight .spine-title, .s-rust .spine-title { color: var(--parchment); }
.s-brass .spine-title { color: var(--midnight); }
.spine-no {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: inherit;
  opacity: 0.95;
}
.spine:hover { transform: translateY(-14px); }
.spine[aria-expanded="true"] { transform: translateY(-22px) rotate(-2.5deg); }
.spine[aria-expanded="true"]::marker { content: none; }
.shelf-board {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(#B58A48, var(--brass) 40%, #7C5A28);
  box-shadow: 0 6px 14px -6px rgba(30, 27, 24, 0.5);
  max-width: 62rem;
  margin: 0 auto;
}

/* ---------- Branch cards (index cards) ---------- */
.branch-cards { max-width: 46rem; margin: var(--sp-4) auto 0; display: grid; gap: var(--sp-3); }
.branch-card {
  position: relative;
  background:
    linear-gradient(to right, transparent 0, transparent 3.2rem, var(--rule) 3.2rem, var(--rule) calc(3.2rem + 1px), transparent calc(3.2rem + 1px)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(1.7rem - 1px),
      rgba(94, 31, 27, 0.09) calc(1.7rem - 1px),
      rgba(94, 31, 27, 0.09) 1.7rem
    ),
    var(--parchment-hi);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2rem 2.6rem 4.2rem;
}
.js-shelf .branch-card { display: none; }
.js-shelf .branch-card.is-active { display: block; animation: card-pull 260ms ease-out; }
@keyframes card-pull {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js-shelf .branch-card.is-active { animation: none; }
}
.card-tab {
  position: absolute;
  top: -0.95rem;
  left: 1.6rem;
  margin: 0;
  background: var(--oxblood);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px 10px 0 0;
  padding: 0.45rem 1.1rem 0.4rem;
}
.card-stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--rust);
  border: 2px solid var(--rust);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  transform: rotate(2deg);
  opacity: 0.8;
}
.card-lines { margin: 0; }
.card-lines > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.4rem 1rem; padding: 0.28rem 0; }
.card-lines dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  padding-top: 0.25rem;
}
.card-lines dd { margin: 0; line-height: 1.7rem; }
.punch-hole {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  width: 0.85rem;
  height: 0.85rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(30, 27, 24, 0.25);
}
@media (max-width: 40rem) {
  .card-lines > div { grid-template-columns: 1fr; gap: 0; }
  .branch-card { padding-left: 2rem; }
  .branch-card { background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(1.7rem - 1px),
      rgba(94, 31, 27, 0.09) calc(1.7rem - 1px),
      rgba(94, 31, 27, 0.09) 1.7rem
    ),
    var(--parchment-hi);
  }
}

/* ---------- Campaign poster ---------- */
.section-campaign { padding-bottom: var(--sp-6); }
.poster {
  position: relative;
  margin: var(--sp-3) 0 0;
  border: 3px double var(--brass);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--midnight);
}
/* Mobile-first: copy flows above the art; on wide screens it overlays
   the poster sky so the headline hangs over the converging streets. */
.poster-art { display: block; width: 100%; height: 15rem; }
.poster-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.2rem, 4vw, 3.5rem) 0.5rem;
}
@media (min-width: 52rem) {
  .poster-art { height: auto; min-height: 34rem; }
  .poster-copy {
    position: absolute;
    inset: 0 0 auto;
    padding-top: clamp(2rem, 4vw, 3.5rem);
    pointer-events: none;
  }
}
.poster-series {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: clamp(0.8rem, 2vw, 1.6rem);
}
.poster-headline {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  font-size: clamp(2.1rem, 5.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--parchment);
  margin: 0 0 clamp(0.8rem, 2vw, 1.4rem);
  max-width: 16ch;
  text-wrap: balance;
}
.poster-sub {
  color: var(--parchment);
  opacity: 0.92;
  max-width: 44ch;
  font-size: var(--step-0);
  line-height: 1.55;
  margin: 0;
}
/* Light-dots travel the streets toward the shelf */
@keyframes street-a { to { stroke-dashoffset: 30; } }
@keyframes street-b { to { stroke-dashoffset: 25; } }
@keyframes street-c { to { stroke-dashoffset: 27; } }
.sd-a { animation: street-a 2.8s linear infinite; }
.sd-b { animation: street-b 3.4s linear infinite; }
.sd-c { animation: street-c 3.1s linear infinite; }
@keyframes shelf-glow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.2; }
}
.glow-halo { animation: shelf-glow 4s ease-in-out infinite; }

.poster-caption {
  padding: 1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--brass-light);
  border-top: 1px solid rgba(166, 124, 61, 0.4);
  background: rgba(0, 0, 0, 0.25);
}

/* ---------- Services drawers ---------- */
.drawer-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--sp-3);
  padding: 0;
  margin: 0;
  max-width: none;
}
.drawer-grid li.drawer { margin: 0; }
.drawer { position: relative; }
.drawer-slot {
  position: absolute;
  inset: 0 0 auto;
  height: 1.1rem;
  background: var(--midnight);
  border-radius: var(--radius) var(--radius) 0 0;
}
.drawer-face {
  position: relative;
  height: 100%;
  background: linear-gradient(160deg, var(--parchment-hi), #EFE3CC);
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-3) var(--sp-3) var(--sp-3);
  transition: transform 200ms ease;
}
.drawer:hover .drawer-face { transform: translateY(9px); }
.drawer-no {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--rust);
  border: 2px solid var(--rust);
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
  transform: rotate(-1.6deg);
  opacity: 0.8;
}
.drawer-plate { display: block; width: 4.6rem; margin-bottom: 0.9rem; }
.drawer-plate svg { display: block; width: 100%; height: auto; }
.drawer h3 { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; color: var(--oxblood); margin-bottom: 0.35em; }
.drawer p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Membership ---------- */
.membership-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
}
@media (max-width: 52rem) { .membership-grid { grid-template-columns: 1fr; } }
.member-form {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(1.7rem - 1px),
      rgba(94, 31, 27, 0.07) calc(1.7rem - 1px),
      rgba(94, 31, 27, 0.07) 1.7rem
    ),
    var(--parchment-hi);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  padding: var(--sp-4);
}
.member-form p { color: var(--ink); }
.form-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-text);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.5rem;
  margin-bottom: var(--sp-3);
}
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { color: var(--muted); font-size: 0.92rem; margin: -0.1rem 0 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FFFDF8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  min-height: 3.1rem;
  padding: 0.55rem 0.85rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.form-success {
  background: var(--midnight);
  color: var(--parchment);
  border-radius: var(--radius);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.form-success h3 { color: var(--parchment); margin-bottom: 0.3em; }
.form-success p { color: var(--parchment); margin: 0; opacity: 0.92; }
[hidden] { display: none !important; }

.member-aside h3 { color: var(--parchment); font-family: var(--serif); font-size: var(--step-1); }
.brass-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.brass-list li {
  padding: 0.55rem 0 0.55rem 1.7rem;
  position: relative;
  border-bottom: 1px solid rgba(242, 233, 216, 0.25);
}
.brass-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.85rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--brass-light);
}
.aside-note { font-size: 0.95rem; opacity: 0.92; }

/* Date-due slip */
.due-slip {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(2.15rem - 1px),
      rgba(94, 31, 27, 0.14) calc(2.15rem - 1px),
      rgba(94, 31, 27, 0.14) 2.15rem
    ),
    var(--parchment-hi);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.3rem 1.05rem;
  max-width: 17rem;
  margin: var(--sp-4) 0 var(--sp-3);
  transform: rotate(-1deg);
}
.due-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-text);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.45rem;
  margin: 0 0 0;
}
.due-rows { list-style: none; padding: 0; margin: 0; }
.due-rows li { margin: 0; height: 2.15rem; display: flex; align-items: center; }
.due-stamp {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  transform: rotate(-1.6deg);
  opacity: 0.75;
}
.due-stamp.d2 { transform: rotate(1.4deg) translateX(0.7rem); opacity: 0.65; }
.due-stamp.d3 { transform: rotate(-0.8deg) translateX(0.2rem); opacity: 0.8; }
.due-stamp.d4 { transform: rotate(2deg) translateX(1rem); color: var(--oxblood); opacity: 0.95; }
.due-final { font-family: var(--serif); font-style: italic; color: var(--brass-text); font-weight: 600; }

/* ---------- Prose (process/guide) ---------- */
.prose { max-width: var(--measure); }
.prose h3 { margin-top: var(--sp-4); font-family: var(--serif); color: var(--oxblood); font-size: var(--step-1); }
.callout {
  background: var(--parchment-hi);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3);
  margin: var(--sp-3) 0;
}
.callout p:last-child { margin-bottom: 0; }

.pass-log { list-style: none; padding: 0; display: grid; gap: var(--sp-3); max-width: none; }
.pass-log > li {
  background: var(--parchment-hi);
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow);
  margin: 0;
}
.pass-log h4 {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 0.6rem;
}
.pass-log ul { padding-left: 1.2em; margin: 0; }
.pass-log li { font-size: 0.97rem; color: var(--muted); }

/* ---------- Reveal on scroll (subtle) ----------
   Transform-only, never opacity: content must stay readable even if
   the observer never fires (no-JS, print, full-page capture). */
.js .reveal { transform: translateY(18px); transition: transform 0.6s ease; }
.js .reveal.revealed { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spine:hover, .spine[aria-expanded="true"] { transform: translateY(-8px); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: var(--parchment);
  padding: var(--sp-5) 0 var(--sp-4);
  border-top: 4px double var(--brass);
}
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--sp-4); }
.footer-brand p { margin: 0; }
.footer-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: var(--sp-4); }
.site-footer h2 {
  color: var(--brass-light);
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--parchment); text-decoration-color: var(--brass); }
.footer-legal {
  border-top: 1px solid rgba(242, 233, 216, 0.25);
  padding-top: var(--sp-3);
  font-size: 0.92rem;
  opacity: 0.92;
}
.footer-legal p { margin-bottom: 0.4em; }

/* ---------- Small screens ---------- */
@media (max-width: 46rem) {
  .shelf { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.2rem; }
  .spine { flex: none; }
}

@media (forced-colors: active) {
  .spine, .drawer-face, .branch-card, .member-form { border: 1px solid CanvasText; }
}

@media print {
  .site-header nav, .skip-link, .concept-banner { display: none; }
  body { background: #fff; }
}
