/* =============================================================
   Bookstacks and Stories — prototype stylesheet
   -------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography helpers
   4.  Buttons  (burgundy / white / outline / ghost)
   5.  Layout & section shells
   6.  Header & navigation
   7.  Hero
   8.  Pillars
   9.  Community in Action
   10. Find Your People
   11. Groups rail
   12. Award-Winning
   13. Articles
   14. The Library Alcove
   15. Events
   16. Giveaway
   17. Fun
   18. Ask Librarians
   19. Partners
   20. Final CTA
   21. Footer
   22. Motion / reveal animations
   ============================================================= */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
  /* Brand palette — warm cream / burgundy / ink, drawn from the
     approved design direction and the logo artwork. */
  --cream:            #FBF4E7;
  --parchment:        #F5E9D5;
  --parchment-deep:   #EFDFC6;
  --white:            #FFFFFF;

  --burgundy:         #8A2231;
  --burgundy-deep:    #6E1926;
  --burgundy-dark:    #571220;

  --ink:              #241812;
  --ink-soft:         #33241C;
  --black:            #111111;   /* navigation bar, nav dropdown, mobile nav, footer */

  --gold:             #E2A63C;
  --gold-deep:        #C4862A;
  --teal:             #2F7B78;

  --text:             #3A2A22;
  --text-muted:       #6B5449;
  --text-light:       rgba(255, 255, 255, .82);
  --text-light-muted: rgba(255, 255, 255, .62);

  --line:             rgba(58, 42, 34, .14);
  --line-strong:      rgba(58, 42, 34, .26);
  --line-light:       rgba(255, 255, 255, .22);

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script:  "Caveat", "Segoe Script", cursive;

  /* Fluid type scale */
  --fs-hero:    clamp(1.95rem, 1.35rem + 2.1vw, 3.05rem);
  --fs-h2:      clamp(2rem, 1.3rem + 2.4vw, 3.15rem);
  --fs-h2-sm:   clamp(1.7rem, 1.25rem + 1.6vw, 2.45rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + .35vw, 1.4rem);
  --fs-lede:    clamp(1.02rem, .97rem + .3vw, 1.19rem);
  --fs-body:    1rem;
  --fs-sm:      .9rem;
  --fs-xs:      .78rem;

  /* Spacing */
  --shell:      1220px;
  --gutter:     clamp(1.15rem, .6rem + 2.2vw, 2.5rem);
  --section-y:  clamp(2.6rem, 1.8rem + 2.6vw, 4.5rem);
  --gap:        clamp(1.1rem, .8rem + 1vw, 1.9rem);

  /* Shape */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  34px;
  --r-panel: clamp(22px, 2.6vw, 44px);
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(36, 24, 18, .06);
  --shadow-md: 0 10px 28px rgba(36, 24, 18, .10);
  --shadow-lg: 0 20px 48px rgba(36, 24, 18, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .38s;
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-family: var(--font-display); font-weight: 700; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  background: var(--burgundy); color: #fff; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Smooth anchor scrolling, offset for the sticky header */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6.5rem; }

/* ---------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   --------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 .85rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow--light { color: var(--gold); }
.eyebrow__icon { width: 1.15rem; height: 1.15rem; }

.section-title {
  font-size: var(--fs-h2);
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 20ch;
}
.section-title--sm    { font-size: var(--fs-h2-sm); }
.section-title--light { color: #fff; }

/* Handwritten accent — the brand's script voice */
.script {
  display: inline-block;
  position: relative;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.24em;
  line-height: 1;
  color: var(--burgundy);
  padding-bottom: .12em;
}
.script--gold { color: var(--gold); }
.script__flourish {
  position: absolute;
  left: 0; right: 4%;
  bottom: -.12em;
  width: 96%; height: .34em;
  color: currentColor;
  opacity: .55;
}

.section-lede {
  margin-top: 1.15rem;
  max-width: 62ch;
  font-size: var(--fs-lede);
  color: var(--text-muted);
}
.section-lede--light { color: var(--text-light); }

.note {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--text-muted);
}
.note--light  { color: var(--text-light-muted); }
.note--center { text-align: center; }

