/* ==========================================================================
   Falkner Heritage Museum — site stylesheet
   Design language: the Falkner Depot. Boxcar red, aged brass, rail rules.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Colour */
  --ink:        #221f1c;
  --ink-soft:   #4a443e;
  --ink-faint:  #6b645a;   /* darkened to clear 4.5:1 on paper for small caps */

  --depot:      #8e3129;   /* boxcar red — primary */
  --depot-dark: #67221c;
  --depot-tint: #f6e9e5;

  --brass:      #b3852f;   /* aged brass — accent */
  --brass-dark: #7d5b19;   /* text-safe brass (>=4.5:1 on paper) */
  --brass-light:#e8c583;   /* text-safe brass on the depot-red and ink backgrounds */

  --pine:       #3d5443;   /* park green — tertiary */

  --paper:      #faf6ee;
  --paper-2:    #f2e9d9;
  --paper-3:    #e7dbc5;
  --white:      #fffdf9;

  --rule:       rgba(34, 31, 28, 0.14);
  --rule-soft:  rgba(34, 31, 28, 0.08);

  /* Type */
  --font-display: "Bitter", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  /* Space */
  --wrap:    1160px;
  --wrap-nr: 760px;   /* narrow — reading measure */
  --gut:     clamp(1.25rem, 4vw, 2.5rem);
  --sect:    clamp(3.5rem, 8vw, 6.5rem);

  --radius: 3px;
  --shadow:      0 1px 2px rgba(34, 31, 28, .06), 0 8px 24px -12px rgba(34, 31, 28, .22);
  --shadow-lift: 0 2px 4px rgba(34, 31, 28, .08), 0 20px 44px -18px rgba(34, 31, 28, .34);
}

/* --- 2. Reset ----------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.42vw + 0.96rem, 1.1875rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.011em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); letter-spacing: 0; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

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

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* --- 3. Layout helpers -------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: calc(var(--wrap-nr) + var(--gut) * 2); }

.section { padding-block: var(--sect); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper-2); }
.section--ink h2, .section--ink h3 { color: var(--white); }
/* :not(.btn) so buttons keep the colours their own modifier sets. */
.section--ink a:not(.btn) { color: var(--brass); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; z-index: 999; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; }

/* --- 4. Ornaments: the rail rule & crossbuck ---------------------------- */

/* A short length of track, used as a section ornament. */
.rail {
  position: relative;
  height: 12px;
  width: 96px;
  margin-bottom: 1.5rem;
  background:
    repeating-linear-gradient(90deg,
      rgba(34, 31, 28, .45) 0 3px,
      transparent 3px 14px);
  background-position: 0 3px;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
.rail::before, .rail::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--brass);
}
.rail::before { top: 1px; }
.rail::after  { bottom: 1px; }
.rail--center { margin-inline: auto; }
.rail--wide   { width: 100%; }

.section--ink .rail {
  background-image: repeating-linear-gradient(90deg, rgba(250, 246, 238, .28) 0 3px, transparent 3px 13px);
}

/* Depot mark — the gabled station roofline the Community Center replicates. */
.mark { width: 46px; height: 46px; flex: none; color: var(--depot); }
.mark .mark-building { fill: currentColor; }
.mark .mark-accent   { fill: var(--brass); }

/* --- 5. Typographic accents --------------------------------------------- */

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--depot);
  margin-bottom: .85rem;
}
.section--ink .kicker { color: var(--brass); }

