/* Generated from docs/design-system/tokens.json by tool/build_site.mjs. */
@font-face{font-family:Poppins;font-weight:400;font-display:swap;src:url(/fonts/Poppins-400.woff2) format("woff2")}
@font-face{font-family:Poppins;font-weight:500;font-display:swap;src:url(/fonts/Poppins-500.woff2) format("woff2")}
@font-face{font-family:Poppins;font-weight:600;font-display:swap;src:url(/fonts/Poppins-600.woff2) format("woff2")}
:root{--brand-green-900:#004c48;--brand-green-700:#006d60;--brand-green-500:#009980;--brand-green-300:#52cc8e;--brand-green-200:#91f298;--brand-green-100:#d9ffdc;--brand-gold-700:#e6a817;--brand-gold-500:#ffbf00;--brand-gold-400:#ffd800;--brand-gold-200:#fbec5d;--brand-slate:#708090;--brand-cloud:#f2f3f4;--screen:#f2f3f4;--surface:#ffffff;--row:#e6ffe8;--line:#e3e8e6;--ink:#006d60;--ink-muted:#5b6b78;--ink-faint:#677573;--primary:#006d60;--primary-text:#006d60;--tier-free:#708090;--primary-deep:#004c48;--on-primary:#ffffff;--on-deep:#ffffff;--gold:#ffbf00;--gold-strong:#ffbf00;--gold-text:#e6a817;--on-gold:#004c48;--gold-icon:#ffbf00;--favorite:#ffbf00;--success:#15b76d;--warning:#e6a817;--danger:#d61f45;--ad-slot:#708090;--on-ad-slot:#ffffff;--developer-brand:#cc0033;--dim:#f2f3f466;--focus:#006d60;--header-text:#ffffff;--header-eyebrow:#ffbf00;--glass-green:#006d60;--glass-green-strong:#006d60;--glass-gold:#ffbf00;--on-glass-gold:#004c48;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--radius-xs:8px;--radius-sm:12px;--radius-md:16px;--radius-button:18px;--radius-lg:26px;--radius-xl:26px;--radius-full:999px;--size-touch:48px;--size-icon:24px;--size-icon-sm:20px;--size-badge:40px;--size-row:48px;--size-app-bar:64px;--size-tabs:48px;--size-search:44px;--size-nav:60px;--size-play:56px;--size-player-button:44px;--size-header-expanded:38%;--size-header-expanded-large:30.5%;--size-header-landscape:0px;--size-banner:50px;--size-banner-lg:100px;--size-content-max:720px;--size-app-bar-top-padding:8px;--size-list-row:58.5px;--stroke-hairline:1px;--stroke-outline:1.5px;--stroke-focus:2px;--gradient-header:linear-gradient(150deg, #004c48 0%, #006d60 100%);--gradient-header-dark:linear-gradient(150deg, #004c48 0%, #006d60 100%);--gradient-presenter:linear-gradient(150deg, #004c48 0%, #006d60 100%);--gradient-heart:linear-gradient(60deg, #e6a817 0%, #ffbf00 100%);--gradient-gold:linear-gradient(150deg, #e6a817 0%, #ffbf00 100%);--opacity-hover:0.08;--opacity-pressed:0.16;--opacity-disabled:0.38;--opacity-inactive-track:0.30;--opacity-waveform:0.5;--duration-fast:150ms;--duration-base:250ms;--duration-slow:350ms;--duration-slowest:450ms;--duration-recoil-press:100ms;--duration-recoil-release:350ms;--ease-oneui:cubic-bezier(0.22, 0.25, 0, 1);--ease-linear:linear;--ease-in:cubic-bezier(0.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, 0.2, 1);--ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--ease-recoil:cubic-bezier(0.17, 0.17, 0.67, 1);--blur-backdrop:20px;--blur-glass:5px;--font:Poppins, "Noto Sans", "Segoe UI", Roboto, system-ui, sans-serif;--type-display:600 34px/40px var(--font);--type-display-sm:600 30px/36px var(--font);--type-header-quote:600 22px/30px var(--font);--type-header-eyebrow:600 14px/20px var(--font);--type-header-subtitle:400 15px/20px var(--font);--type-app-bar-title:600 21px/28px var(--font);--type-app-bar-subtitle:500 13px/16px var(--font);--ls-app-bar-subtitle:0.04em;--type-title-lg:600 22px/28px var(--font);--type-title-md:500 17px/22px var(--font);--type-title-sm:600 17px/22px var(--font);--type-body-lg:400 16px/24px var(--font);--type-body-md:400 14px/20px var(--font);--type-label-lg:500 14px/20px var(--font);--type-label-md:500 13px/18px var(--font);--ls-label-md:0.06em;--type-label-sm:500 12px/16px var(--font);--type-badge:500 16px/20px var(--font);--ls-badge:0.02em;--type-chip:500 10px/12px var(--font);--ls-chip:0.04em;--type-list-primary:500 17px/22px var(--font);--type-list-secondary:400 13px/18px var(--font);--type-button:500 15px/20px var(--font);--type-dialog-button:500 18px/24px var(--font);--type-dialog-body:400 14px/22px var(--font);--type-tab:500 15px/20px var(--font);--type-lyrics:500 20px/30px var(--font);--type-stanza-numeral:400 13px/18px var(--font);--ls-stanza-numeral:0.08em;--type-refrain-label:500 14px/20px var(--font);--type-presenter:600 48px/60px var(--font)}
@media (prefers-color-scheme:dark){:root{--screen:#000000;--surface:#16191d;--row:#1b2422;--line:#263230;--ink:#f2f3f4;--ink-muted:#a7b4b1;--ink-faint:#8e9c99;--primary-text:#ffffff;--on-primary:#04211c;--gold-text:#ffbf00;--danger:#ff5c7a;--ad-slot:#3a4650;--developer-brand:#ffffff;--dim:#00000066;--focus:#ffbf00;--glass-green:#004c48;--glass-green-strong:#004c48;--glass-gold:#e6a817;--on-glass-gold:#ffffff}}
/* The website's look (docs/design-system/README.md → The website): a
   traditional website in the brand's colours and type, not the app's
   screens. Every colour, size, type style and curve is a token variable,
   generated above this file from tokens.json. */

:root {
  color-scheme: light dark;
  /* Headings and hymn titles: the darkest green in light, white in dark. */
  --title: var(--primary-deep);
  --link: var(--primary-text);
  --edge: inset 0 0 0 1px var(--line);
  --button: var(--glass-green);
  --button-solid: var(--glass-gold);
  --button-solid-text: var(--on-glass-gold);
  --header-h: 64px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --title: var(--ink);
    --button: var(--glass-gold);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  background: var(--screen);
  color: var(--ink);
  font: var(--type-body-lg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
cite { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible {
  outline: var(--stroke-focus) solid var(--focus);
  outline-offset: 2px;
}

.icon {
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  flex: none;
  fill: currentColor;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
}
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.small { font: var(--type-list-secondary); color: var(--ink-muted); }

/* The sticky header: deep green, the name on the left, the menu on the
   right. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gradient-header);
  color: var(--header-text);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: auto;
  font: var(--type-title-sm);
}
.brand span { display: flex; flex-direction: column; }
.brand small { font: var(--type-label-sm); color: var(--header-eyebrow); }
.site-nav { display: flex; align-items: center; gap: var(--space-1); }
.site-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font: var(--type-tab);
  font-weight: 400;
  transition: background var(--duration-fast) linear;
}
.site-nav a:hover { background: rgb(255 255 255 / 0.12); }
.site-nav a.on { background: var(--gold); color: var(--on-gold); font-weight: 500; }
.menu-button {
  display: none;
  place-items: center;
  width: var(--size-player-button);
  height: var(--size-player-button);
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.12);
}
.menu-button .icon { width: var(--size-icon); height: var(--size-icon); }
/* Support the Developer, on every page: a gold heart on a light pill. */
.site-nav .nav-support { margin-left: var(--space-2); padding-right: var(--space-4); background: rgb(255 255 255 / 0.12); font-weight: 500; }
.site-nav .nav-support:hover { background: rgb(255 255 255 / 0.2); }
.nav-support .icon { color: var(--gold); }

@media (max-width: 1000px) {
  /* Without the script the menu stays open, wrapped under the name. */
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; width: 100%; padding-bottom: var(--space-3); }
  .js .menu-button { display: grid; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .js .site-nav a { height: var(--size-touch); }
  .site-nav .nav-support { margin: var(--space-2) 0 0; }
}

/* The home page's opening. */
.hero {
  background: var(--gradient-header);
  color: var(--header-text);
  text-align: center;
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}
.hero h1 { font: var(--type-display); font-size: clamp(34px, 6vw, 48px); line-height: 1.2; text-wrap: balance; }
.hero h1 span { display: block; font: var(--type-title-lg); color: var(--header-eyebrow); }
.hero p { max-width: 560px; font: var(--type-body-lg); }
.hero .field { width: 100%; max-width: 560px; margin-top: var(--space-2); }

.page-head { display: flex; flex-direction: column; gap: var(--space-2); }
.page-head h1, .prose h1 { font: var(--type-display); color: var(--title); text-wrap: balance; }
.page-head p { color: var(--ink-muted); }
.page-head .field { max-width: 480px; margin-top: var(--space-2); }
.heading { margin-bottom: var(--space-4); font: var(--type-title-lg); color: var(--title); }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6);
  transition: box-shadow var(--duration-fast) linear, transform var(--duration-recoil-release) var(--ease-recoil);
}
.link-card:hover { box-shadow: inset 0 0 0 var(--stroke-focus) var(--primary); }
.link-card:active { transform: scale(0.98); }
.link-card h3 { font: var(--type-title-lg); color: var(--title); }
.link-card p { font: var(--type-body-md); color: var(--ink-muted); }
.chip {
  align-self: flex-start;
  margin-bottom: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--gold);
  color: var(--on-gold);
  font: var(--type-chip);
  letter-spacing: var(--ls-chip);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--edge);
  font: var(--type-body-md);
  color: var(--link);
}
.chip-link:hover { box-shadow: inset 0 0 0 var(--stroke-focus) var(--primary); }

/* The call to get the app. */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--gradient-header);
  color: var(--header-text);
}
.band div { flex: 1 1 320px; }
.band h2 { font: var(--type-title-lg); }
.band p { margin-top: var(--space-1); font: var(--type-body-md); }

