/*
 * gathered.fyi, the website. One stylesheet for every page.
 *
 * The look comes from the stitched logo: linen paper, navy thread, old gold.
 * Headings in Literata (a book face made for long reading), text in Source
 * Sans 3 (plain, open and easy to read at any size, with an ordinary zero, so
 * prices don't look like code). Both are served from here, so no visitor's
 * details go to Google.
 *
 * Movement uses the house springs from Daily Bible Readings
 * (utils/springs.ts), turned into CSS easing curves: --press, --release,
 * --enter, --pop. Nothing moves by itself, and nothing moves at all when
 * the reader asks for reduced motion.
 */

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  /* Paper and ink */
  --paper: #F4EFE4;
  --paper-2: #EBE4D4;      /* a sheet laid on the paper */
  --sheet: #FBF8F1;        /* the lightest card */
  --ink: #1B2030;
  --ink-2: #474C5A;        /* second ink: 8.3:1 on paper */
  --rule: #D8CFBC;
  --navy: #22305A;         /* the logo's thread */
  --navy-ink: #FBF8F1;
  --navy-deep: #18213F;
  --gold: #8C6516;         /* gold as text: 5.0:1 on paper */
  --gold-bright: #C99A3B;  /* gold as a mark, never as text on paper */
  --focus: #2F5BD0;
  --good: #2F6B45;

  --wood: #4E2D0A; --wood-dark: #321A03; --ledge: #3A2405; --card: #FBFAF6; --lit: #E2B95A;

  --display: "Literata", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step: 20px;            /* body size; Larger text raises it */
  --measure: 64ch;
  --wide: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --press: linear(0, 0.048, 0.143, 0.253, 0.363, 0.464, 0.553, 0.63, 0.695, 0.749, 0.795, 0.832, 0.863, 0.888, 0.909, 0.926, 0.939, 0.951, 0.96, 0.967, 0.972, 0.978, 0.982, 0.985, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 0.999, 1);
  --release: linear(0, 0.035, 0.1, 0.185, 0.28, 0.378, 0.474, 0.579, 0.66, 0.732, 0.794, 0.847, 0.891, 0.926, 0.958, 0.979, 0.995, 1.006, 1.014, 1.019, 1.021, 1.022, 1.022, 1.02, 1.019, 1.017, 1.014, 1.012, 1.01, 1.008, 1.006, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1, 1, 1, 1);
  --enter: linear(0, 0.029, 0.096, 0.175, 0.274, 0.376, 0.465, 0.558, 0.642, 0.709, 0.773, 0.828, 0.869, 0.906, 0.936, 0.957, 0.975, 0.988, 0.997, 1.004, 1.008, 1.01, 1.012, 1.012, 1.012, 1.011, 1.01, 1.009, 1.008, 1.007, 1.005, 1.004, 1.004, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1);
  --pop: linear(0, 0.042, 0.141, 0.272, 0.399, 0.542, 0.673, 0.777, 0.874, 0.95, 1.002, 1.042, 1.067, 1.08, 1.083, 1.079, 1.071, 1.062, 1.05, 1.038, 1.028, 1.019, 1.011, 1.004, 1, 0.997, 0.994, 0.994, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 1, 1, 1, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14161C; --paper-2: #1C1F27; --sheet: #22252E;
    --ink: #EEE9DE; --ink-2: #B9B5AB; --rule: #343844;
    --navy: #A9B9E8; --navy-ink: #14161C; --navy-deep: #0E1016;
    --gold: #DDB25A; --gold-bright: #DDB25A; --focus: #8FB0FF; --good: #8CCB9F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14161C; --paper-2: #1C1F27; --sheet: #22252E;
  --ink: #EEE9DE; --ink-2: #B9B5AB; --rule: #343844;
  --navy: #A9B9E8; --navy-ink: #14161C; --navy-deep: #0E1016;
  --gold: #DDB25A; --gold-bright: #DDB25A; --focus: #8FB0FF; --good: #8CCB9F;
  color-scheme: dark;
}

:root.larger { --step: 24px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step)/1.6 var(--text);
  font-kerning: normal; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 560px) { :root:not(.larger) { --step: 19px; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--gold-bright) 40%, transparent); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.022em; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.016em; font-variation-settings: "opsz" 48; }
