/* Cento site. Paper by day, Night after dark: the two reading themes the app opens with. */
:root {
  --paper: #F7F2E8;
  --sheet: #FFFCF6;
  --ink: #2B231D;
  --soft: #6B5D50;
  --line: #E4DACA;
  --accent: #8C3B2E;
  --accent-ink: #FFFCF6;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120F;
    --sheet: #1F1A16;
    --ink: #F4EEE6;
    --soft: #B5AA9C;
    --line: #342C25;
    --accent: #E2A592;
    --accent-ink: #15120F;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--sans);
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* top bar: a glass strip, like the app's floating controls */
.topbar { position: sticky; top: 0; z-index: 5; padding: 10px 12px; }
.navbar {
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--sheet) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.mark { width: 26px; height: 26px; }
.navlinks { display: flex; gap: 14px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.navlinks a { color: var(--soft); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--ink); }
@media (max-width: 560px) { .navlinks { gap: 12px; min-width: 0; } .navlinks a { font-size: 0.9rem; } .navbar { gap: 10px; } }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none; line-height: 1.1;
}
.badge .apple { width: 26px; height: 26px; }
.badge-text { display: flex; flex-direction: column; }
.badge-small { font-size: 0.72rem; }
.badge-big { font-size: 1.2rem; font-weight: 600; }
.badge.is-soon { background: transparent; color: var(--ink); border: 1.5px solid var(--line); cursor: default; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-copy p { font-size: 1.13rem; color: var(--soft); max-width: 34em; margin-bottom: 26px; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; } }

/* the phone, drawn with real text */
.phone {
  --t-paper: #F7F2E8; --t-ink: #2B231D; --t-soft: #6E6052; --t-accent: #8C3B2E;
  margin: 0; width: min(300px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: #1A1714; box-shadow: 0 30px 60px -30px rgba(40, 25, 10, 0.45), inset 0 0 0 1.5px #3A332C;
}
.phone .screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--t-paper); color: var(--t-ink); transition: background 0.35s, color 0.35s;
  display: flex; flex-direction: column;
}
.phone .progress { height: 3px; margin: 44px 22px 0; background: color-mix(in srgb, var(--t-soft) 25%, transparent); border-radius: 2px; }
.phone .progress span { display: block; height: 100%; background: var(--t-accent); border-radius: 2px; }
.phone .pills { display: flex; justify-content: space-between; padding: 12px 16px 0; }
.phone .pill {
  font: 600 0.72rem/1 var(--sans); padding: 8px 12px; border-radius: 999px; color: var(--t-ink);
  background: color-mix(in srgb, var(--t-ink) 8%, transparent); border: 1px solid color-mix(in srgb, var(--t-ink) 12%, transparent);
}
.phone .verse { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 26px 30px; }
.phone .heading { font: italic 0.85rem/1.3 var(--serif); color: var(--t-soft); margin-bottom: 18px; }
.phone .ref { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-accent); margin-bottom: 10px; }
.phone .text { font: 400 1.6rem/1.45 var(--serif); margin: 0; }
.sc { font-variant: small-caps; text-transform: lowercase; letter-spacing: 0.03em; }
.phone .dock { display: flex; justify-content: center; gap: 10px; padding-bottom: 22px; }
.phone .dot { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--t-ink) 8%, transparent); border: 1px solid color-mix(in srgb, var(--t-ink) 12%, transparent); }
@media (prefers-reduced-motion: reduce) { .phone .screen { transition: none; } }

