/* PrayerRule theme: black and red, as in a service book. Direction, palette and font licences: /DESIGN.md */
@font-face { font-family: "Old Standard TT"; font-weight: 400; font-display: swap; src: url(fonts/OldStandard-400.woff2) format("woff2"); }
@font-face { font-family: "PR Initial"; font-weight: 700; font-display: swap; src: url(fonts/OldStandard-700-caps.woff2) format("woff2"); unicode-range: U+0041-005A; }
@font-face { font-family: "Libre Caslon Text"; font-weight: 400 700; font-display: swap; src: url(fonts/LibreCaslonText-var.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/LibreCaslonText-Italic-var.woff2) format("woff2"); }
@font-face { font-family: "Old Standard Fallback"; src: local("Georgia"); size-adjust: 98.5%; ascent-override: 77.4%; descent-override: 24.2%; line-gap-override: 24%; }
@font-face { font-family: "Caslon Fallback"; src: local("Georgia"); size-adjust: 109.2%; ascent-override: 88.8%; descent-override: 23.8%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --pr-paper: #f4ecdb;
  --pr-paper-deep: #ebe0c9;
  --pr-page: #fffdf8;
  --pr-ink: #1c1917;
  --pr-ink-soft: #4a4037;
  --pr-red: #9b1c1c;
  --pr-red-deep: #7a1414;
  --pr-red-wash: #f8ecdf;
  --pr-rule: rgba(28, 25, 23, .2);
  --pr-red-rule: rgba(155, 28, 28, .5);
  --pr-control: #7a6e60;
  --pr-binding: #231e1a;
  --pr-page-shadow: 0 1px 1px rgba(48, 34, 20, .16), 0 16px 30px -14px rgba(48, 34, 20, .42);

  --color-bg: var(--pr-paper);
  --color-surface: var(--pr-paper-deep);
  --color-text: var(--pr-ink);
  --color-muted: var(--pr-ink-soft);
  --color-dim: var(--pr-ink-soft);
  --color-line: var(--pr-rule);
  --color-accent: var(--pr-red);
  --color-accent-hover: var(--pr-red-deep);
  --color-accent-text: var(--pr-red);
  --color-accent-soft: var(--pr-red-wash);
  --color-on-accent: var(--pr-page);
  --color-focus: var(--pr-ink);
  --color-header-bg: var(--pr-paper);
  --color-input-bg: #fff;
  --color-input-rule: var(--pr-control);
  --color-scrim: rgba(28, 25, 23, .5);
  --color-paper: var(--pr-page);
  --color-paper-text: var(--pr-ink);
  --color-paper-muted: var(--pr-ink-soft);
  --color-paper-line: var(--pr-rule);
  --color-paper-accent: var(--pr-red);
  --color-tape: transparent;

  --font-display: "Old Standard TT", "Old Standard Fallback", Georgia, serif;
  --font-body: "Libre Caslon Text", "Caslon Fallback", Georgia, serif;
  --font-ui: var(--font-body);
  --font-initial: "PR Initial", "Old Standard TT", Georgia, serif;
  --weight-display: 400;
  --weight-strong: 700;
  --weight-ui: 700;
  --display-em-style: normal;
  --label-case: none;
  --tracking: 0;

  --fs-2xs: 14px;
  --fs-xs: 15px;
  --fs-sm: 16px;
  --fs-ui: 17px;
  --fs-ui-lg: 18px;
  --fs-md: 18px;
  --fs-body: 19px;
  --fs-lg: 20px;
  --fs-xl: 20px;
  --fs-2xl: 22px;
  --fs-3xl: 27px;
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --fs-h1: clamp(36px, 3.9vw, 56px);
  --fs-h2: clamp(30px, 3.2vw, 44px);
  --fs-h2-sm: clamp(28px, 3vw, 38px);
  --fs-h3: 21px;
  --fs-price: 64px;
  --fs-index: 40px;
  --fs-page-title: clamp(32px, 5vw, 46px);
  --fs-legal-title: clamp(36px, 5vw, 52px);
  --fs-guide-title: clamp(34px, 4.6vw, 52px);
  --fs-guide-h2: clamp(26px, 2.8vw, 34px);
  --fs-block-heading: clamp(26px, 3.4vw, 34px);
  --fs-block-text: 19px;
  --lh-body: 1.62;
  --lh-h1: 1.1;
  --lh-h2: 1.15;
  --ls-h1: -.005em;
  --ls-h2: 0;

  --radius-control: 3px;
  --radius-card: 3px;
  --radius-chip: 3px;
  --radius-focus: 3px;
  --border-width: 1px;
  --border-strong: 2px;
  --shadow-card: none;
  --shadow-menu: 0 14px 30px rgba(48, 34, 20, .22);
  --shadow-bar: 0 14px 34px rgba(48, 34, 20, .26), 0 1px 3px rgba(48, 34, 20, .2);
  --shadow-sheet: 0 1px 2px rgba(48, 34, 20, .18), 0 14px 26px -12px rgba(48, 34, 20, .4);
  --shadow-media: none;

  --gutter: clamp(16px, 4vw, 56px);
  --space-section: clamp(64px, 8vw, 116px);
  --space-hero-top: clamp(24px, 3.2vw, 48px);
  --space-hero-bottom: clamp(48px, 5vw, 80px);
  --gap-layout: clamp(32px, 4vw, 56px);
  --gap-hero-columns: clamp(32px, 4.5vw, 72px);
  --gap-form: 24px;
  --control-height: 54px;
  --max-page: 1240px;
  --max-narrow: 760px;
  --max-order: 800px;
  --max-prose: 760px;
  --max-guide: 800px;
  --max-lead: 32em;
  --max-text: 36em;

  --grain-opacity: 0;
  --locked-bg: var(--pr-page);
  --locked-border: 1.5px dashed var(--pr-red-rule);
}

