/* F*CK! I'M 50 — mobile internal page shell (Brief 02A).
   Landing page CSS is not used here. */

:root {
  --fi50-blue: #017efe;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--fi50-blue);
  min-height: 100%;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.internal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-left: calc(10px + env(safe-area-inset-left, 0px));
  padding-right: calc(10px + env(safe-area-inset-right, 0px));
}

.home-asterisk,
.menu-toggle {
  display: block;
  line-height: 0;
}

.home-asterisk:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.menu-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.home-asterisk img {
  height: 48px;
  width: auto;
}

.menu-toggle img {
  height: 48px;
  width: auto;
}

.home-mark--desktop,
.menu-mark--desktop {
  display: none;
}

/* Brief 16: desktop internal header — full logo + combined menu asset.
   Header in-flow height stays locked so centred page titles do not move. */
@media (min-width: 900px) {
  .internal-header {
    height: 58px;
    padding-top: 22px;
    padding-left: 22px;
    padding-right: 22px;
    overflow: visible;
  }

  .home-mark--mobile,
  .menu-mark--mobile {
    display: none;
  }

  .home-asterisk .home-mark--desktop {
    display: block;
    width: 132px;
    height: auto;
  }

  .menu-toggle .menu-mark--desktop {
    display: block;
    width: 156px;
    height: auto;
  }
}

.page-title {
  margin: 20px auto 0;
  max-width: min(330px, calc(100vw - 60px));
  padding: 0;
}

@media (min-width: 900px) {
  .page-title {
    max-width: 495px;
  }
}

.page-title img {
  width: 100%;
  height: auto;
}

/* Brief 02D: header stays above the pop-up panel. */
.internal-header {
  z-index: 2;
}

.site-menu {
  position: fixed;
  z-index: 1;
  top: calc(70px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 340px;
  height: 458.73px;
  margin: 0;
  padding: 38.5px 0;
  border: 0;
  border-radius: 18px;
  outline: 1px solid #ffffff;
  outline-offset: 0;
  background: rgba(0, 24, 72, 0.7);
  overflow: visible;
}

.site-menu[hidden] {
  display: none;
}

.site-menu a {
  display: block;
  flex-shrink: 0;
  width: 200px;
  max-width: 200px;
  line-height: 0;
}

.site-menu a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.site-menu a img {
  width: 100%;
  height: auto;
}

.site-menu a[href="/episodes/"] {
  transform: rotate(-5deg);
  transform-origin: center center;
}

.site-menu a[href="/what-the/"] {
  transform: rotate(-6deg);
  transform-origin: center center;
}

.site-menu a[href="/things-im-doing/"] {
  transform: rotate(-4deg);
  transform-origin: center center;
}

.site-menu a[href="/merch/"] {
  transform: rotate(-5deg);
  transform-origin: center center;
}

.site-menu a[href="/contact/"] {
  transform: rotate(-7deg) scale(0.8075);
  transform-origin: center center;
  margin-top: 5px;
}

/* Brief 22: desktop opened menu sits under the top-right trigger. */
@media (min-width: 900px) {
  .site-menu {
    top: 192px;
    left: auto;
    right: 22px;
    transform: none;
  }
}

/* Brief 03A: temporary mobile content on Things I’m Doing + Merch only. */
.temp-content {
  display: none;
}

@media (max-width: 899px) {
  html:has(body.temp-page),
  body.temp-page {
    position: relative;
    overflow-x: hidden;
  }

  body.temp-page .internal-header {
    z-index: 3;
  }

  body.temp-page .site-menu {
    z-index: 2;
  }

  body.temp-page .page-title {
    position: relative;
    z-index: 1;
  }

  .temp-content {
    display: block;
    min-height: 560px;
  }

  .temp-paul,
  .temp-copy {
    position: absolute;
    height: auto;
    pointer-events: none;
  }

  .temp-paul {
    width: auto;
    height: 486px;
    z-index: 0;
  }

  .temp-paul--left {
    top: 208px;
    left: -78px;
  }

  .temp-paul--right {
    top: 186px;
    right: -78px;
  }

  .temp-copy {
    width: 255px;
    z-index: 0;
  }

  .temp-copy--things {
    top: 248px;
    right: 24px;
  }

  .temp-copy--merch {
    top: 226px;
    left: 24px;
  }
}

/* Brief 17: desktop Things I'm Doing + Merch composite panels. Hidden on mobile. */
.desktop-temp-panel {
  display: none;
}

@media (min-width: 900px) {
  .desktop-temp-panel {
    display: block;
    width: 520px;
    max-width: calc(100vw - 80px);
    height: auto;
    margin: 46px auto 0;
  }
}

/* Brief 05: mobile Contact form only. Locked shell rules stay above. */
.contact-form,
.contact-success {
  display: none;
}

.contact-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;
}