.swatches { display: grid; grid-template-columns: repeat(6, 30px); gap: 10px; }
.swatch {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--sw-paper) 50%, var(--sw-ink) 50%);
  border: 1.5px solid var(--line);
}
.swatch[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* bands */
.band { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.band > p, .split p { color: var(--soft); max-width: 40em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { padding-left: 18px; border-left: 3px solid var(--line); }
.feature-list p { color: var(--soft); margin: 0; font-size: 0.97rem; }

.panel { margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.builder .field { border-radius: 14px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); }
.builder .label { display: block; font-size: 0.75rem; color: var(--soft); margin-bottom: 4px; }
.builder .typed { font-family: var(--serif); font-size: 1.05rem; overflow-wrap: anywhere; }
.chips { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.chips li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.chips li span:last-child { margin-left: auto; color: var(--soft); font-size: 0.85rem; }
.ribbon { width: 6px; height: 22px; border-radius: 3px; background: var(--accent); }
.chips li:nth-child(2) .ribbon { background: #C98B6B; }
.chips li:nth-child(3) .ribbon { background: #D9C3A0; }
.days { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.days li { display: flex; gap: 14px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-family: var(--serif); }
.days li:last-child { border-bottom: 0; }
.day { min-width: 3.6em; font: 600 0.8rem/1.9 var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.linkcard .url { font: 0.85rem/1 var(--sans); color: var(--soft); background: var(--paper); border-radius: 999px; padding: 10px 14px; margin-bottom: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock { display: inline-block; width: 8px; height: 10px; margin-right: 8px; border-radius: 2px; background: var(--soft); vertical-align: -1px; }
.plan-title { font: 600 1.5rem/1.2 var(--serif); margin-bottom: 4px; }
.plan-meta { color: var(--soft); font-size: 0.9rem; }

.sources { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sources li { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.sources .who { font: 600 1.15rem/1.25 var(--serif); }
.sources .work { font: italic 0.95rem/1.35 var(--serif); color: var(--soft); }
.sources .what { font-size: 0.92rem; color: var(--soft); }
@media (max-width: 820px) { .sources { grid-template-columns: 1fr; } }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.price-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .price { font: 600 2.1rem/1 var(--serif); margin: 10px 0 2px; }
.price-card .per { color: var(--soft); font-size: 0.9rem; }
.price-card .note { font-size: 0.92rem; margin: 0; }
.note p { color: var(--soft); font-size: 0.95rem; max-width: 46em; }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.9rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 0.85rem/1.3 var(--sans); color: var(--soft); background: var(--paper); position: sticky; top: 0; }
.compare tbody th { font-weight: 500; width: 30%; }
.compare td.no { color: var(--soft); }
.compare .ours { background: color-mix(in srgb, var(--accent) 7%, transparent); font-weight: 500; }
.compare td.later { font-weight: 400; color: var(--soft); }
.compare tr:last-child > * { border-bottom: 0; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font: 600 1.08rem/1.4 var(--serif); }
details p { color: var(--soft); margin: 10px 0 0; max-width: 46em; }

.closing { text-align: center; }
.closing-line { font: 1.35rem/1.45 var(--serif); max-width: 34em; margin: 0 auto 22px; }

.prose { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.prose h2 { font-size: 1.45rem; margin-top: 34px; }
.prose li { margin-bottom: 8px; }

/* the shared plan page */
.plan { max-width: 640px; padding-top: 28px; padding-bottom: 56px; }
.plan-sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 28px; padding: 28px 24px; }
.plan-kicker { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.plan h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); margin-bottom: 6px; overflow-wrap: anywhere; }
.plan-days { list-style: none; padding: 0; margin: 20px 0 0; }
.plan-days > li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-days .day { line-height: 1.6; }
.plan-days ul { list-style: none; margin: 0; padding: 0; }
.plan-days ul li { font: 1.15rem/1.5 var(--serif); }
.plan-days .clip-note { display: block; font: 0.88rem/1.4 var(--sans); color: var(--soft); }
.plan-error { color: var(--soft); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 16px; }
.plan-note { color: var(--soft); font-size: 0.95rem; }
@media (max-width: 420px) { .plan-actions .button { flex: 1 1 100%; } .plan-sheet { padding: 22px 18px; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.foot-links a { color: var(--soft); text-decoration: none; font-size: 0.92rem; }
.fine { color: var(--soft); font-size: 0.82rem; max-width: 46em; margin-top: 10px; }
.plan-days.undated > li { grid-template-columns: 1fr; }
.plan-days.undated .day { display: none; }
.plan-days.undated ul li { padding: 6px 0; }

/* programme pages: topics, books, chapters, verses, plans, guides */
.guide { overflow-wrap: break-word; }
.crumbs { font-size: 0.85rem; color: var(--soft); margin-bottom: 18px; }
.crumbs a { color: var(--soft); }
.guide h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
.answer p { font-size: 1.12rem; }
.guide section { margin-top: 8px; }
.guide h3 { margin-top: 18px; }
blockquote.verse { margin: 0 0 14px; padding: 14px 18px; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; }
blockquote.verse p { font: 1.12rem/1.55 var(--serif); margin: 0 0 6px; }
blockquote.verse cite { font: 600 0.8rem/1.3 var(--sans); font-style: normal; color: var(--soft); }
blockquote.verse sup, .xt sup { font-size: 0.7em; color: var(--soft); margin-right: 2px; }
.table-scroll .data { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.data thead th { font: 600 0.82rem/1.3 var(--sans); color: var(--soft); background: var(--paper); }
.data tr:last-child > * { border-bottom: 0; }
.data.trans td { font-family: var(--serif); min-width: 12em; }
.data.sched td:last-child, .data.sched th:first-child { white-space: nowrap; }
.outline { padding-left: 0; list-style: none; }
.outline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.oc { font: 600 0.82rem/1.5 var(--sans); color: var(--accent); margin-right: 6px; }
.ov { color: var(--soft); font-size: 0.85em; }
.refs { line-height: 1.9; }
.cols { columns: 2 14em; padding-left: 1.1em; }
.xrefs { padding-left: 1.2em; }
.xrefs li { margin-bottom: 12px; }
.xr { font-weight: 600; }
.votes { color: var(--soft); font-size: 0.85rem; margin-left: 6px; }
.xt { display: block; font: 1rem/1.5 var(--serif); }
.ctx-label { font: 600 0.8rem/1.3 var(--sans); color: var(--soft); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.missing li { margin-bottom: 10px; }
.steps li { margin-bottom: 8px; }
.in-cento { margin-top: 26px; padding: 4px 20px 10px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.in-cento h2 { margin-top: 18px; }
.cta { margin: 28px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.cta p { color: var(--soft); }
.checked { color: var(--soft); font-size: 0.88rem; margin-top: 18px; }
.cites, .related { padding-left: 1.1em; }
.cites li { font-size: 0.92rem; }
.hub-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12em, 1fr)); gap: 6px 18px; }
.hub-list li { margin: 0; }
.hub-tiles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 14px; }
.hub-tiles a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hub-tiles strong { font: 600 1.1rem/1.3 var(--serif); }
.hub-tiles span { color: var(--soft); font-size: 0.92rem; }
@media print { .topbar, .site-foot, .cta, .in-cento, .crumbs { display: none; } .table-scroll { overflow: visible; border: 0; } }
