@import url("/base.css");
:root {
  color-scheme: light;
  --bg: #f7f2e6; --ink: #352f24; --muted: #555546; --line: #c9bea6;
  --panel: #fffcf4; --accent: #665032; --wash: #ebe8d7; --focus: #943d1c;
  --display: "Baskervville", Georgia, serif;
}
:root[data-world="shelter"] {
  color-scheme: dark;
  --bg: #122822; --ink: #fff1cd; --muted: #bed1c4; --line: #557569;
  --panel: #1b352e; --accent: #ffd283; --wash: #254238; --focus: #ffd280;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); }
main, .mast, footer { width: min(1180px, 92%); margin-inline: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 5.8vw, 5.4rem); letter-spacing: -.055em; font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.3rem); letter-spacing: -.035em; }
h3 { font-size: 1.55rem; }
a, summary { text-underline-offset: .19em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.mast, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.mast { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand img { width: 64px; height: auto; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(1.3rem, 4vw, 4rem); padding-block: clamp(2rem,5vw,4rem); }
.hero p, .chapter-intro, .local p { color: var(--muted); max-width: 74ch; margin-top: .8rem; }
.hero > img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; border-radius: .65rem; }
.editions, .chapters { display: flex; flex-wrap: wrap; gap: .5rem; }
.editions { margin-top: 1.2rem; }
.editions a, .chapters a { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .4rem; font-weight: 650; text-decoration: none; }
.editions a[aria-current], .chapters a:hover { background: var(--ink); color: var(--bg); }
.chapters { padding-block: 1rem; border-block: 1px solid var(--line); }
.chapter, .local { margin-block: clamp(2.8rem,6vw,5rem); }
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem),1fr)); gap: 1rem; align-items: start; margin-top: 1.35rem; }
.provider { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.provider:only-child { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); align-items: center; }
.diagram { display: block; width: 100%; height: auto; }
.provider-body { padding: clamp(1rem, 2vw, 1.45rem); }
.provider-body > p { margin-top: .65rem; }
.provider dl { display: grid; gap: .75rem; margin-block: 1rem; }
.provider dt { font-weight: 750; color: var(--accent); }
.provider dd { margin-top: .08rem; }
.provider details { border-top: 1px solid var(--line); padding-top: .75rem; }
.provider summary { font-weight: 700; cursor: pointer; }
.provider ol { padding-left: 1.35rem; }
.provider li { margin-block: .5rem; }
.source-links { display: flex; flex-wrap: wrap; gap: .45rem .95rem; margin-top: .9rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
@media(max-width: 720px) {
  .hero, .provider:only-child { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 2.55; }
  .mast, footer { flex-wrap: wrap; }
  .brand img { width: 44px; }
}
