:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #61706a;
  --paper: #f5f2e9;
  --panel: #fffdf7;
  --line: #d5d0c3;
  --accent: #176b57;
  --danger: #a13b2b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
header, main { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
header { padding: 64px 0 28px; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 8px 0; font-family: Georgia, serif; font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: .95; }
.lede { max-width: 720px; color: var(--muted); }
main { display: grid; gap: 18px; padding-bottom: 64px; }
section { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 8px 28px rgb(23 32 29 / 6%); }
h2 { margin: 0 0 14px; font-size: 1.15rem; }
.section-title, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.state-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
dt, label { color: var(--muted); font-size: .8rem; font-weight: 700; }
dd { margin: 6px 0 0; overflow-wrap: anywhere; }
input, textarea, select { display: block; width: 100%; margin: 6px 0 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
textarea, .mono, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
button { border: 0; border-radius: 999px; padding: 9px 15px; background: var(--accent); color: white; font-weight: 750; cursor: pointer; }
button.secondary { background: #e4e0d5; color: var(--ink); }
button.danger { background: var(--danger); }
button:disabled { opacity: .45; cursor: not-allowed; }
.review-list { display: grid; gap: 10px; }
.review { border-top: 1px solid var(--line); padding-top: 14px; }
.review:first-child { border-top: 0; }
.review code { white-space: pre-wrap; overflow-wrap: anywhere; }
.review .actions { justify-content: flex-start; margin-top: 10px; }
.muted, #status { color: var(--muted); }
.subheading { margin-top: 28px; }
.learning-actions { justify-content: flex-start; margin-bottom: 12px; }
.blind-list { display: grid; gap: 12px; margin: 16px 0; }
.blind-case { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.blind-case p { white-space: pre-wrap; overflow-wrap: anywhere; }
.blind-options { display: flex; flex-wrap: wrap; gap: 14px; }
.blind-options label { color: var(--ink); }
.blind-options input { display: inline; width: auto; margin-right: 5px; }
pre { min-height: 72px; padding: 12px; overflow: auto; border-radius: 8px; background: #17201d; color: #d7f4e9; }

@media (max-width: 680px) {
  header { padding-top: 36px; }
  section { padding: 18px; }
  .state-grid, .form-grid { grid-template-columns: 1fr; }
}
