:root {
  color-scheme: light dark;
  --paper: #f7f3e9;
  --ink: #20231f;
  --muted: #62685f;
  --accent: #185c55;
  --accent-soft: #dcebe5;
  --rule: #c7cbbf;
  --code: #ebe8df;
  --shadow: rgba(26, 38, 34, 0.12);
}

* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
main {
  width: min(780px, calc(100% - 2rem));
  margin: 3rem auto 6rem;
}
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7vw, 4.6rem); letter-spacing: -0.045em; margin: 0 0 0.35em; }
h2 { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 0.7rem; }
h3 { margin-bottom: 0.35rem; }
p, li { max-width: 68ch; }
a { color: var(--accent); text-underline-offset: 0.16em; }
.eyebrow {
  color: var(--accent);
  font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede { color: var(--muted); font-size: 1.2rem; max-width: 58ch; }
.callout, .question {
  background: color-mix(in srgb, var(--paper) 84%, var(--accent-soft));
  border-left: 4px solid var(--accent);
  border-radius: 0.2rem;
  box-shadow: 0 8px 26px var(--shadow);
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
}
.question { border-left-width: 2px; }
.question p:last-child { margin-bottom: 0; }
pre, code, textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}
pre {
  background: var(--code);
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  overflow-x: auto;
  padding: 1rem;
}
textarea {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  color: inherit;
  min-height: 22rem;
  padding: 1rem;
  resize: vertical;
  width: 100%;
}
button {
  background: var(--accent);
  border: 0;
  border-radius: 99rem;
  color: white;
  cursor: pointer;
  font: 700 0.82rem/1 ui-sans-serif, system-ui, sans-serif;
  padding: 0.85rem 1.1rem;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--muted);
  font: 0.82rem/1.4 ui-sans-serif, system-ui, sans-serif;
  margin: 1.5rem 0 2.5rem;
}
.rubric { color: var(--muted); font-size: 0.92rem; }
.footnote { color: var(--muted); font-size: 0.82rem; }
@media print {
  :root { color-scheme: light; }
  body { background: white; }
  main { margin: 0 auto; width: 100%; }
  button { display: none; }
  .question, .callout { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
}