.contact-desktop-label,
.contact-send-label--desktop {
  display: none;
}

@media (max-width: 899px) {
  .contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(100% - 48px);
    max-width: 342px;
    margin: 78px auto 40px;
    gap: 17px;
  }

  .contact-form[hidden] {
    display: none;
  }

  .contact-success {
    display: none;
  }

  .contact-success:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 342px;
    min-height: calc(
      100dvh - 162px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
    margin: 0 auto;
    padding: 8px 8px 40px;
    color: #ffffff;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    animation: contact-success-in 0.35s ease;
  }

  .contact-success-kicker,
  .contact-success-thanks,
  .contact-success-hint {
    margin: 0;
    color: #ffffff;
  }

  .contact-success-kicker {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
  }

  .contact-success-thanks {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
  }

  .contact-success-hint {
    margin-top: 28px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
  }

  @keyframes contact-success-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .contact-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;
  }

  .contact-field,
  .contact-phone {
    display: block;
    margin: 0;
  }

  .contact-phone {
    display: flex;
    gap: 10px;
  }

  .contact-field--dial {
    width: 128px;
    flex: 0 0 128px;
  }

  .contact-field--number {
    flex: 1 1 auto;
    min-width: 0;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background: rgba(0, 24, 72, 0.28);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
  }

  .contact-form select {
    padding-right: 32px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M1.2.8 6 5.6 10.8.8 12 2 6 8 0 2z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
  }

  .contact-form textarea {
    height: 164px;
    padding: 12px 14px;
    resize: vertical;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #ffffff;
    opacity: 1;
  }

  .contact-form input:focus-visible,
  .contact-form select:focus-visible,
  .contact-form textarea:focus-visible,
  .contact-send:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  .contact-word-count {
    margin: -4px 2px 0;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
  }

  .contact-word-count.is-over {
    font-weight: 700;
  }

  .contact-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .contact-send {
    height: 48px;
    margin: 4px 0 0;
    padding: 0 16px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background: rgba(0, 24, 72, 0.28);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
  }

  .contact-send:disabled {
    opacity: 0.65;
    cursor: default;
  }

  .contact-status {
    width: calc(100% - 48px);
    max-width: 342px;
    margin: 78px auto 40px;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.4;
  }
}

