/* Hope Church calendar
   A calm parish diary: warm paper, chapel green, generous type.
   Built to be read at arm's length on a small phone. */

@font-face {
  font-family: 'Atkinson Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-standard-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-standard-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --card: #fffdf8;
  --ink: #1b1d1a;
  --ink-2: #41443d;
  --ink-3: #5c6057;
  --rule: #ddd5c4;
  --rule-strong: #b9ae97;

  --accent: #1d4a3c;
  --accent-hover: #163a2f;
  --accent-ink: #ffffff;
  --link: #1d5443;

  --sunday-bg: #1d4a3c;
  --sunday-ink: #f6f0e1;
  --sunday-soft: #e8dcb6;

  --gold-soft: #f1e3bd;
  --gold-ink: #5c430c;

  --red: #a3271c;
  --red-soft: #f8e1db;
  --amber: #8a5600;
  --amber-soft: #faecc8;
  --blue: #2c4a86;
  --blue-soft: #e2e9f6;

  --focus: #1a5fd6;
  --shadow: 0 1px 0 rgba(40, 33, 15, 0.04), 0 10px 30px -18px rgba(40, 33, 15, 0.35);

  --font-body: 'Atkinson Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  --radius: 16px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121613;
    --paper-2: #1b211d;
    --card: #181e1a;
    --ink: #eeede6;
    --ink-2: #cdd0c6;
    --ink-3: #a7ab9f;
    --rule: #2b332e;
    --rule-strong: #4a5550;

    --accent: #2f7560;
    --accent-hover: #388a71;
    --accent-ink: #ffffff;
    --link: #93d2b7;

    --sunday-bg: #1c3b31;
    --sunday-ink: #f3eedf;
    --sunday-soft: #e2d3a5;

    --gold-soft: #3a3120;
    --gold-ink: #f0dca5;

    --red: #ff9b8c;
    --red-soft: #3d1f1b;
    --amber: #f2c46b;
    --amber-soft: #3a2e14;
    --blue: #a9c1f2;
    --blue-soft: #1d2740;

    --focus: #7fb0ff;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 30px -20px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 48rem) { html { font-size: 118.75%; } } /* 19px */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
p { margin: 0 0 0.85rem; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; }
.icon { flex: none; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1rem; border-radius: 12px; z-index: 10;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.nb { white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--link); border-color: currentColor; }
.btn-secondary:hover { background: var(--paper-2); }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--rule-strong); }
.btn-quiet:hover { background: var(--paper-2); }
.btn-wide { width: 100%; }
.btn-danger { background: var(--card); color: var(--red); border-color: currentColor; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--link);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.inline-form { display: inline; margin: 0; }

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, var(--card));
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 3rem;
}
.mark-bg { fill: var(--accent); }
.mark-fg { stroke: var(--accent-ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-place {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.2rem;
}
.masthead-cta {
  min-height: 3rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  background: var(--card);
  border-color: var(--accent);
  color: var(--link);
}
.cta-short { display: none; }
/* Phones: a compact pill, so the button is always one tap away without crowding the page. */
@media (max-width: 33.99rem) {
  .masthead-inner { flex-wrap: wrap; row-gap: 0.4rem; }
  .masthead-cta { padding: 0.4rem 0.8rem; font-size: 0.9rem; gap: 0.35rem; }
  .masthead-cta .icon { width: 20px; height: 20px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand .mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.22rem; }
  .brand-place { font-size: 0.66rem; }
}
@media (max-width: 23.5rem) {
  .brand .mark { display: none; }
}

.members-bar {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.95rem;
}
.members-bar-inner {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: space-between; align-items: center;
  padding-block: 0.55rem;
}
.members-bar-inner { flex-wrap: nowrap; }
.members-bar-label { display: inline-flex; gap: 0.35rem; align-items: center; font-weight: 700; white-space: nowrap; }
.members-bar-links { display: inline-flex; gap: 1rem; white-space: nowrap; }
.members-bar a, .members-bar .linklike { color: inherit; font-weight: 700; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(1.4rem, 5vw, 2.6rem); padding-bottom: 1.1rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.55rem, 10.5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--link);
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 0.8rem 0 0;
  max-width: 33rem;
  font-size: 1.08rem;
  color: var(--ink-2);
}
/* Phones: get to "this Sunday" fast. */
@media (max-width: 33.99rem) {
  .hero { padding-top: 1.1rem; padding-bottom: 0.9rem; }
  .hero-title { font-size: 2.45rem; }
  .hero-title em { display: none; }
  .hero-sub { margin-top: 0.45rem; font-size: 1rem; }
}

/* ---------- This Sunday ---------- */

.sunday {
  position: relative;
  margin-top: 0.6rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: var(--radius-lg);
  color: var(--sunday-ink);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(0, 0, 0, 0.16), transparent 70%),
    var(--sunday-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sunday::after {
  /* faint ruled lines, like the page of a diary */
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 2.1rem, rgba(255, 255, 255, 0.035) 2.1rem 2.15rem);
  pointer-events: none;
}
.sunday > * { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunday-soft);
}
.eyebrow-ink { color: var(--link); }
.sunday-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.sunday-time {
  margin: 0.45rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.sunday-more-time { font-family: var(--font-display); font-size: 1.1rem; }
.sunday-earlier {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  opacity: 0.92;
}
@media (max-width: 22rem) {
  .sunday-sep { display: none; }
  .sunday-place { display: block; font-size: 1.2rem; }
}
.sunday-place { font-weight: 400; opacity: 0.92; }
.sunday-summary { font-size: 1.05rem; opacity: 0.94; margin-bottom: 0.4rem; }
.sunday-alert {
  display: inline-flex; gap: 0.45rem; align-items: center;
  margin: 0.6rem 0 0.2rem; padding: 0.35rem 0.8rem;
  background: #fbe3dd; color: #8f1f15; border-radius: 999px; font-weight: 700;
}
.sunday-more {
  list-style: none;
  margin: 0.9rem 0 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.sunday-more li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.sunday-more-time { font-weight: 700; }
.sunday-more a { color: var(--sunday-ink); font-weight: 700; text-decoration-color: rgba(255, 255, 255, 0.45); }
.sunday-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3rem;
  margin-top: 0.6rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--sunday-ink);
  font-weight: 700;
  text-decoration: none;
}
.sunday-link:hover { background: rgba(255, 255, 255, 0.2); }
.sunday .is-cancelled { text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- Verse ---------- */

.verse {
  margin: 2.2rem 0 0.5rem;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--rule-strong);
}
.verse blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.verse figcaption {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Sections ---------- */

.section-title {
  margin: 2.8rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section-title-small { font-size: 1.35rem; margin-top: 0; margin-bottom: 0.45rem; }
.section-lead { color: var(--ink-2); }

/* ---------- Agenda ---------- */

.week { margin-top: 1.6rem; }
.week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--ink);
}
.week-label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.week-range { color: var(--ink-3); font-size: 0.95rem; }
.week-empty { padding: 1rem 0; color: var(--ink-3); border-bottom: 1px solid var(--rule); margin: 0; }

