/* Presbyterian Church of Ghana, Mamprobi District.
   Mobile first: the base rules are the phone layout, min-width queries add to it.
   White pages, the crest's own blue, one gold accent. */

:root {
  --bg: #FFFFFF;
  --soft: #F4F6FC;
  --blue: #283898;            /* sampled from the church crest */
  --blue-deep: #172060;
  --ink: #0F1A44;
  --ink-soft: #56607E;
  --gold: #D9A63A;
  --gold-soft: #F3DFA8;
  --gold-deep: #8A6410;
  --rule: rgba(15, 26, 68, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 26, 68, 0.06), 0 6px 16px -8px rgba(15, 26, 68, 0.14);
  --shadow-md: 0 2px 4px rgba(15, 26, 68, 0.06), 0 22px 40px -18px rgba(15, 26, 68, 0.32);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible + .nav-button, .ctrl:focus-visible, .dot:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px;
}
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--blue); color: #fff; padding: 0.75rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 0.5rem; }

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 70rem; }
.narrow > * { max-width: 46rem; }
.ic { flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(0.45rem + env(safe-area-inset-top)) var(--gutter) 0.45rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 2.75rem; }
.brand img { width: auto; height: 2.5rem; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.brand small { font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.01em; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; border-radius: 12px; }
.nav-button span, .nav-button span::before, .nav-button span::after {
  display: block; width: 1.4rem; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-button span { position: relative; }
.nav-button span::before, .nav-button span::after { content: ""; position: absolute; left: 0; }
.nav-button span::before { top: -7px; }
.nav-button span::after { top: 7px; }
.nav-toggle:checked + .nav-button span { background: transparent; }
.nav-toggle:checked + .nav-button span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-button span::after { transform: translateY(-7px) rotate(-45deg); }

.top nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column;
  background: #fff; border-bottom: 1px solid var(--rule);
  padding: 0.5rem var(--gutter) 1rem;
  box-shadow: 0 24px 30px -22px rgba(15, 26, 68, 0.45);
}
.nav-toggle:checked ~ nav { display: flex; }
.top nav a {
  display: flex; align-items: center; min-height: 3rem;
  text-decoration: none; font-weight: 500; font-size: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.top nav a:last-child { border-bottom: 0; }
.top nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 10.5vw, 3.3rem); line-height: 1.05; margin: 0 0 1rem; }
h2 { font-size: 1.95rem; line-height: 1.12; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.25rem; font-weight: 600; }
h1.h1-long { font-size: clamp(1.9rem, 7.2vw, 2.7rem); line-height: 1.1; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.intro { color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }
.textlink { font-weight: 600; color: var(--blue); text-underline-offset: 0.25em; text-decoration-thickness: 1.5px; }
.textlink:hover { color: var(--blue-deep); }

/* ---------- sections ---------- */
.block { padding: 3.25rem 0; }
.block-soft, .block-tint { background: var(--soft); }
.block:not(.block-soft):not(.block-tint) + .block:not(.block-soft):not(.block-tint) { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.page-head { padding: 2.25rem 0 1.5rem; background: linear-gradient(to bottom, var(--soft), #fff); }
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.crumbs a { text-underline-offset: 0.2em; }
.crumbs-bar { padding-top: 1rem; }
.crumbs-bar .crumbs { margin: 0; }
.two { display: grid; gap: 2.25rem; }
.side { display: grid; align-content: start; }
.side h2 { font-size: 1.3rem; margin-top: 1.75rem; font-weight: 600; }
.side h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
#contact { scroll-margin-top: 5rem; }
.office-line { margin-top: 1.25rem; }

/* ---------- hero slider ---------- */
.slider { position: relative; background: #fff; border-bottom: 1px solid var(--rule); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; padding: 2rem 0 4.75rem;
}
.slide:first-child { background: radial-gradient(34rem 22rem at 100% 0%, #E7EBFA 0%, rgba(231, 235, 250, 0) 70%), #fff; }
.slide:nth-child(n+2) { background: var(--soft); }
.slide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: center; }
.slide-copy h1, .slide-copy h2 { max-width: 20ch; }
.slide-copy .actions { margin-top: 1.6rem; }
.slide-media { min-width: 0; }
.slide-media.is-art { order: -1; }
.slide-media.is-photo { order: -1; }
.slide-media.is-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-md); }

.crest-stage { position: relative; display: grid; place-items: center; width: 6.75rem; aspect-ratio: 1; }
.crest-stage::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #EDF0FB 62%, #DFE5F8 100%);
  box-shadow: inset 0 0 0 1px rgba(40, 56, 152, 0.14), 0 14px 24px -16px rgba(40, 56, 152, 0.5);
}
.crest-stage::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px solid rgba(40, 56, 152, 0.16); }
.slide-crest { position: relative; display: block; width: 56%; height: auto; filter: drop-shadow(0 6px 8px rgba(15, 26, 68, 0.25)); }

.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.stack li { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }

.slider-controls { display: none; position: absolute; left: 0; right: 0; bottom: 0.6rem; pointer-events: none; }
.js .slider-controls { display: block; }
.slider-controls .wrap { display: flex; align-items: center; justify-content: space-between; }
.slider-controls .dots, .slider-controls .ctrls { display: flex; align-items: center; pointer-events: auto; }
.dot { width: 2rem; height: 2.75rem; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.dot::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: rgba(15, 26, 68, 0.22); transition: width 240ms var(--ease-out), background-color 240ms var(--ease-out); }
.dot[aria-current="true"]::before { width: 1.8rem; background: var(--blue); }
.ctrl {
  width: 2.75rem; height: 2.75rem; padding: 0; margin-left: 0.2rem; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: #fff; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.ctrl:active { transform: scale(0.94); }
.ctrl .i-play { display: none; }
.ctrl.is-paused .i-play { display: block; }
.ctrl.is-paused .i-pause { display: none; }

/* one authored moment: the words and picture of each slide settle in as it arrives */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.slide.is-active .slide-copy > * { animation: rise 720ms var(--ease-out) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: 90ms; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: 180ms; }
.slide.is-active .slide-copy > :nth-child(4) { animation-delay: 260ms; }
.slide.is-active .slide-media { animation: rise 900ms var(--ease-out) 140ms both; }

/* ---------- places: tiles with a featured district head ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); }
.tile a {
  position: relative; display: flex; flex-direction: column; min-height: 8.75rem; border-radius: 24px; text-decoration: none; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-sm);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.tile-text { position: relative; display: grid; align-content: end; gap: 0.4rem; flex: 1; padding: 1.25rem 4.25rem 1.2rem 1.35rem; }
.tile-photo { display: block; padding: 0.6rem 0.6rem 0; }
.tile-photo .photo { border-radius: 18px; aspect-ratio: 16 / 9; }
.tile.has-photo .tile-text { padding: 0.85rem 4.25rem 1rem 1.05rem; }
.tile-area { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.tile-name { position: relative; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.015em; }
.tile-go {
  position: absolute; right: 1.1rem; bottom: 1.1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--soft); color: var(--blue);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.tile-go .arrow { color: currentColor; }
.tiles-quiet .tile a { min-height: 6.75rem; box-shadow: inset 0 0 0 1px var(--rule); }
.tiles-quiet .tile-name { font-size: 1.3rem; }

.tile-head a { background: var(--blue-deep); color: #fff; min-height: 12.5rem; box-shadow: var(--shadow-md); }
.tile-head:not(.has-photo) a::before {
  content: ""; position: absolute; inset: 0; opacity: 0.16;
  background: url(logos/crest-lg.webp) no-repeat right 4.6rem top 1.1rem / auto 62%;
}
.tile-head .tile-area { color: rgba(255, 255, 255, 0.8); }
.tile-head .tile-name { font-size: 1.85rem; color: #fff; }
.tile-head .tile-go { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tile-head .tag { position: relative; justify-self: start; }
.tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; background: var(--gold); color: var(--blue-deep); padding: 0.28rem 0.7rem; border-radius: 999px; }

/* ---------- photos and placeholders ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: var(--ar, 16 / 10);
  border-radius: 22px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--rule);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-main { margin-bottom: 1.75rem; box-shadow: var(--shadow-md); }
.photo-empty {
  display: grid; place-content: center; justify-items: center; gap: 0.5rem; padding: 1rem; text-align: center; color: var(--ink-soft);
  background:
    repeating-linear-gradient(135deg, rgba(40, 56, 152, 0.04) 0 14px, rgba(40, 56, 152, 0) 14px 28px),
    linear-gradient(145deg, #EEF1FB, #F8F9FE);
  box-shadow: none; border: 1.5px dashed rgba(40, 56, 152, 0.3);
}
.photo-main.photo-empty { box-shadow: none; }
.photo-empty .ic { color: var(--blue); opacity: 0.75; }
.photo-empty figcaption { display: grid; gap: 0.1rem; }
.photo-label { font-weight: 600; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.photo-empty small { font-size: 0.8rem; }
.photo-compact { gap: 0.2rem; }
.photo-compact .ic { width: 22px; height: 22px; }
.gallery { display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); }

/* simple ruled lists, for the secondary places on inner pages */
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.place { border-bottom: 1px solid var(--rule); }
.place a {
  display: flex; align-items: center; gap: 0.85rem; min-height: 4rem; padding: 0.9rem 0.25rem; text-decoration: none;
  transition: background-color 160ms var(--ease-out), padding 160ms var(--ease-out);
}
.place a:active { background: rgba(15, 26, 68, 0.05); }
.place-main { display: grid; flex: 1; min-width: 0; }
.place-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.place-area { color: var(--ink-soft); font-size: 0.95rem; }
.place .tag { background: var(--blue); color: #fff; }
.arrow { flex: none; color: var(--blue); transition: transform 180ms var(--ease-out); }
.place-row { display: flex; align-items: center; gap: 0.85rem; min-height: 4rem; padding: 0.9rem 0.25rem; }

/* ---------- people ---------- */
.avatar {
  flex: none; width: 3.25rem; height: 3.25rem; border-radius: 999px; object-fit: cover;
  display: grid; place-items: center; background: linear-gradient(145deg, var(--blue), var(--blue-deep)); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rule);
}
.avatar-lg { width: 6rem; height: 6rem; font-size: 2rem; }
.person { display: flex; align-items: center; gap: 1.25rem; }
.person h1 { margin-bottom: 0.25rem; }
.person .lead { margin: 0; }

/* ---------- meetings, programs, history ---------- */
.meets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.meet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1rem; padding: 1.05rem 0.25rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 5rem; }
.meet-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; flex: 1 1 14rem; }
.meet-sub { flex-basis: 100%; color: var(--ink-soft); font-size: 0.95rem; }
.tag-gold { background: var(--gold-soft); color: var(--blue-deep); }
.mini-head { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 0.75rem; }
.two-even { display: grid; gap: 2rem; }
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--rule); display: grid; gap: 1.25rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 6px); top: 0.55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #fff; }
.tl-year { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--blue); }
.timeline p { margin: 0.15rem 0 0; }

