/* Library 422 landing site: the same identity as the app, in the Scriptorium
   theme (vellum, ink and rubric red — the app's default since 2026-10-07; the
   site switched to it the same day). The tokens are the app's
   `:root[data-theme="scriptorium"]` block in app/css/style.css, and like the
   app the site does not follow the device scheme: one fixed look. The serif
   is the reading voice (prose, titles), the system sans is for navigation,
   meta and buttons. Shared by index.html, guide/, privacy/ and every
   generated page. */
:root {
  --bg: #efe6d0; --card: #f7f1e3; --desk: #e3d8bb; --ink: #1e1812; --muted: #6b5d45;
  --accent: #a8321f; --accent-ink: #f7f1e3; --chip: #e7dcc2; --line: #d6c9a8;
  --red: #7a1c12;
  --serif: "Libertinus Serif", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@font-face {
  font-family: "Libertinus Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/LibertinusSerif-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Libertinus Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/LibertinusSerif-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libertinus Serif"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/LibertinusSerif-Semibold.woff2") format("woff2");
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.6 var(--serif);
}
main { max-width: 720px; margin: 0 auto; padding: 28px 20px 64px; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* masthead: the icon and the name, then breadcrumbs on inner pages */
header { display: flex; align-items: center; gap: 12px; }
header .home {
  display: inline-flex; align-items: center; gap: 12px; color: var(--ink);
  text-decoration: none; font: 600 1.7rem var(--serif);
}
header .home:hover { text-decoration: none; color: var(--accent); }
/* the icon is the book alone on a transparent ground (site/icon.svg, rendered
   bare by tools/build_icons.mjs), so it needs no tile or rounding here */
header img { width: 48px; height: 48px; }
.crumbs { color: var(--muted); font: .85rem var(--ui); margin: 18px 0 8px; }
.crumbs a { color: var(--muted); }

h1 { font-weight: 600; font-size: 2.1rem; line-height: 1.15; margin: 6px 0 8px; letter-spacing: -.005em; }
h2 { font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin: 34px 0 8px; }
h3 { font-weight: 600; font-size: 1.1rem; margin: 22px 0 4px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 5px 0; }
code { font: .85em ui-monospace, Consolas, monospace; color: var(--muted); }
.meta { color: var(--muted); font: .9rem/1.5 var(--ui); }
/* the tagline under the name on the home page */
.tag { color: var(--muted); font-size: 1.15rem; margin: 0 0 22px; }

/* the one button: open the app, with the headline beside it. wrap-reverse
   puts the headline ABOVE the button when the row is too narrow for both
   (owner, 2026-10-07: beside it so long as there is space) */
.ctarow {
  display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 12px 24px;
  margin: 10px 0 18px;
}
.ctarow h1 { margin: 0; }
.cta {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; padding: 12px 26px; border-radius: 999px;
  font: 600 1rem var(--ui);
}
.cta:hover, .cta:focus-visible { text-decoration: none; filter: brightness(1.08); }

/* index lists (works, bibles): one row per entry, hairlines between */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex;
           justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.list a { color: var(--ink); text-decoration: none; }
.list a:hover { color: var(--accent); }

/* home page sections: plain headed prose, no cards */
section { margin: 30px 0; }
section h2 { margin-top: 0; }
section ul a { font-weight: 600; }

footer { color: var(--muted); font: .85rem/1.6 var(--ui); margin-top: 44px;
         padding-top: 14px; border-top: 1px solid var(--line); }

/* /licences/ (generated from app/sources.json) */
.lic dt { margin-top: 14px; font-weight: 600; }
.lic dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.lic dd .meta { margin: 2px 0 0; font-size: .85rem; }

/* home page hero: the motto as the opening line, then a reading specimen set
   exactly the way the app sets a chapter (book, rubric numeral, two texts) */
.hero { margin: 26px 0 8px; }
.hero .motto {
  font-style: italic; font-size: 1.5rem; line-height: 1.3; margin: 0 0 6px; max-width: 30ch;
}
.hero .motto cite { display: block; font: .9rem var(--ui); font-style: normal; color: var(--muted); margin-top: 6px; }
.specimen {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 20px 6px; margin: 26px 0 14px;
}
.specimen .chaphead {
  display: flex; align-items: baseline; gap: 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.specimen .chapbook { font-size: 1.1rem; color: var(--muted); }
.specimen .chapnum { font-size: 2.4rem; line-height: 1; color: var(--accent); font-weight: 600; }
.specimen .chaptexts { margin-left: auto; font-style: italic; font-size: .9rem; color: var(--muted); text-align: right; }
.specimen .verse { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specimen .verse:last-child { border-bottom: 0; }
.specimen .vnum { flex: 0 0 1.6em; text-align: right; color: var(--accent); font-size: .8rem; padding-top: .45em; }
.specimen .vbody { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr; gap: 4px 28px; font-size: 1.02rem; line-height: 1.5; }
.specimen .grc { font-size: 1.1rem; }
.specimen .word { border-bottom: 1px dotted var(--line); }
.specimen .word.lit { color: var(--accent); border-bottom-color: var(--accent); }
.specimen .caption { color: var(--muted); font: .82rem/1.5 var(--ui); margin: 10px 0 8px; }
@media (min-width: 640px) {
  .specimen .vbody { grid-template-columns: 1fr 1fr; }
}
