/* Max Fresh Pick. Cormorant Garamond and Manrope are SIL Open Font License;
   see /fonts/LICENSE-*.txt */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4efe3;
  --ink: #1a2418;
  --ink-soft: #3d4a38;
  --muted: #5c6658;
  --rule: #d4ccb8;
  --leaf: #2c5a38;
  --accent: #9a3b1c;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --measure: 760px;
  --pad: clamp(1.15rem, 4.5vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img {
  max-width: 100%;
  height: auto;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #e4c8b4;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--measure), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.hero-banner {
  height: clamp(8.75rem, 30vw, 14.5rem);
  overflow: hidden;
  background: #1a1714;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 180%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-body {
  padding-bottom: 2.25rem;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  margin-top: -4.35rem;
}

.avatar {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  background: var(--paper);
  display: block;
}

.identity-text {
  min-width: 0;
}

.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.identity h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 8vw, 3.55rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tagline {
  margin: 0.7rem 0 0;
  max-width: 22em;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--leaf);
  border-color: var(--leaf);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

.episodes {
  padding: 0.5rem 0 3.25rem;
  flex: 1;
}

.episodes h2 {
  margin: 0 0 1.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.episode-list,
.episode-fallback {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.episode {
  display: grid;
  gap: 0.95rem 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.episode:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1714;
  color: inherit;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.thumb-play {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.thumb-play svg {
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.12rem;
  fill: currentColor;
}

.ep-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.ep-title {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.ep-date {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ep-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin: 0.75rem 0 0;
}

.ep-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-underline-offset: 0.18em;
}

.ep-links a:hover {
  color: var(--accent);
}

.status {
  margin: 0;
  color: var(--muted);
}

.episode-fallback {
  margin-top: 0.5rem;
}

.episode-fallback li + li {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 1.35rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .note {
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .identity {
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: -3.5rem;
  }

  .avatar {
    width: 10.5rem;
    height: 10.5rem;
    flex-shrink: 0;
  }

  .identity-text {
    padding-bottom: 0.15rem;
  }

  .episode {
    grid-template-columns: 13.5rem 1fr;
    align-items: start;
  }
}
