/* Cross Math site. Paper and ink, like the app. Accent is the app's vermilion. */
:root {
  color-scheme: light dark;
  --accent: #D9482B;
  --ground: #F2EDE3;
  --surface: #FBF8F1;
  --ink: #1B1A17;
  --muted: #6C665B;
  --line: #D9D2C3;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #F06A4C; --ground: #151412; --surface: #1D1B18; --ink: #ECE6DA; --muted: #9C9486; --line: #34312B; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 700px; margin: 0 auto; padding: 48px 22px 80px; }
header.site { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.mast { font-family: "Source Serif 4", Georgia, serif; font-weight: 800; font-size: 32px; line-height: 1; }
.mast a { color: inherit; text-decoration: none; }
.mast em { font-style: normal; color: var(--accent); }
nav.site { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--ink); }
.rule2 { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); height: 3px; margin: 0 0 36px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
h1 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(32px, 6vw, 44px); line-height: 1.12; margin: 0 0 12px; font-weight: 800; }
h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; margin: 44px 0 10px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; margin: 26px 0 6px; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 8px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; }
a { color: var(--accent); }
strong { font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--ink); border-top-width: 3px; padding: 16px 18px; margin: 24px 0; }
.box p:last-child { margin-bottom: 0; }
.eq { font: 600 20px/1 ui-rounded, -apple-system, sans-serif; letter-spacing: .04em; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: inline-block; padding: 12px 16px; margin: 8px 0 20px; }
.eq b { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; border-bottom-color: var(--ink); }
.scroll { overflow-x: auto; }
footer.site { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