html { scroll-padding-top: 88px; scroll-padding-bottom: 160px; scrollbar-color: var(--pr-control) var(--pr-paper); }
body { font-variant-numeric: oldstyle-nums proportional-nums; caret-color: var(--pr-red); }
::selection { background: var(--pr-red); color: var(--pr-page); }
::placeholder { color: #7a6e60; opacity: 1; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--pr-ink); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; font-synthesis: none; }
p, li, dd, td, figcaption { text-wrap: pretty; }
.hero-copy > *, .sheet { animation: none !important; }

/* Header: a running head over a double rule */
.top { background: var(--pr-paper); border-bottom: 1px solid var(--pr-rule); box-shadow: 0 3px 0 -2px var(--pr-paper), 0 4px 0 -2px var(--pr-rule); backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 12px; padding-bottom: 12px; }
.brand { gap: 12px; font: 400 23px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--pr-ink); }
.brand span { color: var(--pr-red); }
.brand .brand-word { color: var(--pr-ink); }
.brand img { height: 36px; width: 36px; }
.nav { gap: 28px; margin-left: var(--space-7); }
.nav a { font: 400 var(--fs-ui-lg)/1 var(--font-body); color: var(--pr-ink); letter-spacing: 0; padding: 13px 0; }
.nav a:hover { color: var(--pr-red); text-decoration: underline; }
.nav-cta { font: 700 var(--fs-ui)/1 var(--font-body); letter-spacing: 0; color: var(--pr-red); border: 1.5px solid var(--pr-red); border-radius: var(--radius-control); padding: 13px 18px; }
.nav-cta:hover { background: var(--pr-red); color: var(--pr-page); }
@media (max-width: 1020px) { .nav { display: none; } }
@media (max-width: 820px) { .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; font-size: 16px; } }
@media (max-width: 440px) { .top { gap: 10px; } .brand { font-size: 18px; letter-spacing: .05em; gap: 8px; } .brand img { width: 30px; height: 30px; } .nav-cta { padding: 9px 11px; font-size: 15px; } }

/* Buttons: red, because red tells you what to do */
.btn { font: 700 19px/1.25 var(--font-body); letter-spacing: 0; padding: 15px 30px; min-height: 58px; border-radius: var(--radius-control); background: var(--pr-red); color: var(--pr-page); }
.btn:hover { transform: none; background: var(--pr-red-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--pr-page); border: 1.5px solid var(--pr-ink); color: var(--pr-ink); }
.btn.ghost:hover { background: var(--pr-paper); }

