:root {
  color-scheme: light;
  --cream: #f9f3e9;
  --paper: #fffbf4;
  --ink: #262d23;
  --muted: #525449;
  --green: #294332;
  --line: #ded5c5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--green); }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #87623d; outline-offset: 4px; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.7rem, 6.25vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.15rem; }
.shell { width: min(100% - 5rem, 1260px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 10; transform: translateY(-160%); padding: .6rem 1rem; background: white; }
.skip:focus { transform: none; }
.top { position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.nav-row { min-height: 72px; display: flex; gap: clamp(1.5rem, 4vw, 4.1rem); align-items: center; }
.nav-row nav, .nav-actions, .footer-links { display: flex; gap: clamp(.7rem, 2.1vw, 1.75rem); align-items: center; }
.nav-row nav, .nav-actions { font-size: .9rem; font-weight: 630; }
.nav-row a, .menu summary, .wordmark { text-decoration: none; }
.nav-row nav > a:hover, .footer-links a:hover { text-decoration: underline; }
.nav-actions { margin-left: auto; }
.wordmark { display: inline-flex; white-space: nowrap; gap: .65rem; align-items: center; font-family: var(--serif); font-size: 1.48rem; letter-spacing: -.045em; line-height: 1; }
.wordmark i { display: block; width: 1.45rem; height: 1.45rem; background: url("/assets/icon.png") center / cover; border-radius: .2rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding-block: .55rem; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "⌄"; font-size: .9em; padding-left: .33em; }
.menu[open] summary::after { content: "⌃"; }
.popover { position: absolute; z-index: 4; top: calc(100% + .24rem); left: -.65rem; min-width: 8rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; padding: .38rem; box-shadow: 0 10px 35px #292d2524; }
.popover a { display: block; padding: .35rem .68rem; border-radius: .25rem; }
.popover a:hover, .popover a[aria-current] { background: #e9eadc; }
.categories-popover { width: min(19rem, 80vw); max-height: min(74vh, 32rem); overflow: auto; }
.popover-index { font-weight: 760; border-bottom: 1px solid var(--line); }
.language .popover { right: 0; left: auto; }
.nav-catalog { display: inline-flex; border: 1px solid #5f6d5d; border-radius: 2rem; padding: .48rem .87rem; }
.nav-catalog:hover { background: #ebe8d7; }
.hero { margin-top: 2rem; min-height: 524px; display: grid; grid-template-columns: 1fr .95fr; background: #f1e7d5; border: 1px solid #e6dac5; border-radius: 1.55rem; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 6vw, 5.65rem); }
.hero-label { color: #4e5b41; font-size: .74rem; font-weight: 770; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.2rem; }
.hero h1 { max-width: 10ch; line-height: .98; letter-spacing: -.067em; }
.hero-intro { max-width: 42ch; margin-top: 1.4rem; font-size: clamp(.98rem, 1.4vw, 1.12rem); color: #45463a; }
.hero-photo { position: relative; min-height: 0; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 53%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: .45rem; text-decoration: none; padding: .59rem .92rem; font-size: .88rem; font-weight: 700; line-height: 1.4; text-align: center; }
.button.dark { color: #fffcf1; background: var(--green); }
.button.dark:hover { background: #385341; }
.button.outline { border-color: #786f60; }
.button.outline:hover { background: #fffbf087; }
.section { margin-top: clamp(3.2rem, 8vw, 6.6rem); }
.route-section { margin-top: clamp(2.75rem, 5.5vw, 4.5rem); }
.section-heading { margin-bottom: 1.45rem; }
.section-heading p, .collection-head > p, .detail-head > p:last-child { color: var(--muted); max-width: 64ch; margin-top: .7rem; }
.route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.route-chip { display: flex; align-items: center; gap: .6rem; padding: .8rem; font-size: .95rem; line-height: 1.3; font-weight: 680; text-decoration: none; min-height: 65px; border: 1px solid #0001; border-radius: .55rem; }
.route-chip:hover { text-decoration: underline; }
.route-chip.fit { background: #e4e9d8; }
.route-chip.costs { background: #f3e6c6; }
.route-chip.evidence { background: #e9e3d9; }
.route-chip.care { background: #f2e3d9; }
.route-symbol { font-size: 1.35rem; flex: 0 0 1.3em; text-align: center; color: #4c5841; }
.route-arrow { margin-left: auto; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.story { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.story-link { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.story-link:focus-visible { outline-offset: -4px; }
.story img { width: 100%; height: auto; aspect-ratio: 460 / 290; }
.story-text { padding: 1.15rem 1.25rem 1.25rem; }
.story h3 { font-family: var(--serif); font-size: clamp(1.22rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.2; letter-spacing: -.022em; }
.story-link:hover h3 { text-decoration: underline; }
.story-description { margin-top: .55rem; font-size: .91rem; color: var(--muted); line-height: 1.55; }
.eyebrow { color: #4b5c42; font-size: .71rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem; }
.featured-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.featured-grid .story { grid-column: span 2; }
.featured-grid .story:nth-child(-n + 4) { grid-column: span 3; }
.featured-grid .story:nth-child(-n + 4) .story-link { display: grid; grid-template-columns: .92fr 1.08fr; }
.featured-grid .story:nth-child(-n + 4) img { height: 100%; min-height: 165px; }
.section-action { margin-top: 1.3rem; }
.works-band { background: #e9ecdf; padding: clamp(1.4rem, 4vw, 3rem); border-radius: .9rem; }
.record { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid #c3cbbc; border-radius: .58rem; background: #f9f9ef; }
.record h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin-bottom: .5rem; }
.record-case { color: #54584d; margin-top: .5rem; }
.record fieldset { border: 0; margin: 0; padding: 0; }
.record legend { margin-bottom: .4rem; font-weight: 700; }
.record label { display: flex; align-items: baseline; gap: .5rem; width: fit-content; cursor: pointer; }
.record input { accent-color: var(--green); inline-size: 1rem; block-size: 1rem; flex: 0 0 1rem; }
.record output { display: block; margin-top: .65rem; font-weight: 700; color: #5f4936; }
.record output[data-ready="true"] { color: #245237; }
.category-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.category-card { display: grid; align-content: center; gap: .14rem; background: var(--paper); border: 1px solid var(--line); border-radius: .45rem; padding: .55rem .88rem; }
.category-out { font-weight: 690; text-decoration: none; }
.category-out:hover { text-decoration: underline; }
.category-note { font-size: .82rem; color: var(--muted); }
footer { margin-top: clamp(3.5rem, 8vw, 7rem); padding: 1.8rem 0 2.4rem; background: #f0e7d9; border-top: 1px solid var(--line); }
.footer-grid { display: flex; gap: 1.2rem; justify-content: space-between; align-items: start; }
.footer-grid p, .footer-links { font-size: .86rem; color: var(--muted); margin-top: .5rem; }
.footer-links { flex-wrap: wrap; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 1.35rem; padding: 0; gap: .6rem; color: var(--muted); font-size: .86rem; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: #777066; }
.collection, .detail { margin-top: clamp(1.6rem, 5vw, 3.4rem); }
.collection-head, .detail-head { margin-bottom: 1.6rem; }
.collection-head p, .detail-head > p:last-child { font-size: 1.12rem; }
.collection h1, .detail h1 { font-size: clamp(2.35rem, 5.2vw, 4.45rem); }
.index-group { margin-top: 2.6rem; }
.worksheet-links { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.worksheet-links a { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; height: 100%; padding: .7rem .85rem; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; }
.worksheet-links a:hover { text-decoration: underline; }
.detail { max-width: 950px; }
.detail-head h1 { max-width: 22ch; }
.detail-photo { margin: 1.8rem 0; }
.detail-photo img { width: min(100%, 660px); height: auto; aspect-ratio: 460 / 290; border-radius: .65rem; }
.prose { max-width: 72ch; font-size: 1.055rem; }
.prose section + section { margin-top: 1.95rem; }
.prose h2, .related h2 { font-size: clamp(1.52rem, 2.9vw, 2.12rem); margin-bottom: .65rem; }
.prose p { margin: .7rem 0; }
.example { margin: 1.2rem 0 1.9rem; border: 1px solid var(--line); background: var(--paper); border-radius: .6rem; overflow: hidden; }
.example table { border-collapse: collapse; width: 100%; font-size: .92rem; table-layout: fixed; overflow-wrap: anywhere; }
.example caption { text-align: left; padding: .75rem; font-weight: 700; background: #e9eadb; }
.example th, .example td { text-align: left; padding: .58rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.example p { padding: 0 .75rem .35rem; }
.related { margin-top: 2.9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .shell { width: min(100% - 3.25rem, 1260px); }
  .nav-row { gap: 1.35rem; }
  .hero { min-height: 465px; }
  .hero-copy { padding: clamp(2.1rem, 5vw, 4rem); }
}
@media (max-width: 810px) {
  .route-grid, .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid .story, .featured-grid .story:nth-child(-n + 4) { grid-column: auto; }
  .featured-grid .story:nth-child(-n + 4) .story-link { display: flex; }
  .featured-grid .story:nth-child(-n + 4) img { height: auto; min-height: 0; }
  .hero h1 { font-size: clamp(2.7rem, 7.5vw, 4.6rem); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 1.7rem); }
  .nav-row { display: grid; grid-template-columns: 1fr auto; gap: .05rem .5rem; padding: .55rem 0 .3rem; }
  .nav-row nav { grid-column: 1 / -1; grid-row: 2; gap: 1.05rem; }
  .nav-row nav, .nav-actions { font-size: .82rem; }
  .nav-actions { gap: .5rem; }
  .wordmark { font-size: 1.21rem; gap: .35rem; }
  .wordmark i { width: 1.15rem; height: 1.15rem; }
  .nav-catalog { padding: .36rem .5rem; line-height: 1.15; }
  .categories-popover { left: auto; right: -1rem; }
  .hero { grid-template-columns: 1fr; margin-top: .9rem; min-height: auto; border-radius: .8rem; }
  .hero-copy { padding: 1.7rem 1.25rem 1.4rem; }
  .hero-label { margin-bottom: .7rem; }
  .hero-intro, .hero-actions { margin-top: 1rem; }
  .hero-photo { min-height: 240px; max-height: 295px; aspect-ratio: 5 / 3; }
  .hero-photo img { object-position: 50% 55%; }
  .record, .worksheet-links { grid-template-columns: 1fr; gap: .8rem; }
  .footer-grid { display: block; }
  .footer-links { margin-top: .9rem; }
  .story-grid { gap: .6rem; }
  .story-text { padding: .65rem; }
  .story h3 { font-size: 1.1rem; }
  .story-description { font-size: .82rem; }
  .story .eyebrow { font-size: .64rem; }
  .route-chip { padding: .62rem .45rem; font-size: .83rem; }
  .route-symbol { font-size: 1rem; }
  .example th, .example td { padding: .45rem .3rem; }
}
@media (max-width: 360px) {
  .story-grid { grid-template-columns: 1fr; }
  .nav-row nav { gap: .75rem; }
  .hero h1 { font-size: 2.42rem; }
}
