:root {
  --paper: #fbf7f0;
  --card: #ffffff;
  --ink: #2b2420;
  --soft: #6b5f57;
  --line: #e7ddd0;
  --orange: #c85a12;
  --orange-dark: #9e4309;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.brand::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--orange); margin-right: .45em; }
.site-header nav { display: flex; gap: 1.25rem; font-family: var(--sans); font-size: 1rem; }
.site-header nav a { text-decoration: none; color: var(--ink); }
.site-header nav a:hover { color: var(--orange); }
.site-footer { text-align: center; color: var(--soft); font-size: 1rem; padding: 3rem 1rem; border-top: 1px solid var(--line); margin-top: 4rem; }

/* Home */
.hero {
  max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.hero:has(.hero-photo) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hero-photo { width: 100%; border-radius: 6px; box-shadow: 0 10px 30px rgba(60, 40, 20, .15); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.hero blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--orange); font-style: italic; font-size: 1.35rem; }
.hero blockquote p { margin: 0; }
.hero cite { display: block; font-style: normal; font-size: 1rem; color: var(--soft); margin-top: .3rem; }
.hero cite::before { content: "— "; }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-block; padding: .75rem 1.3rem; border-radius: 999px; background: var(--orange); color: #fff;
  text-decoration: none; font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
}
.button:hover { background: var(--orange-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--orange-dark); box-shadow: inset 0 0 0 2px var(--orange); }
.button.secondary:hover { background: var(--orange); color: #fff; }

.stories { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); scroll-margin-top: 1rem; }
.stories-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 2rem; margin-bottom: 1.5rem; }
.stories-head h2 { margin: 0; font-size: 2rem; }
.search { display: grid; gap: .25rem; font-family: var(--sans); font-size: .95rem; color: var(--soft); }
.search input {
  font: inherit; font-size: 1.1rem; color: var(--ink); padding: .65rem .9rem; width: min(22rem, 85vw);
  border: 2px solid var(--line); border-radius: 8px; background: var(--card);
}
.search input:focus { border-color: var(--orange); outline: none; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.story-list a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.story-list a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 40, 20, .12); color: var(--ink); }
.thumb { aspect-ratio: 16 / 9; background: #efe6da; overflow: hidden; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-thumb { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 700; color: var(--orange); }
.card-text { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem 1.25rem; }
.num { font-family: var(--sans); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; }
.title { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.summary { font-size: 1rem; line-height: 1.5; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#no-results { text-align: center; color: var(--soft); padding: 2rem; }

/* Story */
.story { max-width: 42rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 1.5rem) 0; }
.back { font-family: var(--sans); font-size: 1rem; margin: 0 0 2rem; }
.back a { text-decoration: none; }
.story-num { font-family: var(--sans); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; margin: 0; }
.story h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.15; margin: .25rem 0 .5rem; }
.meta { color: var(--soft); font-family: var(--sans); font-size: .95rem; margin: 0 0 2rem; }
.video { margin: 0 0 2.5rem; }
.listen { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.listen::before { content: "♪ "; color: var(--orange); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--orange); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.yt .play::after { content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.yt:hover .play { background: var(--orange-dark); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
.story-body p { margin: 0 0 1.25em; }
.story-body img { margin: 2rem auto; border-radius: 6px; max-height: 80vh; width: auto; }
.story-body blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--orange); font-style: italic; }
.story-body ol, .story-body ul { padding-left: 1.4em; }
.story-body li { margin-bottom: .6em; }
.story-body h2, .story-body h3 { line-height: 1.25; margin-top: 2rem; }
.story-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.story-nav a { display: block; padding: 1rem 1.15rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.3; }
.story-nav a:hover { border-color: var(--orange); color: var(--ink); }
.story-nav span { display: block; font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--orange-dark); margin-bottom: .3rem; }
.story-nav .next { text-align: right; }

@media (max-width: 760px) {
  body { font-size: 1.15rem; }
  .hero:has(.hero-photo) { grid-template-columns: 1fr; }
  .hero-photo { max-width: 26rem; margin: 0 auto; }
  .story-nav { grid-template-columns: 1fr; }
  .story-nav .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .story-list a { transition: none; } }