/* A language's list: topics, each a grid of hymns. */
.topic + .topic { margin-top: var(--space-8); }
.topic h2 {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: var(--stroke-hairline) solid var(--line);
  font: var(--type-label-md);
  letter-spacing: var(--ls-label-md);
  text-transform: uppercase;
  color: var(--gold-text);
}
.hymn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-1) var(--space-4);
}
.hymn-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--size-touch);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font: var(--type-title-md);
  font-weight: 400;
  color: var(--title);
}
.hymn-link:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.hymn-link small {
  display: block;
  font: var(--type-list-secondary);
  color: var(--ink-muted);
}
.num {
  display: grid;
  place-items: center;
  flex: none;
  min-width: var(--size-badge);
  height: var(--size-badge);
  border-radius: var(--radius-full);
  background: var(--glass-green);
  color: var(--on-deep);
  font: var(--type-badge);
  font-variant-numeric: tabular-nums;
}
.num.big { min-width: var(--size-play); height: var(--size-play); padding: 0 var(--space-3); font: var(--type-title-lg); }
.empty { padding: var(--space-8); font: var(--type-label-lg); text-align: center; color: var(--ink-muted); }

/* The one text field. */
.field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--size-touch);
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--edge);
  color: var(--ink-faint);
}
.field:focus-within { outline: var(--stroke-focus) solid var(--focus); }
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: var(--type-body-lg);
  text-overflow: ellipsis;
}
.field input::placeholder { color: var(--ink-faint); opacity: 1; }
.field input::-webkit-search-cancel-button { display: none; }
.field-clear { display: grid; padding: 0; border: 0; background: none; color: var(--ink-faint); }