/* ---------- events, news, service times ---------- */
.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.item { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.item-date { font-size: 0.9rem; font-weight: 600; color: var(--gold-deep); margin-bottom: 0.25rem; }
.times { margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.times div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.times dt { font-weight: 600; }
.times dd { margin: 0; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; margin: 1.5rem 0 0; }
.side .actions, .block .actions { margin-top: 0.6rem; }
.actions + p, .actions + .actions { margin-top: 1.25rem; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: 0 1.6rem;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 999px;
  box-shadow: 0 1px 1px rgba(15, 26, 68, 0.2), 0 10px 20px -10px rgba(40, 56, 152, 0.7);
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(15, 26, 68, 0.5); }
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; font-weight: 500; text-decoration: none; }

.facts { margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.facts a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }

/* ---------- logos and groups ---------- */
.logo-tile {
  display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 0.5rem; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule), 0 1px 2px rgba(15, 26, 68, 0.06);
}
.logo-tile img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.strip .logo-tile { aspect-ratio: 1; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.strip .logo-tile:active { transform: scale(0.96); }
.slide-media.is-logos .strip { margin: 0; }
.groups { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); display: grid; }
.group { display: flex; align-items: center; gap: 1rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 5rem; }
.logo-lg { flex: none; width: 5.75rem; height: 5.75rem; }
.group-text { display: grid; gap: 0.2rem; min-width: 0; }
.group-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.group-motto { color: var(--ink-soft); font-size: 0.95rem; }
.group:target { background: rgba(217, 166, 58, 0.16); }

