:root {
  color-scheme: light;
  --paper: #f7f1e7;
  --panel: #fffbf5;
  --ink: #25201c;
  --muted: #5f554c;
  --line: #dbd0c2;
  --dark: #31241e;
  --accent: #f4a259;
  --button: #852e1e;
  font: 1rem/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, pre:focus-visible { outline: 3px solid #a34221; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: .5rem; left: 1rem; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.masthead { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; border-radius: .5rem; background: var(--dark); color: var(--accent); font: bold 1.05rem Georgia, serif; letter-spacing: -.06em; }
.domain { color: var(--button); }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .875rem; }
nav a { display: block; padding-block: .55rem; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5.4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.7rem); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.06em; margin: 0; }
h1 { font-size: clamp(2.8rem, 5.9vw, 5.4rem); line-height: .98; }
h2 { font-size: clamp(2.05rem, 4vw, 3.2rem); line-height: 1.06; }
h3, p { margin-top: 0; }
h3 { margin-bottom: .45rem; font-size: 1.1rem; line-height: 1.3; }
.status { display: inline-flex; gap: .5rem; align-items: center; margin: 0 0 1.2rem; font: 600 .8125rem/1.4 system-ui, sans-serif; color: var(--button); }
.status span { width: .55rem; aspect-ratio: 1; background: #ba4f28; border-radius: 50%; }
.intro { font-size: clamp(1.06rem, 1.6vw, 1.16rem); color: var(--muted); margin: 1.35rem 0 .85rem; max-width: 48ch; }
.disclosure { color: var(--muted); font-size: .85rem; max-width: 55ch; margin-bottom: 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .62rem 1rem; border: 1px solid transparent; border-radius: .4rem; font-size: .875rem; font-weight: 700; line-height: 1.35; text-decoration: none; text-align: center; cursor: pointer; }
.primary { background: var(--button); color: white; }
.primary:hover { background: #622016; }
.secondary { background: var(--panel); color: var(--button); border-color: var(--line); }
.secondary:hover { border-color: var(--button); }
.matrix { margin: 0; padding: clamp(1.1rem, 3.1vw, 2.25rem); background: var(--dark); color: #fff2e1; border-radius: 1.25rem; box-shadow: .5rem .65rem 0 #e7d8c8; }
.matrix figcaption { border-bottom: 1px solid #8e6d55; padding-bottom: 1.15rem; }
.matrix-label { color: var(--accent); font-size: .84rem; }
.matrix strong { display: block; margin-top: .5rem; font: 500 clamp(2.2rem, 4.4vw, 3.8rem)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.matrix table { width: 100%; margin-top: .6rem; border-collapse: collapse; text-align: left; font-size: .84rem; }
.matrix th, .matrix td { padding: .7rem .28rem; border-bottom: 1px solid #755743; }
.matrix th:first-child { padding-left: 0; }
.matrix td { color: #ffbb7f; }
.matrix thead { color: #e4cdb9; }
.matrix tbody th { font-weight: 600; }
.matrix p { margin: 1.1rem 0 0; color: #ead6c2; font-size: .86rem; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.assignment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.25rem, 5vw, 4.1rem); align-items: start; }
.section-intro p { margin: .85rem 0 0; color: var(--muted); max-width: 61ch; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1.65rem; }
.comparison-grid article { padding: 1.15rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); }
.comparison-grid p { margin: .6rem 0 0; color: var(--muted); }
.comparison-grid a { color: var(--button); font-size: .92rem; text-underline-offset: .18em; }
.brief { background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 3vw, 1.9rem); min-width: 0; }
.brief-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.brief-toolbar h3 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; }
pre { font: inherit; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 1rem 0 0; }
.feedback { color: var(--button); margin: .55rem 0 0; }
.feedback:empty { display: none; }
.rubric { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 2rem 0; }
.rubric div { border-top: 3px solid #c97a4d; padding-top: .8rem; }
.rubric dt { font-weight: 750; }
.rubric dd { margin: .45rem 0 0; color: var(--muted); font-size: .91rem; }
.record p, .next p { margin-bottom: .4rem; max-width: 65ch; }
.fine { color: var(--muted); font-size: .85rem; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: clamp(1.25rem, 4vw, 2.6rem); background: #ebddca; border-radius: .65rem; margin-bottom: 2rem; }
.next h2 { margin-bottom: .7rem; }
.next .button { flex-shrink: 0; }
.footer { border-top: 1px solid var(--line); padding-block: 1rem 1.5rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .matrix { max-width: 34rem; }
  .comparison-grid { grid-template-columns: 1fr; }
  .rubric { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 37rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { align-items: flex-start; flex-direction: column; gap: .4rem; padding-block: .85rem; }
  .hero { padding-block: 2.25rem 3rem; }
  .assignment { grid-template-columns: 1fr; }
  .next { flex-direction: column; align-items: flex-start; }
  .next .button { width: 100%; }
}
@media print {
  body, .matrix, .brief, .next { background: white; color: black; }
  .shell { width: 100%; }
  .masthead nav, .button, .skip, .footer, .feedback { display: none !important; }
  .hero, .assignment { display: block; }
  .hero, .section { padding-block: 1rem; }
  .matrix { box-shadow: none; margin-top: 1rem; border: 1px solid #555; }
  .matrix-label, .matrix thead, .matrix td, .matrix p { color: black; }
  .brief { margin-top: .75rem; }
}