/* The hymn page: the lyrics beside a column of details. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  font: var(--type-body-md);
  color: var(--ink-muted);
}
.crumbs a { color: var(--link); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs .icon { width: 12px; height: 12px; }
.hymn-head { display: flex; align-items: center; gap: var(--space-4); margin-top: calc(var(--space-4) * -1); }
.hymn-head h1 { font: var(--type-display); color: var(--title); text-wrap: balance; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); align-items: start; }
.main, .side { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
/* As tall as the lyrics, so the ad under its cards can stay in view. */
.side { align-self: stretch; }
@media (max-width: 960px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}

.player {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--glass-green);
  color: var(--on-deep);
}
.play {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size-play);
  height: var(--size-play);
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--glass-gold);
  color: var(--on-glass-gold);
  transition: transform var(--duration-recoil-release) var(--ease-recoil);
}
.play:active { transform: scale(0.95); }
.play .icon { width: var(--size-icon); height: var(--size-icon); }
.play .icon:last-child, .play.playing .icon:first-child { display: none; }
.play.playing .icon:last-child { display: block; }
.seek { flex: 1; display: grid; grid-template-columns: 1fr 1fr; row-gap: var(--space-1); min-width: 0; }
.seek input { grid-column: 1 / -1; --track: rgb(255 255 255 / var(--opacity-inactive-track)); }
.time { font: var(--type-label-sm); font-variant-numeric: tabular-nums; }
.time:last-child { text-align: right; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font: var(--type-body-md);
  color: var(--ink-muted);
}
.toolbar label { display: flex; align-items: center; gap: var(--space-2); }
.toolbar input[type="range"] { width: 140px; }
.toolbar output { min-width: 44px; color: var(--gold-text); }
.toolbar .button { margin-left: auto; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: none;
  --track: var(--line);
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--track); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--glass-gold);
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--glass-gold); }