/* Drop capitals: the first letter of a section's opening paragraph */
.hero .lead::first-letter, .custom-head .lead::first-letter, .guide .lead::first-letter {
  font-family: var(--font-initial); font-weight: 700; color: var(--pr-red); float: left; font-size: 3.35em; line-height: .78; margin: .06em .1em 0 -.02em;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .hero .lead::first-letter, .custom-head .lead::first-letter, .guide .lead::first-letter {
    float: none; font-size: inherit; line-height: inherit; margin: 0 .14em 0 0; -webkit-initial-letter: 3; initial-letter: 3;
  }
}

/* Hero: a title page and an open book */
.hero { padding-top: var(--space-hero-top); }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; padding-top: clamp(24px, 2.4vw, 36px); }
  .hero-copy { padding-top: clamp(4px, .8vw, 12px); }
}
.hero-copy::before { content: ""; display: block; width: min(100%, 470px); aspect-ratio: 546 / 30; margin: 0 0 clamp(20px, 2vw, 28px); background: url(headpiece.svg) left center / 100% 100% no-repeat; }
.slate:empty { display: none; }
.hero h1 { font-size: var(--fs-h1); color: var(--pr-ink); max-width: 11em; }
.hero .lead { color: var(--pr-ink); font-size: var(--fs-lead); line-height: 1.56; margin: clamp(16px, 1.6vw, 22px) 0 clamp(20px, 1.8vw, 26px); max-width: 31em; }
.cta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-note { font: 400 var(--fs-md)/1.5 var(--font-body); color: var(--pr-ink-soft); max-width: 27em; }

.hero-visual { position: relative; }
.carousel { gap: 0; }
.hero .example { position: relative; margin: 0 calc(-1 * min(28px, var(--gutter))) 0 -12px; }
.hero .example img { width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.hero .example figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.example-note:empty { display: none; }

.sheet {
  position: absolute; left: 6.6%; top: 55.5%; margin: 0; width: 40%; padding: 44px 18px 8px;
  background: var(--pr-page) url(cross.svg) center 12px / auto 25px no-repeat; color: var(--pr-ink);
  border: 1px solid rgba(28, 25, 23, .14); border-radius: 2px; box-shadow: var(--shadow-sheet); transform: none; z-index: 2;
}
.sheet::before { display: none; }
.sheet-head { display: block; text-align: center; border-bottom: 1px solid var(--pr-red-rule); padding-bottom: 8px; }
.sheet-head strong { display: block; font: 400 23px/1.1 var(--font-display); color: var(--pr-ink); }
.sheet-head span { display: block; margin-top: 3px; font: italic 400 var(--fs-2xs)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--pr-red); text-align: center; }
.sheet-row { display: block; padding: 7px 0 8px; border-bottom: 1px solid var(--pr-rule); }
.sheet-row:last-child { border-bottom: 0; }
.sheet dt { font: italic 400 var(--fs-2xs)/1.35 var(--font-body); letter-spacing: 0; color: var(--pr-red); }
.sheet dd { font: 400 16px/1.4 var(--font-body); color: var(--pr-ink); }
@media (max-width: 979px) {
  .hero-visual { width: min(100%, 680px); margin: 0 auto; }
  .hero .example { margin: 0 -8px; }
}
@media (max-width: 600px) {
  .hero .example { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
  .hero .example img { width: 180%; max-width: none; margin-left: -78%; }
  .sheet { position: relative; left: auto; top: auto; width: min(100%, 340px); margin: -18px auto 0; }
}

/* Bands */
.band { border-top: 0; }
main > .band { position: relative; isolation: isolate; }
main > .band::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--band-bg, transparent); }
.band h2, .faq h2 { font-size: var(--fs-h2); color: var(--pr-red); text-align: center; }
.band h2::after, .faq h2::after { content: ""; display: block; width: 3.2em; height: 1px; margin: .38em auto 0; background: var(--pr-red); }
.custom-head { max-width: var(--max-text); margin: 0 auto; }
.custom-head .lead { color: var(--pr-ink); font-size: var(--fs-lead); line-height: 1.6; max-width: none; margin-top: clamp(20px, 2.4vw, 30px); }
.custom-body { gap: var(--space-7); }
.c-text { color: var(--pr-ink); font-size: var(--fs-body); max-width: var(--max-text); }

