:root {
  color-scheme: light;
  --text: #1d2520;
  --muted: #647067;
  --line: #dbe4dc;
  --accent: #2f7d5b;
  --accent-dark: #215c43;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fffaf0, #ebf4eb 52%, #e8eff4);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .86); }
.header-inner, main { width: min(960px, calc(100% - 32px)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .05em;
}
.home-link { padding: 9px 14px; font-weight: 700; }
main { padding: 34px 0 64px; }
.breadcrumbs { color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #98a39a; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.15; letter-spacing: -.03em; }
.intro { margin: 14px 0 32px; color: var(--muted); font-size: 1.1rem; }
.collection-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.collection-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .7); font-weight: 700; }
.collection-nav a:hover { background: #edf4ee; }
.collection-title { margin: 0 0 20px; font-size: 1.35rem; line-height: 1.3; scroll-margin-top: 24px; }
.podcast-section { margin-top: 48px; scroll-margin-top: 24px; }
.book-list, .podcast-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.book {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  row-gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 26px rgba(28, 42, 34, .05);
}
.book-cover { grid-row: 1 / 3; display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 6px 16px rgba(28, 42, 34, .12); }
.book-heading { min-width: 0; }
.book-number { margin: 0 0 8px; color: #984d22; font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.book-heading h3, .podcast-heading h3 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.book-author { margin: 10px 0 0; color: var(--muted); }
.book-notes { grid-column: 2; align-self: start; padding-top: 18px; border-top: 1px solid var(--line); }
.book-notes h4 { margin: 0 0 8px; color: var(--accent-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.book-notes p { margin: 0; font-size: 1.05rem; }
.podcast { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 20px 32px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .88); box-shadow: 0 10px 26px rgba(28, 42, 34, .05); }
.podcast-thumbnail-link { display: block; grid-row: 1 / 3; }
.podcast-thumbnail { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 6px 16px rgba(28, 42, 34, .12); }
.podcast-heading { min-width: 0; }
.podcast-heading h3 a { color: inherit; }
.podcast-show { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.podcast-action { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.podcast-action a { font-weight: 700; }
.podcast-player { display: block; grid-column: 2; width: 100%; min-width: 0; height: 152px; border: 0; border-radius: 12px; }
.site-footer { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 540px) {
  .book { grid-template-columns: 104px minmax(0, 1fr); gap: 20px 16px; padding: 20px; }
  .book-cover { grid-row: 1; }
  .book-author { font-size: .9rem; }
  .book-notes { grid-column: 1 / -1; }
  .podcast { grid-template-columns: 104px minmax(0, 1fr); gap: 20px 16px; padding: 20px; }
  .podcast-thumbnail-link { grid-row: 1; }
  .podcast-player { grid-column: 1 / -1; }
}
