/* Home (index) page — the first page people see. A normal scrolling page. */

:root {
  /* Palette taken from the Rev. Haidau 80th book cover. */
  --navy: #1e2440;
  --navy-deep: #171d37;
  --slate: #3f4a68;
  --teal: #2f8a8f;
  --gold: #e8b44c;

  --ink: #f7f9fb;
  --muted: #aebdc9;
  --line: rgba(247, 249, 251, .18);
  --card: rgba(255, 255, 255, .07);
  --card-hover: rgba(255, 255, 255, .14);
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy-deep); }
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%) fixed;
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

kbd {
  display: inline-block; min-width: 26px; padding: 1px 7px 2px; text-align: center;
  font: 700 .82em/1.4 var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px;
}
code { font: .88em var(--mono); background: rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--slate) 0%, var(--navy) 100%); padding: 64px 0 56px; border-bottom: 4px solid var(--gold); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }

.church { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.mark { display: block; width: 14px; height: 14px; background: var(--gold); flex: none; }
.place { margin: 6px 0 0 28px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

h1 { margin-top: 38px; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; text-transform: uppercase; color: var(--gold); }
h1 span { display: block; }
.and { display: flex; align-items: center; gap: 18px; margin-top: 20px; font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.and::before { content: ""; flex: 0 0 56px; height: 2px; background: currentColor; }
.and::after { content: ""; flex: 1; max-width: 220px; height: 2px; background: var(--line); }
.program { margin-top: 12px; font-size: clamp(22px, 2.8vw, 36px); font-weight: 600; letter-spacing: .01em; }

.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.facts dd { font-size: 18px; }

/* Cross with the date plate, like the main banner */
.cross { position: relative; width: clamp(200px, 26vw, 340px); aspect-ratio: 1; }
.cross svg { display: block; width: 100%; height: 100%; }
.cross .arm-h { fill: var(--teal); }
.cross .arm-v { fill: var(--gold); }
.plate { position: absolute; inset: 31.25%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1; color: var(--navy); }
.plate-day { font-size: clamp(30px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.plate-month { margin-top: 4px; font-size: clamp(12px, 1.5vw, 20px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.plate-year { margin-top: 5px; font-size: clamp(12px, 1.5vw, 20px); font-weight: 300; letter-spacing: .12em; }

/* ---------- Page groups ---------- */
main { padding: 52px 0 24px; }
.group { margin-bottom: 44px; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; padding-left: 16px; border-left: 6px solid var(--gold); }
.group-note { margin: 8px 0 20px 22px; color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px 20px;
  background: var(--card); border-left: 5px solid var(--gold);
  color: var(--ink); text-decoration: none;
  transition: background .2s, transform .2s;
}
.card:hover, .card:focus-visible { background: var(--card-hover); transform: translateY(-2px); }
.card-k { font-size: 13px; color: var(--muted); }
.card strong { font-size: 24px; line-height: 1.2; }
.card-d { flex: 1; font-size: 16px; line-height: 1.5; color: var(--muted); }
.card em { margin-top: 6px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--gold); font-family: var(--mono); }

/* ---------- Help strip ---------- */
.help-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-bottom: 40px; padding: 26px 30px;
  background: rgba(47, 138, 143, .18); border-left: 5px solid var(--teal);
}
.help-strip h2 { padding: 0; border: 0; font-size: 22px; }
.help-strip p { margin-top: 6px; max-width: 700px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 24px; background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 17px; text-decoration: none;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: #f2c566; }
.btn kbd { color: var(--navy); background: rgba(30, 36, 64, .12); border-color: rgba(30, 36, 64, .35); }

/* ---------- Footer ---------- */
.foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cross { width: 200px; }
  .cards, .cards.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  h1 { margin-top: 28px; }
  .help-strip { padding: 22px 20px; }
}
@media (hover: none) { .foot kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } .card:hover, .card:focus-visible { transform: none; } }

@media print {
  html, body { background: #fff; color: #000; }
  .hero { background: none; border-bottom: 3pt solid var(--teal); }
  h1, .and, .program, .facts dd, .church { color: #000; }
  .cross { display: none; }
  .card, .help-strip { background: none; border: 1px solid #999; color: #000; }
  .card-d, .group-note, .help-strip p { color: #333; }
  a, .card em, .facts dt { color: #000; }
  .btn { display: none; }
}

/* ---------- Config-driven bits ---------- */
[hidden] { display: none !important; }
.edit-strip { background: rgba(232, 180, 76, .12); border-left-color: var(--gold); }