/* Placeholder flag — makes unsupplied client data unmistakable */
.is-placeholder {
  display: inline-block;
  padding: .1em .5em;
  border: 1px dashed currentColor;
  border-radius: var(--r-sm);
  opacity: .72;
  font-style: italic;
  font-size: .92em;
}

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tag--burgundy { background: var(--burgundy); color: #fff; }
.tag--gold     { background: var(--gold); color: var(--ink); }
.tag svg       { width: 1rem; height: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: var(--fs-sm);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow svg { width: 1.05rem; height: 1.05rem; }
.link-arrow:hover { gap: .75rem; border-bottom-color: currentColor; }
.link-arrow--light { color: #fff; }

/* ---------------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------------
   A four-part system:
     .btn--primary     burgundy fill      — default conversion action
     .btn--white       white fill         — on burgundy, ink or photography
     .btn--outline     bordered burgundy  — secondary action on cream
     .btn--ghost-light bordered white     — tertiary action on dark
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn__icon { width: 1.1rem; height: 1.1rem; transition: transform var(--dur) var(--ease); }
.btn:hover  { transform: translateY(-2px); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .68rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: 1.08rem 2.1rem; font-size: 1.02rem; }

.btn--primary {
  background: var(--burgundy); color: #fff;
  box-shadow: 0 6px 16px rgba(138, 34, 49, .26);
}
.btn--primary:hover { background: var(--burgundy-deep); box-shadow: 0 12px 26px rgba(138, 34, 49, .34); }

.btn--white {
  background: #fff; color: var(--burgundy-deep);
  border-color: #fff;
  box-shadow: 0 8px 22px rgba(20, 12, 8, .22);
}
.btn--white:hover { background: var(--cream); border-color: var(--cream); color: var(--burgundy-dark); }

.btn--outline {
  background: transparent; color: var(--burgundy-deep);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--burgundy); background: rgba(138, 34, 49, .06); }

.btn--ghost-light {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, .58);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .13); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

.section-cta { margin-top: clamp(2rem, 1rem + 2vw, 3rem); display: flex; justify-content: center; }
.section-cta--left { justify-content: flex-start; }

/* ---------------------------------------------------------------
   5. LAYOUT & SECTION SHELLS
   --------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* The reference stacks its content as rounded panels on a dark ground.
   Each colour band is a panel; the page background shows at the corners. */
.section {
  padding-block: var(--section-y);
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
}
/* Consecutive panels of the same colour read as one continuous field. */
.section + .section { margin-top: calc(var(--r-panel) * -1); padding-top: calc(var(--section-y) + var(--r-panel)); }

.section--cream     { background: var(--cream); }
.section--parchment { background: var(--parchment); }
.section--burgundy  { background: var(--burgundy-deep); color: #fff; }
.section--ink       { background: var(--ink); color: #fff; }

/* Soft paper texture on the light bands */
.section--cream::before,
.section--parchment::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(226, 166, 60, .07), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(138, 34, 49, .05), transparent 45%);
  pointer-events: none;
}
.section > .shell, .section > .rail { position: relative; z-index: 1; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 1.4rem + 2.2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-title { max-width: 22ch; margin-inline: auto; }
.section-head--center .section-lede  { margin-inline: auto; }

/* ---------------------------------------------------------------
   6. HEADER & NAVIGATION
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  transition: box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 12px 32px rgba(0, 0, 0, .38); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: .85rem;
  transition: padding var(--dur) var(--ease);
}
.site-header.is-stuck .site-header__inner { padding-block: .55rem; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }

/* The supplied lockup sits directly on the black bar. Its wordmark is a dark
   green that reads dim against black, so a light brightness lift restores
   legibility without recoloring the asset. Delete the filter to show the
   artwork exactly as supplied. */
.brand__logo {
  display: block;
  width: auto; height: 78px;
  filter: brightness(1.28) saturate(1.06);
  transition: height var(--dur) var(--ease), filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.brand:hover .brand__logo {
  filter: brightness(1.4) saturate(1.1);
  transform: translateY(-1px);
}
.site-header.is-stuck .brand__logo { height: 64px; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, .3rem + 1.6vw, 2.2rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(.9rem, .3rem + 1.1vw, 1.65rem); }

.site-nav__link {
  position: relative;
  font-size: .93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .84);
  padding-block: .35rem;
  transition: color var(--dur) var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: #fff; }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link.is-current { color: var(--gold); }
.site-nav__link.is-current::after { transform: scaleX(1); }

.site-nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle__close { display: none; }

/* ---------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  display: flex; align-items: center;
  padding-block: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  background: var(--ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(30, 14, 12, .93) 0%, rgba(48, 18, 20, .82) 42%, rgba(87, 18, 32, .48) 75%, rgba(87, 18, 32, .28) 100%);
}

.hero__content { max-width: 40rem; }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.hero__title .script { display: block; margin-top: .18em; font-size: .78em; }
.hero__lede {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: var(--fs-lede);
  color: var(--text-light);
}

.sparkle { position: absolute; color: var(--gold); opacity: .55; pointer-events: none; }
.sparkle svg { width: 100%; height: 100%; }
.sparkle--a { top: 16%; right: 12%; width: 34px; height: 34px; animation: twinkle 4.5s ease-in-out infinite; }
.sparkle--b { bottom: 22%; right: 24%; width: 20px; height: 20px; animation: twinkle 5.5s ease-in-out .8s infinite; }

@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.9) rotate(0deg); }
  50%      { opacity: .7; transform: scale(1.08) rotate(12deg); }
}

/* ---------------------------------------------------------------
   8. PILLARS — Connect / Share / Learn / Belong
   --------------------------------------------------------------- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.pillar {
  text-align: center;
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) 1rem;
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pillar:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .6); }

/* Reference-style icon row: colorful flat illustrations sitting directly on
   the cream field, no badge chip. */
.pillar__badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.05rem;
}
.pillar__icon {
  width: clamp(56px, 4.4vw, 68px);
  height: clamp(56px, 4.4vw, 68px);
  transition: transform var(--dur) var(--ease);
}
.pillar:hover .pillar__icon { transform: translateY(-3px) scale(1.05) rotate(-2deg); }

.pillar__title { font-size: var(--fs-h3); margin-bottom: .5rem; color: var(--ink); }
.pillar__copy  { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------------------------------------------------------------
   9. COMMUNITY IN ACTION
   --------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.post-card {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-left-color var(--dur) var(--ease);
}
.post-card:nth-child(3n+2) { border-left-color: var(--burgundy); }
.post-card:nth-child(3n+3) { border-left-color: var(--teal); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.post-card__group {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .7rem;
}
.post-card__title {
  font-size: 1.16rem; line-height: 1.3;
  color: var(--ink);
  margin-bottom: .7rem;
}
.post-card__body { font-size: var(--fs-sm); color: var(--text-muted); }
.post-card__meta {
  margin-top: auto; padding-top: 1.1rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  margin-top: 1.3rem;
}

/* ---------------------------------------------------------------
   10. FIND YOUR PEOPLE
   --------------------------------------------------------------- */
.people__layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.people__figure {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.people__figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .7s var(--ease);
}
.people__figure:hover img { transform: scale(1.05); }

.people__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.member-card {
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.member-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-md); }
.member-card__role { font-size: 1.03rem; color: var(--ink); margin-bottom: .35rem; }
.member-card__copy { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------------------------------------------------------------
   11. GROUPS RAIL
   --------------------------------------------------------------- */
.rail { position: relative; }
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 1fr);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: .5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.rail__track::-webkit-scrollbar { height: 8px; }
.rail__track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }

.group-card { scroll-snap-align: start; }
.group-card__link {
  display: flex; flex-direction: column; height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.group-card__link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.group-card__media { display: block; overflow: hidden; background: var(--parchment-deep); }
.group-card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .7s var(--ease);
}
.group-card__link:hover .group-card__media img { transform: scale(1.07); }

.group-card__body { display: block; padding: 1.15rem 1.3rem 1.5rem; }
.group-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
}
.group-card__copy { display: block; font-size: var(--fs-sm); color: var(--text-muted); }

.rail__controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .25rem; }
.rail__btn {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--burgundy); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.rail__btn svg { width: 1.25rem; height: 1.25rem; }
.rail__btn:hover { background: var(--burgundy-deep); transform: scale(1.06); }
.rail__btn[disabled] { opacity: .3; cursor: default; transform: none; }

/* ---------------------------------------------------------------
   12. AWARD-WINNING
   --------------------------------------------------------------- */
.awards { background:
  linear-gradient(160deg, var(--burgundy-deep) 0%, var(--burgundy-dark) 100%); }

.award-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.award-card {
  display: flex; flex-direction: column; gap: .55rem;
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.award-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .12); border-color: var(--gold); }

.award-card__type {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.award-card__slot { color: var(--text-light); font-size: var(--fs-sm); align-self: flex-start; }
.award-card__note { font-size: var(--fs-sm); color: var(--text-light-muted); margin-top: .3rem; }
.award-card__link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto; padding-top: 1.1rem;
  font-size: var(--fs-sm); font-weight: 700; color: #fff;
  transition: gap var(--dur) var(--ease);
}
.award-card__link svg { width: 1rem; height: 1rem; }
.award-card:hover .award-card__link { gap: .7rem; color: var(--gold); }

/* ---------------------------------------------------------------
   13. ARTICLES
   --------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.article-card__link {
  display: flex; flex-direction: column; height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.article-card__link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.article-card__media { display: block; overflow: hidden; background: var(--parchment-deep); }
.article-card__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .7s var(--ease);
}
.article-card__link:hover .article-card__media img { transform: scale(1.06); }

.article-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.4rem 1.6rem; flex: 1; }
.article-card__topic {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--burgundy);
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; line-height: 1.28;
  color: var(--ink);
}
.article-card__more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto; padding-top: .9rem;
  font-size: var(--fs-sm); font-weight: 700; color: var(--burgundy);
  transition: gap var(--dur) var(--ease);
}
.article-card__more svg { width: 1rem; height: 1rem; }
.article-card__link:hover .article-card__more { gap: .7rem; }

/* ---------------------------------------------------------------
   14. THE LIBRARY ALCOVE
   --------------------------------------------------------------- */
.alcove { background: linear-gradient(155deg, #241812 0%, #1B110D 60%, #2A1A14 100%); }

.alcove__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.alcove__player { margin: 0; }
.alcove__player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-light);
  background: #000;
  box-shadow: var(--shadow-lg);
}
.alcove__caption {
  display: flex; align-items: center; flex-wrap: wrap; gap: .7rem;
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.alcove__list { display: grid; gap: .85rem; }
.alcove-card {
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.alcove-card:hover { transform: translateX(5px); background: rgba(255, 255, 255, .09); border-color: var(--gold); }
.alcove-card__kind {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.alcove-card__title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: #fff; }

/* ---------------------------------------------------------------
   15. EVENTS
   --------------------------------------------------------------- */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }

.event-card {
  display: flex; gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + .8vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.event-card--featured { border-color: var(--burgundy); border-width: 2px; }

.event-card__date {
  flex-shrink: 0;
  width: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .8rem .4rem;
  border-radius: var(--r-md);
  background: var(--parchment);
  color: var(--burgundy-deep);
  text-align: center;
  align-self: flex-start;
}
.event-card__month { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-card__day   { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }

.event-card__body { display: flex; flex-direction: column; gap: .5rem; }
.event-card__name { font-size: 1.12rem; color: var(--ink); }
.event-card__copy { font-size: var(--fs-sm); color: var(--text-muted); }
.event-card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  margin-top: .3rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted);
}
.event-card__meta svg { width: 1.05rem; height: 1.05rem; }

/* ---------------------------------------------------------------
   16. GIVEAWAY — Register for a Chance to Win
   --------------------------------------------------------------- */
.giveaway { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.giveaway__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  align-items: center;
}
.giveaway__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-light);
  color: var(--gold);
}
.giveaway__icon svg { width: 2rem; height: 2rem; }
.giveaway__copy { margin-top: .7rem; font-size: var(--fs-lede); color: var(--text-light); }
.giveaway__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }

/* ---------------------------------------------------------------
   17. FUN
   --------------------------------------------------------------- */
.fun-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fun-card {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 1rem + 1vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fun-card:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-md); }
.fun-card__quote { color: var(--gold); margin-bottom: .8rem; }
.fun-card__quote svg { width: 1.9rem; height: 1.9rem; }
.fun-card__copy { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.fun-card__label {
  margin-top: auto; padding-top: 1.1rem;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--burgundy);
}

/* ---------------------------------------------------------------
   18. ASK LIBRARIANS, NOT ALGORITHMS
   --------------------------------------------------------------- */
.ask__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.ask__closer {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--gold);
}
.ask__questions { display: grid; gap: .9rem; }
.ask__questions li {
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #fff;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.ask__questions li:hover { transform: translateX(6px); background: rgba(255, 255, 255, .1); }

/* ---------------------------------------------------------------
   19. PARTNERS
   --------------------------------------------------------------- */
.partners__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.partners__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--parchment-deep);
  color: var(--burgundy);
}
.partners__icon svg { width: 2.1rem; height: 2.1rem; }
.partners .section-lede { margin-top: .9rem; }

/* ---------------------------------------------------------------
   20. FINAL CTA
   --------------------------------------------------------------- */
.final-cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
  text-align: center;
  background: var(--ink);
  overflow: hidden;
}
.final-cta__media { position: absolute; inset: 0; z-index: -2; }
.final-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28, 14, 12, .88) 0%, rgba(87, 18, 32, .84) 100%);
}
.final-cta__title {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
}
.final-cta__title .script { display: block; margin-top: .12em; font-size: .84em; }
.final-cta__copy {
  margin: 1.4rem auto 0;
  max-width: 52ch;
  font-size: var(--fs-lede);
  color: var(--text-light);
}

