/* Get A Grip - static rebuild */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #333333;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

/* ---------- Hero ---------- */

.hero {
  min-height: 529px;
  background: #a50200 url("../img/Hero-Get-A-Grip-scaled.jpg") center / cover no-repeat;
  background-image: image-set(
    url("../img/Hero-Get-A-Grip-scaled.webp") type("image/webp"),
    url("../img/Hero-Get-A-Grip-scaled.jpg") type("image/jpeg")
  );
}

/* ---------- Listen badges ---------- */

.listen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  padding: 20px 10px;
  background-color: #fba49a;
}

.listen__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 800px;
}

.badge {
  display: block;
  flex: 1 1 0;
  transition: transform 0.4s ease;
}

.badge--youtube {
  flex-grow: 1.08; /* the YouTube badge is a touch wider on the original */
}

.badge img {
  width: 100%;
}

.badge:hover,
.badge:focus-visible,
.badge:active {
  transform: scale(1.05);
}

.badge--youtube:hover,
.badge--youtube:focus-visible,
.badge--youtube:active {
  transform: scale(1.02);
}

/* ---------- About ---------- */

.about {
  position: relative;
  overflow: hidden;
  padding: 50px 0 0;
  background: #a50200 url("../img/Backgrounds-Get-A-Grip-16x9-1-scaled.png");
  background-image: image-set(
    url("../img/Backgrounds-Get-A-Grip-16x9-1-scaled.webp") type("image/webp"),
    url("../img/Backgrounds-Get-A-Grip-16x9-1-scaled.png") type("image/png")
  );
}

/* Angela and Vicky cut-out, as an overlay layer like the original */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/vickyangela-trans.png") 155% 100% / 66% auto no-repeat;
  background-image: image-set(
    url("../img/vickyangela-trans.webp") type("image/webp"),
    url("../img/vickyangela-trans.png") type("image/png")
  );
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.about__text {
  width: 57.634%;
  padding: 10px 10px 50px;
}

.about__text p {
  width: 91.34%;
  margin: 0 0 14.4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #ffd1cb;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text strong {
  font-weight: 700;
}

/* ---------- Latest episode ---------- */

.latest {
  padding: 50px 0;
  background-color: #fba49a;
  background-image: linear-gradient(173deg, #fba49a 70%, #eb8a7d 100%);
}

.latest__inner {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.latest__video {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border: 2px solid #ffffff;
  box-sizing: content-box;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.latest__episode {
  flex: 0 0 37.972%;
  padding: 10px;
  font-family: "Schibsted Grotesk", sans-serif;
}

.latest__label {
  display: inline-block;
  margin: 2px 0 0;
  padding: 5px;
  background-color: #cc1818;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.showtitle {
  margin: 2px 0 14.4px;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.5;
}

.latest__summary {
  margin: 0;
  color: #7a7a7a;
  font-size: 16px;
  line-height: 24px;
}

.latest__summary a {
  color: #ffffff;
  font-weight: 700;
}

.latest__summary a:hover {
  text-decoration: underline;
}

/* ---------- Instagram ---------- */

.instagram {
  min-height: 200px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 100;
  min-height: 80px;
  margin-top: -80px; /* sits over the bottom of the Instagram widget, as on the original */
  padding-top: 10px;
  background-color: #505050;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  color: #ffffff;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.site-footer__icon img {
  width: 20px;
  margin-top: 2px;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.site-footer p a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p a:hover {
  text-decoration: underline;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .listen__inner {
    flex-direction: column;
  }

  .badge,
  .badge--youtube {
    flex: none;
    width: 52%;
  }

  .about::before {
    background-position: 150% 0%;
  }

  .latest__inner {
    flex-direction: column;
    padding: 0 10px;
  }

  .latest__episode {
    flex-basis: auto;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .hero {
    min-height: 224px;
  }

  .badge,
  .badge--youtube {
    width: 75%;
  }

  .about {
    padding: 20px 0 80px;
  }

  .about::before {
    background-position: 61% 100%;
  }

  .about__text {
    width: auto;
    padding: 10px 10px 45vw; /* leave room for the cut-out of the hosts */
    text-align: center;
  }

  .about__text p {
    width: auto;
  }

  .latest {
    padding: 30px 0;
  }

  .latest__inner {
    padding: 0;
  }

  .video-wrapper {
    border-width: 0;
  }

  .showtitle {
    font-size: 1.5em;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .site-footer p {
    text-align: center;
  }
}
