:root {
  color-scheme: light;
  --paper: #f7f0dc;
  --ink: #24243a;
  --amber: #ffdb91;
  --mint: #d3efdf;
  --berry: #822c49;
  --rule: #afa793;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, p, li, a { overflow-wrap: break-word; }
a { color: var(--berry); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, main:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 5px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 600; }
p { margin-bottom: 18px; max-width: 67ch; }
p:last-child { margin-bottom: 0; }
h1 { font-size: 58px; line-height: 1.08; letter-spacing: -0.04em; max-width: 24ch; margin-bottom: 26px; }
h2, .brief-section-heading { font-size: 32px; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 22px; }
h3, .brief-detail-heading { font-size: 22px; line-height: 1.35; margin-bottom: 12px; }
h4 { font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
::selection { background: var(--amber); color: var(--ink); }

.skip-link {
  position: absolute;
  top: 12px;
  left: 18px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  min-height: 48px;
}
.skip-link:focus { transform: translateY(0); }
.masthead {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 3px solid var(--ink);
}
.masthead-name {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  padding: 3px 0;
  min-height: 64px;
  font-size: 27px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.masthead-purpose { font-size: 17px; font-weight: normal; line-height: 1.5; letter-spacing: 0; margin-top: 5px; }
.quick-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.quick-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 8px; font-size: 18px; color: var(--ink); }
.quick-nav a:last-child { background: var(--amber); padding-right: 16px; padding-left: 16px; text-decoration: none; gap: 12px; box-shadow: 3px 3px 0 var(--ink); }
.site-layout {
  max-width: 1300px;
  padding: 36px 24px 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
main { min-width: 0; grid-column: 2; grid-row: 1; }
.topic-rail { min-width: 0; grid-column: 1; grid-row: 1; }
.topic-rail h2 { font-size: 23px; border-top: 7px solid var(--ink); padding-top: 20px; margin-bottom: 26px; }
.topic-group { margin-bottom: 25px; }
.topic-group-label { line-height: 1.35; font-size: 16px; text-transform: uppercase; letter-spacing: 0.075em; margin: 0 0 9px; font-weight: bold; }
.topic-group ul { list-style: none; padding: 0; margin: 0; }
.topic-group a { display: flex; align-items: center; padding: 10px 12px; min-height: 46px; font-size: 17px; line-height: 1.45; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.topic-group a:hover { background: var(--amber); }
.topic-group a[aria-current="page"] { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); box-shadow: 4px 4px 0 var(--mint); }
.rail-note { font-size: 17px; border-top: 2px solid var(--ink); padding: 22px 12px 0; margin-top: 34px; font-style: italic; }
.eyebrow { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; margin-bottom: 24px; font-weight: bold; }
.brief-heading { padding: 30px 32px 28px; margin-bottom: 40px; background: var(--amber); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.brief-heading .eyebrow { margin-bottom: 22px; }
.standfirst { font-size: 22px; line-height: 1.55; max-width: 54ch; }
.record-date { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 17px; line-height: 1.5; }
.brief-section, .route-comparison, .reading-list, .term-section { margin: 0 0 44px; }
.brief-section > p { max-width: 67ch; }
.brief-section { padding: 0 6px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checklist li { position: relative; padding: 22px 20px 22px 48px; border: 1px solid var(--ink); background: #fff9e9; }
.checklist li::before { content: ""; position: absolute; left: 20px; top: 28px; width: 13px; height: 13px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--amber); }
.checklist h3 { font-size: 21px; margin-bottom: 8px; }
.checklist p { font-size: 19px; line-height: 1.55; }
.reading-note { max-width: 67ch; border-left: 7px solid var(--ink); background: var(--mint); padding: 24px 28px; margin: 26px 0; box-shadow: 4px 4px 0 var(--ink); }
.reading-note h3, .reading-note .brief-detail-heading { font-size: 20px; margin-bottom: 10px; }
.reading-note p { font-size: 19px; }
.primary-link { background: var(--amber); color: var(--ink); font-weight: bold; padding: 14px 22px; min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; text-decoration: none; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--mint); }
.primary-link:hover { background: var(--mint); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 48px; font-weight: bold; }
.opening-panel { background: var(--ink); color: var(--paper); padding: 38px 32px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 30px; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--amber); margin: 0 0 48px; }
.opening-panel h1 { font-size: 61px; line-height: 1.075; letter-spacing: -0.045em; margin-bottom: 28px; }
.opening-panel h1 em { color: var(--amber); font-weight: normal; }
.opening-panel .eyebrow { font-size: 16px; max-width: 25ch; color: var(--mint); margin-bottom: 28px; }
.opening-panel .standfirst { font-size: 21px; line-height: 1.6; margin-bottom: 30px; }
.opening-panel a:focus-visible { outline-color: var(--mint); }
.opening-checks { background: var(--amber); color: var(--ink); padding: 24px 22px; align-self: start; box-shadow: 4px 4px 0 var(--mint); }
.opening-checks h2 { font-size: 26px; line-height: 1.2; margin-bottom: 20px; }
.opening-checks .checklist { display: block; }
.opening-checks .checklist li { padding: 16px 0 16px 27px; background: none; border: none; border-top: 1px solid var(--ink); }
.opening-checks .checklist li::before { left: 0; top: 23px; box-shadow: none; background: var(--mint); }
.opening-checks .checklist h3 { font-size: 20px; }
.opening-checks .checklist p { font-size: 18px; line-height: 1.5; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); background: #fff9e9; }
.comparison-option { padding: 25px 22px; min-width: 0; }
.comparison-option + .comparison-option { border-left: 1px solid var(--ink); }
.comparison-option h3 { font-size: 25px; border-bottom: 5px solid var(--mint); padding-bottom: 16px; }
.comparison-option h4 { margin-top: 24px; text-transform: uppercase; font-size: 16px; letter-spacing: 0.06em; }
.comparison-option p { font-size: 19px; line-height: 1.55; }
.contrast-list { margin: 0; border-top: 2px solid var(--ink); }
.contrast-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; padding: 25px 0; border-bottom: 1px solid var(--rule); }
.contrast-list dt { font-size: 23px; font-weight: bold; line-height: 1.35; }
.contrast-list dd { margin: 0; min-width: 0; }
.state-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.state-comparison article { border-top: 6px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 20px 4px; }
.state-comparison h3 { font-size: 24px; }
.reading-list { padding: 28px 6px 0; border-top: 3px solid var(--ink); }
.reading-list h2 { font-size: 28px; }
.reading-list ul { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.reading-list li { min-width: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.reading-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: bold; line-height: 1.5; padding: 8px 0; min-height: 48px; }
.reading-list a span { flex-shrink: 0; }
.reading-list p { font-size: 18px; line-height: 1.6; margin-top: 6px; }
.continue-reading { background: var(--ink); color: var(--paper); padding: 26px 30px; box-shadow: 6px 6px 0 var(--amber); margin-top: 40px; }
.continue-reading p { font-size: 17px; margin-bottom: 8px; }
.next-link { color: var(--amber); font-size: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; min-height: 52px; line-height: 1.3; }
.continue-reading a:focus-visible { outline-color: var(--mint); }
.term-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.term-list > div { border-top: 2px solid var(--ink); padding: 24px 0 28px; min-width: 0; }
.term-list dt { font-weight: bold; font-size: 26px; line-height: 1.3; margin-bottom: 13px; }
.term-list dd { margin: 0; }
.site-footer { max-width: 1300px; margin: 0 auto; border-top: 3px solid var(--ink); padding: 28px 24px 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.site-footer p { font-size: 17px; max-width: 52ch; padding-top: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; max-width: 540px; }
.site-footer a { min-height: 48px; padding: 10px 4px; display: inline-flex; align-items: center; font-size: 17px; line-height: 1.5; }
.missing-page main { max-width: 800px; padding: 64px 32px; margin: 56px auto 100px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--amber); }
.missing-page nav { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 30px; }

@media (max-width: 1100px) {
  .site-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 26px; }
  .opening-panel { grid-template-columns: 1fr; padding: 34px; }
  .opening-panel h1 { max-width: 18ch; }
  .opening-panel h1 br:last-of-type { display: none; }
  .opening-checks .checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
  .opening-checks { padding: 26px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-option + .comparison-option { border-left: 0; border-top: 1px solid var(--ink); }
  .comparison-option h3 { padding-bottom: 10px; margin-bottom: 16px; }
  .comparison-option h4 { margin-top: 18px; }
  .contrast-list > div { grid-template-columns: 175px minmax(0, 1fr); gap: 22px; }
  h1 { font-size: 50px; }
  .quick-nav { gap: 8px; }
  .site-footer { flex-direction: column; gap: 14px; }
  .site-footer nav { justify-content: flex-start; max-width: none; }
}

@media (max-width: 820px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 22px; padding-bottom: 20px; }
  .site-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 28px; }
  main { grid-column: 1; grid-row: 1; }
  .topic-rail { grid-column: 1; grid-row: 2; }
  .topic-rail nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
  .topic-rail h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .topic-group { margin-bottom: 10px; }
  .rail-note { max-width: none; }
  .opening-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 26px; padding: 28px; }
  .opening-panel h1 { font-size: 46px; }
  .opening-checks { padding: 22px 18px; }
  .opening-checks .checklist { display: block; }
}