.lede {
  font-size: clamp(1.15rem, 1.1vw + .95rem, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.prose > * + h2 { margin-top: 2.4em; }
.prose > * + h3 { margin-top: 2em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass-dark); }

/* Pull quote / historical note */
.note {
  border-left: 3px solid var(--brass);
  background: var(--paper-2);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  font-size: .98em;
}
.note h4 { margin-bottom: .35em; color: var(--depot-dark); }
.section--paper2 .note { background: var(--white); }

/* --- 6. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95em 1.7em;
  border: 2px solid var(--depot);
  border-radius: var(--radius);
  background: var(--depot);
  color: var(--white);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--depot-dark); border-color: var(--depot-dark); color: var(--white); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--depot); }
.btn--ghost:hover { background: var(--depot); color: var(--white); }

.btn--light { background: transparent; border-color: rgba(250,246,238,.5); color: var(--white); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); transform: translateY(-1px); }

.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* --- 7. Header & navigation ---------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 246, 238, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--ink);
}
.brand-sub {
  display: block;
  font-size: .705rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .18rem;
}

.site-nav ul {
  display: flex; align-items: center; gap: .1rem;
  flex-wrap: nowrap;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block;
  white-space: nowrap;
  padding: .55rem .7rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--depot); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--depot); border-bottom-color: var(--depot); }
.site-nav .nav-cta a {
  margin-left: .5rem; padding: .6rem 1.15rem;
  background: var(--depot); color: var(--white); border-bottom: 0;
}
.site-nav .nav-cta a:hover { background: var(--depot-dark); color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .55rem .8rem; cursor: pointer;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.nav-toggle .bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span    { top: 5px; }
.nav-toggle .bars::after  { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span    { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; flex-wrap: wrap; padding: .6rem var(--gut) 1.2rem; }
  .site-nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; font-size: 1rem; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--depot); }
  .site-nav .nav-cta a { margin: .9rem 0 0; text-align: center; border-bottom: 0; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .mark { width: 38px; height: 38px; }
}

/* --- 8. Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(460px, 74vh, 680px);
  display: flex; align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 55% 42%;
  opacity: .72;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(20, 18, 16, .90) 0%,
    rgba(20, 18, 16, .62) 38%,
    rgba(20, 18, 16, .18) 72%,
    rgba(20, 18, 16, .30) 100%);
}
.hero-body { position: relative; z-index: 2; padding-block: clamp(2.5rem, 6vw, 4.5rem); width: 100%; }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: .45em; }
.hero .kicker { color: var(--brass); }
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  color: var(--paper-2);
  max-width: 34ch;
  line-height: 1.45;
  margin: 0;
}

/* Compact page banner for interior pages */
.banner {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: .38;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,18,16,.92) 0%, rgba(20,18,16,.72) 55%, rgba(20,18,16,.5) 100%);
}
.banner-body { position: relative; z-index: 2; }
.banner h1 { color: var(--white); max-width: 20ch; }
.banner .kicker { color: var(--brass); }
.banner .lede { color: var(--paper-2); max-width: 56ch; }
.banner--plain { background: var(--depot-dark); }

/* --- 9. Grids & cards ----------------------------------------------------- */

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
/* Cards carry their own colours so they stay legible on any section background. */
.card-body h3 { margin-bottom: .5rem; color: var(--ink); }
.card-body p { font-size: .97rem; color: var(--ink-soft); }
.card .card-link {
  margin-top: auto; padding-top: 1.1rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--depot);
}
.card-link::after { content: " →"; }
.card:hover .card-link { color: var(--depot-dark); }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

/* Split: image beside text */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.15fr 1fr; }
  .split--portrait { grid-template-columns: minmax(240px, 320px) 1fr; align-items: start; }
  .split--reverse .split-media { order: 2; }
}

/* A small archival photograph, matted like a framed print. Capped at its own
   native width so a low-resolution scan is never upscaled. */
.portrait { margin: 0; max-width: 320px; }
.portrait img {
  width: 100%;
  background: var(--white);
  border: 9px solid var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow-lift);
}
.portrait figcaption {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-faint);
  border-left: 2px solid var(--brass);
  padding-left: .8rem;
}
@media (max-width: 859px) { .portrait { margin-inline: auto; } }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

/* Framed photo with caption */
.figure { margin: 2.5rem 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption {
  margin-top: .8rem;
  font-size: .875rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--brass);
  padding-left: .8rem;
  line-height: 1.5;
}

