@font-face {
  font-family: "Reading Serif";
  src: url("/static/reading-serif-variable.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brass: #b5a642;
  --mahogany: #5c0000;
  --sepia: #704214;
  --parchment: #f5deb3;
  --copper: #b87333;
  --teal: #008080;
  --orange: #d46a00;
  --ivory: #fffff0;
  --ink-dark: #320b06;
  --measure: 72ch;
  --technical: "JetBrains Mono", ui-monospace, monospace;
  --section-gap: clamp(4rem, 8vw, 8rem);
  --spring: linear(0, .089, .275, .477, .653, .789, .885, .946, .981, .997, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--mahogany);
  background-color: var(--parchment);
  font: 400 16px/1.6 "Reading Serif", Georgia, serif;
  font-optical-sizing: auto;
  text-shadow: 0 1px var(--ivory);
}
button, summary { font: inherit; }
button { color: inherit; }
button[hidden] { display: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mahogany); outline-offset: 5px; }
::selection { background: var(--brass); color: var(--mahogany); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.028em; }
h1 { font-size: 2.25rem; max-width: 24ch; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { max-width: var(--measure); }
p + p { margin-top: 1rem; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }
li { font-size: 1rem; }
em { font-style: normal; }
main { padding-bottom: var(--section-gap); }
.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: 1.5rem; }
.eyebrow {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--sepia);
}
.skip-link { position: absolute; z-index: 20; left: 1.5rem; top: -8rem; background: var(--ivory); border: 3px solid var(--brass); padding: .75rem 1.25rem; min-height: 48px; }
.skip-link:focus { top: 1rem; }

