:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #fafaf9;
  --card: #ffffff;
  --warn: #9a3412;
  --warn-bg: #ffedd5;
  --accent: #9f1239;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--accent); }
header, main, footer { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
.banner {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 12px 16px;
  text-align: center;
  font: 14px/1.4 ui-sans-serif, system-ui, sans-serif;
}
nav { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 18px 0; font: 14px/1.2 ui-sans-serif, system-ui, sans-serif; }
nav a { color: var(--ink); text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; }
h1 { font-size: 2rem; line-height: 1.15; margin: 12px 0; }
h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.lead, .note { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.price { font-size: 1.8rem; margin: 8px 0; }
button, .button {
  display: inline-block;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: 14px/1.2 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}
button[disabled] { background: #a8a29e; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
ul { padding-left: 1.2rem; }
code { font-family: ui-monospace, monospace; font-size: 0.92em; }
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  header, main, footer { width: min(880px, calc(100% - 24px)); }
}
html:has(meta[name="terms-version"]) body::before {
  content: "Archived version — these are not the current TESI Terms. Select “Terms” below to read the current version.";
  display: block;
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid #fed7aa;
  padding: 12px 16px;
  text-align: center;
  font: 600 14px/1.45 ui-sans-serif, system-ui, sans-serif;
}
