@font-face {
  font-family: Dateline;
  src: url("./assets/fonts/dateline-4.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Inclusive;
  src: url("./assets/fonts/InclusiveSans-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --green: #219741;
  --deep: #14592b;
  --paper: #fffef6;
  --ink: #173421;
  --muted: #607364;
  --yellow: #fff35b;
  --line: #dce4d9;
  font-family: Inclusive, Arial, sans-serif;
  color: var(--ink);
  background: var(--green);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0 28px;
}
button,
select {
  font: inherit;
}
button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #e6c800;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.masthead {
  max-width: 1100px;
  margin: 48px auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  color: white;
}
.pineapple {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Dateline, Georgia, serif;
  text-transform: uppercase;
  font-weight: normal;
}
h1 {
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -1px;
}
main {
  max-width: 1100px;
  margin: auto;
}
.picker {
  display: flex;
  align-items: end;
  gap: 20px;
  background: var(--paper);
  padding: 22px 26px;
  border-radius: 14px;
  box-shadow: 0 4px 0 #176f3233;
}
.filter {
  flex: 1;
  min-width: 0;
}
label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 9px;
  color: var(--muted);
}
select {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b7c6b7;
  border-radius: 0;
  padding: 8px 26px 9px 0;
  font-size: 17px;
  min-height: 42px;
}
.primary {
  background: var(--yellow);
  color: var(--ink);
  padding: 15px 24px;
  border-radius: 8px;
  min-height: 49px;
  font-size: 17px;
  box-shadow: 0 2px 0 #183e2126;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #fff88d;
}
.primary:active {
  transform: translateY(1px);
}
.primary span {
  margin-left: 24px;
}
.picker-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 3px 22px;
  gap: 12px;
  color: #041a09;
  font-size: 13px;
}
.text-button {
  padding: 5px 0;
  background: none;
  color: inherit;
  white-space: nowrap;
}
.text-button:not(:disabled):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
#episode {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px #0d4f2526;
}
.episode-main {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 0;
}
.image-panel {
  background: #184c2c;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 300px;
}
.image-button > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.expand-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: white;
  font-size: 12px;
  background: #10281ed9;
  padding: 7px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.15s;
}
.image-button:hover .expand-label,
.image-button:focus-visible .expand-label {
  opacity: 1;
}
.image-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #edf4ec;
  padding: 10px 17px;
  font-size: 12px;
  min-height: 46px;
}
.image-toolbar button,
.lightbox-bottom button,
.lightbox-top button {
  background: transparent;
  color: inherit;
  min-width: 36px;
  min-height: 30px;
  font-size: 19px;
  border-radius: 5px;
}
.image-toolbar button:hover,
.lightbox-bottom button:hover,
.lightbox-top button:hover {
  background: #ffffff20;
}
#image-fallback {
  display: grid;
  place-content: center;
  text-align: center;
  justify-items: center;
  gap: 16px;
  min-height: 300px;
  flex: 1;
  color: #d4e6d5;
  font-size: 14px;
}
.episode-copy {
  padding: 35px 32px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 17px;
}
h2 {
  font-size: 34px;
  line-height: 1.17;
  color: var(--deep);
  overflow-wrap: anywhere;
}
.facts {
  font-size: 13px;
  color: var(--muted);
  margin: 17px 0;
  line-height: 1.7;
}
.synopsis {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 23px;
}
.episode-link {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  text-decoration: none;
}
.episode-link:hover {
  text-decoration: underline;
}
.episode-link span {
  margin-left: 5px;
}
.guests-section {
  padding: 27px 30px 29px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 20px;
}
.section-heading h3 {
  font-size: 20px;
  font-weight: normal;
}
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 22px 18px;
}
.person {
  text-decoration: none;
  max-width: 140px;
  min-width: 0;
}
.portrait {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e8eddf;
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 19px;
  overflow: hidden;
  margin-bottom: 10px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.person-name {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}
.person-role {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.person:hover .person-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
#credits {
  border-top: 1px solid var(--line);
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
#credits > summary {
  padding: 19px 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--deep);
}
#credits[open] > summary span {
  transform: rotate(45deg);
}
.credits-content {
  padding: 8px 30px 30px;
}
.credits-content h3 {
  font-size: 15px;
  font-weight: normal;
  margin: 16px 0 20px;
}
.credits-content .people {
  margin-bottom: 27px;
}
.crew {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
}
.crew p {
  font-size: 13px;
  line-height: 1.5;
}
.crew span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
footer {
  max-width: 1100px;
  margin: 24px auto 35px;
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 20px;
  color: #041a09;
  font-size: 12px;
}
.about {
  text-align: right;
  max-width: 380px;
}
.about summary {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about div {
  padding-top: 14px;
  line-height: 1.6;
}
.about p {
  margin-bottom: 9px;
}
.tmdb-logo {
  margin: 5px 0 12px;
}
.message {
  padding: 40px;
  background: var(--paper);
  border-radius: 14px;
}
.message p {
  margin: 20px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
dialog {
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #102a1b;
  color: #fff;
  padding: 15px;
  max-width: min(1100px, 94vw);
  width: 94vw;
  max-height: 94dvh;
}
dialog::backdrop {
  background: #061b12e8;
}
dialog > img {
  display: block;
  max-width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  margin: auto;
}
.lightbox-top,
.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 3px 12px;
  font-size: 13px;
}
.lightbox-bottom {
  justify-content: center;
  padding: 12px 0 0;
}
@media (min-width: 1400px) {
  .masthead {
    margin-top: 60px;
  }
  .image-button {
    min-height: 350px;
  }
}
@media (max-width: 760px) {
  body {
    padding: 0 18px;
  }
  .masthead {
    margin: 30px auto 26px;
    gap: 16px;
  }
  h1 {
    font-size: clamp(28px, 9vw, 36px);
    letter-spacing: -0.5px;
  }
  .pineapple {
    width: 32px;
    height: 55px;
  }
  .picker {
    padding: 19px;
    gap: 17px;
    flex-wrap: wrap;
  }
  .filter {
    flex-basis: 40%;
  }
  select {
    font-size: 15px;
  }
  .primary {
    width: 100%;
    padding: 14px 20px;
  }
  .primary span {
    margin-left: 12px;
  }
  .picker-meta {
    font-size: 12px;
    margin: 13px 1px 17px;
  }
  .episode-main {
    grid-template-columns: 1fr;
  }
  .image-button {
    min-height: 0;
    aspect-ratio: 16/9;
    flex: auto;
  }
  .image-toolbar {
    min-height: 41px;
    padding: 6px 13px;
  }
  .expand-label {
    opacity: 1;
    left: auto;
    right: 12px;
    bottom: 12px;
    font-size: 10px;
  }
  .episode-copy {
    padding: 26px 24px 28px;
  }
  h2 {
    font-size: 31px;
  }
  .eyebrow {
    margin-bottom: 13px;
  }
  .facts {
    margin: 14px 0;
  }
  .synopsis {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .guests-section {
    padding: 24px;
  }
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px 14px;
  }
  .portrait {
    width: 57px;
    height: 57px;
  }
  .section-heading h3 {
    font-size: 19px;
  }
  #credits > summary {
    padding: 19px 24px;
  }
  .credits-content {
    padding: 4px 24px 26px;
  }
  footer {
    font-size: 11px;
    gap: 12px;
    margin-top: 22px;
  }
  .about {
    max-width: 210px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
