:root {
  color-scheme: dark;
  --ink: #18242a;
  --deep: #111b20;
  --panel: #202e33;
  --line: #48545a;
  --paper: #f4eddf;
  --paper-line: #c7bba9;
  --muted: #d3cbbf;
  --pale: #e8dac8;
  --gold: #e0b280;
  --rust: #70442d;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.07; }
h1, h2, h3, summary { overflow-wrap: anywhere; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.35rem); }
p { max-width: 66ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--rust); }
.wrap { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 9; padding: .6rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 5.2rem; }
.brand { display: inline-flex; align-items: center; gap: .67rem; font: 1.12rem/1.02 var(--serif); text-decoration: none; white-space: nowrap; }
.brand img { width: 2.18rem; height: 2.18rem; flex: none; }
.brand small { display: block; margin-top: .3rem; font: 650 .59rem/1.15 var(--sans); letter-spacing: .115em; text-transform: uppercase; color: var(--pale); }
.main-nav, .locale { display: flex; align-items: center; gap: clamp(.6rem, 1.8vw, 1.65rem); }
.main-nav a, .locale a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .875rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--gold); text-decoration: underline; }
.locale { gap: .3rem; }
.locale a { padding-inline: .52rem; font-size: .68rem; font-weight: 700; letter-spacing: .045em; }
.locale a:hover { color: var(--gold); }
.locale [aria-current] { color: var(--gold); box-shadow: inset 0 -1px var(--gold); }
.hero { background: radial-gradient(ellipse at 20% 15%, #2e3b3e, var(--ink) 62%); }
.hero-grid { display: grid; min-height: min(34rem, 46vw); grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: center; gap: clamp(2rem, 4vw, 4.2rem); padding-block: clamp(2.8rem, 6.5vw, 6rem); }
.eyebrow { color: var(--gold); font: 750 .7rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.hero h1 { font-size: clamp(3.8rem, 6.7vw, 7.55rem); line-height: .88; letter-spacing: -.07em; margin-top: .7rem; }
.hero-tag { color: var(--gold); font: 500 clamp(1.31rem, 2.2vw, 1.95rem)/1.19 var(--serif); margin-top: 1.45rem; }
.hero-intro { color: var(--muted); margin-top: 1rem; }
.hero-photo { background: #9d886e; padding: .34rem; border: 1px solid #a58a6e; box-shadow: .8rem .8rem 0 #0f191c69; }
.hero-photo img { width: 100%; aspect-ratio: 1.26; object-fit: cover; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; border: 1px solid transparent; border-radius: .18rem; padding: .55rem .92rem; color: var(--ink); font: 750 .81rem/1.35 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.primary { background: var(--gold); }
.primary:hover { background: #f3c595; }
.outline { border-color: #7f898a; color: var(--paper); background: transparent; }
.outline:hover { color: var(--gold); border-color: var(--gold); }
.dark-button { background: var(--ink); color: var(--paper); }
.dark-button:hover { background: #364b52; }
.arrow { margin-inline-start: .2rem; flex: none; font-family: var(--sans); }
.departments { background: var(--deep); padding-block: 2.2rem 2.55rem; }
.section { padding-block: clamp(2.6rem, 5vw, 5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.3rem; }
.section-head p, .inner-head p, .section > .wrap > h2 + p { margin-top: .65rem; }
.section-head p, .inner-head p, .section > .wrap > h2 + p { color: var(--muted); }
.paper .section-head p { color: #4b514f; }
.department-menu { position: relative; width: min(100%, 20rem); }
.department-menu summary { min-height: 2.85rem; padding: .59rem 2.15rem .59rem .8rem; border: 1px solid #778283; background: var(--panel); cursor: pointer; list-style: none; font-size: .875rem; font-weight: 650; }
.department-menu summary::-webkit-details-marker { display: none; }
.department-menu summary::after { content: '⌄'; position: absolute; right: .85rem; top: .45rem; color: var(--gold); }
.department-menu[open] summary::after { content: '⌃'; }
.department-options { position: absolute; z-index: 2; left: 0; right: 0; top: 100%; background: var(--panel); border: 1px solid #778283; border-top: 0; max-height: 21rem; overflow: auto; box-shadow: 0 .9rem 1.55rem #1119; }
.department-options a, .category-buttons a { display: flex; justify-content: space-between; align-items: center; gap: .35rem; min-height: 2.75rem; text-decoration: none; font-weight: 650; }
.department-options a { padding: .45rem .8rem; font-size: .88rem; }
.department-options a:hover, .category-buttons a:hover { background: #3a484c; color: var(--gold); }
.category-buttons { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .42rem; margin-top: .75rem; }
.category-buttons a { border: 1px solid var(--line); color: var(--pale); padding: .45rem .55rem; font-size: .79rem; overflow-wrap: anywhere; }
.paper { color-scheme: light; background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--rust); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; font-size: .85rem; font-weight: 750; }
.text-link:hover, .story h3 a:hover, .category-grid h2 a:hover { text-decoration: underline; }
.story-layout { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.55fr); gap: 1.45rem 2.05rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .9rem; }
.story { min-width: 0; }
.story-media { display: block; background: #c6b499; overflow: hidden; }
.story-media img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.story-media:hover img { opacity: .84; }
.story-text { padding-top: .52rem; }
.story h3 { font-size: clamp(1.02rem, 1.65vw, 1.47rem); margin-top: .17rem; }
.story h3 a, .category-grid h2 a { text-decoration: none; }
.featured .story-media img { aspect-ratio: 1.1; }
.featured .story-text { border-bottom: 1px solid var(--paper-line); padding-block: .85rem 1.25rem; }
.featured h3 { font-size: clamp(1.65rem, 3.35vw, 2.9rem); }
.featured p { margin-top: .75rem; color: #4b514f; }
.worksheet-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.6rem; }
.worksheet-list li { border-bottom: 1px solid var(--line); }
.worksheet-list a { align-items: center; display: flex; justify-content: space-between; gap: .45rem; padding-block: .62rem; min-height: 3.05rem; text-decoration: none; line-height: 1.35; font-weight: 600; }
.worksheet-list a:hover span:first-child { text-decoration: underline; }
.worksheet-list .arrow { color: var(--gold); }
.paper .worksheet-list li { border-color: var(--paper-line); }
.paper .worksheet-list .arrow { color: var(--rust); }
.footer { background: var(--deep); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.15rem; padding-block: 2.1rem; }
.footer p { margin-top: .55rem; color: var(--muted); font-size: .83rem; }
.inner-head { padding-block: clamp(1.6rem, 4vw, 3.6rem) clamp(2.1rem, 6vw, 4.4rem); }
.inner-head h1 { font-size: clamp(2.65rem, 6vw, 5.75rem); max-width: 20ch; letter-spacing: -.045em; }
.inner-head p { font-size: clamp(1rem, 1.6vw, 1.22rem); margin-top: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.15rem; padding: 0; color: var(--pale); font-size: .78rem; }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: .45rem; color: #acb2ad; }
.category-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem; }
.category-grid article { border-top: 1px solid var(--paper-line); padding-top: .75rem; }
.category-grid h2 { font-size: 1.66rem; }
.category-grid p { margin-block: .45rem; }
.guide-grid { margin-top: 1.3rem; }
.guide-grid h3 { font-size: clamp(1.2rem, 2.3vw, 1.65rem); }
.compact, .reading { max-width: 52rem; }
.compact > .button + h2 { margin-top: 1.6rem; }
.compact .worksheet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-top: 1.25rem; }
.reading { max-width: 46rem; font-size: 1.075rem; }
.reading section + section { margin-top: 2.05rem; }
.reading section > h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); margin-bottom: .6rem; }
.reading section p + p { margin-top: .8rem; }
.article-img { max-width: 30rem; margin-bottom: 1.65rem; }
.article-img img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.checklist li + li { margin-top: .4rem; }
.worksheet { border: 1px solid var(--paper-line); padding: clamp(.9rem, 4vw, 1.75rem); background: #fbf5e9; }
.worksheet label { display: block; margin-top: .85rem; font-size: .9rem; font-weight: 700; }
.worksheet input, .worksheet textarea { width: 100%; border: 1px solid #85796c; border-radius: .15rem; padding: .58rem; background: #fffcf5; color: var(--ink); font: 1rem/1.4 var(--sans); }
.worksheet textarea { min-height: 7.8rem; margin-top: .65rem; }
.notes-privacy { font-size: .82rem; margin-block: .85rem; }
.worksheet output { margin-inline-start: .55rem; font-size: .88rem; }
@media (max-width: 1000px) {
  .category-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .story-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); }
}
@media (max-width: 820px) {
  .wrap { width: min(100% - 2.5rem, 72rem); }
  .nav { flex-wrap: wrap; gap: .3rem 1.25rem; padding-block: .5rem; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: .35rem .7rem; border-top: 1px solid var(--line); }
  .main-nav a { font-size: .81rem; }
  .worksheet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 2.7rem; }
  .hero h1 { font-size: clamp(3.1rem, 11vw, 5.7rem); }
  .hero-photo { box-shadow: .41rem .41rem 0 #0f191c69; }
  .hero-photo img { aspect-ratio: 1.53; }
  .section-head { align-items: start; flex-direction: column; gap: .55rem; }
  .category-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-layout { grid-template-columns: 1fr; }
  .featured .story-media img { aspect-ratio: 1.55; }
  .guide-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 1.75rem); }
  .nav { column-gap: .25rem; }
  .brand { gap: .36rem; }
  .main-nav a { font-size: .75rem; line-height: 1.25; }
  .locale a { padding-inline: .42rem; }
  .category-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet-list, .compact .worksheet-list { grid-template-columns: 1fr; }
  .category-grid, .footer-inner { display: grid; grid-template-columns: 1fr; }
  .footer-inner .button { justify-self: start; }
}