/* Brief 18: desktop Contact form + MESSAGE SENT. Mobile rules above stay locked. */
@media (min-width: 900px) {
  .contact-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name email"
      "phone type"
      "message message"
      "count count"
      "send send";
    width: 720px;
    max-width: calc(100vw - 80px);
    margin: 0 auto;
    padding: 24px 0;
    flex: 1 1 auto;
    align-content: center;
    column-gap: 20px;
    row-gap: 16px;
    background: transparent;
    box-shadow: none;
  }

  .contact-form[hidden] {
    display: none;
  }

  .contact-field--name {
    grid-area: name;
  }

  .contact-field--email {
    grid-area: email;
  }

  .contact-phone {
    grid-area: phone;
  }

  .contact-field--subject {
    grid-area: type;
  }

  .contact-field--message {
    grid-area: message;
  }

  .contact-word-count {
    grid-area: count;
  }

  .contact-send {
    grid-area: send;
  }

  .contact-success {
    display: none;
  }

  .contact-success:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 720px;
    max-width: calc(100vw - 80px);
    margin: 0 auto;
    padding: 48px 8px 40px;
    color: #ffffff;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
  }

  .contact-success-kicker,
  .contact-success-thanks,
  .contact-success-hint {
    margin: 0;
    color: #ffffff;
  }

  .contact-success-kicker {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.06em;
  }

  .contact-success-thanks {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
  }

  .contact-success-hint {
    margin-top: 32px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
  }

  .contact-desktop-label {
    display: block;
    margin: 0 0 8px 2px;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .contact-field {
    display: block;
    margin: 0;
    min-width: 0;
  }

  .contact-field--subject {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 48px;
    align-items: start;
    row-gap: 8px;
  }

  .contact-phone {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto 48px;
    align-items: start;
    column-gap: 10px;
    row-gap: 8px;
    margin: 0;
    min-width: 0;
  }

  .contact-phone .contact-desktop-label,
  .contact-field--subject .contact-desktop-label {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .contact-field--dial {
    grid-column: 1;
    grid-row: 2;
  }

  .contact-field--number {
    grid-column: 2;
    grid-row: 2;
  }

  .contact-field--dial,
  .contact-field--number {
    width: auto;
    min-width: 0;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background: rgba(0, 24, 72, 0.28);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
  }

  .contact-form select {
    padding-right: 32px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M1.2.8 6 5.6 10.8.8 12 2 6 8 0 2z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
  }

  .contact-form textarea {
    height: 140px;
    padding: 12px 14px;
    resize: vertical;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #ffffff;
    opacity: 1;
  }

  .contact-form input:focus-visible,
  .contact-form select:focus-visible,
  .contact-form textarea:focus-visible,
  .contact-send:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  .contact-word-count {
    margin: -6px 2px 0;
    color: rgba(255, 255, 255, 0.7);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    text-align: right;
  }

  .contact-word-count.is-over {
    color: #ffffff;
    font-weight: 700;
  }

  .contact-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .contact-send {
    justify-self: center;
    width: 200px;
    height: 48px;
    margin: 4px 0 0;
    padding: 0 16px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background: rgba(0, 24, 72, 0.28);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .contact-send-label--mobile {
    display: none;
  }

  .contact-send-label--desktop {
    display: inline;
  }

  .contact-send:disabled {
    opacity: 0.65;
    cursor: default;
  }

  .contact-status {
    width: 720px;
    max-width: calc(100vw - 80px);
    margin: 0 auto 28px;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
  }
}

/* Brief 08: mobile What The? core copy only. Locked shell rules stay above. */
.what-the-copy {
  display: none;
}

@media (max-width: 899px) {
  .what-the-copy {
    display: block;
    width: calc(100% - 60px);
    max-width: 330px;
    margin: 24px auto 0;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
  }

  .what-the-copy p {
    margin: 0 0 16px;
  }

  .what-the-copy p:has(+ .what-the-break) {
    margin-bottom: 0;
  }

  .what-the-break {
    display: block;
    width: 85%;
    height: auto;
    margin: 22px auto 28px;
  }

  .what-the-copy p:has(+ .what-the-platforms) {
    margin-bottom: 0;
  }

  .what-the-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 25px auto;
  }

  .what-the-platforms img {
    display: block;
    width: 60px;
    height: auto;
  }

  .what-the-copy p:last-child {
    margin-bottom: 0;
  }
}

/* Brief 19: desktop What The? editorial content. Mobile rules above stay locked. */
@media (min-width: 900px) {
  .what-the-copy {
    display: block;
    box-sizing: border-box;
    width: 860px;
    max-width: calc(100vw - 80px);
    margin: 52px auto 48px;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 19px;
    line-height: 1.6;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .what-the-copy p {
    margin: 0 0 22px;
  }

  .what-the-copy p:has(+ .what-the-break) {
    margin-bottom: 0;
  }

  .what-the-break {
    display: block;
    width: 680px;
    max-width: 100%;
    height: auto;
    margin: 36px auto 40px;
  }

  .what-the-copy p:has(+ .what-the-platforms) {
    margin-bottom: 0;
  }

  .what-the-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 36px auto;
  }

  .what-the-platforms img {
    display: block;
    width: 84px;
    height: auto;
  }

  .what-the-copy p:last-child {
    margin-bottom: 0;
  }
}

/* Brief 13B: short internal pages keep the footer at the viewport bottom.
   Long pages still grow in normal document flow. Not fixed/sticky/absolute. */
@media (max-width: 899px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  .site-footer {
    margin-top: auto;
    flex-shrink: 0;
  }
}

/* Episodes landing: two category choices only. Locked shell rules stay above. */
.episodes-chooser {
  display: none;
}

.episodes-chooser a,
.episodes-chooser-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 18px 16px 4px;
}

