/* Remix My Lit — editorial stylesheet. Newsreader © Production Type, SIL OFL 1.1 (see /assets/fonts/OFL-Newsreader.txt) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/newsreader-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/newsreader-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/newsreader-latin-600-normal.woff2) format("woff2"); }

:root {
  --paper: #fbf8f1;
  --paper-2: #f3eee2;
  --paper-3: #ebe4d3;
  --ink: #1d1b18;
  --ink-2: #4a453d;
  --ink-3: #6b6458;
  --rule: #d9d1bf;
  --accent: #7a2e22;      /* oxblood ink */
  --accent-2: #2f4a5c;    /* archive blue-grey */
  --kids: #5c6b2f;        /* olive for the young-writers sub-section */
  --focus: #b4532a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --wide: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.62; font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; font-family: var(--sans); }
.skip:focus { left: 1rem; top: 1rem; }
.small { font-size: .9rem; line-height: 1.5; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.45rem; letter-spacing: .01em; }
.brand .mark { width: 2rem; height: 2rem; color: var(--accent); }
.brand-name em, .brand-foot em { font-style: italic; color: var(--accent); }
.menu summary { list-style: none; cursor: pointer; font-family: var(--sans); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: 2rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1rem 1.25rem; box-shadow: 0 12px 24px -16px rgba(0,0,0,.25); }
.menu nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.menu nav li { break-inside: avoid; }
.menu nav a { display: block; padding: .55rem 0; color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: 1rem; border-bottom: 1px solid var(--paper-3); }
.menu nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-search { display: flex; gap: .5rem; margin-top: 1rem; }
.nav-search input, .search-row input { flex: 1; min-width: 0; font: inherit; font-family: var(--sans); font-size: 1rem; padding: .6rem .75rem; border: 1px solid var(--ink-3); border-radius: 2px; background: #fff; color: var(--ink); }
.nav-search button, .search-row button, .filters button { font-family: var(--sans); font-size: .9rem; padding: .6rem 1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 2px; cursor: pointer; }
.desk-nav { display: none; }
@media (min-width: 64rem) {
  .menu { display: none; }
  .desk-nav { display: flex; align-items: center; gap: 1.4rem; }
  .desk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
  .desk-nav a { display: block; padding: .3rem 0; font-family: var(--sans); font-size: .875rem; color: var(--ink-2); text-decoration: none; }
  .desk-nav a:hover { color: var(--accent); }
  .desk-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
  .desk-nav .search-link { border: 1px solid var(--rule); border-radius: 2rem; padding: .3rem .85rem; }
}

/* article */
main { padding-bottom: 4rem; }
.article { max-width: var(--measure); margin: 0 auto; }
.article-head { padding: 2rem 0 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.25rem; padding: 0; font-family: var(--sans); font-size: .8rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 .35rem 0 .1rem; color: var(--rule); }
.crumbs a { color: var(--ink-3); }
.eyebrow { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.section-kids .eyebrow { color: var(--kids); }
.section-archive .eyebrow, .kind-archive-entry .eyebrow, .kind-historical .eyebrow { color: var(--accent-2); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); margin: 0 0 .75rem; }
.standfirst { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 .75rem; font-style: italic; }
.meta { font-family: var(--sans); font-size: .82rem; color: var(--ink-3); margin: .5rem 0 0; }
.prose h2 { font-size: 1.75rem; margin: 2.6rem 0 .8rem; padding-top: .25rem; }
.prose h3 { font-size: 1.32rem; margin: 2rem 0 .5rem; font-weight: 600; }
.prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: .35rem; }
.prose li > ul, .prose li > ol { margin: .35rem 0 0; }
.prose > p:first-child { font-size: 1.28rem; line-height: 1.55; color: var(--ink-2); }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem auto; width: 30%; }
.prose code { font-size: .9em; background: var(--paper-2); padding: .05em .3em; border-radius: 2px; }
.prose strong { font-weight: 600; }
a.ext::after { content: "↗"; font-family: var(--sans); font-size: .7em; margin-left: .15em; text-decoration: none; display: inline-block; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
th { font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* callouts */
.callout { margin: 1.75rem 0; padding: 1rem 1.25rem; background: var(--paper-2); border-left: 3px solid var(--ink); font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-try-this { border-color: var(--accent); }
.callout-for-grown-ups { border-color: var(--kids); }
.callout-archive-status, .callout-historical-note { border-color: var(--accent-2); background: #eef1f2; }
.archive-box { margin: 0 0 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); background: #fff; font-family: var(--sans); font-size: .9rem; line-height: 1.5; }
.archive-box dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.archive-box dt { color: var(--ink-3); }
.archive-box dd { margin: 0; }
.archive-box h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 .75rem; }
@media (max-width: 30rem) { .archive-box dl { grid-template-columns: 1fr; } .archive-box dd { margin-bottom: .5rem; } }

/* toc */
.toc { margin: 0 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); font-family: var(--sans); font-size: .9rem; }
.toc h2 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem; color: var(--ink-3); font-family: var(--sans); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .2rem 0; }
.toc a { color: var(--ink-2); }

/* cards */
.children, .related, .sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.children h2, .related h2, .sources h2 { font-size: 1.45rem; margin: 0 0 1rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem 1.1rem 1.15rem; background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.card a:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.card-label { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); min-height: 1em; }
.card-title { font-size: 1.2rem; line-height: 1.25; }
.card-desc { font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.filters button { background: transparent; color: var(--ink); border-color: var(--rule); border-radius: 2rem; padding: .4rem .9rem; font-size: .85rem; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.archive-cards li[hidden] { display: none; }

/* sources */
.sources ol { padding-left: 1.3rem; font-size: 1rem; }
.sources li { margin-bottom: .55rem; }
.status { display: inline-block; font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; padding: .05rem .45rem; margin-left: .35rem; border-radius: 1rem; border: 1px solid var(--rule); color: var(--ink-3); vertical-align: middle; white-space: nowrap; }
.status-current { border-color: #7c9a6b; color: #3f5a30; }
.status-historical { border-color: #b9a07a; color: #6d5530; }
.status-archived { border-color: #8aa1b1; color: #2f4a5c; }

/* worksheets */
.worksheet { margin: 2rem 0; padding: 1.5rem; background: #fff; border: 2px solid var(--ink); }
.worksheet h2, .worksheet h3 { margin-top: 1rem; }
.worksheet h2:first-child, .worksheet h3:first-child { margin-top: 0; }
.blank { display: inline-block; min-width: 12rem; width: 100%; border-bottom: 1px solid var(--ink-3); height: 1.6em; vertical-align: bottom; }
.worksheet li .blank, .worksheet p .blank { width: auto; flex: 1; }
.draw-box, .worksheet .box { min-height: 12rem; border: 1px dashed var(--ink-3); margin: 1rem 0; }
table.panels { table-layout: fixed; }
table.panels td { height: 11rem; border: 1px solid var(--ink); }
.print-btn { font-family: var(--sans); font-size: .9rem; padding: .55rem 1rem; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; border-radius: 2px; }

/* search */
.search-ui label { display: block; font-family: var(--sans); font-size: .85rem; margin-bottom: .4rem; }
.search-row { display: flex; gap: .5rem; }
.search-results { padding-left: 1.2rem; }
.search-results li { margin: 1rem 0; }
.search-results .sr-sec { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; }
.search-results a { font-size: 1.2rem; }
.search-results p { margin: .2rem 0 0; color: var(--ink-2); font-size: 1rem; }

/* home */
.home-hero { max-width: 52rem; margin: 0 auto; padding: 3.5rem 0 2.5rem; text-align: center; }
.home-hero .eyebrow { margin-bottom: 1.1rem; }
.home-hero h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); line-height: 1.02; margin: 0 0 1.25rem; }
.home-hero h1 em { color: var(--accent); }
.home-hero .lede { font-size: 1.32rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; margin: 0 auto 1.75rem; }
.ornament { display: block; width: 7rem; margin: 0 auto; color: var(--ink-3); }
.btn-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--sans); font-size: .92rem; padding: .7rem 1.2rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; border-radius: 2px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn:hover { text-decoration: none; background: var(--accent); border-color: var(--accent); color: #fff; }
.home-band { padding: 3rem 0; border-top: 1px solid var(--rule); }
.home-band > h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 .5rem; }
.home-band > .band-intro { color: var(--ink-2); max-width: 44rem; margin: 0 0 1.75rem; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: start; } }
.essay p { margin: 0 0 1.1rem; }
.essay p:first-of-type::first-letter { float: left; font-size: 4.1rem; line-height: .82; padding: .35rem .5rem 0 0; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.15rem 1.25rem; font-size: 1rem; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--accent-2); }
.timeline .when { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.panel { background: #fff; border: 1px solid var(--rule); padding: 1.4rem 1.5rem; }
.panel h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.home-kids { background: var(--paper-2); padding: 2rem 1.25rem; margin: 0 -1rem; }
@media (min-width: 48rem) { .home-kids { padding: 2.25rem 2rem; margin: 0; } }
.home-kids .card-label { color: var(--kids); }

/* footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper-2); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }
.brand-foot { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; margin: 0 0 .5rem; }
.brand-foot .mark { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.foot-h { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; font-size: 1rem; }
.site-footer a { color: var(--ink); }
.disclaimer { color: var(--ink-2); }
.foot-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-3); }

@media print {
  .site-header, .site-footer, .crumbs, .related, .toc, .sources, .print-btn, .skip, .children { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .worksheet { border: 1px solid #000; page-break-inside: auto; }
  a { color: #000; text-decoration: none; }
  a.ext::after { content: ""; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
