:root {
  --accent: #8e2f1c;
  --accent-ink: #fffaf2;
  --ink: #221d16;
  --muted: #5e5246;
  --line: #e6dccb;
  --bg: #fbf6ec;
  --card: #fffdf8;
  --soft: #f3eadb;
  --ok: #276738;
  --warn: #8a4b08;
  --bad: #a3261b;
  --serif: Literata, Lora, Georgia, Cambria, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); margin: 0.5em 0 0.4em; }
h2 { font-size: 1.4rem; margin: 2em 0 0.6em; }
h3 { font-size: 1.12rem; margin: 1.4em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.logo small { font-family: var(--sans); font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-left: 4px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current="page"], .top nav a:hover { color: var(--ink); text-decoration: underline; }
main { padding-bottom: 48px; }
.kicker { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 650; margin: 28px 0 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
.small { font-size: 0.88rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 18px 0; }
.note { background: var(--soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin: 4px 0; }
.price small { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
.tablewrap { overflow-x: auto; }
.yes { color: var(--ok); font-weight: 650; }
.no { color: var(--bad); font-weight: 650; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 650; }
form .field { margin: 0 0 14px; }
label { display: block; font-weight: 600; margin: 0 0 4px; }
label.inline { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cbbfa9; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 110px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
legend { font-weight: 650; padding: 0 6px; }
.choices label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.hp { position: absolute; left: -5000px; }
.msg { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.msg.ok { background: #e6f2e8; color: var(--ok); }
.msg.err { background: #f8e3df; color: var(--bad); }
.hidden { display: none !important; }
#buy { margin: 16px 0; }
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0; font-size: 0.9rem; color: var(--muted); }
.foot p { margin: 0 0 8px; }

/* Kit sheets: one sheet = one printed page (A4) */
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; margin: 22px 0; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.sheet h2 { margin-top: 0; font-size: 1.3rem; }
.sheet h3 { font-size: 1.05rem; }
.sheet .meta { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; }
ol.q { padding-left: 1.6em; }
ol.q > li { margin: 0 0 12px; }
ol.q .ref { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.lines { border-bottom: 1px dotted #b9ab92; height: 1.6em; }
ul.opts { list-style: none; padding-left: 0.2em; margin: 4px 0; }
ul.opts li::before { content: "\2610\00a0"; }
.hint { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.key li { margin-bottom: 8px; }
blockquote.extract { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--soft); white-space: pre-line; font-size: 0.97rem; }
table.board td, table.board th { border: 1px solid #b9ab92; text-align: center; min-width: 2.2em; }
table.board th:first-child, table.board td:first-child { text-align: left; }
.cert { border: 3px double var(--accent); padding: 26px; text-align: center; }
.verse-nums { counter-reset: v; }
.textpage { font-family: var(--serif); }
.textpage .speaker { font-variant: small-caps; letter-spacing: 0.03em; margin: 10px 0 2px; font-weight: 600; }
.textpage .verse { margin: 0; padding-left: 1.2em; }
.textpage .did { font-style: italic; color: var(--muted); margin: 6px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sheet { padding: 16px 14px; }
}

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff; font-size: 11.5pt; }
  .top, .foot, .no-print, .skip { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  main { padding: 0; }
  .sheet { border: 0; border-radius: 0; padding: 0; margin: 0; break-after: page; font-size: 11.5pt; }
  .sheet:last-of-type { break-after: auto; }
  ol.q > li, .key li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  h1.print-hide { display: none; }
}
.textpage .para { margin: 0 0 0.7em; }
.textpage .pn { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); display: inline-block; min-width: 1.8em; }
.textpage ul.cast { columns: 2; font-size: 0.95rem; }
@media (max-width: 560px) { .textpage ul.cast { columns: 1; } }
@media print {
  .textpage { columns: 2; column-gap: 9mm; font-size: 10pt; line-height: 1.32; }
  .textpage h2 { column-span: all; font-size: 14pt; margin: 8mm 0 3mm; }
  .textpage h3 { font-size: 11pt; margin: 3mm 0 1mm; break-after: avoid; }
  .textpage .speaker { margin: 4px 0 0; break-after: avoid; }
  .textpage .did { margin: 2px 0; }
  .textpage .para { text-align: justify; }
  .sheet .textpage { columns: 1; font-size: 11pt; }
}
@media print { .tablewrap { overflow: visible; } table.board { font-size: 8.5pt; } }