/* ---------------------------------------------------------------
   21. FOOTER
   --------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: var(--text-light);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2.2fr;
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}

/* The logo artwork is dark green on transparent, so it sits on a cream
   plaque in the footer rather than being recolored. */
.footer-logo {
  display: inline-block;
  padding: .9rem 1.15rem;
  background: var(--cream);
  border-radius: var(--r-md);
}
.footer-logo img { width: auto; height: 52px; }

.site-footer__blurb { margin-top: 1.2rem; max-width: 38ch; font-size: var(--fs-sm); }

.site-footer__social-title {
  margin: 1.8rem 0 .8rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.social-list { display: flex; gap: .7rem; }
.social-list__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: #fff;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-list__link svg { width: 1.35rem; height: 1.35rem; }
.social-list__link:hover { background: var(--burgundy); border-color: var(--burgundy); transform: translateY(-3px); }

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.25rem, .8rem + 1.5vw, 2.25rem);
}
.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer__col a {
  font-size: var(--fs-sm);
  color: var(--text-light);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.site-footer__col a:hover { color: var(--gold); padding-left: 4px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.75rem;
  font-size: var(--fs-xs);
  color: var(--text-light-muted);
}
.site-footer__motto { font-family: var(--font-script); font-size: 1.05rem; color: var(--gold); }

/* ---------------------------------------------------------------
   22. MOTION / REVEAL
   --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* If JS never runs, content must still be visible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .sparkle { animation: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* --- Laptop ------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav__list { gap: .9rem; }
  .site-nav__link { font-size: .88rem; }
}

/* --- Tablet ------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem var(--gutter) 2.5rem;
    background: var(--black);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    z-index: 90;
  }
  .site-nav.is-open { transform: none; }
  body.nav-open { overflow: hidden; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-nav__link { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .site-nav__link::after { display: none; }

  .site-nav__actions {
    flex-direction: column; align-items: stretch;
    gap: 1rem; margin-top: 2rem;
  }
  .site-nav__actions .btn { width: 100%; }

  .nav-toggle { position: relative; z-index: 95; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open  { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

  .pillars__grid,
  .award-grid,
  .fun-grid       { grid-template-columns: repeat(2, 1fr); }
  .post-grid,
  .article-grid   { grid-template-columns: repeat(2, 1fr); }

  .people__layout { grid-template-columns: 1fr; }
  .people__figure { max-width: 320px; }

  .alcove__layout { grid-template-columns: 1fr; }
  .ask__inner     { grid-template-columns: 1fr; }

  .giveaway__inner,
  .partners__inner { grid-template-columns: 1fr; text-align: left; }
  .giveaway__actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* --- Mobile ------------------------------------------------- */
@media (max-width: 680px) {
  :root { --section-y: clamp(2.1rem, 1.5rem + 2vw, 3rem); }

  .hero { min-height: auto; text-align: left; }
  .hero__title { font-size: clamp(2.35rem, 1.4rem + 6vw, 3.2rem); }
  .hero::after {
    background: linear-gradient(180deg, rgba(28, 14, 12, .9) 0%, rgba(70, 18, 28, .86) 100%);
  }
  .btn-row .btn { width: 100%; }

  .post-grid,
  .article-grid,
  .event-grid,
  .people__list,
  .pillars__grid,
  .award-grid,
  .fun-grid { grid-template-columns: 1fr; }

  .rail__track { grid-auto-columns: 78%; }
  .rail__controls { display: none; }

  .section-title { max-width: none; }
  .section-head { margin-bottom: 2rem; }

  .event-card { flex-direction: column; gap: 1rem; }
  .event-card__date { flex-direction: row; gap: .5rem; width: auto; align-self: flex-start; padding: .5rem .9rem; }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: repeat(2, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .sparkle--b { display: none; }
}

@media (max-width: 400px) {
  .site-footer__nav { grid-template-columns: 1fr; }
  .rail__track { grid-auto-columns: 86%; }
}
