/* Holy Bible KJV website. Colors, type and card shapes come from the app's design tokens
   (HolyBible/HolyBible/Common/Design/Palette.swift and the Asset Catalog color sets). */

@font-face { font-family: "Karma"; src: url(/static/fonts/karma-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karma"; src: url(/static/fonts/karma-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inria Serif"; src: url(/static/fonts/inria-serif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inria Serif"; src: url(/static/fonts/inria-serif-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url(/static/fonts/source-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url(/static/fonts/source-sans-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --page: #F8F6F2;
  --text-primary: #121212;
  --text-body: #2C2C2C;
  --text-secondary: #6A6A6A;
  --brand: #613B2E;
  --on-brand: #F8F6F2;
  --accent: #C17C54;
  --accent-edge: #9B5025;
  --accent-deep: #6E3417;
  --accent-text: #9B5025;   /* 5.4:1 on the page; #C17C54 itself is only 3.1:1 */
  --chip: #E9E7E2;
  --chip-text: #531B00;
  --surface-raised: #FFFFFF;
  --surface-card: #E6E3DD;
  --inspiration: rgba(187, 145, 131, 0.2);
  --link: #2E65E7;
  --divider: #E6E3DD;
  --words-of-jesus: #B3261E;
  --gold: #FEDE99;
  --deep-brown: #2F0305;

  --font-display: "Karma", Georgia, serif;
  --font-ui: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-scripture: "Inria Serif", Georgia, "Times New Roman", serif;

  --radius-card: 20px;
  --radius-tile: 16px;
  --gutter: 16px;
  --max: 1120px;
  --max-narrow: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1A1A1F;
    --text-primary: #E9E7E2;
    --text-body: #E9E7E2;
    --text-secondary: #8E8E93;
    --brand: #E9E7E2;
    --on-brand: #1A1A1F;
    --chip: #2C2C31;
    --chip-text: #E9E7E2;
    --surface-raised: #26262C;
    --surface-card: #26262C;
    --link: #5B8DEF;
    --divider: #3A3A40;
    --words-of-jesus: #FF8A80;
    --accent-text: #C17C54;   /* 5.2:1 on the dark page */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
/* On phones the nav wraps to a second row (~120px), so verse links need a bigger offset. */
@media (max-width: 640px) { html { scroll-padding-top: 136px; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text-body);
  font: 18px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
cite { font-style: italic; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--surface-raised); padding: 8px 12px; border-radius: 8px; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--page);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--divider);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font: 600 20px/1 var(--font-display); }
.brand img { border-radius: 9px; }
.brand small { color: var(--accent-text); font-size: 14px; letter-spacing: .08em; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; color: var(--text-body); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--chip); color: var(--chip-text); }
.site-header { transition: transform .25s ease; }
@media (max-width: 640px) { .site-header.is-tucked { transform: translateY(-100%); } }
@media (max-width: 640px) {
  .header-row { padding-top: 8px; }
  .main-nav { width: calc(100% + var(--gutter) * 2); padding-bottom: 6px; }
}

.crumbs { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gutter); font-size: 14px; color: var(--text-secondary); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--text-secondary); }