.custom-inside, .custom-texts, .faq { --band-bg: var(--pr-paper-deep); }
.custom-inside .custom-body { gap: var(--space-11) clamp(24px, 3vw, 44px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 900px) { .custom-inside .custom-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.custom-inside .c-image img { width: 100%; border: 0; border-radius: 1px; box-shadow: var(--pr-page-shadow); }
.custom-inside .c-image figcaption { font: 400 var(--fs-md)/1.5 var(--font-body); color: var(--pr-ink); margin-top: 16px; }
.custom-inside .c-note { grid-column: 1 / -1; justify-self: center; text-align: center; }
@media (max-width: 600px) { .custom-inside .custom-body { gap: var(--space-9) 16px; } .custom-inside .c-image figcaption { font-size: var(--fs-sm); margin-top: 12px; } }
.c-note, .b-note { border-left: 0; padding: 0; color: var(--pr-red); font: italic 400 var(--fs-md)/1.55 var(--font-body); max-width: 40em; }

.c-table, .b-table { overflow-x: auto; }
.c-table table, .b-table table { font-size: var(--fs-md); font-variant-numeric: lining-nums; }
.c-table th, .b-table th { font: italic 400 var(--fs-sm)/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--pr-red); border-bottom: 1px solid var(--pr-red-rule); padding: 10px 14px; }
.c-table td, .b-table td { color: var(--pr-ink); border-bottom: 1px solid var(--pr-rule); padding: 14px; line-height: 1.5; }
.custom-rule .custom-body, .custom-texts .custom-body { max-width: 1040px; width: 100%; margin: 0 auto; }
.custom-rule .c-table td:first-child { font: 400 24px/1.2 var(--font-display); white-space: nowrap; width: 6.5em; }
.custom-rule .c-table td:not(:first-child) { width: 46%; }
.custom-rule .c-text, .custom-texts .c-text { margin: 0 auto; }
.custom-rule .c-cta { text-align: center; }
.custom-texts .c-table td:first-child { font-weight: 700; }
.custom-texts .c-table td:nth-child(2) { font-style: italic; white-space: nowrap; }
@media (max-width: 760px) {
  .custom-rule .c-table thead, .custom-texts .c-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .custom-rule .c-table tr, .custom-rule .c-table td, .custom-texts .c-table tr, .custom-texts .c-table td, .custom-rule .c-table td:not(:first-child), .custom-rule .c-table td:first-child { display: block; width: auto; border: 0; padding: 0; white-space: normal; }
  .custom-rule .c-table tr, .custom-texts .c-table tr { padding: 18px 0; border-bottom: 1px solid var(--pr-rule); }
  .custom-rule .c-table tr:first-child, .custom-texts .c-table tr:first-child { border-top: 1px solid var(--pr-red-rule); }
  .custom-rule .c-table td:first-child { margin-bottom: 8px; }
  .custom-rule .c-table td + td { margin-top: 10px; }
  .custom-rule .c-table td:nth-child(2)::before, .custom-rule .c-table td:nth-child(3)::before { display: block; font: italic 400 var(--fs-sm)/1.4 var(--font-body); color: var(--pr-red); }
  .custom-rule .c-table td:nth-child(2)::before { content: "Morning prayers"; }
  .custom-rule .c-table td:nth-child(3)::before { content: "Evening prayers"; }
  .custom-texts .c-table td:nth-child(2) { white-space: normal; margin: 2px 0 6px; color: var(--pr-ink-soft); }
}

.c-list { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max-text); color: var(--pr-ink); font-size: var(--fs-body); }
.c-list li { position: relative; padding: 6px 0 6px 30px; margin: 0; }
.c-list li::before { content: ""; position: absolute; left: 4px; top: .92em; width: 8px; height: 8px; background: var(--pr-red); transform: rotate(45deg); }
.c-quote {
  position: relative; max-width: 560px; margin: var(--space-6) auto 0; padding: 36px 40px 30px; border: 0; text-align: center;
  background: var(--pr-page); box-shadow: var(--pr-page-shadow); outline: 1.5px solid var(--pr-red); outline-offset: -12px;
}
.c-quote::after { content: ""; position: absolute; inset: 16px; border: .6px solid var(--pr-red); pointer-events: none; }
.c-quote blockquote { font: italic 400 clamp(20px, 1.9vw, 23px)/1.5 var(--font-body); color: var(--pr-ink); }
.c-quote figcaption { font: 400 var(--fs-sm)/1.5 var(--font-body); color: var(--pr-ink-soft); margin-top: 14px; }
.c-cta { margin-top: var(--space-2); }

