/* ItsBible · /site.css · the shared design system: the open Bible in window light (2026-11-07).
 * Every page loads it first: the home adds /css/book.css, the other pages /css/pages.css. It is also the stable
 * contract for search guides Pulse publishes at /guides/*: it loads alone, with no script.
 *
 * Classes for a guide, with no JavaScript:
 *   Masthead  <header class="site masthead"><div class="container masthead__row">
 *               <a class="brand" href="/"><svg class="brand__mark" …/><span translate="no">ItsBible</span></a>
 *               <nav class="nav" aria-label="Main"><ul><li><a href="/read">Read</a></li> …</ul></nav>
 *               <details class="menu"><summary class="menu__btn"><svg …/><span>Menu</span></summary>
 *                 <nav class="menu__panel" aria-label="Main"><ul> the same links </ul></nav></details>
 *             </div></header>        (.masthead__tools with button.iconbtn.theme needs /js/common.js; leave it out)
 *   Footer    <footer class="site"><div class="wrap"><p>…</p><nav class="langnav" aria-label="Language">…</nav></div></footer>
 *   Article   <main id="main"><article class="prose"> h1, .lede, h2, h3, p, ul, ol, table, blockquote (+ cite),
 *               figure + figcaption, details + summary (FAQ), code, pre, hr, <section class="sources"> … </article></main>
 *   Action    <aside class="cta"><p class="cta__title">…</p><p>…</p><a class="btn btn--primary" href="https://itsbible.com/read">Start reading</a></aside>
 *   Also      .container, .btn, .btn--primary, .btn--quiet, .gilt-link, .visually-hidden, .skip
 * Tokens: --color-paper (a leaf), --color-paper-2, --color-paper-3 (the linen ground), --color-ink, --color-ink-2,
 * --color-muted, --color-rule, --color-accent (gilt), --color-gilt-ink, --color-seal (the ribbon's crimson), and the
 * --space-*, --text-*, --font-display (Cormorant Garamond), --font-body (Literata) scales. Dark follows the device,
 * or <html data-theme="dark">. */

