:root {
  --paper: #f3eee4;
  --paper-deep: #e8e0d2;
  --card: #fbf8f2;
  --ink: #1c1915;
  --muted: #4e463c;
  --wheat: #6b4524;
  --line: #d9d0c2;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 68rem;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wheat);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 238, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 0;
}

.mark:hover {
  color: var(--wheat);
}

nav {
  display: flex;
  gap: 1.15rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 0;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--wheat);
}

main {
  padding: 2.25rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

#home-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4em;
  row-gap: 0.15em;
  max-width: 100%;
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  line-height: 1.2;
}

#home-title .person,
#home-title .with {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  max-width: 100%;
}

#home-title .and {
  font-style: italic;
  font-size: 0.72em;
  color: var(--wheat);
}

#home-title .years {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

h3 {
  margin: 0;
  font-size: 1.7rem;
}

.lede,
.dates {
  color: var(--muted);
}

.dates {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.lede {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  font-size: 1.15rem;
}

.frame {
  margin: 0;
  background: var(--card);
  padding: 0.55rem;
  box-shadow: 0 16px 36px rgba(48, 32, 16, 0.1);
}

.frame > a {
  display: block;
}

.frame img {
  display: block;
  width: 100%;
}

.frame figcaption {
  padding: 0.65rem 0.25rem 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-copy {
  margin-top: 1.6rem;
}

.person-block {
  margin-top: 4rem;
  scroll-margin-top: 5.5rem;
}

.person-block + .person-block {
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.listen {
  margin-top: 1.75rem;
}

.recordings-label {
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
}

.person-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.person-intro h2 {
  margin: 0;
}

.more {
  margin: 1.1rem 0 0;
}

.lamb-pictures {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.15fr);
  gap: 1.75rem;
  align-items: start;
  margin-top: 3.5rem;
}

.pdf-frame {
  width: 100%;
  height: min(78vh, 52rem);
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.more-stories {
  margin-top: 3rem;
  padding: 1.6rem 1.7rem;
  background: var(--ink);
  color: #f7f1e6;
}

.more-stories h2,
.more-stories p {
  color: inherit;
}

.more-stories p {
  margin: 0.45rem 0 0;
  max-width: 36rem;
}

.invite {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.15rem;
  background: #f7f1e6;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.invite:hover {
  background: #fff;
  color: var(--wheat);
}

.player {
  position: sticky;
  top: var(--header);
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(48, 32, 16, 0.06);
}

.play-btn,
.next-btn {
  font: inherit;
  cursor: pointer;
}

.play-btn {
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 50%;
  background: var(--wheat);
  color: #fbf8f2;
  display: grid;
  place-items: center;
}

.play-btn:hover {
  background: var(--ink);
}

.play-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.play-btn .icon-play {
  margin-left: 2px;
}

.now-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wheat);
}

.now-title {
  margin: 0.15rem 0 0.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.scrub-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.time {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--muted);
  min-width: 2.6rem;
}

.time-end {
  text-align: right;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--wheat);
  margin: 0;
}

.next-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font-weight: 600;
}

.next-btn:hover {
  border-color: var(--wheat);
  color: var(--wheat);
}

.next-btn:disabled {
  opacity: 0.45;
  color: var(--muted);
  cursor: default;
}

.next-btn:disabled:hover {
  border-color: var(--line);
  color: var(--muted);
}

.story-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.story-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  text-align: left;
  padding: 0.85rem 0.45rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.story-list button:hover {
  background: #f7f1e6;
}

.story-list button[aria-current="true"] {
  background: #efe6d6;
  box-shadow: inset 3px 0 0 var(--wheat);
}

.story-num,
.story-dur {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-title {
  line-height: 1.35;
}

.story-list li:has(.story-page) button {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.story-page {
  display: inline-block;
  margin: 0 0 0.8rem 3.6rem;
  font-size: 0.95rem;
}

.story-list li:has(.story-page) {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .person-intro {
    grid-template-columns: 1fr;
  }

  .person-intro {
    align-items: start;
  }

  .person-intro .frame {
    max-width: 18rem;
  }

  .lamb-pictures {
    grid-template-columns: 1fr;
  }

  .pdf-frame {
    height: 70vh;
  }

  .player {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .next-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .site-header .wrap {
    align-items: center;
  }

  nav {
    gap: 0.8rem;
  }

  #home-title {
    font-size: clamp(1.08rem, 4.7vw, 1.5rem);
  }

  #home-title .person:first-child {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
