:root {
  color-scheme: light dark;
  --accent: #a33b00;
  --accent-strong: #7a2c00;
  --surface: #fffaf6;
  --surface-raised: #ffffff;
  --ink: #24170f;
  --muted: #67584f;
  --line: #dfcec3;
  --focus: #00639a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.6; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface-raised); padding: .6rem; }
header, main, footer { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
header a { font-weight: 800; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .9rem; }
nav a { font-weight: 650; }
main { padding-block: clamp(2.5rem, 8vw, 6rem); }
.hero { max-width: 52rem; }
.eyebrow { color: var(--accent-strong); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 8vw, 5.4rem); margin: .1em 0 .25em; letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); margin-top: 2.5rem; }
p { max-width: 68ch; }
.lede { color: var(--muted); font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }
.button { display: inline-block; min-height: 3rem; padding: .7rem 1rem; border: 2px solid var(--accent-strong); border-radius: 999px; background: var(--accent-strong); color: white; font-weight: 800; text-decoration: none; }
.button.secondary { color: var(--accent-strong); background: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-block: 2rem; }
.card, .callout, .tool { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: 0 .35rem 1.4rem rgb(75 42 20 / .06); }
.card h2, .card h3 { margin: 0 0 .35rem; }
.card p { color: var(--muted); }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 750; }
.facts { padding-left: 1.25rem; }
.facts li { margin-block: .45rem; }
.code { overflow-x: auto; padding: .9rem; border-radius: .75rem; background: #201914; color: #fff8f2; font: .9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.warning { border-left: .35rem solid #b55a00; padding-left: 1rem; }
label { display: block; margin-top: 1rem; font-weight: 750; }
input, select { width: min(100%, 25rem); min-height: 3rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface-raised); color: var(--ink); font: inherit; }
button { min-height: 3rem; margin-top: 1rem; border: 0; border-radius: 999px; padding: .7rem 1rem; background: var(--accent-strong); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.result { margin-top: 1.25rem; padding: 1.25rem; border: 2px solid var(--accent-strong); border-radius: 1rem; background: var(--surface-raised); }
.result strong { display: block; font-size: clamp(1.7rem, 7vw, 3.5rem); line-height: 1.15; }
details { margin-block: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
summary { cursor: pointer; font-weight: 800; }
footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: .9rem; }
@media (prefers-color-scheme: dark) {
  :root { --surface:#17120f; --surface-raised:#211a16; --ink:#fff8f2; --muted:#d7c5b8; --line:#56453a; --accent:#ffb68b; --accent-strong:#ffb68b; --focus:#7ad1ff; }
  .button { color: #361000; }
  .button.secondary { color: var(--accent-strong); }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .button { transition: transform .16s ease, box-shadow .16s ease; }
  .card:hover, .button:hover { transform: translateY(-2px); }
}

/* Intent guides and browser tools (BIZ-71) */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ol, .prose ul { padding-left: 1.25rem; max-width: 68ch; }
.prose li { margin-block: .35rem; }
.checked { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; margin-block: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-raised); }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .95rem; }
caption { text-align: left; padding: .9rem 1rem .2rem; font-weight: 800; }
th, td { text-align: left; vertical-align: top; padding: .65rem 1rem; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: .82rem; letter-spacing: .02em; color: var(--muted); }
tbody th { font-weight: 750; }
td small, th small { display: block; color: var(--muted); font-weight: 400; }
.app-offer { margin-block: 2rem; background: var(--surface-raised); border: 2px solid var(--accent-strong); border-radius: 1.15rem; padding: clamp(1.1rem, 3vw, 1.6rem); }
.app-offer h2 { margin-top: 0; }
.app-offer .actions { margin-bottom: .5rem; }
.sources { font-size: .92rem; }
.sources li { overflow-wrap: anywhere; }
.form-row { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.form-row > div { flex: 1 1 12rem; min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: .9rem; padding: .4rem 1rem 1rem; margin: 1rem 0 0; }
legend { font-weight: 750; padding-inline: .3rem; }
.choice { display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; margin: 0 1.1rem 0 0; font-weight: 600; }
.choice input { width: 1.25rem; min-height: 1.25rem; margin: 0; accent-color: var(--accent-strong); }
input[type="file"] { padding: .55rem; }
.result.idle { border-style: dashed; border-color: var(--line); }
.result p { margin-block: .35rem; }
.result .plates { font-weight: 800; font-size: 1.15rem; }
.result canvas { display: block; max-width: 100%; height: auto; margin-top: .8rem; border-radius: .6rem; border: 1px solid var(--line); }
.week { margin-top: 1.25rem; }
.week h3 { margin: 0 0 .3rem; }
.week table, table.compact { min-width: 0; }
@media (max-width: 40rem) {
  table.stack { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack, table.stack caption, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; }
  table.stack tr { border-top: 1px solid var(--line); padding: .35rem 0 .6rem; }
  table.stack th, table.stack td { border-top: 0; padding: .3rem 1rem; }
  table.stack tbody th { font-size: 1.05rem; padding-top: .6rem; }
  table.stack td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .8rem; font-weight: 750; }
}
@media (max-width: 40rem) {
  .week th, .week td, table.compact th, table.compact td { padding: .55rem .5rem; }
  .week td:last-child { min-width: 7.5rem; }
}
.code-inline { font: .92rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.status-ok { color: #1b6b2a; font-weight: 800; }
.status-warn { color: #9a3b00; font-weight: 800; }
@media (prefers-color-scheme: dark) {
  .status-ok { color: #8be09a; }
  .status-warn { color: #ffb68b; }
}

/* Programmatic pages (growth v3, BIZ-75): breadcrumbs, store badges, plate diagram, link grids */
nav.crumbs { display: block; margin-bottom: 1rem; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--muted); }
.crumbs a { font-weight: 650; }
.crumbs [aria-current] { color: var(--muted); }
.store-actions { align-items: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: .7rem; }
.store-badge img { display: block; height: 4.25rem; width: auto; }
.store-badge-apple img { height: 3rem; margin-inline: .45rem; }
.answer { font-size: clamp(1.35rem, 4.2vw, 2rem); font-weight: 800; line-height: 1.25; margin-block: .5rem 0; max-width: 40ch; text-wrap: balance; }
.callout { border-left: .35rem solid var(--accent-strong); }
.plate-figure { margin: 1.5rem 0; padding: clamp(.75rem, 3vw, 1.25rem); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 1.15rem; }
.plate-figure svg { display: block; width: 100%; height: auto; max-height: 15rem; }
.plate-figure figcaption { margin-top: .5rem; color: var(--muted); font-size: .92rem; }
.pm-sleeve, .pm-shaft { fill: #9aa0a8; }
.pm-collar { fill: #5f646c; }
.pm-plate { stroke: rgb(0 0 0 / .18); stroke-width: 1; }
.pm-caption { fill: var(--muted); }
.plate-figure text { font-family: inherit; font-weight: 800; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: .5rem; list-style: none; padding: 0 !important; margin-block: .75rem 1.25rem; }
.link-grid li { margin: 0 !important; }
.link-grid a { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface-raised); font-weight: 750; text-decoration: none; font-variant-numeric: tabular-nums; }
.link-grid a:hover { border-color: var(--accent-strong); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card h2 { color: var(--accent-strong); }
table.warmup td:nth-child(2) { white-space: nowrap; font-weight: 750; }
.go { max-width: 36rem; }
@media (max-width: 40rem) {
  .store-badge img { height: 3.75rem; }
  .store-badge-apple img { height: 2.65rem; }
  table.stack td small, table.stack th small { margin-top: .15rem; }
}
@media (prefers-color-scheme: dark) {
  .pm-sleeve, .pm-shaft { fill: #b7bcc4; }
  .pm-collar { fill: #8d929b; }
}
table.warmup tbody th { white-space: nowrap; }
.store-actions .store-badge:first-child img { margin-left: -.6rem; }

/* Kept memorization pages (tools/scripture/gen_site_pages.py) */
.kept .kept-plate { display: block; width: 100%; max-width: 334px; height: auto; margin: 0 0 1rem; }
.kept .kept-glyph { display: block; margin: 0 0 .75rem; }
.kept .sc { font-variant-caps: all-small-caps; letter-spacing: .04em; }
.kept .kept-scripture { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.7; }
.kept .kept-ref { display: block; color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.kept .kept-verses, .kept .kept-collection, .kept .kept-weeks { list-style: none; padding: 0; }
.kept .kept-verses > li, .kept .kept-collection > li, .kept .kept-weeks > li { padding: .9rem 0; border-top: 1px solid var(--line); }
.kept .kept-phrases { margin: .35rem 0 0; padding-left: 1.4rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.6; }
.kept .kept-phrases li { padding: .1rem 0; }
.kept .kept-collection h3 { margin: 0 0 .25rem; }
.kept .kept-cta { margin-top: 2rem; }
.kept-print .kept-card { max-width: 32rem; margin: 1rem auto; }
@media print { .kept-print .kept-card { box-shadow: none; break-inside: avoid; } }
