:root {
  color-scheme: light;
  --paper: #f7f0e3;
  --ink: #211819;
  --muted: #635458;
  --line: #c9b9ac;
  --accent: #9e1530;
  --bright: #fff6e5;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(calc(100% - 88px), 1260px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; padding: 12px; background: white; z-index: 4; transform: translateY(-160%); }
.skip:focus { transform: none; }
.topbar { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.wordmark, .nav { display: flex; align-items: center; }
.wordmark { gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.13rem; line-height: 1.06; }
.wordmark-sub { display: block; font: 700 .61rem/1.4 var(--mono); letter-spacing: .10em; }
.nav { gap: clamp(12px, 3vw, 34px); font-size: .88rem; font-weight: 650; }
.nav > a { text-decoration: none; }
.nav > a:hover { color: var(--accent); text-decoration: underline; }
.languages { position: relative; z-index: 2; }
.languages summary { cursor: pointer; min-height: 40px; min-width: 66px; display: grid; grid-auto-flow: column; align-items: center; gap: 5px; list-style: none; padding-inline: 9px; border: 1px solid var(--line); }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: '⌄'; }
.languages ul { position: absolute; top: 100%; right: 0; margin: 6px 0 0; width: max-content; min-width: 155px; background: var(--paper); border: 1px solid var(--line); padding: 5px; list-style: none; box-shadow: 0 10px 18px #21181921; }
.languages a { padding: 7px 10px; display: block; text-decoration: none; }
.languages a:hover, .languages a[aria-current] { background: var(--accent); color: white; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); min-height: 445px; margin-block: 26px 60px; }
.hero-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 42px clamp(16px, 4vw, 62px) 42px 0; }
.eyebrow { color: var(--accent); font: 750 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .11em; margin: 0 0 18px; }
.eyebrow span { margin-right: 5px; opacity: .82; }
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: clamp(3.4rem, 6.6vw, 6.85rem); line-height: .92; letter-spacing: -.062em; }
h2 { font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.intro { max-width: 39ch; font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--muted); margin: 25px 0 28px; }
.button { display: inline-flex; gap: 12px; justify-content: center; align-items: center; min-height: 46px; padding: 10px 16px; text-decoration: none; font-weight: 700; font-size: .93rem; border: 1px solid var(--accent); cursor: pointer; }
.primary { background: var(--accent); color: var(--bright); }
.primary:hover { background: #771122; }
.primary:disabled { opacity: .48; cursor: default; background: var(--accent); }
.outline { color: var(--accent); }
.outline:hover { background: #f0dfd8; }
.hero-image { display: grid; grid-template-rows: 1fr auto; min-width: 0; margin: 0; background: #68152b; }
.hero-image img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; object-position: 40% center; }
.hero-image figcaption { color: var(--bright); background: #39131f; display: flex; gap: 15px; align-items: baseline; padding: 10px 16px; font: 600 .71rem/1.4 var(--mono); }
.hero-image figcaption span { white-space: nowrap; color: #f3a4b0; }
.catalog { border-top: 2px solid var(--ink); scroll-margin-top: 20px; }
.catalog-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); gap: 22px; align-items: center; padding: 27px 0 24px; }
.catalog-head p:not(.eyebrow), .about p:not(.eyebrow) { color: var(--muted); margin: 10px 0 0; }
.picker { background: #eee2d4; padding: 16px; }
.picker label { display: block; font: 750 .72rem/1.4 var(--mono); text-transform: uppercase; margin-bottom: 8px; }
.picker-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.picker select { width: 100%; min-height: 46px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); }
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 26px; }
.directory a { display: grid; align-items: baseline; grid-template-columns: 32px minmax(0,1fr) 16px; gap: 8px; padding: 13px 9px; min-height: 100%; text-decoration: none; }
.directory li { border-bottom: 1px solid var(--line); min-width: 0; }
.directory a:hover { background: #eee2d4; }
.directory .index-no { font: 700 .73rem/1.4 var(--mono); color: var(--accent); }
.directory .arrow { color: var(--accent); text-align: right; }
.directory strong { display: block; }
.directory small { display: block; color: var(--muted); margin-top: 2px; }
.about { margin: 53px 0 30px; background: #eee2d4; padding: clamp(18px,4vw,42px); display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.about > div { max-width: 60ch; }
.about > a { flex: none; }
.footer { border-top: 1px solid var(--line); padding: 18px 0 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: .77rem; color: var(--muted); }
.footer span { font-family: var(--mono); font-weight: 750; }
.footer p { margin: 0; }
@media (max-width: 870px) {
  .shell { width: calc(100% - 46px); }
  .hero { min-height: 370px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 34px); }
  .topbar { min-height: 62px; }
  .nav-index { display: none; }
  .hero { grid-template-columns: 1fr; margin-block: 15px 36px; }
  .hero-copy { padding: 23px 0 28px; }
  .hero-image img { aspect-ratio: 1.56; }
  .catalog-head { grid-template-columns: 1fr; gap: 16px; }
  .directory { grid-template-columns: 1fr; }
  .about { align-items: flex-start; flex-direction: column; margin-top: 36px; }
}
@media (max-width: 360px) {
  .nav-main { display: none; }
  h1 { font-size: 3.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 420px), (min-width: 721px) and (max-width: 880px) {
  .picker-controls { grid-template-columns: 1fr; }
}
