/* ==========================================================================
   Friends of Red House – stylesheet
   Palette taken from the logo: brick red, gilt (roof), linen (walls).
   Supporting colours: Morris-green sage and deep indigo ink.
   ========================================================================== */

:root {
  --brick:        #9B2B1F;
  --brick-deep:   #6E1D15;
  --brick-tint:   #F4E4E0;
  --gilt:         #C99A33;
  --gilt-deep:    #8A6414;
  --linen:        #F7F3EC;
  --ink:          #1C2633;
  --ink-soft:     #3C4858;
  --sage:         #4D6B49;
  --sage-tint:    #E6EDE1;
  --paper:        #F7F6F3;
  --white:        #FFFFFF;
  --line:         #DDD8CF;
  --line-dark:    rgba(255, 255, 255, .18);

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif:   "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max:          1560px;
  --gutter:       clamp(1.25rem, 4vw, 4.5rem);
  --space-section: clamp(4rem, 8vw, 8rem);
  --radius:       6px;

  --brick-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='56'%3E%3Cpath d='M0 .5h72M0 28.5h72M.5 0v28M36.5 28v28' stroke='%23000' stroke-opacity='.17' fill='none'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--brick); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brick-deep); }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--white { background: var(--white); }
.section--ink   { background: var(--ink); color: #fff; }
.section--ink a:not(.btn) { color: #F0C968; }
.section--sage  { background: var(--sage-tint); }
.section--brick { background-color: var(--brick); background-image: var(--brick-pattern); color: #fff; }
.section--brick a:not(.btn) { color: #fff; }

/* ---------- Typography scale ---------- */
.h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }
.section--ink .lead, .section--brick .lead, .hero .lead, .page-hero .lead { color: rgba(255,255,255,.86); }
.prose p, .prose ul { max-width: 72ch; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.caption { font-family: var(--font-serif); font-style: italic; font-size: .95rem; color: var(--ink-soft); margin-top: .6rem; }
.section--ink .caption { color: rgba(255,255,255,.75); }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin: 0; }
.section-head--single { grid-template-columns: minmax(0, 52rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--small { padding: .6rem 1.1rem; font-size: .95rem; }
.btn--primary { background: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-deep); color: #fff; }
.btn--gilt { background: var(--gilt); color: var(--ink); }
.btn--gilt:hover { background: #DDB04C; color: var(--ink); }
.btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--brick-deep); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

.text-link { font-weight: 600; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--ink); color: rgba(255,255,255,.88); font-size: .9rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #F0C968; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 2.6rem; }
.topbar__list { list-style: none; display: flex; gap: 1.75rem; flex-wrap: wrap; }
.topbar__list a { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__right { display: flex; align-items: center; gap: 1.5rem; }
.topbar__nt { display: inline-flex; align-items: center; gap: .4rem; }

.social { display: flex; gap: .55rem; flex-wrap: wrap; }
.social a {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1.5px solid currentColor; color: inherit; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.social a:hover { background: var(--gilt); border-color: var(--gilt); color: var(--ink); }
.social--small { gap: .3rem; }
.social--small a { width: 1.9rem; height: 1.9rem; border-width: 0; }
.social--small a:hover { background: transparent; color: #F0C968; }

.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font-family: var(--font-serif); font-size: .95rem; color: var(--ink-soft); margin-bottom: .15rem; }
.brand__big { font-family: var(--font-display); font-size: 1.9rem; color: var(--brick); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__small { color: rgba(255,255,255,.78); }
.brand--light .brand__big { color: #fff; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; justify-content: flex-end; }
.primary-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .8rem; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: 1rem; border-radius: var(--radius);
  box-shadow: inset 0 -3px 0 transparent;
}
.primary-nav a:not(.btn):hover { color: var(--brick); box-shadow: inset 0 -3px 0 var(--gilt); }
.primary-nav a[aria-current="page"] { color: var(--brick); box-shadow: inset 0 -3px 0 var(--brick); }
.primary-nav__cta { margin-left: .75rem; }

.nav-toggle { display: none; align-items: center; gap: .6rem; padding: .6rem .9rem; border: 2px solid var(--ink); border-radius: var(--radius); background: transparent; cursor: pointer; font-weight: 600; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero { background-color: var(--brick); background-image: var(--brick-pattern); color: #fff; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 6vw, 7rem); align-items: end;
  padding-top: clamp(3rem, 7vw, 6.5rem);
}
.hero__copy { padding-bottom: clamp(3rem, 7vw, 6.5rem); max-width: 46rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 40rem; }
.hero__art { align-self: end; width: 100%; max-width: 640px; margin-inline: auto; }

.arch-frame { clip-path: url(#arch); background: var(--gilt); padding: 9px 9px 0; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; clip-path: url(#arch); aspect-ratio: 4 / 5; }
.arch-frame--sm img { aspect-ratio: 3 / 4; }
.arch-frame--ink { background: var(--gilt); }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy { animation: fade-in .7s ease-out both; }
  .hero__art  { animation: rise .95s cubic-bezier(.2, .7, .2, 1) .1s both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }

/* Facts strip */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 1.75rem clamp(1rem, 2.5vw, 2.25rem); border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__title { font-family: var(--font-display); font-size: 1.45rem; color: var(--brick); line-height: 1.2; display: block; margin-bottom: .3rem; }
.fact p { margin: 0; font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   Welcome
   ========================================================================== */
.welcome { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.welcome__text h2 { margin-bottom: 1.5rem; }
.quick-links { background: var(--white); border-top: 5px solid var(--brick); padding: clamp(1.5rem, 3vw, 2.5rem); list-style: none; }
.quick-links h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.quick-links ul { list-style: none; }
.quick-links li { border-top: 1px solid var(--line); }
.quick-links a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .95rem 0; text-decoration: none; font-weight: 600; color: var(--ink); }
.quick-links a span { font-weight: 400; color: var(--ink-soft); font-size: .95rem; text-align: right; }
.quick-links a:hover { color: var(--brick); }

/* ==========================================================================
   What the Friends do
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.service { background: var(--white); border-top: 5px solid var(--brick); padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; }
.service h3 { margin-bottom: .8rem; }
.service p { color: var(--ink-soft); }
.service .text-link { margin-top: auto; padding-top: .5rem; }
.service--feature { grid-row: span 2; background: var(--ink); color: #fff; border-top-color: var(--gilt); }
.service--feature p { color: rgba(255,255,255,.86); }
.service--feature a:not(.btn) { color: #F0C968; }
.service--feature ul { list-style: none; margin: 1rem 0 1.5rem; }
.service--feature li { padding: .7rem 0; border-top: 1px solid var(--line-dark); }
.service--feature li strong { display: block; font-weight: 600; }
.service--sage { border-top-color: var(--sage); }

/* ==========================================================================
   House story + timeline
   ========================================================================== */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.portrait figcaption { margin-top: .8rem; }
.portrait figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; display: block; color: #fff; }
.story__text h2 { margin-bottom: 1.4rem; }
.story__text p { color: rgba(255,255,255,.88); max-width: 62ch; }
.story__links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.5rem; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(3rem, 6vw, 5.5rem); counter-reset: none; }
.timeline li { position: relative; padding: 2.1rem clamp(.75rem, 1.5vw, 1.5rem) 0 0; border-top: 2px solid var(--line-dark); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--gilt); box-shadow: 0 0 0 4px var(--ink); }
.timeline__year { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: #F0C968; display: block; margin-bottom: .4rem; line-height: 1.1; }
.timeline p { margin: 0; font-size: .98rem; color: rgba(255,255,255,.86); line-height: 1.55; }

/* ==========================================================================
   Funding ledger
   ========================================================================== */
.ledger-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.ledger-layout h2 { margin-bottom: 1.25rem; }
.ledger { width: 100%; border-collapse: collapse; background: var(--white); }
.ledger caption { text-align: left; padding: 0 0 .9rem; font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); }
.ledger th, .ledger td { padding: 1.05rem 1.25rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ledger tbody tr:first-child th, .ledger tbody tr:first-child td { border-top: 3px solid var(--brick); }
.ledger th { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--brick); white-space: nowrap; width: 7.5rem; line-height: 1.2; }
.ledger td:last-child { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger small { display: block; color: var(--ink-soft); margin-top: .25rem; font-size: .92rem; line-height: 1.45; }

/* ==========================================================================
   Bookshop
   ========================================================================== */
.bookshop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.bookshop__text h2 { margin-bottom: 1.4rem; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic__main { grid-row: span 2; }
.mosaic figure { margin: 0; min-height: 220px; }
.mosaic__main img { min-height: 480px; }

/* ==========================================================================
   News + events
   ========================================================================== */
.news-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.news-block + .news-block { margin-top: 2.5rem; }
.news-block h3 { margin-bottom: .9rem; }
.news-item { border-top: 1px solid var(--line); padding: 1.35rem 0; }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin-bottom: .4rem; }
.news-item p { margin: 0 0 .6rem; color: var(--ink-soft); }
.news-item p:last-child { margin-bottom: 0; }
.booklet { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.75rem; align-items: start; background: var(--white); padding: clamp(1.25rem, 2.5vw, 2rem); border-top: 5px solid var(--gilt); }
.booklet img { width: 100%; box-shadow: 0 8px 22px rgba(28, 38, 51, .22); }
.booklet h3 { margin-bottom: .6rem; }
.price { font-family: var(--font-display); font-size: 1.8rem; color: var(--brick); line-height: 1; }

/* ==========================================================================
   Patrons
   ========================================================================== */
.patrons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.patron { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 1.5rem; align-items: start; }
.patron h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.patron p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.monogram {
  clip-path: url(#arch); background: var(--sage); color: #fff; aspect-ratio: 3 / 4; width: 100%;
  display: grid; place-items: end center; padding-bottom: 18%; font-family: var(--font-display); font-size: 2.4rem; letter-spacing: .02em;
}
.monogram--brick { background: var(--brick); }
.patron .arch-frame { padding: 6px 6px 0; }
.patron .arch-frame img { aspect-ratio: 3 / 4; }

/* ==========================================================================
   Gallery preview + gallery page
   ========================================================================== */
.gallery-strip { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(.6rem, 1.4vw, 1.1rem); }
.gallery-strip figure { margin: 0; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery-strip a { display: block; position: relative; }

.gallery-group + .gallery-group { margin-top: clamp(3rem, 6vw, 5rem); }
.gallery-group h2 { margin-bottom: .5rem; }
.gallery-group > p { max-width: 60ch; color: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(.7rem, 1.5vw, 1.25rem); margin-top: 1.75rem; }
.gallery-grid figure { margin: 0; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-grid figcaption { margin-top: .5rem; font-family: var(--font-serif); font-style: italic; font-size: .95rem; color: var(--ink-soft); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(14, 20, 28, .92); }
.lightbox__inner { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: clamp(1rem, 3vw, 2.5rem); gap: 1rem; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox__caption { font-family: var(--font-serif); font-style: italic; margin: 0; }
.lightbox__btns { display: flex; gap: .5rem; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); padding: .65rem 1.1rem; border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.lightbox button:hover { background: #fff; color: var(--ink); }

/* ==========================================================================
   Location
   ========================================================================== */
.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: stretch; }
.find__text h2 { margin-bottom: 1.25rem; }
.address-box { background: var(--white); border-left: 5px solid var(--brick); padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 1.1rem; line-height: 1.6; }
.map-frame { border: 0; width: 100%; min-height: 420px; height: 100%; background: var(--line); border-radius: var(--radius); }
.route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 3rem; }
.route article { background: var(--white); border-top: 5px solid var(--sage); padding: clamp(1.5rem, 3vw, 2.5rem); }
.route h3 { margin-bottom: 1rem; }
.route ol { padding-left: 1.2em; }
.route li { margin-bottom: .75rem; }
.map-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }

/* ==========================================================================
   Page header for inner pages
   ========================================================================== */
.page-hero { position: relative; color: #fff; background-color: var(--ink); background-size: cover; background-position: center; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,38,51,.96) 0%, rgba(28,38,51,.82) 55%, rgba(110,29,21,.72) 100%); }
.page-hero__inner { padding-block: clamp(3rem, 6vw, 5.5rem); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; margin-bottom: 1.25rem; color: rgba(255,255,255,.8); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: #fff; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 52rem; margin: 1.2rem 0 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.two-col--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aside-box { background: var(--white); border-top: 5px solid var(--brick); padding: clamp(1.5rem, 3vw, 2.5rem); }
.aside-box h2, .aside-box h3 { margin-bottom: 1rem; }
.aside-box ul { list-style: none; }
.aside-box li { padding: .7rem 0; border-top: 1px solid var(--line); }
.aside-box--ink { background: var(--ink); color: #fff; border-top-color: var(--gilt); }
.stack > * + * { margin-top: 1.75rem; }

.hollamby-photo { max-width: 520px; }
.hollamby-photo img { width: 100%; }

.volunteer-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin-top: 2rem; }
.volunteer-roles article { background: var(--white); border-top: 5px solid var(--sage); padding: 1.5rem; }
.volunteer-roles h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.volunteer-roles p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.contact-cards { display: grid; gap: 1rem; margin: 0; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-card .icon { color: var(--brick); margin-top: .25rem; }
.contact-card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; margin-bottom: .15rem; }
.contact-card p { margin: 0; }

/* ==========================================================================
   Join band
   ========================================================================== */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.join h2 { margin-bottom: 1.25rem; }
.join__list { list-style: none; margin: 1.5rem 0 0; }
.join__list li { padding: .75rem 0; border-top: 1px solid var(--line-dark); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-wrap { background: var(--white); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 5px solid var(--gilt); border-radius: 0 0 var(--radius) var(--radius); }
.form-wrap a { color: var(--brick); }
.form-title { font-size: 1.75rem; margin-bottom: .5rem; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label, .form-field legend { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .98rem; padding: 0; }
.form-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field select, .form-field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid #8C93A0; border-radius: var(--radius); background: #fff; line-height: 1.4;
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--gilt); outline-offset: 1px; border-color: var(--ink); }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #B3261E; border-width: 2px; }
.help { font-size: .9rem; color: var(--ink-soft); margin: .35rem 0 0; }
.error { font-size: .92rem; color: #B3261E; font-weight: 600; margin: .35rem 0 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 400 !important; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0 !important; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brick); }
.form-privacy { font-size: .9rem; color: var(--ink-soft); margin: 1.1rem 0 1.25rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; border-left: 5px solid; }
.notice ul { margin: .5rem 0 0 1.1rem; }
.notice--ok { background: var(--sage-tint); border-color: var(--sage); }
.notice--error { background: #FBE9E7; border-color: #B3261E; }
.notice:focus { outline: 3px solid var(--gilt); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); margin-top: 0; }
.site-footer__brick { height: 14px; background-color: var(--brick); background-image: var(--brick-pattern); background-size: 72px 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4.5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.footer-about p { margin: 1.25rem 0; max-width: 34ch; }
.footer-title { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: #F0C968; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-address { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.footer-address a, .footer-address__lines { display: flex; gap: .65rem; align-items: flex-start; }
.footer-address .icon { margin-top: .3rem; color: var(--gilt); }
.site-footer .social a:hover { color: var(--ink); }
.footer-legal { border-top: 1px solid var(--line-dark); font-size: .92rem; }
.footer-legal__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
.footer-legal p { margin: 0; }

/* 404 */
.not-found { text-align: left; max-width: 42rem; }
.not-found h1 { margin-bottom: 1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .topbar__nt { display: none; }
  .primary-nav a:not(.btn) { padding: .6rem .6rem; font-size: .98rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--feature { grid-row: auto; grid-column: 1 / -1; }
  .patrons { grid-template-columns: 1fr; }
  .patron { grid-template-columns: 150px 1fr; max-width: 44rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .volunteer-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(28,38,51,.14); display: none; max-height: calc(100vh - 6rem); overflow-y: auto; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem var(--gutter) 1.5rem; }
  .primary-nav a:not(.btn) { padding: 1rem .25rem; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brick); padding-left: 1rem; }
  .primary-nav__cta { margin: 1rem 0 0; }
  .primary-nav__cta .btn { width: 100%; }
  .navbar { position: relative; }

  .hero__inner, .welcome, .story, .ledger-layout, .bookshop, .news-layout, .find, .two-col, .two-col--even, .join, .section-head { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin-inline: 0; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; border-left: 2px solid var(--line-dark); margin-left: 7px; }
  .timeline li { border-top: 0; padding: 0 0 2rem 1.75rem; }
  .timeline li::before { top: .5rem; left: -9px; }
  .route { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip figure:first-child { grid-column: 1 / -1; }
  .mosaic__main img { min-height: 320px; }
}

@media (max-width: 720px) {
  body { font-size: 1.02rem; }
  .topbar__list li:nth-child(2) { display: none; }
  .topbar__inner { justify-content: space-between; }
  .brand__big { font-size: 1.6rem; }
  .brand img { width: 46px; height: 46px; }
  .services, .volunteer-roles, .form-grid, .checks { grid-template-columns: 1fr; }
  .portraits { gap: 1rem; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child, .fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .booklet { grid-template-columns: 1fr; }
  .booklet img { max-width: 220px; }
  .patron { grid-template-columns: 110px 1fr; gap: 1rem; }
  .ledger th, .ledger td { display: block; width: auto; padding: .15rem 1rem; text-align: left !important; white-space: normal; border-top: 0; }
  .ledger tr { display: block; padding: 1rem 0; border-top: 1px solid var(--line); }
  .ledger tbody tr:first-child { border-top: 3px solid var(--brick); }
  .ledger tbody tr:first-child th, .ledger tbody tr:first-child td { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr; }
  .lightbox__bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, .nav-toggle, .primary-nav, .site-footer__brick, .btn-row { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  body { background: #fff; }
}