/* Buttons: the app's raised capsule (1pt darker outline + 4pt bottom edge) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 18px/1 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
/* Fill is the app's raised-button edge color: white on #C17C54 is only 3.34:1, on #9B5025 it is 5.89:1. */
.btn-primary { background: var(--accent-edge); color: #fff; border: 1px solid var(--accent-deep); box-shadow: 0 4px 0 var(--accent-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-primary.is-disabled { cursor: default; }   /* no fading: it still has to read at 4.5:1 */
.btn-secondary { background: var(--brand); color: var(--on-brand); }
.btn-ghost { color: inherit; border: 1px solid currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { font-weight: 600; color: var(--accent-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Page heads */
.page-head { padding-top: 28px; padding-bottom: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--accent-text); margin-bottom: 8px; font-weight: 600; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: 20px; color: var(--text-body); max-width: 760px; }
.chapter-meta, .running-title { color: var(--text-secondary); font-size: 16px; }
.running-title { font-family: var(--font-scripture); font-style: italic; font-size: 20px; }

.hero-band {
  position: relative; margin-top: 16px; padding: 48px var(--gutter) 40px; border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(248, 246, 242, .2), var(--page) 92%), var(--band) center / cover no-repeat;
  max-width: calc(var(--max) - var(--gutter) * 2);
}
@media (prefers-color-scheme: dark) {
  .hero-band { background: linear-gradient(180deg, rgba(26, 26, 31, .55), var(--page) 92%), var(--band) center / cover no-repeat; }
}
@media (max-width: 1152px) { .hero-band { margin-left: var(--gutter); margin-right: var(--gutter); } }
.hero-band.dark { background: linear-gradient(180deg, rgba(47, 3, 5, .55), rgba(47, 3, 5, .92)), var(--band) center / cover no-repeat; color: #F8F6F2; }
.hero-band.dark h1, .hero-band.dark .lede { color: #F8F6F2; }
.hero-band.dark .eyebrow { color: var(--gold); }

/* Home hero: morning illustration, night illustration in dark mode */
.hero { position: relative; overflow: hidden; color: #121212; }
.hero-art { position: absolute; inset: 0; background: url(/static/img/hero-morning.webp) center 30% / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248, 246, 242, .1) 0%, rgba(248, 246, 242, .55) 55%, var(--page) 100%); }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 72px; text-align: center; }
.hero-inner h1 { max-width: 880px; margin: 24px auto 16px; color: #121212; }
.hero-inner .lede { margin: 0 auto; color: #2C2C2C; }
.hero-inner .btn-row { justify-content: center; }
.hero-icon { margin: 0 auto; border-radius: 25px; box-shadow: 0 12px 32px rgba(97, 59, 46, .35); }
.home .hero .btn-ghost { color: #613B2E; }
/* The splash art is portrait (phone); wide screens use the landscape sunrise from the prayer page. */
@media (min-width: 820px) {
  .hero-art { background-image: url(/static/img/prayer-morning.webp); background-position: center 60%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(248, 246, 242, .35) 0%, rgba(248, 246, 242, .7) 60%, var(--page) 100%); }
}
@media (prefers-color-scheme: dark) {
  .hero { color: #F8F6F2; }
  .hero-art { background-image: url(/static/img/hero-night.webp); }
  .hero-art::after { background: linear-gradient(180deg, rgba(26, 26, 31, .15) 0%, rgba(26, 26, 31, .6) 55%, var(--page) 100%); }
}
@media (prefers-color-scheme: dark) and (min-width: 820px) {
  .hero-art { background-image: url(/static/img/prayer-evening.webp); background-position: center 70%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(26, 26, 31, .3) 0%, rgba(26, 26, 31, .7) 60%, var(--page) 100%); }
  .hero-inner h1, .hero-inner .lede { color: #F8F6F2; }
  .home .hero .btn-ghost { color: #F8F6F2; }
}

.facts { list-style: none; margin: 8px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: var(--surface-raised); border-radius: var(--radius-tile); padding: 18px; display: flex; flex-direction: column; }
.facts strong { font: 600 30px/1.1 var(--font-display); color: var(--brand); }
.facts span { color: var(--text-secondary); font-size: 15px; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.today { margin-bottom: 48px; }
.today-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.today-cards a { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; }
.today-cards img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.today-cards a:hover img { transform: scale(1.04); }
.today-cards a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .65)); }
.today-cards .card-kicker, .today-cards strong { position: relative; z-index: 1; display: block; padding: 0 18px; }
.today-cards .card-kicker { position: absolute; bottom: 52px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.today-cards strong { position: absolute; bottom: 18px; font: 600 22px/1.2 var(--font-display); }
@media (max-width: 820px) { .today-cards { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 56px 0; }
.feature img { border-radius: var(--radius-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature.flip img { order: 2; }
.feature p { font-size: 19px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 20px; margin: 40px 0; } .feature.flip img { order: 0; } }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 48px 0; padding: 28px; border-radius: var(--radius-card);
  background: var(--deep-brown); color: #F8F6F2;
}
.cta-band h2 { color: var(--gold); margin-bottom: 4px; font-size: 26px; }
.cta-band p { margin: 0; color: #E9E7E2; }

/* Bible index */
.book-section { margin: 32px 0; }
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.book-grid a { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius-tile); background: var(--surface-raised); text-decoration: none; color: var(--text-primary); min-height: 44px; }
.book-grid a:hover { background: var(--chip); }
.book-grid span { font: 600 18px/1.3 var(--font-display); }
.book-grid small { color: var(--text-secondary); }
.chapter-grid { list-style: none; margin: 16px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.chapter-grid a { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px; background: var(--surface-raised); color: var(--text-primary); text-decoration: none; font: 600 18px/1 var(--font-display); }
.chapter-grid a:hover { background: var(--accent); color: #fff; }

/* Scripture typography */
.scripture { font-family: var(--font-scripture); font-size: 21px; line-height: 1.75; color: var(--text-body); }
.scripture p { margin: 0 0 .8em; }
.scripture .line { margin: 0 0 .35em; padding-left: 1.2em; text-indent: -1.2em; }
.verse:target, .verse.in-range { background: var(--inspiration); border-radius: 4px; box-shadow: 0 0 0 4px var(--inspiration); }
.range-anchor { display: inline-block; width: 0; }
.vn { font: 600 .55em/0 var(--font-ui); vertical-align: super; margin-right: 3px; }
.vn a { color: var(--accent-text); text-decoration: none; }
.add { font-style: italic; padding-right: .06em; } /* italic overhang otherwise touches the next word */
.wj { color: var(--words-of-jesus); }
.sc { font-size: .78em; letter-spacing: .02em; }
.pilcrow { color: var(--accent-text); }
.psalm-title { font-style: italic; color: var(--text-secondary); font-size: .9em; }
.acrostic { font-family: var(--font-scripture); font-size: 20px; line-height: 1.4; color: var(--accent-text); margin: 1.2em 0 .4em; font-weight: 400; letter-spacing: .06em; }
.fn { font: 600 .6em/0 var(--font-ui); color: var(--accent-text); }
.fn a { color: var(--accent-text); text-decoration: none; padding: 0 2px; }
.margin-notes { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--divider); font-size: 16px; color: var(--text-secondary); }
.margin-notes h2 { font-size: 20px; }
.margin-notes ol { list-style: none; padding: 0; }
.margin-notes li { margin-bottom: 6px; }
.margin-notes li:target { color: var(--text-primary); }
.margin-notes .back { font-weight: 600; color: var(--accent-text); text-decoration: none; margin-right: 4px; }
.note-verse { font-weight: 600; margin-right: 4px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 8px; }
.pager a { padding: 12px 20px; border-radius: 999px; background: var(--chip); color: var(--chip-text); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.pager a:hover { background: var(--brand); color: var(--on-brand); }

/* Chapter back-links and book overview */
.citations { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--divider); }
.citations h2 { font-size: 22px; }
.cite-groups { display: grid; gap: 16px; }
.cite-group h3 { font: 600 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin: 8px 0; }
.cite-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cite-group a { font-family: var(--font-display); color: var(--text-primary); }
.cite-verse { color: var(--text-secondary); font-size: 14px; white-space: nowrap; }
.glance { margin: 8px 0 24px; }
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glance-list a { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--surface-raised); text-decoration: none; color: var(--text-body); }
.glance-list a:hover { background: var(--chip); }
.glance-num { font: 600 16px/1.2 var(--font-display); color: var(--accent-text); }
.glance-text { font-family: var(--font-scripture); }
@media (max-width: 640px) { .glance-list a { grid-template-columns: 1fr; gap: 2px; } }

/* Devotional and prayer reading pages */
.reading-hero { margin: 16px 0 0; }
.reading-hero img { border-radius: var(--radius-card); width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 20%; }
.reading .page-head { padding-top: 20px; }
.label { font: 600 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin: 28px 0 10px; }
.card-inspiration { background: var(--inspiration); border-radius: var(--radius-card); padding: 4px 22px 18px; margin: 20px 0; }
blockquote { margin: 0 0 18px; }
blockquote p { margin: 0 0 4px; }
blockquote footer { font-size: 15px; color: var(--text-secondary); }
.ref a { color: var(--accent-text); text-decoration: none; font-style: normal; font-weight: 600; }
.ref { font-style: normal; }
.verse-lg { font: 26px/1.5 var(--font-display); color: var(--text-primary); }
.verse { font: 20px/1.6 var(--font-display); color: var(--text-body); }
.verse-quiet { font: 18px/1.6 var(--font-display); color: var(--text-secondary); font-style: normal; }
.takeaway { font-size: 19px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface-raised); border-radius: 0 14px 14px 0; margin: 18px 0 24px; }
.byline { color: var(--text-secondary); font-style: italic; margin-top: 24px; }
.prose-body p { font: 20px/1.7 var(--font-display); color: var(--text-body); }
.closing { text-align: center; letter-spacing: .04em; }
.prayer-text p { font: 21px/1.7 var(--font-display); color: var(--text-primary); }
.amen { font: 600 28px/1 var(--font-display); color: var(--brand); text-align: center; margin: 32px 0; }
.blessing { border-top: 1px solid var(--divider); padding-top: 4px; }
.related { background: var(--surface-raised); border-radius: var(--radius-tile); padding: 16px 20px; margin-top: 28px; }
.related h2 { font-size: 20px; }
.related ul { margin: 0; padding-left: 20px; }

/* Indexes */
.month-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.month-nav a { padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--chip-text); text-decoration: none; font-size: 15px; min-height: 40px; display: inline-flex; align-items: center; }
.month-nav a.today-chip { background: var(--brand); color: var(--on-brand); }
.month { margin: 32px 0; }
.day-list, .prayer-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--surface-raised); text-decoration: none; color: var(--text-primary); }
.day-list a:hover { background: var(--chip); }
.day-num { font: 600 18px/1 var(--font-display); color: var(--accent-text); }
.day-title { font-family: var(--font-display); }
.day-ref { color: var(--text-secondary); font-size: 15px; white-space: nowrap; }
.prayer-days li { display: grid; grid-template-columns: 40px auto auto 1fr; gap: 12px; align-items: baseline; padding: 10px 16px; border-radius: 14px; background: var(--surface-raised); }
.prayer-days a { font-weight: 600; color: var(--accent-text); text-decoration: none; padding: 6px 0; }
.prayer-days .day-title { color: var(--text-secondary); font-size: 15px; }
[data-day].is-today, [data-day].is-today a { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 640px) {
  .day-list a { grid-template-columns: 32px 1fr; }
  .day-ref { grid-column: 2; }
  .prayer-days li { grid-template-columns: 32px auto auto; }
  .prayer-days .day-title { grid-column: 1 / -1; }
}
.occasion-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.occasion-list a { display: block; padding: 14px 16px; border-radius: var(--radius-tile); background: var(--surface-raised); text-decoration: none; color: var(--text-primary); }
.occasion-list span { display: block; color: var(--text-secondary); font-family: var(--font-display); }

/* Quiz */
.level-cards { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.level-cards a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius-tile); background: var(--surface-raised); color: var(--text-primary); text-decoration: none; height: 100%; }
.level-cards strong { font: 600 22px/1.2 var(--font-display); color: var(--brand); }
.level-cards small { color: var(--text-secondary); font-size: 15px; }
.quiz-list { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.quiz-q { background: var(--surface-raised); border-radius: var(--radius-card); padding: 20px 22px; margin-bottom: 14px; }
.q-kind { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin: 0 0 6px; font-weight: 600; }
.q-text { font: 600 21px/1.4 var(--font-display); color: var(--text-primary); }
.q-options { margin: 0 0 12px; padding-left: 24px; }
.quiz-q details summary { cursor: pointer; color: var(--accent-text); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.q-answer { margin: 8px 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 28px/1 var(--font-display); color: var(--accent-text); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { margin: 0; font-size: 20px; }
.faq-item p { margin: 0 0 18px; }
.faq-excerpt { margin: 56px 0; }

/* About the KJV */
.prose-page section { margin: 28px 0; }
.samples { display: grid; gap: 14px; margin: 24px 0 32px; }
.sample { margin: 0; background: var(--surface-raised); border-radius: var(--radius-card); padding: 18px 22px; }
.sample .scripture { font-size: 20px; margin: 0; }
.sample figcaption { color: var(--text-secondary); font-size: 15px; margin-top: 6px; }
.sample-note { font: 15px/1.4 var(--font-ui); color: var(--text-secondary); }
.fn-mark { color: var(--accent-text); font-weight: 600; }

/* Footer */
.site-footer { margin-top: 64px; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: var(--surface-raised); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 24px 0; }
.footer-links a { color: var(--text-body); text-decoration: none; padding: 8px 0; }
.footer-links a:hover { color: var(--accent-text); }
.fine { font-size: 14px; color: var(--text-secondary); max-width: 820px; }

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