.site-header { border-top: 8px solid var(--mahogany); }
.masthead { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: flex; align-items: center; gap: 1rem; min-height: 72px; text-decoration: none; font-size: 1.75rem; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.wordmark-sub { display: block; margin-top: .4rem; font-size: 1rem; font-weight: 400; letter-spacing: .11em; }
.masthead-note { font-size: 1rem; color: var(--sepia); text-align: right; line-height: 1.4; }
.topic-nav { border-block: 3px solid var(--brass); background: var(--ivory); box-shadow: 0 3px 0 #70421414; }
.topic-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-block: .7rem; }
.topic-group { min-width: 0; border-right: 1px solid #70421440; padding-right: 1rem; }
.topic-group:last-child { border-right: 0; padding-right: 0; }
.topic-label { font-size: 1rem; font-weight: 500; color: var(--sepia); letter-spacing: .08em; text-transform: uppercase; }
.topic-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topic-links a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; line-height: 1.25; text-decoration: none; border-bottom: 2px solid transparent; }
.topic-links a:hover { border-bottom-color: var(--copper); }
.topic-links a[aria-current] { border-bottom-color: var(--mahogany); font-weight: 700; }

.date-note { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; color: var(--sepia); font-size: 1rem; }
.date-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.date-scope { padding-left: .6rem; border-left: 1px solid #70421450; font-size: 1rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: 1rem; perspective: 1000px; }
.hero-copy { min-width: 0; animation: arrive 480ms var(--spring) both; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-block: 1.25rem 1.5rem; max-width: 15ch; line-height: 1.05; }
.hero h1 em { color: var(--sepia); }
.hero-lead { font-size: 1.25rem; line-height: 1.5; max-width: 43ch; margin-bottom: 1.25rem; }
.hero-copy > p:not(.eyebrow, .date-note, .hero-lead) { max-width: 54ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; max-width: 100%; padding: .65rem 1.15rem; border: 3px solid var(--brass); border-radius: 8px; text-decoration: none; line-height: 1.4; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 #70421435; transition: transform 480ms var(--spring), box-shadow 240ms ease; }
.button:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 7px 10px #70421430; }
.button-brass { background: var(--brass); color: var(--mahogany); }
.button-orange { background: var(--orange); border-color: var(--mahogany); color: var(--ink-dark); text-shadow: 0 1px #fffff060; }
.button-teal { background: var(--teal); color: var(--ivory); text-shadow: none; }
.button-teal:focus-visible { outline-color: var(--mahogany); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: .55rem; font-size: 1rem; gap: .35rem; }
.hero-art { min-width: 0; margin-top: 1.5rem; }
.illustration-frame { position: relative; border: 3px solid var(--brass); border-radius: 8px; background: var(--teal); padding: .5rem; box-shadow: 0 0 10px #70421435, 12px 12px 0 #b5a64260; transform: rotate(2deg); }
.illustration-frame img { border-radius: 3px; width: 100%; }
.hero-art figcaption { margin-top: 1.5rem; font-size: 1rem; color: var(--sepia); line-height: 1.5; padding-inline: .5rem; }
.corner { position: absolute; width: 46px; height: 46px; border: 3px solid var(--brass); pointer-events: none; }
.corner-top { left: -11px; top: -11px; border-right: 0; border-bottom: 0; }
.corner-bottom { right: -11px; bottom: -11px; border-left: 0; border-top: 0; }

.gear { position: relative; display: block; width: 48px; height: 48px; flex-shrink: 0; color: var(--brass); background: currentColor; clip-path: polygon(40% 0,60% 0,62% 12%,70% 16%,81% 8%,94% 21%,86% 32%,89% 40%,100% 42%,100% 58%,89% 60%,86% 68%,94% 79%,81% 92%,70% 84%,62% 88%,60% 100%,40% 100%,38% 88%,30% 84%,19% 92%,6% 79%,14% 68%,11% 60%,0 58%,0 42%,11% 40%,14% 32%,6% 21%,19% 8%,30% 16%,38% 12%); animation: turn 20s linear infinite; }
.gear::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 2px solid var(--sepia); }
.gear span { position: absolute; inset: 31%; border-radius: 50%; background: var(--parchment); border: 2px solid var(--sepia); }
.brand-gear { width: 44px; height: 44px; }
.hero-gear { position: absolute; z-index: 1; width: 100px; height: 100px; right: -22px; top: -36px; filter: drop-shadow(0 2px 1px #704214); }
.hero-gear span { background: var(--teal); }
.margin-gear { width: 40px; height: 40px; margin-top: 1.25rem; opacity: .9; }
.margin-gear span { background: var(--ivory); }

.orientation { margin-top: var(--section-gap); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.section-heading { min-width: 0; }
.section-heading h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); max-width: 22ch; margin-block: .75rem 1rem; }
.section-heading p:not(.eyebrow) { max-width: 45ch; }
.status-note { background: var(--ivory); border: 3px solid var(--brass); border-radius: 8px; padding: 2rem; box-shadow: 0 0 10px #7042141c; position: relative; }
.note-tab { display: inline-block; background: var(--mahogany); color: var(--ivory); text-shadow: none; border-radius: 3px; font-size: 1rem; margin: -3.1rem 0 1.25rem; padding: .35rem 1rem; }
.status-note .text-link { margin-top: .5rem; }
.journal-index { margin-top: var(--section-gap); }
.journal-index .section-heading { margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.journal-card { grid-column: span 5; display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 1.75rem; border: 3px solid var(--brass); background: var(--ivory); border-radius: 8px; position: relative; box-shadow: 0 0 10px #70421410; transition: transform 480ms var(--spring), box-shadow 240ms ease; }
.journal-card::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sepia); background: var(--brass); position: absolute; top: 12px; right: 12px; }
.journal-card:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 9px 10px #70421426; }
.journal-card h3 { font-size: 1.5rem; margin-block: 1.1rem .75rem; max-width: 22ch; }
.journal-card > p:not(.eyebrow) { margin-bottom: 1.25rem; }
.card-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding-block: .5rem; margin-top: auto; font-size: 1rem; font-weight: 700; }
.card-large { grid-column: span 7; grid-row: span 2; background-color: var(--brass); }
.card-large h3 { font-size: 2.25rem; max-width: 10ch; margin-top: 2rem; }
.card-large > p:not(.eyebrow) { max-width: 32ch; font-size: 1.125rem; }
.card-large .eyebrow { color: var(--mahogany); }
.card-large .card-link { margin-top: 2rem; }
.card-teal { background: var(--teal); color: var(--ivory); text-shadow: none; }
.card-teal .eyebrow { color: var(--ivory); }
.card-teal a:focus-visible { outline-color: var(--ivory); }
.card-wide { grid-column: span 7; }
.card-mahogany { grid-column: span 12; color: var(--ivory); text-shadow: none; background-color: var(--mahogany); display: grid; grid-template-columns: 1.1fr 1.2fr auto; gap: 1rem 2rem; align-items: center; }
.card-mahogany .eyebrow { color: var(--parchment); grid-column: 1; }
.card-mahogany h3 { grid-column: 1; margin-block: 0; }
.card-mahogany > p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.card-mahogany .card-link { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.card-mahogany a:focus-visible { outline-color: var(--ivory); }
.myth-shelf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; margin-top: var(--section-gap); }
.reveal-all { margin-top: 1.5rem; }
.myth-note { background: var(--ivory); border: 3px solid var(--brass); border-radius: 8px; box-shadow: 0 0 10px #7042141b; }
.myth-note + .myth-note { margin-top: 1rem; }
.myth-note summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 80px; padding: 1rem 1.25rem; list-style: none; cursor: pointer; font-size: 1.125rem; font-weight: 700; }
.myth-note summary::-webkit-details-marker { display: none; }
.mechanical-toggle { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--sepia); border-radius: 50%; background: var(--brass); font-size: 1.5rem; line-height: 1; transition: transform 480ms var(--spring); }
.myth-note[open] .mechanical-toggle { transform: rotate(45deg); }
.myth-answer { border-top: 1px solid #70421440; padding: 1.25rem; }
.home-reading { margin-top: var(--section-gap); }
.home-reading .reading-list { max-width: 900px; margin-inline: auto; }

.journal-top { padding-top: 3rem; padding-bottom: 3rem; }
.journal-top h1 { margin-top: 1.25rem; max-width: 24ch; }
.article-lead { max-width: 58ch; margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; }
.journal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
.margin-rail { position: sticky; top: 1.5rem; min-width: 0; }
.margin-rail nav { border-top: 3px solid var(--brass); padding-top: 1rem; }
.margin-rail nav a { display: flex; align-items: center; min-height: 44px; padding-block: .55rem; line-height: 1.4; font-size: 1rem; }
.margin-rail nav .eyebrow { margin-bottom: .75rem; }
.margin-note { position: relative; background: var(--ivory); border: 3px solid var(--brass); border-radius: 8px; padding: 1.25rem; margin-top: 2rem; box-shadow: 0 0 10px #b8733330; }
.margin-note::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; top: -12px; left: 24px; background: var(--brass); border: 2px solid var(--sepia); box-shadow: 0 0 10px #d46a0060; }
.margin-note .eyebrow { margin-bottom: .75rem; }
.article-prose { min-width: 0; max-width: var(--measure); }
.article-section { margin-bottom: clamp(3rem, 5vw, 5rem); scroll-margin-top: 2rem; }
.article-section > h2 { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 3px solid var(--brass); }
.article-section > p { max-width: var(--measure); }
.definition-block { padding-left: 1.25rem; border-left: 3px solid var(--brass); margin-top: 1.75rem; }
.definition-block h3 { margin-bottom: .75rem; }
.question-block { margin-top: 1.75rem; }
.question-block h3 { margin-bottom: .75rem; }
.question-block + p { margin-top: 2rem; }
.check-procedure { counter-reset: check; list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.check-procedure li { border: 3px solid var(--brass); border-radius: 8px; background: var(--ivory); padding: 1.5rem; margin-bottom: 1rem; position: relative; }
.check-procedure h3 { padding-bottom: .5rem; }
.lookup-links { display: flex; align-items: stretch; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.bill-list { padding: 0; margin: 2rem 0; border-top: 3px solid var(--brass); }
.bill-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid #70421450; }
.bill-list dt { font-size: 1.125rem; font-weight: 700; }
.bill-list dd { margin: 0; font-size: 1rem; }
.reading-illustration { margin-top: 2rem; border: 3px solid var(--brass); border-radius: 8px; background: var(--ivory); overflow: hidden; }
.reading-illustration img { width: 100%; }
.reading-illustration figcaption { padding: 1rem 1.25rem; font-size: 1rem; }
.urgent-note { border: 3px solid var(--brass); border-top: 8px solid var(--mahogany); background: var(--ivory); padding: 1.75rem; border-radius: 8px; box-shadow: 0 0 10px #b8733335; }
.urgent-note > h2 { border-bottom: 0; padding-bottom: 0; }
.reading-list { border-block: 3px solid var(--brass); padding-block: 1.75rem; }
.reading-list h2 { margin-top: .75rem; }
.reading-list ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.reading-list li { padding-block: 1rem; border-top: 1px solid #70421445; }
.reading-list .source-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: .55rem; gap: .5rem; font-weight: 700; font-size: 1rem; }
.reading-list li p { margin-top: .25rem; max-width: 64ch; }
.next-note { border: 3px solid var(--brass); border-radius: 8px; padding: 2rem; margin-top: 3rem; background: var(--ivory); box-shadow: 7px 7px 0 #b5a64240; }
.next-note h2 { margin-block: .75rem 1rem; }
.next-note .button { margin-top: 1.5rem; }
.error-page { min-height: 50vh; padding-block: 4rem; }
.error-page h1 { margin-block: 1rem 1.5rem; }
.error-page .button { margin-top: 2rem; }

.site-footer { border-top: 3px solid var(--brass); background: var(--mahogany); color: var(--ivory); text-shadow: none; padding-block: 2.5rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.footer-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.site-footer p { max-width: 56ch; font-size: 1rem; }
.site-footer .footer-title { font-size: 1.5rem; }
.site-footer nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; justify-content: end; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; padding-block: .55rem; font-size: 1rem; }
.site-footer a:focus-visible { outline-color: var(--ivory); }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes arrive { from { transform: translateY(16px); } to { transform: translateY(0); } }

@media (max-width: 1000px) {
  .hero { gap: 2rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
  .topic-links { gap: .75rem; }
  .journal-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 2rem; }
  .card-mahogany { grid-template-columns: 1fr 1fr; }
  .card-mahogany .card-link { grid-column: 1 / -1; grid-row: auto; }
  .footer-inner { gap: 2rem; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 1.25rem; }
  .masthead { min-height: 96px; gap: 1rem; }
  .wordmark { font-size: 1.45rem; gap: .65rem; }
  .wordmark-sub { font-size: 1rem; letter-spacing: .035em; }
  .brand-gear { width: 32px; height: 32px; }
  .masthead-note { display: none; }
  .topic-inner { gap: .8rem; padding-block: .75rem; }
  .topic-group { padding-right: .65rem; }
  .topic-label { font-size: 1rem; letter-spacing: 0; text-transform: none; }
  .topic-links { display: block; margin-top: .3rem; }
  .topic-links a { min-height: 48px; padding-block: .45rem; font-size: 1rem; line-height: 1.3; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2rem; }
  .hero h1 { max-width: 15ch; font-size: 2.5rem; }
  .hero-copy > p { max-width: 100%; }
  .hero-lead { font-size: 1.125rem; }
  .hero-art { max-width: 460px; margin: 1.5rem 10px 0 0; }
  .hero-actions { gap: .5rem 1rem; margin-top: 1.5rem; }
  .hero-gear { right: -13px; width: 80px; height: 80px; top: -28px; }
  .orientation, .myth-shelf { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .status-note { padding: 1.5rem; }
  .note-tab { margin-top: -2.6rem; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-card { grid-column: 1; grid-row: auto; padding: 1.5rem; }
  .card-large h3 { max-width: 16ch; font-size: 1.75rem; margin-top: 1.25rem; }
  .card-large > p:not(.eyebrow) { font-size: 1rem; }
  .card-large .card-link { margin-top: 0; }
  .card-mahogany { display: flex; gap: 0; }
  .card-mahogany h3 { margin-block: 1rem .75rem; }
  .card-mahogany > p:not(.eyebrow) { margin-bottom: 1rem; }
  .journal-card:hover { transform: none; }
  .journal-top { padding-top: 2rem; padding-bottom: 2rem; }
  .journal-top h1 { font-size: 2.25rem; max-width: 20ch; }
  .article-lead { font-size: 1.125rem; }
  .journal-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .margin-rail { position: static; }
  .margin-rail nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; }
  .margin-rail nav .eyebrow { grid-column: 1 / -1; }
  .margin-note { margin-top: 1.5rem; }
  .margin-gear { position: absolute; right: 16px; top: -15px; width: 32px; height: 32px; margin: 0; }
  .margin-note::before { display: none; }
  .check-procedure li { padding: 1.25rem; }
  .bill-list > div { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .next-note, .urgent-note { padding: 1.5rem; }
  .next-note { box-shadow: 5px 5px 0 #b5a64240; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .site-footer nav { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; text-shadow: none; color: #320b06; }
  .site-header, .margin-rail, .site-footer, .hero-art, .reveal-all, .next-note { display: none; }
  .journal-layout, .hero { display: block; }
  .wrap { width: 100%; padding: 0; }
  .article-prose { max-width: none; }
  .article-section { break-inside: avoid; margin-bottom: 2rem; }
  .button { box-shadow: none; }
}