.days { list-style: none; }
.day {
  display: grid;
  grid-template-columns: 4.1rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.day-date-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0 0.45rem;
  border-radius: 14px;
  border: 2px solid transparent;
  line-height: 1;
}
.day-wd {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.day-num {
  margin: 0.2rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.day-mon { font-size: 0.78rem; color: var(--ink-3); font-weight: 700; }
.is-sunday .day-date-visual { background: var(--gold-soft); color: var(--gold-ink); }
.is-sunday .day-wd, .is-sunday .day-mon { color: var(--gold-ink); }
.is-today .day-date-visual { border-color: var(--accent); padding-top: 1.2rem; }
.day-flag {
  position: absolute;
  top: -1px; left: -2px; right: -2px;
  padding: 0.22rem 0 0.2rem;
  border-radius: 12px 12px 0 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}
.day-flag-soft { background: var(--paper-2); color: var(--ink-2); }
.day:has(.day-flag-soft) .day-date-visual { padding-top: 1.2rem; border-color: var(--paper-2); }

.events { list-style: none; }
.ev + .ev { border-top: 1px dashed var(--rule); }
.ev-link {
  display: grid;
  grid-template-columns: 6.2rem 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0.35rem 0.7rem 0.2rem;
  margin-inline: -0.2rem -0.35rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  min-height: 3.2rem;
}
.ev-link:hover { background: var(--paper-2); }
.ev-time { display: flex; flex-direction: column; padding-top: 0.02rem; }
.ev-time-main {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.12rem;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.25;
}
.ev-time-sub { font-family: var(--font-display); font-size: 0.98rem; color: var(--ink-3); margin-top: 0.05rem; font-variant-numeric: lining-nums; }
.ev-time-main.ev-time-long { font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; color: var(--ink-2); }
/* Things that have already happened (month pages): quieter, but still readable. */
.ev-past .ev-title, .ev-past .ev-time-main { color: var(--ink-2); font-weight: 600; }
.ev-past .ev-summary, .ev-past .ev-meta, .ev-past .ev-time-sub { color: var(--ink-3); }
/* Later days of a multi-day event: a slim reminder. */
.ev-cont .ev-link { min-height: 0; padding-block: 0.4rem 0.45rem; }
.ev-cont .ev-title { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
/* Approver preview highlights */
.ev-hl .ev-link { box-shadow: inset 4px 0 0 var(--hl, var(--accent)); padding-left: 0.75rem; background: color-mix(in srgb, var(--hl, var(--accent)) 7%, transparent); }
.ev-hl-new { --hl: var(--accent); }
.ev-hl-changed { --hl: var(--blue); }
.ev-hl-cancelled, .ev-hl-removed { --hl: var(--red); }
.ev-hl-removed .ev-title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.badge-hl { background: var(--accent); color: var(--accent-ink); }
.badge-hl-changed { background: var(--blue); color: #fff; }
.badge-hl-cancelled, .badge-hl-removed { background: var(--red); color: #fff; }
@media (prefers-color-scheme: dark) { .badge-hl-changed, .badge-hl-cancelled, .badge-hl-removed { color: #111; } }
.ev-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.ev-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.ev-summary { color: var(--ink-2); font-size: 0.98rem; line-height: 1.4; }
.ev-meta { color: var(--ink-3); font-size: 0.92rem; line-height: 1.4; }
.ev-chev { color: var(--ink-3); align-self: center; width: 1.2rem; height: 1.2rem; }
.ev-cancelled .ev-title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); color: var(--ink-2); }
.ev-cancelled .ev-time-main { color: var(--ink-3); }
.ev-cancel-note { color: var(--red); font-size: 0.95rem; font-weight: 700; }

/* Phones: the time sits on its own line above the title, so titles get the full width. */
@media (max-width: 33.99rem) {
  .day { grid-template-columns: 3.85rem 1fr; gap: 0.8rem; }
  .ev-link { grid-template-columns: 1fr auto; gap: 0.1rem 0.5rem; padding-block: 0.55rem 0.65rem; }
  .ev-time { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }
  .ev-time-sub { margin-top: 0; }
  .ev-body { grid-column: 1; }
  .ev-chev { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 22rem) {
  .day { grid-template-columns: 3.3rem 1fr; gap: 0.55rem; }
  .day-num { font-size: 1.8rem; }
}

.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}
.badge-cancel { background: var(--red-soft); color: var(--red); }
.badge-tbc { background: var(--amber-soft); color: var(--amber); }
.badge-members { background: var(--blue-soft); color: var(--blue); }

/* ---------- Month cards ---------- */

.month-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.month-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.6rem;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.month-card:hover { border-color: var(--rule-strong); }
.month-card-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 560; line-height: 1.1; }
.month-card-count { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.15rem; }
.month-card-chev { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

/* ---------- Regular meetings ---------- */

.regular-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 0.8rem;
  border-top: 2px solid var(--ink);
}
.regular-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.regular-when { font-weight: 700; color: var(--link); line-height: 1.35; }
.regular-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; line-height: 1.2; }
.regular-meta { color: var(--ink-2); }
.regular-summary { color: var(--ink-3); font-size: 0.95rem; }
.regular-item .badge { align-self: flex-start; margin-top: 0.3rem; }
@media (min-width: 40rem) {
  .regular-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* ---------- Prompt card ---------- */

.prompt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.prompt-icon {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-ink);
}
.prompt-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 560; line-height: 1.15; margin-bottom: 0.45rem; }
.prompt p { color: var(--ink-2); }
.prompt-members .prompt-icon { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 30rem) {
  .prompt { grid-template-columns: 1fr; }
}

/* ---------- Page heads, crumbs, month nav ---------- */

.crumbs { margin-top: 0.75rem; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 3rem;
  padding-right: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }
.page-head { margin: 0.5rem 0 1.4rem; }
.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.15rem, 8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-title-soft { color: var(--ink-3); font-style: italic; font-weight: 400; }
.page-title.is-cancelled { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.event-lead { margin-top: 0.75rem; font-size: 1.18rem; color: var(--ink-2); max-width: 36rem; }

.month-nav { display: flex; justify-content: space-between; gap: 0.75rem; margin: 0.5rem 0 0.5rem; }
.month-nav-bottom { margin-top: 2rem; }
.empty-month { padding: 1.5rem 0; color: var(--ink-2); border-top: 2px solid var(--ink); }

/* ---------- Event page ---------- */

.notice {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border-left: 6px solid;
  font-size: 1.05rem;
}
.notice .icon { margin-top: 0.05rem; }
.notice-cancel { background: var(--red-soft); border-color: var(--red); }
.notice-cancel .icon, .notice-cancel strong { color: var(--red); }
.notice-tbc { background: var(--amber-soft); border-color: var(--amber); }
.notice-tbc .icon { color: var(--amber); }
.notice-past { background: var(--paper-2); border-color: var(--rule-strong); }

.facts {
  margin: 0 0 1.5rem;
  padding: 0.3rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.fact {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
}
.fact + .fact { border-top: 1px solid var(--rule); }
.fact dt { color: var(--link); padding-top: 0.08rem; }
.fact dd { margin: 0; display: flex; flex-direction: column; gap: 0.15rem; font-size: 1.06rem; }
.fact dd strong { font-weight: 800; }
.fact-main { font-weight: 700; }
.fact-sub { color: var(--ink-2); }
.fact-link { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; min-height: 2.75rem; }

.prose { max-width: 36rem; font-size: 1.06rem; }
.prose p { margin: 0 0 1rem; }

.actions {
  margin: 1.8rem 0 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.actions-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; margin-bottom: 0.7rem; }
.actions-buttons { display: grid; gap: 0.6rem; }
@media (min-width: 34rem) { .actions-buttons { grid-template-columns: 1fr 1fr; } }
.actions-buttons .btn.is-other { background: var(--card); color: var(--link); border-color: currentColor; }
.actions-note { margin: 0.85rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

.other-dates { margin-top: 2.5rem; }
.other-list { list-style: none; border-top: 2px solid var(--ink); }
.other-list a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.other-list a:hover { background: var(--paper-2); }
.other-date { font-weight: 700; }
.other-time { color: var(--ink-3); }
.other-list a:has(.badge) { grid-template-columns: 1fr auto auto auto; }
.other-chev { color: var(--ink-3); width: 1.2rem; height: 1.2rem; }
.other-time { font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: lining-nums; }
.other-list .is-cancelled .other-date { text-decoration: line-through; }

/* ---------- Subscribe ---------- */

.choose { font-family: var(--font-display); font-size: 1.5rem; font-weight: 560; margin: 0.5rem 0 0.9rem; }
.choices { display: grid; gap: 1rem; }
.choice {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.choice.is-guess { border: 2px solid var(--accent); }
.choice-guess {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 800;
}
.choice-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  line-height: 1.15;
}
.choice-title .icon { color: var(--link); }
.choice-note { margin: 0.8rem 0 0; color: var(--ink-2); font-size: 0.97rem; }
.steps { list-style: none; counter-reset: step; margin-top: 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.35rem 0 0.35rem 2.6rem;
  min-height: 2.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.25rem;
  display: grid; place-items: center;
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  background: var(--paper-2);
  font-weight: 800;
  font-size: 0.95rem;
}

.copybox { margin-top: 0.5rem; }
.copybox-label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.copybox-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.copybox-input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.copybox-btn[hidden] { display: none; }
.copybox-plain { margin: 0 0 0.5rem; }
.copybox-plain code {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--paper-2);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.copybox-btn.is-done { border-color: var(--accent); color: var(--link); }

.help-cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 44rem) { .help-cards { grid-template-columns: 1fr 1fr; } .help-cards .help-card:last-child { grid-column: 1 / -1; } }
.help-card { padding: 1.15rem 1.2rem; border-radius: var(--radius); background: var(--paper-2); }
.help-card p { margin: 0; color: var(--ink-2); }

/* ---------- Month pages: earlier this month ---------- */

.earlier { margin: 0.5rem 0 0.5rem; border-top: 2px solid var(--ink); }
.earlier > summary {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-2);
  list-style: revert;
}
.agenda-past .week-head { border-bottom-width: 1px; border-color: var(--rule-strong); }

/* ---------- Subscribe page helpers ---------- */

.helpline {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin: 0 0 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.helpline strong { display: block; }
.choice-stuck {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
}

/* ---------- Approver preview ---------- */

.preview-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
  margin: 1rem 0 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--amber-soft);
  border-left: 6px solid var(--amber);
}
.preview-banner .icon { color: var(--amber); }
.preview-banner > span { flex: 1 1 16rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.95rem;
  background: color-mix(in srgb, var(--paper) 70%, var(--paper-2));
}
.footer-inner { display: grid; gap: 1.25rem; }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 560; color: var(--ink); margin-bottom: 0.3rem; }
.updated { display: flex; gap: 0.45rem; align-items: center; font-weight: 700; color: var(--ink-2); }
.updated .icon { color: var(--link); }
.footer-meta a { font-weight: 700; }

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .masthead-cta, .prompt, .month-nav, .crumbs, .skip, .members-bar, .ev-chev, .month-card-chev, .actions, .sunday-link, .footer-meta { display: none !important; }
  .masthead, .site-footer { background: none; border-color: #999; }
  .sunday { background: none !important; color: #000; border: 2px solid #000; box-shadow: none; }
  .sunday::after { display: none; }
  .sunday .eyebrow, .sunday-more a { color: #000; }
  .sunday-more, .sunday-more li { border-color: #999; }
  .day, .ev { break-inside: avoid; }
  .is-sunday .day-date-visual { background: none; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
  .month-card, .facts, .choice { box-shadow: none; }
}