.lyrics { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-8); }
/* Regular, as reading text on a website; the app's lyrics are Medium. */
.part p { font: var(--type-lyrics); font-weight: 400; font-size: calc(20px * var(--scale, 1)); line-height: 1.5; }
.numeral {
  margin-bottom: var(--space-1);
  font: var(--type-stanza-numeral);
  letter-spacing: var(--ls-stanza-numeral);
  color: var(--ink-faint);
}
.part-label { margin-bottom: var(--space-1); font: var(--type-refrain-label); color: var(--gold-text); }
.echo { color: var(--ink-muted); }
@media (max-width: 480px) { .lyrics { padding: var(--space-6); } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.pager .link-card { padding: var(--space-4); }
.pager .next { text-align: right; }
.pager-title { font: var(--type-title-md); font-weight: 400; color: var(--title); }

.side-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.side-card h2 {
  font: var(--type-label-md);
  letter-spacing: var(--ls-label-md);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.side-card p { font: var(--type-body-md); color: var(--ink-muted); }
.lang-links { display: flex; flex-direction: column; gap: var(--space-1); }
.lang-links a {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font: var(--type-title-md);
  font-weight: 400;
  color: var(--title);
}
.lang-links a span { font: var(--type-label-sm); color: var(--ink-muted); }
.lang-links a:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.lang-links a.on { background: var(--gold); color: var(--on-gold); }
.lang-links a.on span { color: var(--on-gold); }
.info dl { display: flex; flex-direction: column; gap: var(--space-3); }
.info dt { font: var(--type-label-md); color: var(--gold-text); }
.info dd { font: var(--type-dialog-body); }
.info dd.note { font: var(--type-list-secondary); color: var(--ink-muted); }
.info a, .prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Pages of text. */
.prose { padding: var(--space-8); }
.prose h1 { margin-bottom: var(--space-2); }
.prose h2 { margin-top: var(--space-6); font: var(--type-title-sm); color: var(--title); }
/* The cards are as wide as the header; the lines inside stay readable. */
.prose p { max-width: 80ch; margin-top: var(--space-2); font: var(--type-body-lg); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p.small { font: var(--type-list-secondary); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.prose .actions, .prose .stack { margin-top: var(--space-4); }
.prose .button { text-decoration: none; }
.quote { padding: var(--space-8); text-align: center; }
.quote p { max-width: 40em; margin-inline: auto; font: var(--type-header-quote); color: var(--title); text-wrap: balance; }
.quote cite { display: block; margin-top: var(--space-3); font: var(--type-label-lg); color: var(--gold-text); }
@media (max-width: 480px) { .prose, .quote { padding: var(--space-6); } }

.platform { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-8) var(--space-6); text-align: center; }
/* Every logo sits in the same 56 px box, so the names line up. */
.platform-logo { display: grid; place-items: center; height: 56px; margin-bottom: var(--space-2); }
.platform-logo img { height: 56px; width: auto; }
.platform-logo .logo-android { height: 36px; }
.platform h2 { font: var(--type-title-lg); color: var(--title); }
.platform p { flex: 1; margin-bottom: var(--space-3); font: var(--type-body-md); color: var(--ink-muted); }

/* Buttons: primary is green (gold in dark) with white text; .solid is
   gold with deep green text. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--size-touch);
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-button);
  background: var(--button);
  color: var(--on-deep);
  font: var(--type-button);
  white-space: nowrap;
  transition: transform var(--duration-recoil-release) var(--ease-recoil);
}
.button:active { transform: scale(0.97); }
.button.solid { background: var(--button-solid); color: var(--button-solid-text); }
.button.small { height: 36px; padding: 0 var(--space-4); }
/* The store buttons: gold with deep green text in light, white with an
   edge in dark (Mel, 10 Nov 2026). */
.button.store { background: var(--gold); color: var(--on-gold); }
@media (prefers-color-scheme: dark) {
  .button.store { background: var(--on-deep); box-shadow: var(--edge); color: var(--primary-deep); }
}
/* On a phone Share is its icon only. */
@media (max-width: 600px) {
  #share { width: 36px; padding: 0; border-radius: var(--radius-full); }
  #share span { display: none; }
}
.button:disabled { opacity: var(--opacity-disabled); cursor: default; }
/* Not a link yet: full colour, no press. */
.button.static { cursor: default; }
.button.static:active { transform: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-8);
  z-index: 30;
  padding: var(--space-3) var(--space-5);
  translate: -50% 0;
  border-radius: var(--radius-full);
  background: var(--primary-deep);
  color: var(--on-deep);
  font: var(--type-body-md);
  white-space: nowrap;
}

/* Ads (Mel, 10 Nov 2026): beside the column on a wide screen, in the hymn
   page's column, otherwise docked at the bottom of the window; never between
   the content. A space is hidden where it does not belong, so AdSense does
   not request it, and its size per width is set here. */
.ad-rails, .ad-rail, .ad-side, .ad-dock { display: none; }
.ad-rail ins, .ad-side ins, .ad-dock ins { display: inherit; margin: 0 auto; }
/* In the page's side margins, 24 px from the cards. */
.ad-rails {
  position: absolute;
  top: var(--space-8);
  bottom: var(--space-12);
  left: -160px;
  right: -160px;
  justify-content: space-between;
  pointer-events: none;
}
.ad-rail { width: 160px; }
.ad-rail ins {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  width: 160px;
  height: 600px;
  pointer-events: auto;
}
.ad-side ins { width: 336px; height: 280px; }
/* Sticks to the bottom of the window and comes to rest above the footer,
   so it never covers the content or the footer. */
.ad-dock {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: var(--space-2) 0;
  border-top: var(--stroke-hairline) solid var(--line);
  background: var(--screen);
}
.ad-dock ins { width: 320px; height: 50px; }
@media (min-width: 768px) { .ad-dock ins { width: 728px; height: 90px; } }
@media (min-width: 1500px) and (min-height: 720px) {
  .ad-rails { display: flex; }
  .ad-rail { display: block; }
}
@media not all and (min-width: 1500px) and (min-height: 720px) {
  .ad-dock { display: block; }
}
/* The hymn page's own column ad; under 960 px the dock takes its place. */
@media (min-width: 961px) {
  .ad-side { display: block; position: sticky; top: calc(var(--header-h) + var(--space-8)); }
  main:has(.ad-side) .ad-dock { display: none; }
}
/* Nothing to show, or the script blocked: no empty space left behind. */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-dock:has(ins[data-ad-status="unfilled"]), .no-ads .ad-rails, .no-ads .ad-side, .no-ads .ad-dock { display: none; }

/* The footer. */
.site-footer {
  background: var(--primary-deep);
  color: var(--on-deep);
  font: var(--type-body-md);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-brand p { font: var(--type-title-sm); }
.footer-brand p.small { font: var(--type-body-md); color: var(--on-deep); opacity: 0.8; }
.site-footer nav { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer h2 {
  font: var(--type-label-md);
  letter-spacing: var(--ls-label-md);
  text-transform: uppercase;
  color: var(--header-eyebrow);
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--stroke-hairline) solid rgb(255 255 255 / 0.16);
  font: var(--type-list-secondary);
}
.developed { display: flex; align-items: center; gap: var(--space-3); }

/* The developer on About: the photo, the logo, the tagline in his red. */
.developer { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: var(--space-8); }
.developer .photo { border-radius: var(--radius-full); }
.developer div { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.developer h2 { font: var(--type-label-md); letter-spacing: var(--ls-label-md); text-transform: uppercase; color: var(--ink-faint); }
.developer p { max-width: 80ch; font: var(--type-body-lg); }
.developer .tagline { font: var(--type-body-md); color: var(--ink-muted); }
.developer .tagline span { font-weight: 500; letter-spacing: var(--ls-label-md); color: var(--developer-brand); }
@media (max-width: 480px) { .developer { padding: var(--space-6); } }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.support { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); padding: var(--space-8); }
.support > div { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.support h2 { font: var(--type-title-sm); color: var(--title); }
.support p { max-width: 80ch; font: var(--type-body-lg); }
.support p.small { font: var(--type-list-secondary); color: var(--ink-muted); }
.support .button { text-decoration: none; }
/* The QR keeps its white quiet zone in dark mode, or phones can't read it. */
.support .qr { flex: none; width: 240px; height: auto; border-radius: var(--radius-md, 12px); background: #fff; }