h3 { font-size: 1.32em; line-height: 1.25; letter-spacing: -0.005em; font-variation-settings: "opsz" 24; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: 1.16em; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.quiet { color: var(--ink-2); }
.small { font-size: 0.86em; }
.serif { font-family: var(--display); }
em { font-style: italic; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: var(--navy-ink); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ bar */

.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms linear;
}
.bar.scrolled { border-bottom-color: var(--rule); }
@supports (backdrop-filter: blur(1px)) { .bar { backdrop-filter: saturate(1.2) blur(10px); } }
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { white-space: nowrap; text-decoration: none; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-size: 0.95em; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar-end .signin { white-space: nowrap; text-decoration: none; padding: 10px 12px; color: var(--ink-2); font-size: 0.95em; border-radius: 8px; }
.bar-end .signin:hover { color: var(--ink); background: var(--paper-2); }
.bar-end .menu-btn { display: none; }
.bar .short { display: none; }
@media (max-width: 480px) { .bar .long { display: none; } .bar .short { display: inline; } .bar .wrap { gap: 12px; } .brand { font-size: 1.15rem; gap: 10px; } .brand img { width: 40px; height: 40px; } }
@media (max-width: 1100px) {
  .nav { display: none; }
  .bar-end .signin { display: none; }
  .bar-end .menu-btn { display: inline-flex; }
}

/* The menu on narrow screens: a sheet that drops from the bar. */
.menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 19;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 8px var(--gutter) 24px; display: grid; gap: 2px;
  transform-origin: top; transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform 420ms var(--enter), opacity 180ms linear, visibility 0s 420ms;
}
.menu.open { transform: none; opacity: 1; visibility: visible; transition: transform 577ms var(--enter), opacity 180ms linear, visibility 0s; }
.menu a { text-decoration: none; font-size: 1.15em; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.menu a:last-child { border-bottom: 0; }

/* -------------------------------------------------------------- buttons */

.btn {
  --bg: var(--navy); --fg: var(--navy-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 0;
  background: var(--bg); color: var(--fg); font: 700 1em/1.1 var(--text); text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform 410ms var(--release), background-color 120ms linear;
}
.btn:hover { --bg: var(--navy-deep); text-decoration: none; }
:root[data-theme="dark"] .btn:hover, .dark-hover .btn:hover { --bg: #C3D0F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:hover { --bg: #C3D0F2; } }
.btn:active { transform: scale(0.965); transition: transform 120ms var(--press); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 0.92em; }
.btn.line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { --bg: var(--paper-2); }
.btn.gold { --bg: var(--gold-bright); --fg: #1B1405; }
.btn.gold:hover { --bg: #DDB25A; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }

.textlink { font-weight: 700; color: var(--navy); text-decoration: underline; }

/* ------------------------------------------------------------ join box */

.join { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.join label { flex-basis: 100%; font-weight: 700; font-size: 0.95em; }
.join input {
  flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 18px;
  font: 400 1.05em var(--text); color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--rule); border-radius: 10px;
  transition: border-color 120ms linear;
}
.join input::placeholder { color: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.join input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 22%, transparent); }
.join .btn { min-height: 56px; }
.join .hint { flex-basis: 100%; color: var(--ink-2); font-size: 0.85em; min-height: 1.6em; }
.join .hint.bad { color: #A0341F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .join .hint.bad { color: #F0937D; } }
:root[data-theme="dark"] .join .hint.bad { color: #F0937D; }

/* ---------------------------------------------------------------- opening */

.opening { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.opening .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.opening h1 { max-width: 16ch; }
.opening .lede { margin-top: 24px; max-width: 34ch; }
.opening .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.opening .price-line { color: var(--ink-2); font-size: 0.92em; }
.opening .price-line strong { color: var(--ink); }
.opening .join { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); max-width: 560px; }
@media (max-width: 900px) {
  .opening .wrap { grid-template-columns: 1fr; }
  .opening h1 { max-width: 16ch; }
}

/* The hall's projector screen, as Gathered draws it. */
.screen {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  background: #0E0F12; border-radius: 14px; padding: 4.5%;
  display: grid; grid-template-columns: auto 1fr; gap: 7%; align-items: center;
  color: #F2EEE6; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 30px 60px -30px rgba(20, 16, 8, 0.55);
}
.screen .board { height: 100%; min-height: 0; }
.screen .board .hymnboard { height: 100%; width: auto; }
.screen .side { display: flex; flex-direction: column; gap: 0.9em; font-size: clamp(11px, 1.35vw, 17px); line-height: 1.35; }
.screen .side .now { font-family: var(--display); font-size: 1.9em; line-height: 1.1; font-weight: 600; }
.screen .side .now span { color: var(--lit); }
.screen .side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25em 0.8em; color: #CFC9BD; }
.screen .side dt { color: #8F897E; }
.screen .side dd { margin: 0; }
.screen .tag { position: absolute; top: 3.5%; right: 4%; font-size: clamp(10px, 1vw, 13px); color: #8F897E; display: flex; align-items: center; gap: 6px; }
.screen .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D24B3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .screen, :root:not([data-theme="light"]) .mini:not(.light) { box-shadow: 0 0 0 1px #2E3240; } }
:root[data-theme="dark"] .screen, :root[data-theme="dark"] .mini:not(.light) { box-shadow: 0 0 0 1px #2E3240; }
.screen-caption { margin-top: 16px; color: var(--ink-2); font-size: 0.88em; max-width: 46ch; }
@media (max-width: 900px) { .screen { max-width: 640px; } }
@media (max-width: 480px) { .screen { grid-template-columns: 1fr; aspect-ratio: auto; gap: 18px; padding: 22px; } .screen .board { height: auto; max-width: 220px; margin: 0 auto; } .screen .board .hymnboard { width: 100%; height: auto; } .screen .side { font-size: 15px; } }

/* The hymn board: rows are buttons, so a visitor can light the hymn being sung. */
.hymnboard { width: 100%; height: auto; overflow: visible; }
.hymnboard .row { cursor: pointer; }
.hymnboard .row .glow { opacity: 0; transition: opacity 180ms linear; }
.hymnboard .row.lit .glow { opacity: 1; }
.hymnboard .row .cards { transition: opacity 180ms linear; }
.hymnboard.singing .row:not(.lit) .cards { opacity: 0.55; }
.hymnboard .row:focus { outline: none; }
.hymnboard .row:focus-visible .focusring { opacity: 1; }
.hymnboard .focusring { opacity: 0; }

/* ------------------------------------------------------------- sections */

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 760px; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.08em; max-width: 52ch; }

/* A Sunday with Gathered: a timeline, each moment with what the hall, home and the desk see. */
.sunday { border-top: 1px solid var(--rule); }
.day { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 0; }
.moment {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 48px); padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule); align-items: start;
}
.moment:last-child { border-bottom: 1px solid var(--rule); }
.moment time { font-family: var(--display); font-size: 1.5em; font-variant-numeric: tabular-nums lining-nums; color: var(--gold); line-height: 1.2; padding-top: 2px; }
.moment h3 { margin-bottom: 12px; }
.moment .who { margin-top: 14px; display: grid; gap: 10px; }
.moment .who p { padding-left: 16px; border-left: 3px solid var(--rule); color: var(--ink-2); font-size: 0.95em; }
.moment .who b { color: var(--ink); font-weight: 700; }
.moment .shot { align-self: center; }
@media (max-width: 960px) {
  .moment { grid-template-columns: 80px minmax(0, 1fr); }
  .moment .shot { grid-column: 2; max-width: 520px; }
}
@media (max-width: 560px) {
  .moment { grid-template-columns: 1fr; gap: 14px; }
  .moment .shot { grid-column: 1; }
  .moment time { font-size: 1.2em; }
}

/* Small drawings of Gathered's screens, built from the app's own colours. */
.mini {
  border-radius: 12px; overflow: hidden; background: #0E0F12; color: #EDE8DD;
  aspect-ratio: 16 / 9; position: relative; font-size: clamp(12px, 1.15vw, 15px); line-height: 1.35;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 18px 40px -26px rgba(20,16,8,0.6);
}
.mini.light { background: #F5F2EB; color: #26292E; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -26px rgba(20,16,8,0.35); }
.mini .pad { position: absolute; inset: 0; padding: 6% 7%; display: flex; flex-direction: column; justify-content: center; gap: 0.7em; }
.mini .big { font-family: var(--display); font-size: 1.85em; line-height: 1.12; font-weight: 600; }
.mini .ref { color: var(--lit); font-weight: 700; letter-spacing: 0.01em; }
.mini .verse { font-family: var(--display); font-size: 1.12em; line-height: 1.45; color: #E6E0D3; }
.mini .verse sup { color: var(--lit); font-family: var(--text); font-weight: 700; margin-right: 3px; font-size: 0.7em; }
.mini .note { color: #9B958A; font-size: 0.9em; }
.mini .grid { position: absolute; inset: 5%; display: grid; gap: 3%; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.mini .tile { border-radius: 8px; background: #2A2C33; position: relative; display: flex; align-items: flex-end; padding: 6px 8px; font-size: 0.85em; color: #E6E0D3; overflow: hidden; }
.mini .tile.main { grid-row: span 3; background: linear-gradient(180deg, #3A3530 0%, #2B2724 100%); box-shadow: inset 0 0 0 2px var(--lit); }
.mini .tile { justify-content: flex-start; }
.mini .tile .initials { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 4.2em; height: 4.2em; border-radius: 50%; display: grid; place-items: center; background: #4A4F5C; color: #F2EEE6; font-family: var(--display); font-weight: 600; font-size: 1.15em; }
.mini .tile .initials.small { width: 2.4em; height: 2.4em; font-size: 0.95em; top: 42%; background: #3E4250; }
.mini .tile.main .initials { background: #5A4B33; color: #F6E7C6; }
.mini .tile.hand { box-shadow: inset 0 0 0 1.5px #8FB0FF; }
/* The desk's details board, drawn small */
.mini.desk .pad { justify-content: center; gap: 1em; padding: 5% 6%; }
.mini.desk i { font-style: normal; display: inline-grid; place-items: center; width: 1.7em; height: 1.95em; border-radius: 3px; background: #FBFAF6; color: #111; font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.mini.desk .trayline { display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap; }
.mini.desk .tray { display: flex; gap: 0.3em; padding: 0.45em; border-radius: 8px; background: #E6DFD0; }
.mini.desk .deskrows { display: grid; gap: 0.35em; padding: 0.6em 0.8em; border-radius: 10px; background: #4E2D0A; }
.mini.desk .drow { display: flex; align-items: center; gap: 0.8em; padding: 0.25em 0.4em; border-radius: 6px; border-bottom: 3px solid #3A2405; }
.mini.desk .drow .note { color: #D9C6A3; min-width: 3.4em; font-size: 0.85em; }
.mini.desk .drow .cards { display: flex; gap: 0.25em; }
.mini.desk .drow b { width: 1.7em; height: 1.95em; border: 1.5px dashed rgba(255,240,210,0.4); border-radius: 3px; }
.mini.desk .drow.lit { background: rgba(226,185,90,0.28); box-shadow: inset 0 0 0 1.5px #E2B95A; }
.mini.desk .sung { margin-left: auto; color: #F6E7C6; font-weight: 700; font-size: 0.85em; }
.mini .tile span { position: relative; background: rgba(0,0,0,0.55); padding: 1px 6px; border-radius: 5px; }
.mini .scene { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.mini .panel { padding: 7%; display: flex; flex-direction: column; justify-content: center; gap: 0.5em; }
.mini .panel.dark { background: #191A1F; }
.mini .after { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; padding: 6% 7%; align-content: center; gap: 0.6em; }
.mini .player { display: flex; align-items: center; gap: 0.8em; margin-bottom: 0.6em; padding: 0.7em 0.9em; border-radius: 10px; background: #FFFFFF; box-shadow: 0 0 0 1px #E2DACB; }
.mini .player .play { width: 0; height: 0; border-left: 0.75em solid #22305A; border-top: 0.45em solid transparent; border-bottom: 0.45em solid transparent; flex: none; }
.mini .player .track { flex: 1; height: 0.35em; border-radius: 1em; background: #E2DACB; overflow: hidden; }
.mini .player .track b { display: block; height: 100%; width: 38%; background: #A67C1E; }
.mini .player span { font-variant-numeric: tabular-nums; color: #6B6E76; font-size: 0.85em; }
.mini .after .line { display: flex; gap: 0.6em; align-items: baseline; }
.mini .after .line b { min-width: 5.6em; color: #6A6E78; font-weight: 700; font-size: 0.85em; }
.mini.light .note { color: #6B6E76; }
.mini .rec { position: absolute; top: 5%; right: 5%; font-size: 0.82em; color: #F3EDE2; background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.mini .rec::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: #D24B3A; }
.mini .sing { position: absolute; left: 0; right: 0; bottom: 0; padding: 4% 6%; background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0)); font-weight: 700; }
.mini .sing span { color: var(--lit); }
.shot figcaption { margin-top: 10px; color: var(--ink-2); font-size: 0.8em; }
figure { margin: 0; }

/* ----------------------------------------------- the rest of the week */

.week .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.week ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.week li { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding-block: 18px; border-top: 1px solid var(--rule); }
.week li:last-child { border-bottom: 1px solid var(--rule); }
.week li b { font-family: var(--display); font-weight: 600; font-size: 1.08em; }
.week li span { color: var(--ink-2); }
.week .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
@media (max-width: 860px) { .week .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .week li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------- conferences */

.conf { background: var(--navy-deep); color: #EEE9DE; }
:root[data-theme="dark"] .conf { background: #0B0D14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conf { background: #0B0D14; } }
.conf h2, .conf h3 { color: #F6F1E7; }
.conf .section-head p { color: #C4C3C6; }
.conf .wrap.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.conf .facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #D9D6D0; }
.conf .facts li { padding-left: 28px; position: relative; }
.conf .facts li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 2px; background: var(--gold-bright); }
.conf a:not(.btn) { color: #F6F1E7; }
@media (max-width: 900px) { .conf .wrap.split { grid-template-columns: 1fr; } }

/* The calculator: two choices and a price. Used small on the front page and full on /conferences. */
.calc {
  background: #FBF8F1; color: #1B2030; border-radius: 18px; padding: clamp(22px, 3vw, 36px);
  display: grid; gap: 26px;
}
:root[data-theme="dark"] .calc { background: #22252E; color: #EEE9DE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc { background: #22252E; color: #EEE9DE; } }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.calc .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.calc .choices label { position: relative; }
.calc .choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc .choices span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 0 16px;
  border-radius: 10px; box-shadow: inset 0 0 0 1.5px #CFC6B3; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear, box-shadow 120ms linear, transform 410ms var(--release);
}
:root[data-theme="dark"] .calc .choices span { box-shadow: inset 0 0 0 1.5px #434858; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc .choices span { box-shadow: inset 0 0 0 1.5px #434858; } }
.calc .choices label:hover span { background: rgba(34, 48, 90, 0.07); }
.calc .choices input:checked + span { background: #22305A; color: #FBF8F1; box-shadow: none; }
:root[data-theme="dark"] .calc .choices input:checked + span { background: #A9B9E8; color: #14161C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc .choices input:checked + span { background: #A9B9E8; color: #14161C; } }
.calc .choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc .choices input:active + span { transform: scale(0.95); transition: transform 120ms var(--press); }
.calc .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 420px; }
.calc .days span { min-width: 0; width: 100%; padding: 0; }
.calc .total { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; padding-top: 22px; border-top: 1px solid #DDD4C2; }
:root[data-theme="dark"] .calc .total { border-top-color: #343844; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc .total { border-top-color: #343844; } }
.calc .figure { font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 2rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; display: inline-flex; align-items: flex-start; }
.calc .figure .cur { font-size: 0.55em; margin-top: 0.12em; margin-right: 0.04em; }
.calc .figure.talk { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.calc .what { flex: 1 1 220px; color: #474C5A; font-size: 0.95em; padding-bottom: 4px; }
:root[data-theme="dark"] .calc .what { color: #B9B5AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc .what { color: #B9B5AB; } }
.calc .go { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.calc .go .btn { --bg: #22305A; --fg: #FBF8F1; }
.calc .go .btn:hover { --bg: #18213F; }
:root[data-theme="dark"] .calc .go .btn { --bg: #A9B9E8; --fg: #14161C; }
:root[data-theme="dark"] .calc .go .btn:hover { --bg: #C3D0F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc .go .btn { --bg: #A9B9E8; --fg: #14161C; } :root:not([data-theme="light"]) .calc .go .btn:hover { --bg: #C3D0F2; } }
.calc .go small { color: #5A5F6B; font-size: 0.85em; }
:root[data-theme="dark"] .calc .go small { color: #B9B5AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc .go small { color: #B9B5AB; } }

/* A number that rolls to its new value, in the direction it changed (DBR's Rolling). */
.roll { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.roll .col { display: inline-block; position: relative; height: 1em; }
.roll .col .strip { display: flex; flex-direction: column; transition: transform 577ms var(--enter); }
.roll .col .strip span { height: 1em; display: block; text-align: center; }

/* ---------------------------------------------------------------- prices */

.prices .plans { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--sheet); }
.plan { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 16px; border-left: 1.5px solid var(--ink); min-width: 0; }
.plan:first-child { border-left: 0; }
.plan.ecclesia { background: var(--paper-2); }
.plan .for { color: var(--ink-2); font-size: 0.92em; }
.plan h3 { font-size: 1.6em; }
.plan .cost { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .cost b { font-family: var(--display); font-weight: 600; font-size: 2.6em; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.plan .cost span { color: var(--ink-2); }
.plan .per { color: var(--ink-2); font-size: 0.88em; margin-top: -8px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 0.95em; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 5.5px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.plan li.no { color: var(--ink-2); }
.plan li.no::before { border: 0; width: 10px; height: 2px; top: 0.75em; background: var(--ink-2); transform: none; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .spacer { flex: 1; }
@media (max-width: 960px) {
  .prices .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1.5px solid var(--ink); }
  .plan:first-child { border-top: 0; }
  .plan.ecclesia { order: -1; }
}
.prices .extras { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 40px; }
.prices .extras div { display: grid; gap: 6px; }
.prices .extras b { font-family: var(--display); font-weight: 600; font-size: 1.1em; }
.prices .extras p { color: var(--ink-2); font-size: 0.95em; }
.prices .fine { margin-top: 32px; color: var(--ink-2); font-size: 0.85em; max-width: 70ch; }

/* ----------------------------------------------------------- who makes it */

.maker { border-top: 1px solid var(--rule); }
.maker .wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.maker .patch { width: 100%; max-width: 320px; border-radius: 18px; }
.maker .body { display: grid; gap: 18px; max-width: 60ch; }
.maker .body p { color: var(--ink-2); }
.maker .body p strong { color: var(--ink); }
.maker .apps { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.95em; }
@media (max-width: 800px) { .maker .wrap { grid-template-columns: 1fr; } .maker .patch { max-width: 200px; } }

/* ------------------------------------------------------------- questions */

.questions .wrap { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.questions .section-head { position: sticky; top: 112px; }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.15em; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform 410ms var(--release);
}
.qa details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.qa .answer { padding: 0 0 24px; color: var(--ink-2); display: grid; gap: 12px; max-width: 60ch; }
.qa .answer a { color: var(--ink); }
@media (max-width: 860px) { .questions .wrap { grid-template-columns: 1fr; } .questions .section-head { position: static; } }

/* --------------------------------------------------------------- closing */

.closing { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--rule); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.closing h2 { max-width: 18ch; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .closing .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */

footer.foot { background: var(--paper-2); padding-block: 56px 40px; font-size: 0.9em; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h2 { margin: 0 0 12px; font: 700 1em var(--text); letter-spacing: 0; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot .about p + p { margin-top: 10px; }
.foot .base { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot .prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.foot .prefs button {
  font: 600 0.95em var(--text); color: var(--ink); background: transparent; border: 1.5px solid var(--rule);
  border-radius: 8px; min-height: 44px; padding: 0 14px; cursor: pointer;
}
.foot .prefs button[aria-pressed="true"] { border-color: var(--ink); background: var(--sheet); }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ------------------------------------------------------- plain pages */

.page { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.page .wrap { max-width: 860px; }
.prose { display: grid; gap: 18px; max-width: var(--measure); }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 1.6em; margin-top: 28px; }
.prose h3 { font-size: 1.15em; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 700; }
.draft-note { background: var(--paper-2); border-left: 4px solid var(--gold-bright); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 0.92em; }

/* The conference page */
.conf-page { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.conf-page .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.conf-page .intro { display: grid; gap: 22px; position: sticky; top: 112px; }
.conf-page .calc { box-shadow: 0 0 0 1.5px var(--ink); }
.conf-page .steps { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.conf-page .steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.conf-page .steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 0.85em; color: var(--ink); }
.conf-page .table { margin-top: 8px; }
@media (max-width: 920px) { .conf-page .wrap { grid-template-columns: 1fr; } .conf-page .intro { position: static; } }

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media print {
  .bar, .menu, .foot .prefs, .join, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .conf { background: #fff; color: #000; }
}

/* On a phone the join box stacks: the whole width to type in, and a big Join under it. */
@media (max-width: 480px) {
  .join input { flex-basis: 100%; }
  .join .btn { flex: 1 1 100%; }
}