@media (max-width: 620px) {
  body { font-size: 19px; }
  .masthead { padding: 20px 18px 18px; gap: 14px; }
  .masthead-name { font-size: 25px; }
  .masthead-purpose { font-size: 16px; }
  .quick-nav { gap: 6px 15px; width: 100%; }
  .quick-nav a { font-size: 17px; padding: 10px 0; }
  .quick-nav a:last-child { margin-left: auto; padding: 10px 12px; gap: 8px; }
  .site-layout { padding: 24px 18px 46px; gap: 48px; }
  h1 { font-size: 41px; line-height: 1.12; margin-bottom: 22px; }
  h2, .brief-section-heading { font-size: 29px; }
  .brief-heading { padding: 26px 22px; margin-bottom: 36px; box-shadow: 4px 4px 0 var(--ink); }
  .brief-heading .eyebrow { font-size: 16px; letter-spacing: 0.035em; }
  .standfirst { font-size: 21px; }
  .record-date { font-size: 17px; }
  .brief-section { padding: 0; }
  .brief-section, .route-comparison, .reading-list, .term-section { margin-bottom: 36px; }
  .checklist { grid-template-columns: 1fr; gap: 12px; }
  .checklist li { padding: 20px 18px 20px 45px; }
  .checklist li::before { left: 17px; top: 26px; }
  .reading-note { padding: 22px 20px; border-left-width: 5px; box-shadow: 3px 3px 0 var(--ink); }
  .opening-panel { grid-template-columns: 1fr; padding: 28px 22px; gap: 34px; box-shadow: 4px 4px 0 var(--amber); }
  .opening-panel h1 { font-size: 42px; line-height: 1.1; }
  .opening-panel h1 br:last-of-type { display: initial; }
  .opening-panel .eyebrow { margin-bottom: 24px; }
  .opening-panel .standfirst { font-size: 21px; }
  .opening-checks { padding: 24px 20px; }
  .opening-checks h2 { font-size: 26px; }
  .opening-checks .checklist h3 { font-size: 21px; }
  .opening-checks .checklist p { font-size: 19px; }
  .primary-link { padding: 13px 18px; font-size: 19px; max-width: 100%; }
  .comparison-option { padding: 24px 22px; }
  .contrast-list > div { grid-template-columns: 1fr; gap: 13px; }
  .contrast-list dt { font-size: 24px; }
  .state-comparison, .reading-list ul, .term-list { grid-template-columns: 1fr; }
  .reading-list { padding-top: 24px; }
  .reading-list ul { gap: 16px; }
  .reading-list p { font-size: 19px; }
  .continue-reading { padding: 24px 22px; box-shadow: 4px 4px 0 var(--amber); }
  .next-link { font-size: 23px; }
  .topic-rail nav { grid-template-columns: 1fr; gap: 22px; }
  .topic-rail h2 { padding-top: 22px; font-size: 26px; }
  .topic-group-label { font-size: 17px; }
  .topic-group a { font-size: 19px; padding: 12px 14px; min-height: 52px; }
  .site-footer { padding: 24px 18px 30px; gap: 12px; }
  .site-footer p { font-size: 17px; }
  .site-footer nav { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
  .site-footer a { font-size: 18px; padding: 10px 0; }
  .missing-page main { margin: 24px 18px 60px; padding: 36px 22px; box-shadow: 4px 4px 0 var(--amber); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { font-size: 16px; background: white; color: black; }
  .masthead, .topic-rail, .site-footer, .continue-reading, .skip-link { display: none; }
  .site-layout { display: block; padding: 0; }
  .brief-heading, .opening-panel, .opening-checks, .reading-note { background: white; color: black; box-shadow: none; }
  .opening-panel { display: block; }
  .opening-panel h1 em { color: black; }
  .checklist, .reading-list ul { grid-template-columns: 1fr; }
  a { color: black; }
}