/* Each subset after the wider one it overlaps (base, extended Latin, then Vietnamese), so a page loads only the subsets
   its own text needs. Cormorant italic lives in /css/pages.css, where the reader uses it. */
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant.woff2") format("woff2-variations"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-ext.woff2") format("woff2-variations"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-vi.woff2") format("woff2-variations"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Literata"; src: url("/fonts/literata.woff2") format("woff2-variations"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-ext.woff2") format("woff2-variations"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-vi.woff2") format("woff2-variations"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Literata"; src: url("/fonts/literataitalic.woff2") format("woff2-variations"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("/fonts/literataitalic-ext.woff2") format("woff2-variations"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("/fonts/literataitalic-vi.woff2") format("woff2-variations"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* ItsBible's own faces: Cormorant Garamond for display, Literata for reading, each with its Vietnamese and Latin Extended ranges. */


:root {
  /* The open Bible on a lectern: bright Bible paper for every leaf, a warm linen ground under it, gilt edges as the one
     accent, and the crimson of a Bible's ribbon and its chapter numerals as the seal. */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.5rem, 2vw + 1.5rem, 3.75rem); --text-display: clamp(2.75rem, 3vw + 1.5rem, 4.5rem);
  --text-section: clamp(2.25rem, 1.9vw + 1.35rem, 3.375rem); --text-title: clamp(1.375rem, 0.6vw + 1.1rem, 1.75rem); --text-lead: clamp(1.125rem, 0.3vw + 1.03rem, 1.3125rem);
  --text-scripture: clamp(1.1875rem, 0.3vw + 1.06rem, 1.3125rem); --text-numeral: clamp(4.25rem, 3vw + 2.5rem, 6.25rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms; --dur-light: 46s; --dur-shaft: 64s;
  --container: 1360px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 152px; --section-gap-l: 184px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  --color-paper: oklch(97.6% 0.008 88);    /* a Bible's leaf */
  --color-paper-2: oklch(94.4% 0.013 84);  /* a deeper leaf, the polyglot well */
  --color-paper-3: oklch(90.6% 0.02 78);   /* the linen ground the book lies on */
  --color-ink: oklch(23% 0.014 60);
  --color-ink-2: oklch(35% 0.014 62);
  --color-muted: oklch(46% 0.014 66);
  --color-rule: oklch(83% 0.018 78);
  --color-rule-strong: oklch(62% 0.03 74);
  --color-accent: oklch(62% 0.115 78);      /* gilt: page edges, the verse being read */
  --color-accent-ink: var(--color-ink);     /* type set on the gilt wash */
  --color-gilt-ink: oklch(43% 0.085 70);    /* gilt in type: verse numbers, links */
  --color-focus: oklch(57% 0.18 74);
  --color-seal: oklch(41% 0.13 10);         /* the ribbon and the chapter numeral, as a Bible prints them */
  --color-seal-ink: oklch(97.6% 0.008 88);
  --color-light: oklch(99.2% 0.03 92);      /* daylight through a tall window */
  --color-sun: oklch(91% 0.085 86);         /* that daylight where it lands on the paper */
  --color-shade: oklch(25% 0.03 70);
  --color-error: oklch(48% 0.17 27); --color-success: oklch(46% 0.1 150);
  --shadow-card: 0 22px 44px -28px oklch(25% 0.03 70 / 0.42);
  --wash-from: 90deg;

  --font-display: "Cormorant Garamond", Georgia, ui-serif, serif;
  --font-body: "Literata", Georgia, ui-serif, serif;
  --font-outlier: var(--font-display);
  --font-zh: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-ko: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif;
  --font-ar: "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif;

  --radius-card: 3px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.015em;
  color-scheme: light;
}
/* The same Bible by lamplight: the site's dark theme, from the reader's device or the theme switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-paper: oklch(24% 0.012 70); --color-paper-2: oklch(21% 0.012 70); --color-paper-3: oklch(17% 0.011 70);
    --color-ink: oklch(92% 0.012 85); --color-ink-2: oklch(82% 0.014 82); --color-muted: oklch(71% 0.014 80);
    --color-rule: oklch(34% 0.012 72); --color-rule-strong: oklch(50% 0.02 74);
    --color-accent: oklch(72% 0.11 80); --color-gilt-ink: oklch(80% 0.1 82); --color-focus: oklch(76% 0.15 78);
    --color-seal: oklch(64% 0.15 15); --color-seal-ink: oklch(17% 0.011 70);
    --color-light: oklch(34% 0.045 80); --color-sun: oklch(40% 0.06 80); --color-shade: oklch(6% 0.01 70);
    --color-error: oklch(72% 0.15 27); --color-success: oklch(74% 0.1 150);
    --shadow-card: 0 22px 44px -28px oklch(4% 0.01 70 / 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-paper: oklch(24% 0.012 70); --color-paper-2: oklch(21% 0.012 70); --color-paper-3: oklch(17% 0.011 70);
  --color-ink: oklch(92% 0.012 85); --color-ink-2: oklch(82% 0.014 82); --color-muted: oklch(71% 0.014 80);
  --color-rule: oklch(34% 0.012 72); --color-rule-strong: oklch(50% 0.02 74);
  --color-accent: oklch(72% 0.11 80); --color-gilt-ink: oklch(80% 0.1 82); --color-focus: oklch(76% 0.15 78);
  --color-seal: oklch(64% 0.15 15); --color-seal-ink: oklch(17% 0.011 70);
  --color-light: oklch(34% 0.045 80); --color-sun: oklch(40% 0.06 80); --color-shade: oklch(6% 0.01 70);
  --color-error: oklch(72% 0.15 27); --color-success: oklch(74% 0.1 150);
  --shadow-card: 0 22px 44px -28px oklch(4% 0.01 70 / 0.8);
  color-scheme: dark;
}
:root[dir="rtl"] { --wash-from: 270deg; }
:root:lang(zh) { --font-display: var(--font-zh); --font-body: var(--font-zh); }
:root:lang(ko) { --font-display: var(--font-ko); --font-body: var(--font-ko); }
:root:lang(ar) { --font-display: var(--font-ar); --font-body: var(--font-ar); --tracking-display: 0; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper-3); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper-3); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; text-wrap: balance; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.visuallyhidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip, .skiplink { position: absolute; inset-inline-start: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-modal); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible, .skiplink:focus-visible { top: var(--space-md); }

/* Masthead */
.masthead { position: relative; z-index: var(--z-raised); }
.masthead__row { display: flex; align-items: center; gap: var(--space-lg); min-height: 76px; padding-top: env(safe-area-inset-top, 0px); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; font-family: var(--font-outlier); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; min-height: 44px; }
.brand__mark { width: 16px; height: 22px; color: var(--color-gilt-ink); flex-shrink: 0; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: var(--space-2xs); list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.masthead__tools { display: flex; align-items: center; gap: var(--space-2xs); }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-muted); cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn:hover { color: var(--color-ink); }
.iconbtn .i-sun { display: none; }
/* Phones and tablets: the six links in a menu built on <details>, so it opens with no script; /js/common.js closes it
   on Escape, a tap outside it and a link. */
.menu { display: none; }
.menu__btn { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; list-style: none; user-select: none; }
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn svg { width: 18px; height: 18px; }
.menu__btn:hover, .menu[open] .menu__btn { color: var(--color-ink); }
.menu__panel { position: absolute; top: calc(100% - var(--space-2xs)); inset-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); z-index: var(--z-dropdown); padding: var(--space-2xs) 0; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.menu__panel ul { margin: 0; padding: 0; list-style: none; }
.menu__panel a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); color: var(--color-ink); font-size: var(--text-md); text-decoration: none; }
.menu__panel li + li a { border-top: 1px solid color-mix(in oklab, var(--color-rule) 60%, transparent); }
.menu__panel a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.theme-dark .iconbtn .i-sun { display: inline; }
.theme-dark .iconbtn .i-moon { display: none; }
/* Every other page wears the home's masthead as header.site.masthead: it stays at the top of the window over the
   linen, and the reader's chapter pages slide it away while reading down (body.headoff, /js/chapter.js). */
