/* Trinity Church of New Lebanon: site styles
   Phone layout first; wider screens are added further down. */

/* Fonts: Inter 4.1 (https://github.com/rsms/inter, SIL Open Font License, see
   fonts/LICENSE.txt), served from this site so every device shows the same letters.
   The files hold Latin characters only and every weight from 100 to 900. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* Stand-in shown for a moment while Inter downloads: Arial resized to Inter's width
   and line height, so the text barely moves when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 107.36%;
  ascent-override: 90.24%;
  descent-override: 22.47%;
  line-gap-override: 0%;
}

:root {
  color-scheme: only light;  /* light design only: asks phone browsers not to auto-darken it */
  --red: #9b1c22;        /* deep red from the logo; white text on it passes contrast */
  --red-dark: #7a1418;
  --red-soft: #f6e4e2;
  --warm-white: #fbf8f4;
  --sand: #f2ebe3;
  --sand-dark: #e4d9cc;
  --ink: #2b2523;
  --ink-soft: #5c5250;
  --radius-lg: 28px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 37, 35, 0.08);
  --font: "Inter", "Inter Fallback", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Seasonal colors. The normal look is Trinity red; js/season.js switches these during
     Advent, Christmas, Lent and Easter (see "Seasonal colors" near the end of this file).
     Used only by the top bar (every page) and the featured band (front page). */
  --season-bg: var(--red);           /* top bar and featured band background */
  --season-text: #fff;               /* text on that background, including the phone number */
  --topbar-bg: var(--season-bg);     /* the top bar follows the season, unless a season sets these */
  --topbar-text: var(--season-text);
  --season-rule: var(--red);         /* thin line under the top bar and band (unseen in the normal look) */
  --season-icon-bg: #fff;            /* circle behind the band's flame icon */
  --season-icon: var(--red);         /* the flame itself */
  --season-button-bg: #fff;          /* the band's button */
  --season-button-text: var(--red);
  --season-button-hover: var(--red-soft);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--warm-white);
}

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

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

/* Keyboard focus, the same on every page and every background: a two-tone ring,
   white next to the element and dark ink outside it. On light areas the dark ring
   stands out; on the red and dark areas the white ring does. "!important" stops any
   other rule (card shadows, for example) from hiding it. */
:focus-visible {
  outline: 3px solid var(--ink) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6em;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--red); border-color: var(--red); }
.button-secondary:hover { background: var(--red-soft); }
.button-light { background: #fff; color: var(--red); }
.button-light:hover { background: var(--red-soft); color: var(--red-dark); }
.button-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.8); }
.button-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar and header ---------- */
.topbar {
  background: var(--topbar-bg); color: var(--topbar-text); font-size: 0.9rem;
  box-shadow: inset 0 -3px 0 var(--season-rule);   /* unseen in the normal look; a season's rule shows */
}
.topbar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2px 16px; padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: var(--topbar-text); font-weight: 700; text-decoration: none; position: relative; }
/* Larger invisible tap area for the phone number: it fills the bar's height,
   so it is easy to tap on a phone without making the bar any bigger. */