.episodes-chooser a {
  text-decoration: none;
  cursor: pointer;
}

.episodes-chooser-soon {
  cursor: default;
}

.episodes-chooser a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 6px;
}

.episodes-chooser img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: rotate(-5deg);
  transform-origin: center center;
  filter: drop-shadow(7px 9px 7px rgba(0, 0, 0, 0.25));
}

.episodes-chooser-note {
  display: block;
  margin: 22px 8px 0;
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.episodes-chooser-note--soon {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

@media (max-width: 899px) {
  html:has(.episodes-chooser),
  body:has(.episodes-chooser) {
    overflow-x: hidden;
  }

  .episodes-chooser {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: calc(100% - 40px);
    max-width: 330px;
    margin: 56px auto 0;
    padding: 8px 0 32px;
    overflow: visible;
  }

  .episodes-chooser a,
  .episodes-chooser-soon {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .episodes-chooser {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 96px;
    box-sizing: border-box;
    width: 1120px;
    max-width: calc(100vw - 80px);
    margin: 88px auto 0;
    padding: 12px 0 80px;
    overflow: visible;
  }

  .episodes-chooser a,
  .episodes-chooser-soon {
    width: 460px;
    max-width: calc(50% - 48px);
    flex: 0 1 460px;
  }

  .episodes-chooser-note {
    font-size: 17px;
  }

  .episodes-chooser-note--soon {
    font-size: 32px;
  }

  .episodes-chooser a:hover {
    opacity: 0.88;
  }
}

/* Podcast Episodes catalogue. Does not affect the /episodes/ chooser. */
.podcast-catalogue {
  display: none;
}

.podcast-back {
  display: none;
}

.podcast-platforms a {
  display: block;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.podcast-platforms a:focus-visible,
.podcast-back:focus-visible,
.podcast-polaroid-link:focus-visible,
.podcast-name a:focus-visible,
.podcast-number a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.podcast-polaroid-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.podcast-number a,
.podcast-name a {
  color: inherit;
  text-decoration: none;
}

.podcast-polaroid {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-5deg);
  transform-origin: center center;
  box-shadow: 10px 12px 20px rgba(0, 0, 0, 0.28);
}

.podcast-mark {
  display: none;
  height: auto;
  pointer-events: none;
}

@media (max-width: 899px) {
  html:has(.podcast-catalogue),
  body:has(.podcast-catalogue) {
    overflow-x: hidden;
  }

  body:has(.podcast-catalogue) .page-title {
    max-width: min(340px, calc(100vw - 60px));
  }

  .podcast-back {
    display: block;
    width: calc(100% - 48px);
    max-width: 340px;
    margin: 18px auto 0;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
  }

  .podcast-catalogue {
    display: flex;
    flex-direction: column;
    width: calc(100% - 36px);
    max-width: 354px;
    margin: 28px auto 0;
    padding: 0 0 12px;
  }

  .podcast-episode {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;
    margin: 0;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    overflow: visible;
  }

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

  .podcast-episode--start {
    padding-top: 8px;
    padding-bottom: 28px;
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .podcast-polaroid,
  .podcast-polaroid-link {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: calc(100% - 8px);
    margin: 8px 4px 12px 2px;
  }

  .podcast-polaroid-link .podcast-polaroid {
    width: 100%;
    margin: 0;
  }

  .podcast-mark {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 128px;
    max-width: 58%;
  }

  .podcast-copy {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .podcast-start-label {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fef603;
    color: #111111;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  .podcast-number,
  .podcast-name {
    margin: 0;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.25;
  }

  .podcast-number {
    font-size: 14px;
  }

  .podcast-name {
    margin-top: 4px;
    font-size: 16px;
  }

  .podcast-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }

  .podcast-platforms img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 900px) {
  body:has(.podcast-catalogue) .page-title {
    max-width: 560px;
  }

  .podcast-back {
    display: block;
    width: 860px;
    max-width: calc(100vw - 80px);
    margin: 20px auto 0;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
  }

  .podcast-back:hover,
  .podcast-platforms a:hover,
  .podcast-polaroid-link:hover,
  .podcast-name a:hover,
  .podcast-number a:hover {
    opacity: 0.88;
  }

  .podcast-catalogue {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 860px;
    max-width: calc(100vw - 80px);
    margin: 36px auto 0;
    padding: 0 0 72px;
  }

  .podcast-episode {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 32px;
    row-gap: 10px;
    align-items: start;
    margin: 0;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    overflow: visible;
  }

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

  .podcast-episode--start {
    padding-top: 8px;
    padding-bottom: 44px;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .podcast-polaroid,
  .podcast-polaroid-link {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: calc(100% - 12px);
    margin: 10px 8px 16px 4px;
  }

  .podcast-polaroid-link .podcast-polaroid {
    width: 100%;
    margin: 0;
  }

  .podcast-mark {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 248px;
    max-width: 46%;
  }

  .podcast-copy {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .podcast-start-label {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fef603;
    color: #111111;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  .podcast-number,
  .podcast-name {
    margin: 0;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.25;
  }

  .podcast-number {
    font-size: 18px;
  }

  .podcast-name {
    margin-top: 6px;
    font-size: 24px;
  }

  .podcast-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }

  .podcast-platforms img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
  }
}

/* Episode landing page. Does not restyle the catalogue cards. */
.episode-detail {
  display: none;
}

.episode-mark {
  display: block;
  height: auto;
  pointer-events: none;
}

.episode-kicker,
.episode-title,
.episode-lede,
.episode-section h2,
.episode-section p,
.episode-transcript summary {
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
}

.episode-section a {
  color: #ffffff;
}

.episode-player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 200px;
  border: 0;
  background: transparent;
}

@media (max-width: 899px) {
  html:has(.episode-detail),
  body:has(.episode-detail) {
    overflow-x: hidden;
  }

  .episode-detail {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 430px;
    margin: 20px auto 0;
    padding: 0 0 48px;
  }

  .episode-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .episode-detail .podcast-polaroid {
    width: min(220px, 72%);
    margin: 8px 0 0;
  }

  .episode-hero-copy {
    width: 100%;
  }

  .episode-mark {
    width: 168px;
    max-width: 70%;
    margin: 0 0 18px auto;
  }

  .episode-kicker {
    margin: 0;
    color: #fef603;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .episode-title {
    margin: 8px 0 14px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
  }

  .episode-lede {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
  }

  .episode-detail .podcast-platforms {
    margin-top: 18px;
  }

  .episode-section {
    margin-top: 36px;
  }

  .episode-section h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
  }

  .episode-section p {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
  }

  .episode-transcript summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  .episode-transcript p {
    margin-top: 14px;
  }
}

@media (min-width: 900px) {
  .episode-detail {
    display: block;
    box-sizing: border-box;
    width: 860px;
    max-width: calc(100vw - 80px);
    margin: 28px auto 0;
    padding: 0 0 80px;
  }

  .episode-hero {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }

  .episode-detail .podcast-polaroid {
    width: calc(100% - 12px);
    margin: 12px 6px 8px 4px;
  }

  .episode-mark {
    width: 210px;
    max-width: 46%;
    margin: 0 0 22px auto;
  }

  .episode-kicker {
    margin: 0;
    color: #fef603;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .episode-title {
    margin: 10px 0 18px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
  }

  .episode-lede {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
  }

  .episode-detail .podcast-platforms {
    margin-top: 22px;
  }

  .episode-section {
    margin-top: 48px;
  }

  .episode-section h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
  }

  .episode-section p {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
  }

  .episode-transcript summary {
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
  }

  .episode-transcript p {
    margin-top: 16px;
  }
}