/* ---------- the district office panel ---------- */
.band {
  position: relative; overflow: hidden; display: grid; gap: 1.5rem; border-radius: 28px;
  padding: 2rem 1.5rem; background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff;
  box-shadow: var(--shadow-md);
}
.band::before { content: ""; position: absolute; right: -2rem; bottom: -3rem; width: 15rem; height: 17rem; opacity: 0.09; background: url(logos/crest-lg.webp) no-repeat center / contain; }
.band > * { position: relative; }
.band h2 { color: #fff; margin: 0.9rem 0 0.5rem; }
.band-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--gold-soft); }
.band-hours { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; margin: 0 0 0.9rem; font-family: var(--display); font-size: 1.5rem; line-height: 1.3; }
.band-hours strong { font-weight: 600; }
.band-hours span { color: var(--gold-soft); }
.band-note { color: rgba(255, 255, 255, 0.8); max-width: 46ch; margin: 0; }
.band .actions { margin: 0; }
.band .times { margin: 0.25rem 0 0; }
.band .times dt { color: #fff; font-weight: 600; }
.band .times dd { color: var(--gold-soft); font-family: var(--display); font-size: 1.2rem; }
.band-sub { color: rgba(255, 255, 255, 0.75); font-family: var(--body); font-size: 0.95rem; }

/* ---------- footer ---------- */
.foot { background: var(--soft); color: var(--ink-soft); padding: 3rem 0 1.5rem; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; gap: 2rem; }
.foot-crest { display: block; width: auto; height: 3.25rem; margin-bottom: 0.9rem; }
.foot-name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--blue-deep); margin: 0 0 0.25rem; line-height: 1.2; }
.foot-note { margin: 0; }
.foot-head { font-weight: 600; color: var(--ink); margin: 0 0 0.5rem; }
.foot-gap { margin-top: 1rem; }
.foot-head a { text-decoration: none; }
.foot-head a:hover { text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 2.5rem; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot li .foot-text { display: inline-flex; align-items: center; min-height: 2.5rem; }
.foot-fine { margin: 2rem auto 0; font-size: 0.85rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* ---------- tablet ---------- */
@media (min-width: 40rem) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
  .btn { display: inline-flex; }
  .link { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  h2 { font-size: 2.3rem; }
  .block { padding: 4.25rem 0; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1rem; }
  .tile-head { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
  .groups { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .two-even { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .slide { padding: 3rem 0 5rem; }
  .band { padding: 2.75rem 2.25rem; }
  .crest-stage { width: 8rem; }
}

/* ---------- desktop ---------- */
@media (min-width: 60rem) {
  body { font-size: 1.125rem; }
  :root { --gutter: max(clamp(1.5rem, 5vw, 4rem), env(safe-area-inset-left), env(safe-area-inset-right)); }
  html { scroll-padding-top: 0; }
  .top { padding-top: 0.9rem; padding-bottom: 0.9rem; padding-inline: max(var(--gutter), calc((100vw - 70rem) / 2 + var(--gutter))); }
  .brand img { height: 2.75rem; }
  .brand strong { font-size: 1.3rem; }
  .nav-button { display: none; }
  .top nav a.nav-home { display: none; }
  .brand small { display: none; }
  .top nav { position: static; display: flex; flex-direction: row; gap: 0.95rem; padding: 0; background: none; border: 0; box-shadow: none; }
  .top nav a { min-height: 2.75rem; border: 0; font-size: 0.9rem; position: relative; white-space: nowrap; }
  .top nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: var(--blue);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 220ms var(--ease-out);
  }
  .top nav a[aria-current="page"]::after { transform: scaleX(1); }

  h1 { font-size: clamp(3rem, 5vw, 4.6rem); }
  h2 { font-size: 2.6rem; }
  .lead { font-size: 1.3rem; }
  .page-head { padding: 3.75rem 0 2.25rem; }
  .block { padding: 5.5rem 0; }
  .two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4.5rem; }
  .section-head { margin-bottom: 1.75rem; }

  .slide { padding: 4.5rem 0 5.5rem; min-height: 34rem; }
  .slide-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; }
  .slide-media { justify-self: end; width: min(100%, 28rem); }
  .slide-media.is-art { order: 0; display: grid; justify-items: center; }
  .slide-media.is-photo { order: 0; width: min(100%, 34rem); }
  .slide-copy h1 { font-size: clamp(2.7rem, 3.9vw, 3.6rem); max-width: 24ch; line-height: 1.06; }
  .slide-copy h2 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); }
  .crest-stage { width: min(100%, 22rem); }
  .stack li { font-size: 1.65rem; padding: 0.9rem 0.25rem; }

  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .tile a { min-height: 10.5rem; }
  .tile-text { padding: 1.5rem 4.6rem 1.4rem 1.6rem; }
  .tile.has-photo .tile-text { padding: 1rem 4.6rem 1.2rem 1.2rem; }
  .tile-head a { min-height: 15rem; }
  .tile-head .tile-name { font-size: 2.5rem; }
  .tile-head:not(.has-photo) a::before { background-position: right 6.5rem center; background-size: auto 78%; }
  .tile-head.has-photo a { flex-direction: row-reverse; align-items: stretch; }
  .tile-head.has-photo .tile-photo { flex: 0 0 44%; padding: 0.7rem; }
  .tile-head.has-photo .tile-photo .photo { height: 100%; aspect-ratio: auto; }
  .tile-head.has-photo .tile-text { padding: 2rem 5rem 2rem 2.25rem; }
  .tile-head.has-photo .tile-go { z-index: 2; right: 1.6rem; bottom: 1.6rem; background: var(--gold); color: var(--blue-deep); }
  .tiles-quiet .tile a { min-height: 8rem; }

  .band { grid-template-columns: minmax(0, 1.5fr) auto; align-items: center; padding: 3.5rem 4rem; gap: 3rem; }
  .band::before { right: 4rem; bottom: auto; top: 50%; transform: translateY(-50%); width: 20rem; height: 22rem; }
  .band .actions { flex-direction: column; align-items: stretch; }
  .band-hours { font-size: 1.85rem; }
  .logo-lg { width: 7rem; height: 7rem; }
  .avatar-lg { width: 8rem; height: 8rem; font-size: 2.6rem; }
  .person { gap: 2rem; }
  .facts div { grid-template-columns: 5.5rem 1fr; gap: 1rem; }
}

@media (min-width: 72rem) {
  .brand small { display: block; }
  .top nav { gap: 1.2rem; }
  .top nav a { font-size: 0.95rem; }
}

/* ---------- hover only where hover exists ---------- */
@media (pointer: coarse) {
  .facts a, .fine a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
}
@media (hover: hover) {
  .top nav a:not([aria-current="page"]):hover::after { transform: scaleX(1); }
  .btn:hover { background: var(--blue-deep); transform: translateY(-2px); }
  .btn-ghost:hover { background: rgba(15, 26, 68, 0.06); }
  .btn-light:hover { background: var(--gold-soft); }
  .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
  .ctrl:hover { background: var(--soft); }
  .tile a:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-md); }
  .tile a:hover .tile-go { background: var(--blue); color: #fff; transform: translateX(2px); }
  .tile-head a:hover .tile-go { background: var(--gold); color: var(--blue-deep); }
  .place a:hover { background: rgba(40, 56, 152, 0.05); padding-left: 0.75rem; }
  .place a:hover .arrow { transform: translateX(4px); }
  .strip .logo-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-sm); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides { scroll-behavior: auto; }
  .slide.is-active .slide-copy > *, .slide.is-active .slide-media { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