header.site { position: sticky; top: 0; z-index: var(--z-sticky); padding-top: env(safe-area-inset-top, 0px); background: color-mix(in oklab, var(--color-paper-3) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in oklab, var(--color-rule) 70%, transparent); }
header.site .masthead__row { padding-top: 0; }
.nav a[aria-current="page"], .menu__panel a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
/* The theme switch shows the sun in the dark theme from CSS, so it is right before any script runs */
:root[data-theme="dark"] .iconbtn .i-sun { display: inline; }
:root[data-theme="dark"] .iconbtn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iconbtn .i-sun { display: inline; }
  :root:not([data-theme="light"]) .iconbtn .i-moon { display: none; }
}
@media (max-width: 56rem) {
  .nav { display: none; }
  .menu { display: block; margin-inline-start: auto; }
}
@media (max-width: 48rem) {
  .masthead__row { min-height: 56px; gap: var(--space-sm); }
}
/* The narrowest phones: the Menu keeps its word for screen readers but shows only its icon, so the masthead fits the
   gutters in every language. */
@media (max-width: 24rem) {
  .masthead__row { gap: var(--space-sm); }
  .menu__btn { min-width: 44px; justify-content: center; padding-inline: 0; }
  .menu__btn > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Controls that need a script stay out of sight until a script marks the page (each page's first inline line sets
   html.js), so they never sit there dead where scripts are off or stripped, as on a Pulse guide. */
html:not(.js) :is(.iconbtn.theme, #themetoggle, .lighttoggle, #turn, #listenbar, .letter__tools, .readtools) { display: none; }

/* The footer every page but the home carries: the Scripture credit and the language links, set like the colophon */
footer.site:not(.colophon) { position: relative; margin-top: var(--space-2xl); padding-block: var(--space-2xl) max(var(--space-xl), env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.6; text-align: center; }
footer.site:not(.colophon) .wrap { max-width: 46rem; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
footer.site:not(.colophon) p { margin: 0 auto; }
footer.site:not(.colophon) .footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-md); margin: var(--space-xs) 0 0; }
footer.site:not(.colophon) .footlinks a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--color-ink-2); }
footer.site:not(.colophon) .langnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-md); margin: var(--space-md) 0 0; padding: 0; }
footer.site:not(.colophon) .langnav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--color-ink-2); text-decoration: none; }
footer.site:not(.colophon) .langnav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
footer.site:not(.colophon) .langnav a[aria-current] { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); }

