@font-face {
  font-family: "Reem Kufi";
  src: url("/reading-variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcfcf9;
  --index-paper: #f0f1eb;
  --ink: #29372f;
  --secondary: #536052;
  --green: #275e49;
  --soft-green: #e7eee5;
  --soft-tan: #f3eee1;
  --rule: #d5dccf;
  --focus: #69439a;
  font-family: "Reem Kufi", "Trebuchet MS", sans-serif;
  font-synthesis: none;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; }
[hidden] { display: none !important; }
main, article, section, aside, figure, dd { min-width: 0; }
p { margin: 0 0 1.05rem; }
strong { font-weight: 650; }
a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary, label { -webkit-tap-highlight-color: #dce9df; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); max-width: 19ch; letter-spacing: -.025em; }
h2 { font-size: 1.65rem; margin-bottom: 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin-bottom: .75rem; }
li { padding-left: .2rem; }
ul { padding-left: 1.3rem; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.skip-link { position: fixed; top: -200px; left: 16px; z-index: 10; padding: 12px 20px; background: white; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.reading-sheet { margin-left: 264px; padding: 66px clamp(34px, 5.8vw, 96px) 26px; }
.guide-article, .page-close { max-width: 800px; margin: 0 auto; }
.page-heading { margin-bottom: 26px; }
.page-context { color: var(--secondary); margin: 0 0 20px; font-size: 1rem; }
.page-lead { margin-top: 25px; max-width: 66ch; font-size: 1.1rem; line-height: 1.6; }
.term-explanation { max-width: 68ch; margin: 0 0 28px; color: var(--secondary); font-size: 16px; }
.reading-section, .visit-wrap, .coverage-questions, .evidence-shelf { margin: 46px 0; max-width: 68ch; }
.reading-section p:last-child, .visit-wrap p:last-child, .coverage-questions p:last-child, .evidence-shelf p:last-child { margin-bottom: 0; }
.plain-notes { margin: 0; }
.plain-notes li { margin: 0 0 .8rem; }
.reading-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; width: fit-content; max-width: 100%; padding: 7px 0; font-weight: 550; }
.reading-link span { flex: 0 0 auto; }
.pocket-header { display: none; }

@media (min-width: 1680px) {
  .reading-sheet { padding-top: 86px; }
}

@media (max-width: 760px) {
  :root { font-size: 18px; }
  .reading-sheet { margin: 0; padding: 34px 24px 20px; }
  h1 { font-size: 2.1rem; max-width: 20ch; }
  h2 { font-size: 1.5rem; }
  .page-heading { margin-bottom: 24px; }
  .page-context { margin-bottom: 15px; }
  .page-lead { font-size: 1rem; margin-top: 20px; }
  .pocket-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 20px; background: var(--index-paper); }
  .pocket-header a { display: flex; align-items: center; min-height: 48px; font-size: 16px; line-height: 1.3; text-decoration: none; }
  .pocket-header a:first-child { max-width: 130px; font-weight: 600; }
  .pocket-header a:last-child { text-decoration: underline; white-space: nowrap; }
  .reading-section, .visit-wrap, .coverage-questions, .evidence-shelf { margin: 34px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
