
:root {
  --paper: #F8FAFB;
  --ink: #17191C;
  --line: #B9BEC2;
  --panel: rgba(255,255,255,0.9);
  --display: 'Instrument Sans', sans-serif;
  --body: 'Literata', serif;
  --edge: clamp(20px, 2vw, 32px);
  --space: clamp(64px, 8vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #F8FAFB; color: #17191C; }
body { margin: 0; background-color: #F8FAFB; font-family: var(--body); font-size: 18px; line-height: 1.75; font-weight: 400; }
a { color: #17191C; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #17191C; outline-offset: 5px; }
p { margin: 0 0 1.4em; }
h1, h2, h3 { font-family: var(--display); }
nav, summary, button { font-family: var(--body); }
h1 { font-weight: 400; line-height: 1.23; letter-spacing: .07em; text-transform: uppercase; font-size: clamp(32px, 3.35vw, 50px); margin: 0; overflow-wrap: normal; }
h2 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.25; font-weight: 400; letter-spacing: 0; margin: 0 0 30px; }
h3 { font-size: 23px; line-height: 1.4; font-weight: 500; margin: 0 0 22px; }
img { display: block; max-width: 100%; object-fit: cover; }
svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.skip { position: absolute; z-index: 10; top: 12px; left: 20px; transform: translateY(-180%); background-color: #FFFFFF; padding: 10px 18px; min-height: 44px; min-width: 44px; }
.skip:focus { transform: translateY(0); }
.masthead { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 18px var(--edge) 24px; align-items: start; background-color: #F8FAFB; z-index: 2; }
.masthead details { position: relative; justify-self: start; grid-column: 1; grid-row: 1; }
summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 88px; min-height: 44px; font-size: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.masthead details nav { position: absolute; top: 54px; left: 0; width: min(320px, calc(100vw - 40px)); padding: 20px; background-color: #F8FAFB; border: 1px solid #B9BEC2; z-index: 5; }
.masthead details:not([open]) > nav { display: none; }
nav ul { margin: 0; padding: 0; list-style: none; }
nav a { display: flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 16px; }
.name { grid-column: 2; grid-row: 1; text-align: center; font-family: var(--display); font-size: clamp(21px, 2.3vw, 34px); line-height: 1.3; font-weight: 500; text-decoration: none; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.masthead > nav { grid-column: 3; grid-row: 1; justify-self: end; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.header-line { grid-column: 1 / -1; grid-row: 2; text-align: center; font-size: 16px; line-height: 1.5; margin: 0; letter-spacing: 0; white-space: nowrap; }
.prairie-hero { position: relative; height: 100svh; min-height: 760px; background-color: #F8FAFB; }
.prairie-hero > img { width: 100%; height: 100%; position: absolute; inset: 0; object-position: 48% 50%; }
.masthead[data-home] { position: absolute; top: 0; left: 0; width: 100%; background-color: #F8FAFB; padding-bottom: 30px; }
.masthead[data-home] .name { grid-column: 1 / -1; grid-row: 2; font-size: clamp(32px, 5.9vw, 88px); font-weight: 400; line-height: 1.1; padding-top: 8px; max-width: 100%; }
.masthead[data-home] .header-line { grid-row: 3; }
.caption { position: absolute; right: 32px; bottom: 32px; width: 450px; padding: 28px; background-color: #FFFFFF; }
.caption h1 { font-size: 25px; letter-spacing: .055em; margin-bottom: 18px; }
.caption p { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.caption a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-family: var(--body); font-size: 16px; }
.home-reading { padding: var(--space) var(--edge); }
.home-reading > section { max-width: 1380px; margin: 0 auto var(--space); }
.home-reading > section:first-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10%; }
.home-reading > section:first-child h2 { grid-row: 1 / 5; max-width: 420px; font-size: clamp(36px, 4.2vw, 60px); }
.home-reading > section:first-child > p, .home-reading > section:first-child > article { grid-column: 2; }
.chapter-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.chapter-list li { border-top: 1px solid #B9BEC2; padding: 24px 0 42px; }
.chapter-list h3 { margin: 0; font-weight: 400; }
.chapter-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-family: var(--display); font-size: 23px; margin-bottom: 10px; }
.chapter-list p { font-size: 17px; line-height: 1.7; margin: 0; max-width: 39ch; }
.category-row { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 0 var(--edge) 14px; }
.category-row a { font-size: 16px; text-decoration: none; }
[aria-current=page] { text-decoration: underline; text-underline-offset: 5px; }
.chapter-opening { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.chapter-opening > div { padding: 70px var(--edge); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.chapter-opening h1 { max-width: 15ch; margin-bottom: 28px; }
.chapter-opening p { font-size: 18px; max-width: 36ch; margin-bottom: 0; }
.chapter-opening img { width: 100%; height: 100%; min-height: 610px; max-height: 760px; aspect-ratio: 1; object-position: 50% 50%; }
.chapter-body { padding: var(--space) var(--edge) 64px; }
.chapter-body > section { max-width: 760px; margin: 0 auto var(--space); }
.chapter-body p { max-width: 68ch; }
.chapter-body li { margin: 0 0 18px; padding-left: 8px; }
.chapter-body ul { padding-left: 23px; }
[data-pair] { margin: 36px 0; padding: 28px 0 18px; border-top: 1px solid #B9BEC2; border-bottom: 1px solid #B9BEC2; }
[data-pair] p { margin-bottom: 12px; }
[data-pair] p:last-child { font-family: var(--body); font-size: 16px; }
[data-pair] p:last-child a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.chapter-body p > a { padding-block: 12px; }
[data-myth] { border-top: 1px solid #B9BEC2; border-bottom: 1px solid #B9BEC2; padding: 32px 0; margin: 36px 0; }
[data-myth] button { background-color: #F8FAFB; color: #17191C; border: 0; border-bottom: 1px solid #17191C; font-size: 18px; padding: 12px 0; min-height: 44px; min-width: 44px; cursor: pointer; margin-bottom: 22px; }
[data-myth] a, .next-chapter a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; font-family: var(--body); }
[hidden] { display: none !important; }
[data-recap] { padding-top: 36px; border-top: 1px solid #B9BEC2; }
.home-reading > [data-recap] { max-width: 760px; margin: 0 auto; }
.next-chapter { max-width: 760px; margin: 0 auto; padding: 0 0 40px; }
footer { border-top: 1px solid #B9BEC2; padding: 48px var(--edge) 24px; display: grid; grid-template-columns: 1.65fr 1fr 1fr; gap: 48px; }
.footer-name { font-family: var(--display); display: block; font-size: clamp(32px, 4.3vw, 66px); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; text-decoration: none; margin-bottom: 30px; }
footer p { font-size: 16px; line-height: 1.65; max-width: 43ch; }
footer nav { padding-top: 6px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #B9BEC2; padding-top: 20px; margin: 10px 0 0; max-width: none; }
.missing { max-width: 900px; padding: var(--space) var(--edge); margin: 0 auto; }
.missing h1 { margin-bottom: 32px; }
.missing > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
@media (max-width: 1000px) {
  .masthead { grid-template-columns: 1fr 1fr; gap: 12px; }
  .masthead .name { grid-column: 1 / -1; grid-row: 2; font-size: 32px; }
  .masthead > nav { grid-column: 2; }
  .header-line { grid-row: 3; }
  .prairie-hero { min-height: 800px; }
  .chapter-list { grid-template-columns: repeat(2, 1fr); }
  .chapter-opening img { min-height: 520px; }
  .chapter-opening > div { padding: 40px 24px; }
  .chapter-opening h1 { font-size: 34px; }
  footer { grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
}
@media (max-width: 759px) {
  body { font-size: 17px; }
  .masthead { padding-top: 14px; padding-bottom: 24px; }
  .masthead .name { font-size: clamp(25px, 6.3vw, 38px); }
  .masthead > nav { gap: 12px; flex-wrap: nowrap; }
  .masthead > nav a { font-size: 16px; }
  .masthead > nav a:first-child { display: none; }
  .header-line { white-space: normal; font-size: 16px; max-width: 38ch; justify-self: center; }
  .masthead[data-home] .name { font-size: clamp(29px, 7.3vw, 52px); line-height: 1.1; padding-top: 10px; }
  .prairie-hero { min-height: 830px; height: 100svh; }
  .prairie-hero > img { object-position: 47% 50%; }
  .caption { width: calc(100% - 32px); right: 16px; bottom: 16px; padding: 24px; }
  .caption h1 { font-size: 24px; letter-spacing: .045em; }
  .home-reading > section:first-child { display: block; }
  .home-reading > section:first-child h2 { font-size: 38px; max-width: 13ch; }
  .chapter-list { display: block; }
  .chapter-list li { padding-bottom: 28px; }
  .chapter-list p { max-width: none; }
  .category-row { display: none; }
  .chapter-opening { display: flex; flex-direction: column; }
  .chapter-opening > div { min-height: 340px; padding: 56px var(--edge); }
  .chapter-opening h1 { font-size: 36px; max-width: 15ch; }
  .chapter-opening img { min-height: 0; height: auto; max-height: none; width: 100%; aspect-ratio: 1.1; }
  .chapter-body { padding-top: 64px; padding-bottom: 40px; }
  .chapter-body > section { margin-bottom: 64px; }
  footer { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; }
  footer > div { grid-column: 1 / -1; }
  .footer-name { font-size: clamp(36px, 9.8vw, 60px); max-width: 100%; }
  footer nav { padding-top: 0; }
  footer a { line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