/* Order: one page, like the cover of the book */
.order { --band-bg: transparent; }
.order-intro h2 { margin: 0 auto; }
.ticket {
  position: relative; margin-top: clamp(26px, 3vw, 40px); padding: 34px 40px 30px; clip-path: none; background: var(--pr-page); color: var(--pr-ink);
  border-radius: 1px; box-shadow: var(--pr-page-shadow); outline: 1.5px solid var(--pr-red); outline-offset: -11px;
}
.ticket::after { content: ""; position: absolute; inset: 15px; border: .6px solid var(--pr-red); pointer-events: none; }
.ticket-label { font: italic 400 var(--fs-md)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--pr-red); }
.ticket-price { font: 400 var(--fs-price)/1 var(--font-display); margin: 10px 0 4px; color: var(--pr-ink); font-variant-numeric: lining-nums; }
.ticket ul { border-top: 1px solid var(--pr-rule); padding-top: 12px; }
.ticket li { font: 400 var(--fs-md)/1.45 var(--font-body); padding: 5px 0 5px 24px; position: relative; color: var(--pr-ink); }
.ticket li::before { content: ""; position: absolute; left: 3px; top: .82em; width: 7px; height: 7px; background: var(--pr-red); transform: rotate(45deg); }
.order[data-layout="inline"] .ticket { display: block; text-align: center; padding: 40px 48px 34px; }
.order[data-layout="inline"] .ticket ul { display: grid; gap: 0 28px; text-align: left; border-left: 0; border-top: 1px solid var(--pr-rule); margin-top: 18px; padding: 14px 0 0; }
@media (min-width: 600px) { .order[data-layout="inline"] .ticket ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .order[data-layout="inline"] .ticket { padding: 32px 30px 26px; } }