/* The colophon at the foot of the home, which Pulse guides also carry: the brand, a line, the links and the languages */
.colophon { padding-block: var(--space-3xl) max(var(--space-2xl), env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-rule); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--space-lg) var(--space-2xl); align-items: start; }
.colophon .brand { grid-row: span 2; }
.colophon__text { color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.6; max-width: 46ch; }
.colophon__links, .colophon .langnav { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); margin: 0; padding: 0; list-style: none; }
.colophon__links a, .colophon .langnav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--color-ink-2); font-size: var(--text-sm); }
.colophon .langnav { grid-column: 2 / -1; }
.colophon .langnav a[aria-current] { color: var(--color-ink); font-weight: 600; text-decoration-color: var(--color-accent); }
@media (max-width: 64rem) {
  .colophon__grid { grid-template-columns: minmax(0, 1fr); }
  .colophon .brand { grid-row: auto; }
  .colophon .langnav { grid-column: 1; }
}

/* The window light, held still: soft daylight across the linen behind every page but the home, which draws its own
   moving light. A fixed layer under the page, so it never repaints on scroll. */
body:not(:has(> .light))::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70vw 95vh at 6% -12%, color-mix(in oklab, var(--color-light) 80%, transparent), transparent 70%), radial-gradient(42vw 75vh at 30% -6%, color-mix(in oklab, var(--color-light) 45%, transparent), transparent 72%); }
:root[dir="rtl"] body:not(:has(> .light))::before { transform: scaleX(-1); }
@media print { body::before { display: none; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn--primary { background: var(--color-ink); color: var(--color-paper); border: 1px solid var(--color-ink); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn--quiet { background: transparent; color: var(--color-ink); border: 1px solid var(--color-muted); }
.btn--quiet:hover { border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.gilt-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-gilt-ink); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-accent) 60%, transparent); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.gilt-link:hover { text-decoration-color: var(--color-gilt-ink); }

/* .prose: long reading on a leaf of Bible paper, for the About and Start pages and for the guides Pulse publishes.
   Long words break, wide tables scroll inside the leaf, and nothing here needs a script. */
.prose:not(p) { width: min(100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px)), 46rem); margin: var(--space-xl) auto var(--space-2xl); padding: clamp(24px, 5vw, 64px) clamp(20px, 5.5vw, 72px); background: var(--color-paper); border: 1px solid color-mix(in oklab, var(--color-rule) 55%, transparent); border-radius: var(--radius-card); box-shadow: var(--shadow-card); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.72; overflow-wrap: break-word; }
.prose > :first-child, .prose :is(article, section, aside) > :first-child { margin-top: 0; }
.prose > :last-child, .prose :is(article, section, aside) > :last-child { margin-bottom: 0; }
.prose :is(p, ul, ol, table, blockquote, figure, pre, details) { margin: 0 0 1.1em; }
.prose h1 { margin: 0 0 0.35em; font-size: clamp(2.25rem, 1.6vw + 1.6rem, 3.25rem); font-weight: 500; line-height: 1.06; letter-spacing: var(--tracking-display); }
.prose h2 { margin: 1.9em 0 0.45em; font-size: var(--text-2xl); font-weight: 500; line-height: 1.15; }
.prose h3 { margin: 1.5em 0 0.35em; font-size: var(--text-xl); font-weight: 600; line-height: 1.2; }
.prose .lede { margin-bottom: 1.4em; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.55; }
.prose a { color: var(--color-gilt-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-accent) 60%, transparent); text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-color: currentColor; }
.prose :is(ul, ol) { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose ul > li::marker { color: var(--color-accent); }
.prose ol > li::marker { color: var(--color-gilt-ink); font-weight: 600; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.prose :is(th, td) { min-width: 8ch; padding: 0.6em 0.9em; border-bottom: 1px solid var(--color-rule); text-align: start; vertical-align: top; }
.prose th { border-bottom-color: var(--color-rule-strong); color: var(--color-ink); font-weight: 600; }
.prose blockquote { margin-inline: 0; padding: 0.15em 0 0.15em 1.2em; border-inline-start: 2px solid var(--color-accent); font-size: var(--text-lg); line-height: 1.6; }
.prose blockquote :is(cite, footer) { display: block; margin-top: 0.5em; color: var(--color-gilt-ink); font-size: var(--text-sm); font-style: normal; }
.prose figure { margin-inline: 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-card); }
.prose figcaption { margin-top: 0.6em; color: var(--color-muted); font-size: var(--text-sm); }
.prose details { margin: 0; border-top: 1px solid var(--color-rule); }
.prose details:last-of-type { border-bottom: 1px solid var(--color-rule); margin-bottom: 1.1em; }
.prose summary { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 52px; padding-block: 0.4em; font-weight: 600; cursor: pointer; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-inline-end: 4px; border-right: 1.5px solid var(--color-gilt-ink); border-bottom: 1.5px solid var(--color-gilt-ink); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.prose details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.prose details > :not(summary) { margin: 0 0 1em; }
.prose code { padding: 0.1em 0.35em; border-radius: 3px; background: var(--color-paper-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
.prose pre { overflow-x: auto; padding: 1em 1.2em; border-radius: var(--radius-card); background: var(--color-paper-2); font-size: var(--text-sm); line-height: 1.55; }
.prose pre code { padding: 0; background: none; }
.prose hr { width: 6rem; height: 0; margin: 2.2em auto; border: 0; border-top: 1px solid var(--color-accent); }
.prose :is(ul, ol).sources { margin-top: 0; padding-top: 0; border-top: 0; }
.prose :is(h2, h3):has(+ :is(ul, ol).sources) { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--color-rule); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gilt-ink); }
.prose section.sources { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.prose .sources :is(h2, h3) { margin: 0 0 0.5em; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gilt-ink); }
.prose .sources :is(ol, ul) { padding-inline-start: 1.2em; }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: var(--color-paper); }
.prose a.btn--quiet { color: var(--color-ink); }
/* .cta: the product's real action at the end of a guide, set off by the ribbon's crimson */
.cta { display: grid; justify-items: start; gap: var(--space-xs); margin: 2.4em 0 0; padding: var(--space-lg); border-inline-start: 3px solid var(--color-seal); border-radius: var(--radius-card); background: var(--color-paper-2); }
.cta :is(h2, h3, .cta__title) { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.2; }
.cta p { margin: 0; color: var(--color-ink-2); }
.cta .btn { margin-top: var(--space-2xs); }
.cta > a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--space-2xs); padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.prose .cta > a:not(.btn) { color: var(--color-paper); text-decoration: none; }
.cta > a:not(.btn):hover { background: var(--color-ink-2); }
/* What Pulse's guides add inside main.prose.pg-site: the date and byline, the dek, a list of steps or picks, a
   scrolling table, a note on use, the sources, the action, and a "More guides" list */