.topbar a::after { content: ""; position: absolute; inset: -8px -12px; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, 0.96);
  border-bottom: 1px solid var(--sand-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { height: 36px; width: auto; }
@media (min-width: 400px) { .brand img { height: 42px; } }
/* Smallest phones: shrink the logo a little so the Menu button stays beside it */
@media (max-width: 359px) {
  .header-inner { gap: 10px; }
  .brand img { height: 30px; }
  .header-inner .menu-toggle { padding: 8px 12px; gap: 8px; }
}

.menu-toggle {
  display: none;
  align-items: center; gap: 10px;
  font: inherit; font-weight: 700; color: var(--ink);
  background: var(--sand); border: 0; border-radius: 999px;
  padding: 10px 14px; cursor: pointer; flex: none;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none; margin: 0; padding: 8px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.site-nav a:not(.button) {
  display: block; padding: 10px 4px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-nav a:not(.button):hover { color: var(--red); }
.site-nav .button { margin-top: 8px; }

/* With scripts on, phones get a Menu button; without, the links simply show. */
.js .menu-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--sand); }
.section-head { margin-bottom: 32px; }
.section-head-center { text-align: center; }
.section-head-center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-inner { display: grid; gap: 32px; }
.hero h1 { color: var(--ink); }
.hero .lead { font-size: 1.25rem; margin-bottom: 1.5em; }
.hero-media { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
}
.times-card {
  background: var(--red); color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 26px; margin-top: -48px; margin-left: 24px; margin-right: 24px;
  position: relative; box-shadow: var(--shadow);
}
.times-card p { margin: 0; }
.times-label { font-size: 0.9rem; font-weight: 600; opacity: 0.9; }
.times-main { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.times-sub { font-size: 1rem; opacity: 0.95; }

/* Why Trinity */
.why-grid {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; gap: 16px;
}
.why-item {
  background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border-top: 5px solid var(--red);
}
.why-item p { margin: 0; color: var(--ink-soft); }

.mission-grid { display: grid; gap: 16px; }
.mission-card {
  background: var(--red-soft); border-radius: var(--radius-lg);
  padding: 28px;
}
.mission-text { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 0; }

/* Cards */
.card-grid { display: grid; gap: 20px; }
.card {
  display: block; background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
}
a.card { transition: transform 0.15s; }
a.card:hover { transform: translateY(-3px); color: var(--ink); }
a.card:hover h3 { color: var(--red); }
.card-photo { aspect-ratio: 16 / 9; border-width: 0 0 2px; }
.card-body { padding: 24px; }
.card-body p { margin: 0; color: var(--ink-soft); }
.arrow { color: var(--red); }

/* Leaders */
.pastor-card {
  display: grid; gap: 24px; align-items: center;
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.pastor-photo { aspect-ratio: 1; border-radius: var(--radius-lg); }
.pastor-body h3 { font-size: 1.75rem; }

.leader-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
}
.leader-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.leader-photo {
  width: 104px; height: 104px; margin: 0 auto 16px;
  border-radius: 28px; font-size: 0.85rem;
}
.leader-card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.leader-title { margin: 0; color: var(--red); font-weight: 700; }

/* New Here */
.section-red { background: var(--red); color: #fff; }
.section-red .lead { color: rgba(255, 255, 255, 0.92); }
.new-inner { display: grid; gap: 28px; }
.visit-list { display: grid; gap: 12px; margin: 0; }
.visit-list > div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 16px 20px;
}
.visit-list dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; font-weight: 700; }
.visit-list dd { margin: 0; font-size: 1.2rem; font-weight: 700; }

/* Contact */
.contact-inner { display: grid; gap: 32px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 1.1rem; }
.contact-label {
  display: inline-block; min-width: 4em;
  font-weight: 700; color: var(--ink-soft);
}
.contact-list a { font-weight: 700; word-break: break-word; }
.contact-form {
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--sand-dark);
  border-radius: 12px; background: var(--warm-white);
}
.field input:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.form-note { margin: 14px 0 0; display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #eee5df; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red-soft); }
.footer-grid { display: grid; gap: 28px; }
.footer-heading {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 0.8em;
}
.site-footer p { margin: 0 0 0.6em; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem; opacity: 0.8;
}

/* ---------- Tablet and up ---------- */
@media (min-width: 700px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-large { grid-column: 1 / -1; }
  .card-large .card-photo { aspect-ratio: 21 / 9; }
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
  .pastor-card { grid-template-columns: 240px 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .section { padding: 96px 0; }

  .menu-toggle, .js .menu-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 24px; padding: 0; }
  .site-nav a:not(.button) { padding: 6px 0; }
  .site-nav .button { margin-top: 0; }
  .brand img { height: 56px; }

  .hero { padding: 72px 0 96px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .times-card { position: absolute; left: -40px; bottom: -36px; margin: 0; max-width: 320px; }

  .why-grid { gap: 20px; } /* stays 2 x 2 on desktop; the cards hold a full paragraph each */
  .card-large .card-photo { aspect-ratio: 3 / 1; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-inner { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 56px; }
  .pastor-card { grid-template-columns: 300px 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card, .button { transition: none; }
  a.card:hover { transform: none; }
}

/* =========================================================
   History page
   ========================================================= */
.site-nav a[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.page-intro { padding: 48px 0 24px; }
.page-intro h1 { font-size: clamp(2.4rem, 8vw, 4rem); }

/* ---------- Timeline ---------- */
/* Six shades from warm neutral to Trinity red; 2021 is the strongest. */
.tl-1 { --c: #efe4d8; --on: var(--ink); }
.tl-2 { --c: #e3cbbb; --on: var(--ink); }
.tl-3 { --c: #d9a597; --on: var(--ink); }
.tl-4 { --c: #b25a57; --on: #fff; }
.tl-5 { --c: #a54a45; --on: #fff; }
.tl-6 { --c: var(--red); --on: #fff; }

.timeline-section { padding: 16px 0 48px; }
.timeline {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  display: grid; gap: 14px;
}
/* Phone: a vertical line joining the year markers */
.timeline::before {
  content: ""; position: absolute;
  left: 43px; top: 12px; bottom: 12px; width: 3px;
  background: var(--sand-dark); border-radius: 2px;
}
.tl-item {
  position: relative;
  display: grid; grid-template-columns: 88px 1fr;
  gap: 14px; align-items: center;
}
.tl-year {
  background: var(--c); color: var(--on);
  font-weight: 700; font-size: 1.25rem; text-align: center;
  border-radius: 999px; padding: 8px 0;
  position: relative; z-index: 1;
}
.tl-text {
  margin: 0; background: #fff;
  border-radius: var(--radius); padding: 14px 18px;
  border-left: 6px solid var(--c);
  box-shadow: var(--shadow);
  font-weight: 700; line-height: 1.35;
}
.tl-6 .tl-text { box-shadow: 0 10px 30px rgba(155, 28, 34, 0.22); }

/* Desktop: one row, text cards above arrow-shaped year bands */
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .timeline::before { display: none; }
  .tl-item {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0;
  }
  .tl-text {
    order: 1; flex: 1;
    margin: 0 6px;
    border-left: 0; border-top: 6px solid var(--c);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 20px 18px 24px;
    font-size: 1.1rem;
  }
  .tl-year {
    order: 2;
    border-radius: 0;
    font-size: 1.9rem; padding: 14px 0;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    margin-right: -10px;
  }
  .tl-1 .tl-year {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    border-radius: 14px 0 0 14px;
  }
  .tl-6 .tl-year { margin-right: 0; }
}

/* ---------- Story chapters ---------- */
.story { max-width: 920px; }
.chapter {
  padding: 24px 0;
  border-top: 1px solid var(--sand-dark);
}
.chapter:first-of-type { border-top: 0; padding-top: 8px; }
.chapter h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  font-size: 1.45rem;
}
.chapter-years {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0;
  color: var(--red); background: var(--red-soft);
  border-radius: 999px; padding: 2px 12px;
}
.chapter p { color: var(--ink-soft); } /* normal body size, as on every other page */
.chapter-body p:last-child { margin-bottom: 0; }

@media (min-width: 760px) {
  .chapter { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
  .chapter h3 { flex-direction: column; align-items: flex-start; margin: 0; }
}

/* ---------- Ministers ---------- */
.minister-count { font-size: 1.25rem; margin-bottom: 0.4em; }
.minister-count strong { font-size: 2.6rem; color: var(--red); margin-right: 4px; vertical-align: -4px; }
.minister-key { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin: 0; }
.key-swatch {
  display: inline-block; flex: none;
  width: 28px; height: 18px; border-radius: 5px;
  background: #fcf1ee; border-left: 4px solid #dfb2ab;
}

.eras { display: grid; gap: 14px; }
.era {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.era summary {
  border-radius: var(--radius-lg);
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.35rem; font-weight: 700;
}
.era summary::-webkit-details-marker { display: none; }
.era summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-left: 16px;
  border-right: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(45deg); margin-top: -6px;
  transition: transform 0.15s;
}
.era[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.era summary:hover { color: var(--red); }

.minister-list { list-style: none; margin: 0; padding: 0 12px 12px; }
.minister {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--sand);
  border-left: 4px solid transparent;
  border-radius: 10px;
}
.m-name { font-weight: 700; }
.m-years { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.m-tenure { font-size: 0.85rem; font-weight: 700; color: var(--red); }
.m-note { flex-basis: 100%; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }
.badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; line-height: 1.4;
  background: var(--sand); color: var(--ink-soft);
  border: 1px solid var(--sand-dark);
  border-radius: 999px; padding: 1px 10px;
}

/* 10 years or more: a subtle tint */
.minister-long { background: #fcf1ee; border-left-color: #dfb2ab; }

/* Current pastor: clearly highlighted */
.minister-current {
  background: var(--red-soft);
  border: 2px solid var(--red);
  margin-bottom: 6px;
}
.minister-current .m-name { font-size: 1.15rem; }
.badge-current { background: var(--red); color: #fff; border-color: var(--red); }

@media (min-width: 700px) {
  .minister { flex-wrap: nowrap; }
  .m-name { flex: 1 1 auto; }
  .m-years { flex: none; min-width: 7.5em; text-align: right; order: 3; }
  .m-tenure, .badge { order: 2; flex: none; }
  .m-note { flex-basis: auto; order: 2; }
  .minister:has(.m-note) { flex-wrap: wrap; }
  .minister:has(.m-note) .m-note { flex-basis: 100%; order: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .era summary::after { transition: none; }
}

/* =========================================================
   Outreach page
   ========================================================= */
.outreach-section { padding: 48px 0; }
.outreach-section h2 { margin-bottom: 28px; }

/* Round icon badge: soft tint of Trinity red, line icon in the full red */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; flex: none;
  border-radius: 50%; background: var(--red-soft); color: var(--red);
  margin-bottom: 16px;
}
.icon-circle svg {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-circle-sm { width: 48px; height: 48px; margin-bottom: 0; }
.icon-circle-sm svg { width: 24px; height: 24px; }

/* Sections 1 and 2: full cards (not clickable) */
/* align-items: start lets an opened card grow on its own, without stretching the cards beside it */
.outreach-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; align-items: start; }
.outreach-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.outreach-card h3 { margin-bottom: 0.4em; }
.outreach-card p { margin: 0; color: var(--ink-soft); }
.outreach-card .more { margin-top: 12px; }

/* Section 3: compact rows, so it reads as a list of organizations */
.org-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.org-card {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: start;
  background: #fff; border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid var(--sand-dark);
}
.org-body h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.org-body p { margin: 0; color: var(--ink-soft); }
.org-link-row { grid-column: 2; margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.org-link { font-weight: 700; }
.org-link[href] { color: var(--red); }
a.org-link:not([href]) { color: var(--ink-soft); } /* no address yet, so not a link */

@media (min-width: 700px) {
  .outreach-section { padding: 64px 0; }
  .outreach-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .outreach-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .org-card { grid-template-columns: 48px 1fr auto; align-items: center; }
  .org-link-row { grid-column: 3; margin: 0; justify-content: flex-end; }
}

/* Eight menu items need about 1200px to fit on one line.
   From 960px to 1199px the header keeps the Menu button, as on phones and tablets. */
@media (min-width: 960px) and (max-width: 1199px) {
  .js .menu-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0; }
  .site-nav a:not(.button) { padding: 10px 4px; }
  .site-nav .button { margin-top: 8px; }
}
@media (min-width: 1200px) {
  .brand img { height: 48px; }
  .site-nav ul { gap: 20px; }
}

/* Why Trinity: lead-in question and the "Come See for Yourself" invitation */
.why-question {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem); font-weight: 700; line-height: 1.35;
  color: var(--ink); max-width: 32em; margin-bottom: 0.75em;
}
.invite {
  display: grid; gap: 24px; justify-items: start;
  background: var(--red-soft); border-radius: var(--radius-lg);
  padding: 32px 28px 36px; margin: 0 0 40px;
}
.invite h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; color: var(--red-dark); }
.invite p { margin: 0; font-size: 1.15rem; max-width: 40em; }
@media (min-width: 760px) {
  .invite { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 48px; }
}

/* =========================================================
   About page
   ========================================================= */
.about-section { padding: 48px 0; }
.about-text { max-width: 45em; } /* about the same line length as the intro above it */
.about-text p { color: var(--ink-soft); } /* normal body size, as in the cards on every page */
.about-text p:last-child { margin-bottom: 0; }

.values-grid {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; gap: 20px; align-items: start;
}
.value-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
  border-top: 5px solid var(--red);
}
.value-statement { color: var(--ink-soft); margin-bottom: 1em; }

/* "Read the verses" toggle (HTML details/summary, no scripting). The Outreach page's
   "How to help" toggles (.more) share the same look. */
.verses summary, .more summary {
  cursor: pointer; font-weight: 700; color: var(--red);
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
}
.verses summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.verses summary::before, .more summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-soft); font-size: 1.1rem; line-height: 1;
}
.verses[open] summary::before, .more[open] summary::before { content: "\2212"; }
.verses summary:hover, .more summary:hover { color: var(--red-dark); }
.verses-body, .more-body { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--sand-dark); }
.verses-body h4 { font-size: 1rem; margin: 0 0 0.3em; }
.verses-body p { color: var(--ink-soft); margin: 0 0 1em; }
.verses-body p:last-child { margin-bottom: 0; }
.verses-body sup { font-size: 0.65em; font-weight: 700; color: var(--red); line-height: 0; }

.niv-notice { font-size: 0.8rem; color: var(--ink-soft); max-width: 60em; }
.niv-notice p { margin: 0 0 0.4em; }

@media (min-width: 700px) {
  .about-section { padding: 64px 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Red bar: shorter wording on phones so it fits on one line beside the phone number */
.topbar-short { display: none; }
@media (max-width: 599px) {
  .topbar-full { display: none; }
  .topbar-short { display: inline; }
}

/* =========================================================
   Site facts: leaders, New Here details, FAQ, contact, footer
   ========================================================= */
/* Leaders without photos: a circle with the person's initials */
.initials {
  display: flex; align-items: center; justify-content: center;
  width: 104px; height: 104px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red-soft), var(--shadow);
  font-size: 2.1rem; font-weight: 700; letter-spacing: 0.04em;
}
.initials-lg {
  width: 160px; height: 160px; margin: 0;
  font-size: 3.4rem; justify-self: center;
  background: var(--red); color: #fff;
}
@media (min-width: 700px) {
  .initials-lg { width: 200px; height: 200px; font-size: 4.2rem; }
}

/* New Here: longer notes in normal weight */
.visit-list dd.dd-text { font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.visit-list dd a { color: #fff; }

/* FAQ */
.faq-list { display: grid; gap: 16px; max-width: 52em; }
.faq-item {
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px 28px; box-shadow: var(--shadow);
  border-left: 5px solid var(--red);
}
.faq-item h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.faq-item p { color: var(--ink-soft); }
.faq-item p:last-child { margin-bottom: 0; }

/* Contact: phone and email as large, easy-to-tap cards */
.contact-ways { display: grid; gap: 14px; }
.contact-way {
  display: block; background: #fff; color: var(--ink); text-decoration: none;
  border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: border-color 0.15s;
}
.contact-way:hover { border-color: var(--red); color: var(--ink); }
.contact-way-label {
  display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red);
}
.contact-way-value {
  display: block; font-size: clamp(1.25rem, 4.5vw, 1.6rem); font-weight: 700;
  word-break: break-word; color: var(--red-dark);
}
.contact-details { padding: 4px 4px 0; color: var(--ink-soft); }
.contact-details p { margin: 0 0 0.5em; }

/* Footer: parking, access and office notes */
.footer-small { font-size: 0.92rem; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .contact-way { transition: none; }
}

/* Link to the NIV online, beside the NIV notice; the arrow marks an external site */
.niv-link { margin: 0 0 12px; font-weight: 700; }
.ext-arrow { display: inline-block; font-size: 0.9em; margin-left: 2px; }

/* =========================================================
   Hero photo (front page)
   The text sits beside the photo (desktop) or above it (phones), never on top of it.
   Each crop sets its own shape (--ar) and focal point (--focus): the steeple and front of the church.
   ========================================================= */
.hero-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: var(--ar); object-fit: cover; object-position: var(--focus);
  border-radius: var(--radius-lg); /* same corners as the site's cards */
  background: var(--sand);
}
.hero-tight { --ar: 2622 / 2268; --focus: 50% 50%; }   /* trimmed: church, steeple, and sign */
.hero-full  { --ar: 16 / 9;      --focus: 68% 50%; }   /* whole photo */

/* Phones: a square slice centred on the steeple and front doors */
@media (max-width: 699px) {
  .hero-img { --ar: 1 / 1; }
  .hero-tight { --focus: 50% 50%; }
  .hero-full  { --focus: 68% 50%; }
}

/* Sunday times card and the hero photo:
   phones and tablets: the card sits below the photo, never on top of it;
   desktop: it overlaps only a thin strip of street at the bottom-left, clear of the doors and sign. */
@media (max-width: 959px) {
  .hero-media .times-card { margin-top: 16px; }
}
@media (min-width: 960px) {
  .hero-media .times-card { bottom: -96px; }
}

/* Phones (under 600px): the Sunday times card comes straight after the buttons, then the photo.
   The photo and card stay in the same order in the page code; only the visual order changes. */
@media (max-width: 599px) {
  .hero-media { display: contents; }
  .hero-text { order: 1; }
  .hero-media .times-card { order: 2; margin: 0; }
  .hero-img { order: 3; }
  .hero-text .button-row { margin-bottom: 0; }
}

/* Announcement banner (filled in by js/banner.js; nothing shows when there is no current message) */
.announcement {
  background: #fdf1d2;                 /* warm amber cream */
  color: var(--red-dark);              /* dark red text: about 10:1 contrast */
  border-bottom: 1px solid #e8c77a;
}
.announcement-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 4px 14px; padding-top: 10px; padding-bottom: 10px;
  text-align: center;
}
.announcement-text {
  margin: 0; font-weight: 700; font-size: 0.98rem; line-height: 1.45;
  overflow-wrap: anywhere;             /* long words and addresses wrap instead of overflowing */
}
.announcement-link {
  color: var(--red-dark); font-weight: 700; font-size: 0.98rem;
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.announcement-link:hover { color: var(--ink); }

/* Card photos */
.card-img {
  display: block; width: 100%; height: auto;
  object-fit: cover; border: 0;
  background: var(--sand);
}

/* =========================================================
   Sermons page and front-page Sermons card
   ========================================================= */
.sermons-section { padding-top: 24px; }
.sermon-status { color: var(--ink-soft); font-weight: 600; margin: 0 0 16px; }
.sermon-message { font-size: 1.15rem; margin: 0 0 40px; }

.sermon-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.sermon {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start;
  background: #fff; border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.sermon-thumb {
  display: block; width: 112px; height: 70px; object-fit: cover;
  border-radius: 12px; background: var(--sand);
}
.sermon-thumb-default {
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft);
}
.sermon-thumb-default img { width: 40px; height: auto; opacity: 0.45; }  /* the logo triangle, softened */
@media (max-width: 359px) {
  .sermon { grid-template-columns: 80px 1fr; gap: 12px; padding: 16px; }
  .sermon-thumb { width: 80px; height: 50px; }
  .sermon-thumb-default img { width: 30px; }
}
.sermon-series {
  display: inline-block; margin: 0 0 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 2px 10px;
}
.sermon-title { font-size: 1.3rem; margin: 0 0 4px; }
.sermon-meta { color: var(--ink-soft); margin: 0 0 10px; }
.sermon-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.sermon-link { font-weight: 700; }

@media (min-width: 600px) {
  .sermon { grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding: 22px 26px; }
  .sermon-thumb { width: 160px; height: 100px; }
  .sermon-thumb-default img { width: 56px; }
}

/* Previous / page numbers / Next */
.pager { margin: 0 0 48px; }
.pager-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 11px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--sand-dark); color: var(--ink); background: #fff;
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.pager .is-disabled { color: var(--ink-soft); opacity: 0.55; background: transparent; }

.sermons-niv { margin-top: 24px; }

/* Front-page card */
.card-body .card-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; }
.card-link { font-weight: 700; }
.card-body .latest-label {
  margin: 0 0 4px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}
.card-body .latest-title { margin: 0; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.card-body .latest-date { margin: 2px 0 0; }

/* Featured band (front page only). js/featured.js adds it directly under the top bar, or
   under the announcement banner when one is showing, and above the welcome section. Nothing
   shows when no entry in data/featured.json is current. Phones: icon and title, then the
   text, then the button. Wider screens: one row with the button at the right.
   The icon and the button are both optional: the "has-icon" and "has-button" classes add
   their space only when the entry has them, so nothing leaves an empty gap. */
.topbar:has(+ .featured-band) { box-shadow: none; }   /* the band's own top line takes its place */
.featured-band {
  background: var(--season-bg); color: var(--season-text);
  box-shadow: inset 0 1.5px 0 var(--season-rule), inset 0 -3px 0 var(--season-rule);  /* thin line above, thicker below */
}
.featured-band-inner {
  display: grid; align-items: center;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "text";
  gap: 6px 10px; padding-top: 12.5px; padding-bottom: 14px;
}
.featured-band-icon {
  grid-area: icon;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--season-icon-bg); color: var(--season-icon);
}
.featured-band-icon svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.featured-band-title {
  grid-area: title; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px;
}
.featured-band-eyebrow {
  margin: 0; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.featured-band h2 {
  margin: 0; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em;
  color: inherit; overflow-wrap: anywhere;
}
.featured-band-text {
  grid-area: text; min-width: 0; margin: 0;
  font-size: 0.95rem; line-height: 1.45;
  overflow-wrap: anywhere;             /* long words and addresses wrap instead of overflowing */
}
.featured-band-button {
  grid-area: button; justify-self: start;
  padding: 0.5em 1.1em; font-size: 0.95rem; margin-top: 2px;
  background: var(--season-button-bg); color: var(--season-button-text);
}
.featured-band-button:hover { background: var(--season-button-hover); color: var(--season-button-text); }
.featured-band-inner.has-icon { grid-template-columns: auto 1fr; grid-template-areas: "icon title" "text text"; }
.featured-band-inner.has-button { grid-template-areas: "title" "text" "button"; }
.featured-band-inner.has-icon.has-button { grid-template-areas: "icon title" "text text" "button button"; }
@media (min-width: 760px) {
  .featured-band-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "text";
    gap: 2px 14px; padding-top: 11.5px; padding-bottom: 13px;
  }
  .featured-band-text { font-size: 0.9rem; }   /* fits one line on a laptop */
  .featured-band-icon { width: 36px; height: 36px; }
  .featured-band-icon svg { width: 20px; height: 20px; }
  .featured-band-inner.has-icon { grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon text"; }
  .featured-band-inner.has-button { grid-template-columns: 1fr auto; grid-template-areas: "title button" "text button"; }
  .featured-band-inner.has-icon.has-button {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon title button" "icon text button";
  }
  .featured-band-button { margin: 0 0 0 8px; white-space: nowrap; }
}

/* Seasonal colors (set by js/season.js; see docs/seasons-howto.md).
   Only the season settings change, so only the top bar and the featured band change.
   Trinity red stays on the logo, the main buttons, the links and the Sunday times card.
   Gold is decoration only (the rule and the icon circle): never text on a light
   background and never behind white text. Contrast (WCAG) is checked for each season:
   text 4.5:1 or better; icons, edges of controls and focus rings 3:1 or better. */
:root[data-season="advent"] {        /* charcoal, cream text 12.4:1, candle-gold decoration */
  --season-bg: #2b2b2e;
  --season-text: #f7efdf;
  --season-rule: #d9a441;
  --season-icon-bg: #d9a441;         /* charcoal flame on gold 6.3:1 */
  --season-icon: #2b2b2e;
  --season-button-bg: #f7efdf;       /* charcoal on cream 12.4:1 */
  --season-button-text: #2b2b2e;
  --season-button-hover: #fff;
}
:root[data-season="lent"] {          /* the same charcoal, no gold, a plain gray-cream rule */
  --season-bg: #2b2b2e;
  --season-text: #f7efdf;
  --season-rule: #cdc5b6;
  --season-icon-bg: #cdc5b6;         /* charcoal flame on gray-cream 8.2:1 */
  --season-icon: #2b2b2e;
  --season-button-bg: #f7efdf;
  --season-button-text: #2b2b2e;
  --season-button-hover: #fff;
}
:root[data-season="christmas"] {     /* warm cream, dark text 12.5:1, gold decoration */
  --season-bg: #f5e9cf;
  --season-text: var(--ink);
  --season-rule: #b8892b;
  --season-icon-bg: #b8892b;         /* dark flame on gold 4.8:1 */
  --season-icon: var(--ink);
  --season-button-bg: var(--red);    /* white on red 8.1:1; red against the cream 6.8:1 */
  --season-button-text: #fff;
  --season-button-hover: var(--red-dark);
}
:root[data-season="easter"] {        /* paler warm cream band, dark text 14.0:1, brighter gold */
  --topbar-bg: var(--red);           /* the top bar keeps its normal red: white text 8.1:1 */
  --topbar-text: #fff;
  --season-bg: #fdf6e0;
  --season-text: var(--ink);
  --season-rule: #e0b13a;
  --season-icon-bg: #e0b13a;         /* dark flame on gold 7.6:1 */
  --season-icon: var(--ink);
  --season-button-bg: var(--red);    /* red against the cream 7.5:1 */
  --season-button-text: #fff;
  --season-button-hover: var(--red-dark);
}