.order .order-form { color: var(--pr-ink); background: var(--pr-page); padding: clamp(24px, 4vw, 48px); border-radius: 1px; box-shadow: var(--pr-page-shadow); gap: var(--gap-form); }
.field { gap: 8px; color: var(--pr-ink); letter-spacing: 0; }
.field label, .field legend, .field > label:not(.check):not(.file), fieldset.field legend { font: 700 var(--fs-ui-lg)/1.35 var(--font-body); color: var(--pr-ink); letter-spacing: 0; }
.opt { color: var(--pr-ink-soft); font-weight: 400; font-style: italic; }
.hint { font: italic 400 var(--fs-sm)/1.5 var(--font-body); color: var(--pr-red); }
input[type="email"], input[type="text"], input[type="number"], select, textarea {
  font: 400 var(--fs-body)/1.5 var(--font-body); color: var(--pr-ink); background-color: #fff; border: 1.5px solid var(--pr-control); border-radius: var(--radius-control);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
input[type="email"], input[type="text"] { padding: 0 16px; }
textarea { padding: 12px 16px; line-height: 1.55; }
.order textarea[data-list-max] { height: calc(5 * 1.55em + 26px); min-height: calc(3 * 1.55em + 26px); }
input[type="email"]:hover, input[type="text"]:hover, textarea:hover, select:hover { border-color: var(--pr-ink); }
input[type="email"]:focus, input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--pr-ink); box-shadow: 0 0 0 3px rgba(155, 28, 28, .22); outline: none; }
input[type="email"]:focus-visible, input[type="text"]:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--pr-ink); outline-offset: 1px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--pr-ink) 50%), linear-gradient(135deg, var(--pr-ink) 50%, transparent 50%); padding-left: 16px; }
@media (min-width: 640px) {
  .order .order-form { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .order .order-form > * { grid-column: 1 / -1; }
  .order .order-form > .field:has(#f-living), .order .order-form > .field:has(#f-departed) { grid-column: auto; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
}
.choice-row { display: grid; gap: 10px; }
@media (min-width: 520px) {
  #f-morning_minutes .choice-row, #f-evening_minutes .choice-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #f-year .choice-row, #f-size .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.choice { display: flex; }
.choice span { flex: 1; display: block; min-height: 56px; padding: 14px 10px 14px 44px; position: relative; border: 1.5px solid var(--pr-control); border-radius: var(--radius-chip); font: 400 var(--fs-md)/1.4 var(--font-body); color: var(--pr-ink); background: #fff; }
.choice span::after { box-sizing: border-box; content: ""; position: absolute; left: 14px; top: 17px; width: 20px; height: 20px; border: 1.5px solid var(--pr-ink); border-radius: 50%; background: #fff; }
.choice:hover span { border-color: var(--pr-ink); }
.choice input:checked + span { border: 2px solid var(--pr-red); background: var(--pr-red-wash); padding: 13.5px 9.5px 13.5px 43.5px; }
.choice input:checked + span::after { border: 6px solid var(--pr-red); left: 13.5px; top: 16.5px; }
.choice input:focus-visible + span { outline: 2.5px solid var(--pr-ink); outline-offset: 3px; }
.check { font-size: var(--fs-md); line-height: 1.5; color: var(--pr-ink); }
.check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--pr-red); }
.check a, .legal a, .guide a:not(.btn), .faq a, .consent-bar a, .crumbs a, .c-text a { color: var(--pr-ink); }
.error { color: var(--pr-red); font: 700 var(--fs-md)/1.45 var(--font-body); }
.error:empty { min-height: 0; margin: 0; }
[aria-invalid="true"], fieldset [aria-invalid="true"] + span { border-color: var(--pr-red) !important; box-shadow: 0 0 0 1px var(--pr-red); }
.note { font: italic 400 var(--fs-sm)/1.55 var(--font-body); color: var(--pr-ink-soft); }

/* Questions, ending with a tailpiece */
.faq { row-gap: var(--space-9); }
@media (min-width: 980px) { .band.faq { grid-template-columns: minmax(0, 1fr); justify-items: center; } .faq-list { width: 100%; max-width: 820px; } }
.faq-list details { border-top: 1px solid var(--pr-rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--pr-rule); }
.faq-list summary { font: 700 var(--fs-lg)/1.4 var(--font-body); padding: 20px 52px 20px 0; color: var(--pr-ink); }
.faq-list summary::after { content: ""; top: 50%; right: 8px; width: 15px; height: 15px; margin-top: -7.5px; background: linear-gradient(var(--pr-red), var(--pr-red)) center / 100% 2px no-repeat, linear-gradient(var(--pr-red), var(--pr-red)) center / 2px 100% no-repeat; }
.faq-list summary:hover { color: var(--pr-red); }
.faq-list details p { color: var(--pr-ink); font-size: var(--fs-body); max-width: 40em; margin-bottom: 24px; }
.faq::after { content: ""; display: block; justify-self: center; width: 60px; height: 18px; margin-top: var(--space-4); background: url(tailpiece.svg) center / contain no-repeat; }

/* Footer: the binding */
.credits { position: relative; isolation: isolate; border-top: 0; background: var(--pr-binding); box-shadow: 0 0 0 100vmax var(--pr-binding); clip-path: inset(0 -100vmax); margin-top: var(--space-section); padding-top: var(--space-11); }
.page-landing .credits { margin-top: 0; }
body:has(> .consent-bar) .credits { padding-bottom: calc(var(--space-12) + 96px); }
@media (max-width: 600px) { body:has(> .consent-bar) .credits { padding-bottom: calc(var(--space-12) + 170px); } }
.credits-roll { font: italic 400 var(--fs-2xl)/1.45 var(--font-body); color: var(--pr-page); max-width: 34em; margin-left: auto; margin-right: auto; }
.credits, .credits a { font: 400 var(--fs-sm)/1.8 var(--font-body); color: #e3d8c4; }
.credits a:hover { color: #fff; }
.credits :focus-visible { outline-color: var(--pr-page); }
.fine { font: 400 var(--fs-sm)/1.6 var(--font-body); color: inherit; }

/* Consent bar */
.consent-bar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 1120px; padding: 12px 14px 12px 20px; gap: 10px 18px; background: var(--pr-page); border: 1.5px solid var(--pr-ink); border-radius: 4px; box-shadow: var(--shadow-bar); }
.consent-bar p { font: 400 var(--fs-sm)/1.45 var(--font-body); color: var(--pr-ink); flex: 1 1 260px; }
.consent-bar .btn { min-height: 46px; padding: 9px 22px; font-size: 17px; white-space: nowrap; }
@media (min-width: 980px) { .consent-bar { flex-wrap: nowrap; } .consent-bar p { flex: 1 1 auto; } }
@media (max-width: 600px) { .consent-bar { padding: 10px 12px; gap: 8px; } .consent-bar p { font-size: 15px; line-height: 1.4; } .consent-bar div { width: 100%; } .consent-bar .btn { flex: 1; min-height: 44px; } }

/* Legal pages and guides */
.legal h1, .guide h1, .pv-title { color: var(--pr-ink); }
.legal h2 { font: 400 var(--fs-3xl)/1.25 var(--font-display); color: var(--pr-red); margin-top: 40px; }
.legal p, .legal li { color: var(--pr-ink); font-size: var(--fs-body); max-width: 40em; }
.legal li { margin: 8px 0; }

.guide { padding-top: var(--space-8); }
.crumbs { font: 400 var(--fs-sm)/1.4 var(--font-body); color: var(--pr-ink-soft); align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.guide h1 { line-height: 1.1; }
.guide h1::before { content: ""; display: block; width: min(100%, 420px); aspect-ratio: 546 / 30; margin: 0 0 24px; background: url(headpiece.svg) left center / 100% 100% no-repeat; }
.guide h2 { color: var(--pr-red); }
.guide h3 { font: 700 var(--fs-lg)/1.35 var(--font-body); color: var(--pr-ink); margin: var(--space-7) 0 var(--space-2); }
.guide .lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--pr-ink); }
.guide p, .guide li { color: var(--pr-ink); font-size: var(--fs-body); line-height: 1.65; }
.guide strong { color: var(--pr-ink); font-weight: 700; }
.guide .rubric { color: var(--pr-red); font-style: italic; }
.guide .source { color: var(--pr-ink-soft); font-style: italic; font-size: var(--fs-sm); }
.guide th { font: italic 400 var(--fs-sm)/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--pr-red); border-bottom: 1px solid var(--pr-red-rule); }
.guide td { color: var(--pr-ink); border-bottom: 1px solid var(--pr-rule); font-variant-numeric: lining-nums; }
.guide td:first-child { font-weight: 700; }
.guide-table { margin: var(--space-4) 0; }
.guide-table table { min-width: 0; }
@media (max-width: 600px) { .guide-table table { font-size: 16px; } .guide th, .guide td { padding: 10px 8px; } }
.pr-page { margin: var(--space-8) 0; }
.pr-page img { display: block; width: 100%; max-width: 500px; height: auto; margin: 0 auto; border-radius: 1px; box-shadow: var(--pr-page-shadow); }
.pr-page figcaption { margin: 14px auto 0; max-width: 500px; font: italic 400 var(--fs-md)/1.5 var(--font-body); color: var(--pr-ink-soft); }
.pr-pair { display: grid; gap: var(--space-6); margin: var(--space-8) 0; }
@media (min-width: 640px) { .pr-pair { grid-template-columns: 1fr 1fr; } }
.pr-pair .pr-page { margin: 0; }
.pr-prayer { margin: var(--space-5) 0; padding: 0 0 0 20px; border-left: 1px solid var(--pr-red); }
.pr-prayer p { margin: 6px 0; }
.guide-cta { position: relative; background: var(--pr-page); border: 0; border-radius: 1px; padding: clamp(30px, 4vw, 44px); box-shadow: var(--pr-page-shadow); outline: 1.5px solid var(--pr-red); outline-offset: -11px; text-align: center; }
.guide-cta::after { content: ""; position: absolute; inset: 15px; border: .6px solid var(--pr-red); pointer-events: none; }
.guide-cta h2 { margin-top: 0; }
.guide .faq h2 { font-size: var(--fs-guide-h2); text-align: left; }
.guide .faq h2::after { display: none; }
.guide .faq::after { display: none; }
.guide .faq details { border-top: 1px solid var(--pr-rule); padding: 0; }
.guide .faq summary { list-style: none; position: relative; padding: 18px 44px 18px 0; font-weight: 700; color: var(--pr-ink); }
.guide .faq summary::-webkit-details-marker { display: none; }
.guide .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; background: linear-gradient(var(--pr-red), var(--pr-red)) center / 100% 2px no-repeat, linear-gradient(var(--pr-red), var(--pr-red)) center / 2px 100% no-repeat; transition: transform var(--dur-base); }
.guide .faq details[open] summary::after { transform: rotate(45deg); }
.footer-guides a { color: #e3d8c4; }

/* Order page: preview and result set like the book */
.status-box { background: var(--pr-page); border: 1px solid var(--pr-rule); border-radius: 1px; }
.status-box p { color: var(--pr-ink); font-size: var(--fs-lg); }
.spinner { border-color: rgba(155, 28, 28, .2); border-top-color: var(--pr-red); }
.pv-sub { color: var(--pr-ink); font-size: var(--fs-lg); }
.b-heading { color: var(--pr-red); font-size: var(--fs-block-heading); margin-top: var(--space-6); }
.blocks > .b-heading:first-child { margin-top: 0; }
.b-text { font: 400 var(--fs-block-text)/1.6 var(--font-body); color: var(--pr-ink); }
.result .b-text::first-letter { color: var(--pr-red); }
.b-list { list-style: none; padding: 4px 0 4px 18px; border-left: 1px solid var(--pr-red); color: var(--pr-ink); font-size: var(--fs-body); }
.b-svg { padding: clamp(14px, 3.5vw, 36px); background: var(--pr-paper-deep); border-radius: 1px; }
.b-svg svg { margin: 0 auto; width: min(100%, 560px); box-shadow: var(--pr-page-shadow); }
.b-svg svg > rect:first-of-type { stroke: none; }
.b-table td:last-child, .b-table th:last-child { text-align: right; }
.b-locked { position: relative; padding: 22px 24px; border: 1.5px dashed var(--pr-red-rule); background: var(--pr-page); box-shadow: var(--pr-page-shadow); }
.b-lock-label { font: italic 400 var(--fs-sm)/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--pr-red); }
.b-locked p { color: var(--pr-ink); font-size: var(--fs-md); }
.pv-form { position: relative; border-top: 0; margin-top: var(--space-9); padding: clamp(28px, 4vw, 44px); background: var(--pr-page); box-shadow: var(--pr-page-shadow); outline: 1.5px solid var(--pr-red); outline-offset: -11px; }
.pv-form::after { content: ""; position: absolute; inset: 15px; border: .6px solid var(--pr-red); pointer-events: none; }
.pv-form > * { position: relative; z-index: 1; }
.pv-form label { color: var(--pr-ink); }
.result-actions .btn, .pv-form .btn { width: 100%; }
@media (min-width: 640px) { .result-actions .btn { width: auto; } }

@media (prefers-reduced-motion: reduce) { .nav-cta, .btn, .choice span, input, textarea, select { transition: none; } }