.prose :is(.date, .by) { margin: 0 0 0.35em; color: var(--color-muted); font-size: var(--text-sm); }
.prose .dek { margin: 0 0 1.4em; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.55; }
.prose .list { padding-inline-start: 1.4em; }
.prose .list > li + li { margin-top: 0.5em; }
.prose .scroll { max-width: 100%; margin: 0 0 1.1em; overflow-x: auto; }
.prose .scroll > table { display: table; width: 100%; margin: 0; }
.prose .use { margin: 1.4em 0; padding: var(--space-md) var(--space-lg); border-inline-start: 2px solid var(--color-accent); border-radius: var(--radius-card); background: var(--color-paper-2); }
.prose .use :is(h2, h3) { margin: 0 0 0.4em; font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--color-ink); }
.prose .use p { margin: 0 0 0.6em; font-size: var(--text-sm); }
.prose nav { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--color-rule); }
.prose nav :is(h2, h3) { margin: 0 0 0.5em; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gilt-ink); }
.prose nav ul { margin: 0; padding: 0; list-style: none; }
.prose nav li + li { margin-top: 0; }
.prose nav a { display: inline-flex; align-items: center; min-height: 44px; }
:lang(zh) .prose, :lang(ko) .prose { line-height: 1.85; }
:lang(ar) .prose, :lang(ar) .prose * { letter-spacing: 0; }
