/* The landing page and the chapter pages. The look is a page of an account book:
   cool ledger paper, blue-black ink, ledger green as the one accent, and ruled lines
   only where they separate things. Literata for reading, Public Sans for labels and
   buttons, all in sentence case. The contents panel has its own styles (panel.css). */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/literata.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("/static/literata-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/static/public-sans.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --paper: #f3f5f2;   /* ledger paper */
  --panel: #e6ece7;   /* the contents, a tint of the ledger green */
  --ink: #18232b;     /* blue-black */
  --muted: #55636b;
  --rule: #c9d3cc;    /* a ledger's ruled line */
  --green: #275c45;   /* ledger green: links, buttons, the current place, check marks */
  --serif: "Literata", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.page { flex: 1; overflow-y: auto; }
/* The header holds only the contents toggle */
.bar { display: flex; align-items: center; min-height: 48px; padding: 8px 32px; }
.banner { height: 200px; background: url("wall-and-broad.jpg") center 55% / cover no-repeat; }
.credit { margin: 4px 0 0; text-align: right; font: 11.5px var(--sans); color: var(--muted); padding: 0 12px; }
.credit a { color: var(--muted); }
/* One column of text, left aligned, about 70 characters wide */
.landing { max-width: 720px; margin: 0 auto; padding: 36px 24px 48px; }
.landing h1 { margin: 0; font: 400 44px/1.1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.landing .sub { margin: 10px 0 0; font: italic 21px/1.4 var(--serif); color: var(--muted); }
.landing .by { margin: 12px 0 0; font: 16px/1.4 var(--sans); color: var(--muted); }
.landing .kicker { margin: 0 0 6px; font: italic 19px/1.3 var(--serif); color: var(--green); }
.landing .facts { margin: 12px 0 0; font: 15.5px/1.5 var(--sans); color: var(--muted); }
.landing .facts p { margin: 0; }
.cta { margin: 26px 0 8px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta span { font: 16px var(--serif); color: var(--muted); }
a.resume { display: inline-block; font: 600 16px/1.4 var(--sans); text-decoration: none;
  background: var(--green); color: #fff; padding: 10px 22px; border-radius: 6px; }
a.resume:hover { background: #1d4836; }
a.resume.plain { background: none; color: var(--green); padding: 10px 4px; text-decoration: underline; font-weight: 500; }
.landing h2 { margin: 44px 0 12px; font: 600 23px/1.3 var(--serif); letter-spacing: -.005em; }
.prose p { margin: 0 0 14px; font: 18.5px/1.6 var(--serif); }
.mods { margin: 0; padding-left: 28px; }
.mods li { margin: 0 0 8px; font: 18.5px/1.5 var(--serif); }
.mods li::marker { color: var(--muted); font-variant-numeric: lining-nums; }
.mods a { text-decoration: none; }
.mods a:hover { text-decoration: underline; }
.mods .ok { color: var(--green); }
.mods li.planned { color: #75828a; }
.mods .tag { margin-left: 4px; font: 500 12px/1 var(--sans); color: #75828a; border: 1px solid #c3cdc6;
  border-radius: 3px; padding: 1px 4px; vertical-align: 2px; }
/* The author, in the book's type and colors; the Rice logo keeps its own */
.footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); text-align: center; }
.footer .fname { margin: 0 0 4px; font: 600 20px/1.3 var(--serif); color: var(--ink); }
.footer .ftitle { margin: 0; font: 15.5px/1.5 var(--serif); color: var(--muted); }
.footer img { display: block; margin: 16px auto 0; width: 285px; max-width: 100%; height: auto; mix-blend-mode: multiply; }

/* A real exchange, as it happens on the board: what the tutor says, what it writes,
   and what the student answers. Speech is in the text face; the board's line is set
   larger, on a ruled line; the student's words are in the label face, at the right. */
.exchange { margin: 8px 0 18px; padding: 6px 0 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.exchange .turn { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.exchange .who { font: 500 13px/1.9 var(--sans); color: var(--muted); }
.exchange .says { margin: 0; font: 18px/1.6 var(--serif); }
.exchange .board { margin: 8px 0 2px; padding: 4px 0 8px; font: 24px/1.4 var(--serif); font-variant-numeric: lining-nums;
  border-bottom: 1px solid var(--rule); }
.exchange .board i { font-style: italic; }
.exchange .student .says { font: 16.5px/1.55 var(--sans); background: var(--panel); padding: 8px 14px;
  border-radius: 12px; width: fit-content; max-width: 100%; }
.after { margin-top: 18px; }

@media (max-width: 860px) {
  .bar { padding: 8px 12px; }
  .banner { height: 150px; }
  .landing { padding: 26px 18px 40px; }
  .landing h1 { font-size: 34px; }
  .landing .sub { font-size: 19px; }
  .prose p, .mods li { font-size: 17.5px; }
  .exchange .turn { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .exchange .board { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
