:root {
  color-scheme: light dark;
  --accent: #00cc5c; --forest: #00602b; --red: #ed1a22;
  --copy: #7e7f7e; --frame: #44546a; --paper: #fff;
  --ui-green: #46755a; --ui-green-deep: #315b45;
  --on-action: #fff;
  --background: #f4f6f4; --surface: #fff; --surface-soft: #eaf0eb;
  --ink: #202f28; --muted: #63716a; --line: #d7dfd9;
  --shadow: 0 12px 35px #20372b14;
  --display-font: Georgia, 'Times New Roman', serif;
  --body-font: Calibri, Carlito, 'Trebuchet MS', Arial, sans-serif;
  --ui-font: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --header-height: 60px; --footer-height: 22px;
  --slide-width: min(720px, 78vw, calc((100dvh - 222px) * 210 / 297));
}
@media (prefers-color-scheme: dark) {
  :root {
    --ui-green: #a4c5ae; --ui-green-deep: #bad8c0;
    --on-action: #19291f;
    --background: #171d19; --surface: #242c27; --surface-soft: #303a33;
    --ink: #eef0ed; --muted: #bac4bc; --line: #48554b;
    --shadow: 0 12px 35px #0007;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background);
  color: var(--ink); font-family: var(--ui-font); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ui-green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important;
    animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width:650px) {
  :root { --header-height:52px; --footer-height:20px;
    --slide-width:min(92vw,calc((100dvh - 210px)*210/297)); }
}
body { display:flex; flex-direction:column; min-height:100dvh; }

/* The newspaper view fits one device-height; reading view reflows naturally. */
.home-body { height:100dvh; overflow:hidden; }
.home-body.is-reading { height:auto; min-height:100dvh; overflow-y:auto; }