/* --- 10. Facts strip ------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--paper); padding: 1.6rem 1.4rem; text-align: center; }
.section--paper2 .fact { background: var(--paper-2); }
.fact dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .5rem;
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--depot);
  line-height: 1.1;
}
.fact dd small { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; margin-top: .35rem; }

/* --- 11. Timeline (rendered as a rail line) -------------------------------- */

.timeline { position: relative; margin: 3rem 0 0; padding: 0 0 0 3.2rem; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 6px;
  background:
    linear-gradient(var(--brass), var(--brass)) left / 2px 100% no-repeat,
    linear-gradient(var(--brass), var(--brass)) right / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(34,31,28,.28) 0 3px, transparent 3px 14px);
}
.timeline > li { position: relative; padding-bottom: 2.6rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -2.55rem; top: .42em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--depot);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--depot);
}
.section--paper2 .timeline > li::before { border-color: var(--paper-2); }
.timeline .t-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--depot); line-height: 1.2; margin-bottom: .2rem;
}
.timeline .t-title { display: block; font-weight: 700; margin-bottom: .35rem; }
.timeline p { font-size: .98rem; color: var(--ink-soft); }

/* --- 12. Phase tracker ----------------------------------------------------- */

.phases { display: grid; gap: 1.25rem; margin-top: 2.5rem; list-style: none; padding: 0; }
@media (min-width: 800px) { .phases { grid-template-columns: repeat(3, 1fr); } }

.phase {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
/* Phase cards also self-contain their colours (they appear on dark sections too). */
.phase h3 { margin-bottom: .4rem; font-size: 1.15rem; color: var(--ink); }
.phase p { font-size: .95rem; color: var(--ink-soft); }
.phase-status {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.phase-status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px currentColor; opacity: .95;
}
.phase--done  { border-top-color: var(--pine); }
.phase--done  .phase-status { color: var(--pine); }
.phase--now   { border-top-color: var(--brass); box-shadow: var(--shadow-lift); }
.phase--now   .phase-status { color: var(--brass-dark); }
.phase--next  { border-top-color: var(--rule); }
.phase--next  .phase-status { color: var(--ink-faint); }

/* --- 13. Callout panel ------------------------------------------------------ */

.callout {
  background: var(--depot);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lift);
}
.callout h2, .callout h3 { color: var(--white); }
.callout .kicker { color: rgba(255, 253, 249, .78); }
.callout p { color: rgba(255, 253, 249, .93); }
.callout a:not(.btn) { color: var(--white); }

.callout--brass { background: var(--paper-2); color: var(--ink); border: 1px solid var(--paper-3); border-left: 5px solid var(--brass); box-shadow: none; }
.callout--brass h2, .callout--brass h3 { color: var(--ink); }
.callout--brass .kicker { color: var(--brass-dark); }
.callout--brass p { color: var(--ink-soft); }
.callout--brass a:not(.btn) { color: var(--depot); }

/* --- 14. Contact / detail lists --------------------------------------------- */

.deflist { margin: 0; }
.deflist div + div { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-soft); }
.deflist dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .35rem;
}
.deflist dd { margin: 0; font-size: 1.02rem; }
.deflist dd a { font-weight: 600; }

/* On dark sections the muted label colour would fall below contrast — lift it. */
.section--ink .deflist dt { color: var(--brass-light); }
.section--ink .deflist div + div { border-top-color: rgba(250, 246, 238, .18); }
.section--ink .figure figcaption { color: rgba(250, 246, 238, .72); }

/* Address block */
.addr { font-style: normal; line-height: 1.6; }

/* Roster columns (student & teacher names) */
.roster {
  columns: 3 180px;
  column-gap: 2rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: .95rem;
}
.roster li { break-inside: avoid; padding: .18rem 0; color: var(--ink-soft); border-bottom: 1px solid var(--rule-soft); }

