/* Hallmark · shape: app screen · genre: editorial · theme: brand (FixHome reader)
 * nav: speaker names · states: reading, large type, dark · copy: verbatim
 * axes: light/roman-serif/green · posture: quiet · v2.0.0 */
:root {
  color-scheme: light;
  --paper: #faf9f5; --ink: #20241e; --muted: #565e53; --line: #c7cbc1;
  --accent: #31563e; --wash: #e6ece2; --body: system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif; --gap: 1rem; --rule: 1px;
  --reading-size: 1.38rem; --radius: .25rem; --top: 1rem;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181b18; --ink: #eeefe8; --muted: #b7bdb1; --line: #51594f;
  --accent: #b0d0b3; --wash: #2e3b30;
}
:root[data-large="true"] { --reading-size: 1.68rem; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); }
.wrap { max-width: 73rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3.5rem); }
.mast, footer { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.mast { min-height: 4.6rem; }
.brand { font: bold 1.6rem var(--serif); color: var(--accent); }
.tools { display: flex; gap: .4rem; flex-wrap: wrap; }
[hidden] { display: none !important; }
button { padding: .45rem .7rem; min-height: 2.75rem; font: 500 .875rem var(--body); border: var(--rule) solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer; }
button[aria-pressed="true"], button:hover, nav a:hover { background: var(--wash); }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1,h2 { font-family: var(--serif); margin: 0; min-width: 0; overflow-wrap: break-word; line-height: 1.1; }
.layout { display: grid; grid-template-columns: minmax(9rem, .32fr) minmax(0, 1fr); gap: clamp(1.2rem, 5vw, 5rem); align-items: start; }
nav { position: sticky; top: var(--top); border-top: 2px solid var(--ink); background: var(--paper); }
nav a { display: flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .5rem; border-bottom: var(--rule) solid var(--line); color: var(--ink); text-decoration: none; }
nav a[aria-current] { color: var(--accent); background: var(--wash); font-weight: 700; }
article { min-width: 0; max-width: 45rem; }
section { border-top: 2px solid var(--ink); padding-bottom: 2.4rem; scroll-margin-top: var(--top); }
.chapter { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding-top: 1.55rem; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); }
.slides { font-size: .96rem; color: var(--muted); }
.spoken { font: var(--reading-size)/1.6 var(--serif); overflow-wrap: break-word; }
.spoken p,.spoken ul { margin: 1em 0; }
.spoken ul { padding-left: 1.2em; }
.spoken li { margin-block: .45em; }
.pause { color: var(--muted); font: italic .78em var(--serif); }
footer { justify-content: flex-end; border-top: var(--rule) solid var(--line); padding: 1.25rem 0 2rem; }
@media (max-width: 45rem) {
  :root { --top: 4.5rem; --reading-size: 1.19rem; }
  .layout { display: block; }
  nav { z-index: 1; top: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  nav a { justify-content: center; padding: .4rem .1rem; font-size: .88rem; }
  .chapter { padding-top: 1rem; }
  .mast { gap: .3rem; } .tools { gap: .25rem; } button { padding-inline: .47rem; }
}
@media (max-width: 23rem) { .mast { flex-wrap: wrap; padding-block: .5rem; } }
@media print { .tools, nav, footer { display: none; } .layout { display: block; } section { break-before: page; } section:first-child { break-before: auto; } }
