/* math-learn.ca: the apps' public pages (founder, 2026-11-09). The look of the apps: cream paper, leaf green, ink. */
:root {
  --paper: #fbf8f1;
  --card: #ffffff;
  --ink: #1e2a3f;
  --muted: #5a6577;
  --leaf: #2e7d4f;
  --line: #e6dfcf;
  --sun: #f5c542;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b17;
    --card: #1d2520;
    --ink: #e9eee9;
    --muted: #a7b3ab;
    --leaf: #7fcf9d;
    --line: #2d3832;
    --sun: #e9b934;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Andika', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}
main { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
header { display: flex; flex-direction: column; gap: 6px; }
.brand { font-family: 'Lilita One', 'Trebuchet MS', sans-serif; color: var(--leaf); font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; }
h1, h2 { font-family: 'Lilita One', 'Trebuchet MS', sans-serif; font-weight: 400; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
h2 { font-size: 1.25rem; }
p, ul { margin: 0; }
ul { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 4px; }
section { display: flex; flex-direction: column; gap: 8px; }
.lede { color: var(--muted); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
a { color: var(--leaf); }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.date, footer { color: var(--muted); font-size: 0.95rem; }
footer { border-top: 2px solid var(--line); padding-top: 14px; }