/* Tick list */
.ticks { list-style: none; margin: 1.2rem 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 3px var(--depot-tint);
}
.section--ink .ticks li::before { box-shadow: 0 0 0 3px rgba(179, 133, 47, .22); }

/* --- 15. Event card ---------------------------------------------------------- */

.event {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 820px) { .event { grid-template-columns: 320px 1fr; } }
/* Used while an event has no artwork — the body spans the full card. */
.event--nomedia { grid-template-columns: 1fr !important; }
/* The flyer is a portrait document — frame it rather than cropping it to fill. */
.event-media {
  background: var(--paper-2);
  border-right: 1px solid var(--rule-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: center;
  align-self: stretch;
}
.event-media img {
  width: 100%; height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 26px -12px rgba(34, 31, 28, .45);
}
@media (max-width: 819px) {
  .event-media { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .event-media img { max-width: 340px; }
}
.event-body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.event-date {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--white); background: var(--depot);
  padding: .38em .85em; border-radius: var(--radius); margin-bottom: 1rem;
}
.event-meta { list-style: none; margin: 1.2rem 0 0; padding: 0; font-size: .95rem; color: var(--ink-soft); }
.event-meta li { padding: .35rem 0; border-top: 1px solid var(--rule-soft); }
.event-meta li strong { color: var(--ink); }

/* --- 15b. Events CTA band ------------------------------------------------------ */

.cta-band {
  background: var(--depot);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-block: 4px solid var(--brass);
}
/* faint ledger-rule texture, like a station timetable */
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,253,249,.05) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.cta-band-inner {
  position: relative; z-index: 1;
  display: grid;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
@media (min-width: 900px) {
  .cta-band-inner { grid-template-columns: 1fr 290px; }
}
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band .kicker { color: var(--brass-light); }
.cta-band p { color: rgba(255, 253, 249, .92); }
.cta-band .rail {
  background-image: repeating-linear-gradient(90deg, rgba(255,253,249,.4) 0 3px, transparent 3px 14px);
}
.cta-band a:not(.btn) { color: var(--white); }

/* A depot-ticket panel — stands in for event artwork and echoes the
   New Orleans, Mobile & Chicago ticket in the museum's own collection. */
.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
}
.ticket::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  border-right: 2px dashed rgba(34, 31, 28, .28);
  background: var(--brass);
  border-radius: 3px 0 0 3px;
}
.ticket-head {
  font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--depot); padding-left: .9rem;
  border-bottom: 1px solid var(--rule); padding-bottom: .8rem; margin-bottom: .9rem;
}
.ticket dl { margin: 0; padding-left: .9rem; }
.ticket dt {
  font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .15rem;
}
.ticket dd {
  margin: 0 0 .95rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; line-height: 1.3;
}
.ticket dd:last-child { margin-bottom: 0; }
.ticket .ticket-hero { font-size: 1.35rem; color: var(--depot); }
/* Outrank .cta-band's white link colour — the ticket sits on cream, not red. */
.cta-band .ticket a:not(.btn),
.ticket a:not(.btn) { color: var(--depot); font-weight: 700; }

/* --- 16. Map ------------------------------------------------------------------ */

.map {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-3);
}
.map iframe { width: 100%; height: 420px; border: 0; }

/* --- 17. Footer ---------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(250, 246, 238, .78); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.site-footer h4 {
  color: var(--white); font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(250, 246, 238, .82); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.footer-brand .mark { color: var(--paper-2); margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; line-height: 1.6; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--brass); margin-top: .8rem !important; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer-list li { margin-bottom: .6rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(250, 246, 238, .14);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: rgba(250, 246, 238, .55);
}

.fb-link { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; }
.fb-link svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* --- 18. Reveal on scroll ------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --- 19. Print ------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .map { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero, .banner { background: #fff; color: #000; padding-block: 0; }
  .hero-img, .banner-img, .hero::after, .banner::after { display: none; }
  .hero h1, .banner h1, .banner .lede { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
