:root {
  color-scheme: light;
  --ink: #202a35;
  --muted: #5b6873;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --line: #dedbd1;
  --blue: #185e71;
  --blue-dark: #104553;
  --gold: #f2c66d;
  --green: #245c42;
  --red: #943f35;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
.site-header { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(1rem, calc((100% - 68rem)/2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 800; font-size: 1.12rem; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1rem; }
main { width: min(100% - 2rem, 68rem); margin: 2rem auto 4rem; min-height: 70vh; }
footer { color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding: 1rem; font-size: .9rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.65rem); margin: .25rem 0 .75rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
.hero { background: #e6f0eb; padding: clamp(1.3rem, 5vw, 2.5rem); border-radius: 1.25rem; margin-bottom: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 1.75rem); margin: 1rem 0; box-shadow: 0 3px 14px rgb(34 42 48 / 4%); }
.narrow { max-width: 34rem; margin: 4vh auto; }
.eyebrow { color: var(--blue-dark); font-size: .86rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.muted, .session-summary span { color: var(--muted); }
.theme { font-size: 1.15rem; font-weight: 650; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.primary, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; border: 1px solid var(--blue); border-radius: .65rem; padding: .65rem 1rem; background: var(--blue); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary:hover, button:hover { background: var(--blue-dark); }
.button { margin: .5rem 0; }
.link-button { min-height: auto; padding: .25rem 0; border: 0; background: transparent; color: var(--blue-dark); text-decoration: underline; }
form { display: grid; gap: .75rem; }
.inline { display: inline-flex; margin: 0; }
label { font-weight: 650; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; max-width: 36rem; min-height: 2.8rem; border: 1px solid #aeb8bd; border-radius: .45rem; background: white; color: var(--ink); padding: .65rem .75rem; font: inherit; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #d09116; outline-offset: 3px; }
.session-list { list-style: none; padding: 0; margin: 0; }
.session-list li { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.date-pill { min-width: 4.5rem; padding: .35rem; background: #f2ead8; border-radius: .5rem; text-align: center; font-size: .82rem; }
.session-summary { display: grid; flex: 1; }
.text-link { white-space: nowrap; }
.question { border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; margin: 1rem 0; }
.question legend { padding: 0 .35rem; font-weight: 750; }
.question > p { font-size: 1.15rem; }
.choice { display: flex; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: .5rem; padding: .65rem; cursor: pointer; }
.choice input, .check input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue); }
.check { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; }
details { padding: .45rem 0; }
summary { color: var(--blue-dark); font-weight: 700; cursor: pointer; }
blockquote { border-left: 4px solid var(--gold); margin: .8rem 0; padding: .5rem 1rem; background: #fbf7ed; }
.answer-card { border-top: 1px solid var(--line); padding: .8rem 0; }
.answer-card:first-of-type { border-top: 0; }
.score { font-size: 2.2rem; font-weight: 850; color: var(--green); margin: .1rem 0; }
.notice { border-left: 5px solid var(--gold); background: #fff7df; padding: .8rem 1rem; border-radius: .35rem; }
.notice.error { border-color: var(--red); }
.notice.success { border-color: var(--green); }
.hint-box { border-left: 4px solid var(--gold); background: #fff7df; padding: .65rem .85rem; border-radius: .35rem; }
.answer-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.dictation { font-size: 1.3rem; font-weight: 650; padding: 1rem; background: #f5f2e9; border-radius: .5rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 43rem; }
th, td { vertical-align: top; text-align: left; padding: .65rem; border-bottom: 1px solid var(--line); }
th { background: #f3f0e7; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.inline-form select { width: auto; }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .site-header { padding: .65rem 1rem; }
  nav { gap: .65rem; }
  main { width: min(100% - 1rem, 68rem); margin: .75rem auto 2rem; }
  .hero { border-radius: .8rem; }
  .session-list li { flex-wrap: wrap; }
  .session-summary { flex-basis: calc(100% - 6rem); }
  .text-link { margin-left: 5.3rem; }
  .section-heading { align-items: flex-start; }
  .inline-form { align-items: stretch; }
  .inline-form select, .inline-form button { width: 100%; }
}
