/* ==========================================================================
   The Inside Baseball of... - homepage hero
   Editorial layout. All hero geometry is derived from the approved 1680px
   reference and scaled with --u (1px at >=1680px, shrinking with the viewport).
   ========================================================================== */

/* Self-hosted fonts: latin subsets, SIL Open Font License (see fonts/LICENSES.md). */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-Italic-VF.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/LibreCaslonText-400.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Archivo-VF.woff2") format("woff2");
}

:root {
  --cream: #f7f4ed;
  --ink: #111820;
  --muted: #8a8b88;
  --red: #a20f16;
  --red-deep: #8d0c12;
  --body-bg: #151719;
  --rule: rgba(17, 24, 32, 0.16);
  --rule-strong: rgba(17, 24, 32, 0.32);

  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --serif-display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans-heavy: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* 1px at the 1680px reference width, scaling down below it */
  --u: min(1px, calc(100vw / 1680));
  --pad: calc(88 * var(--u));
}

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

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

body {
  margin: 0;
  background: var(--body-bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Site canvas ----------------------------------------------------------- */
.site {
  width: 100%;
  max-width: 1680px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  overflow-x: clip;
}

/* Header ---------------------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
}

.header__logo {
  font-size: 22px;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 46px;
  margin-left: calc(118 * var(--u));
  font-size: 18px;
}

.header__nav a,
.header__logo { transition: color 0.15s ease; }
.header__nav a:hover,
.header__logo:hover { color: var(--red); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
}

.header__search {
  display: inline-flex;
  color: var(--ink);
}
.header__search:hover { color: var(--red); }

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font-size: 18px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.header__cta:hover { background: var(--red-deep); }
.header__cta .arrow { font-family: var(--sans); font-weight: 400; }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  height: calc(757 * var(--u));
  min-height: 560px;
  padding: calc(45 * var(--u)) var(--pad) 0;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: calc(880 * var(--u));
}

/* Title */
.title {
  margin: 0 0 0 calc(-4 * var(--u));
  font-weight: 400;
  color: var(--ink);
}
.title > span { display: block; }

.title__the {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: calc(84 * var(--u));
  line-height: 1;
  margin-bottom: calc(2 * var(--u));
  padding-left: calc(4 * var(--u));
}

.title__inside,
.title__baseball {
  font-family: var(--sans-heavy);
  font-weight: 400;
  text-transform: uppercase;
  font-size: calc(151 * var(--u));
  line-height: calc(141 * var(--u));
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.title__inside { color: var(--red); }
.title__baseball { color: var(--ink); }

.title__of {
  display: inline;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: calc(112 * var(--u));
  line-height: 0.6;
  letter-spacing: 0;
  margin-left: calc(-3 * var(--u));
  color: var(--ink);
}
.title__dots {
  font-weight: 700;
  letter-spacing: -0.06em;
  margin-left: 0.02em;
}

/* Host line: name + rule that runs underneath the photo layer */
.host {
  display: flex;
  align-items: center;
  margin: calc(19 * var(--u)) 0 0;
  /* let the rule run to the right edge of the hero, under Peter */
  width: calc(100% + 712 * var(--u));
  max-width: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(15px, calc(22 * var(--u)));
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}
.host__name { white-space: nowrap; }
.host__rule {
  flex: 1 1 auto;
  height: 2px;
  margin-left: calc(14 * var(--u));
  background: var(--ink);
}

/* Intro */
.intro {
  max-width: calc(570 * var(--u));
  margin: calc(25 * var(--u)) 0 0;
  font-size: max(22px, calc(30 * var(--u)));
  line-height: 1.2;
  color: var(--ink);
}

/* CTA row */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(17 * var(--u));
  margin-top: calc(27 * var(--u));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: max(60px, calc(76 * var(--u)));
  border-radius: 14px;
  font-size: max(19px, calc(23 * var(--u)));
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  width: calc(325 * var(--u));
  min-width: 260px;
  justify-content: flex-start;
  padding-left: calc(24 * var(--u));
  gap: calc(24 * var(--u));
  background: var(--red);
  color: var(--cream);
}
.btn--primary:hover { background: var(--red-deep); }

.btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(26px, calc(31 * var(--u)));
  height: max(26px, calc(31 * var(--u)));
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  flex: none;
}
.btn__play svg { width: 42%; height: 42%; margin-left: 8%; }

.btn--secondary {
  width: calc(218 * var(--u));
  min-width: 180px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--secondary:hover { background: var(--ink); color: var(--cream); }

/* Photo layer: sits above the title and the host rule */
.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.hero__photo picture,
.hero__photo img {
  height: 100%;
  width: auto;
  max-width: none;
}

/* Latest episode strip ------------------------------------------------- */
.strip {
  display: flex;
  align-items: center;
  min-height: 119px;
  padding: 18px var(--pad);
  border-top: 1px solid var(--rule-strong);
}

.strip__latest {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: calc(66 * var(--u));
}

.strip__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.strip__title {
  font-size: 25px;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.strip__title:hover { color: var(--red); }
.strip__title .arrow { color: var(--red); font-family: var(--sans); font-weight: 400; margin-left: 0.15em; }
.strip__title .nowrap { white-space: nowrap; }

.strip__cats {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--rule-strong);
}
.strip__cats li {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--rule-strong);
}
.strip__cats a {
  display: block;
  padding: 12px 33px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s ease;
}
.strip__cats a:hover { color: var(--red); }

.strip__tagline {
  margin: 0 0 0 auto;
  padding-left: 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Wide-desktop to laptop adjustments ------------------------------------ */
@media (max-width: 1500px) {
  .strip__cats a { padding: 12px 24px; font-size: 13px; }
  .strip__tagline { font-size: 12px; padding-left: 24px; }
  .strip__latest { margin-right: calc(48 * var(--u)); }
}
@media (max-width: 1300px) {
  .strip__tagline { display: none; }
  .strip__title { font-size: 23px; }
}
@media (max-width: 1180px) {
  .header__nav { margin-left: 56px; gap: 32px; font-size: 17px; }
  .header__actions { gap: 28px; }
}

/* ==========================================================================
   Tablet (<=1080px): hierarchy kept, type reduced, Peter ~50% width,
   overlap preserved. --u no longer drives the hero.
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --pad: 40px; }

  .header { height: 60px; }
  .header__logo { font-size: 20px; }
  .header__nav { margin-left: 48px; gap: 32px; font-size: 17px; }
  .header__actions { gap: 24px; }
  .header__cta { height: 38px; padding: 0 18px; font-size: 16px; }

  .hero {
    height: auto;
    min-height: 0;
    padding: 40px var(--pad) 48px;
  }
  .hero__copy { max-width: 62%; }

  .title { margin-left: -3px; }
  .title__the { font-size: 60px; margin-bottom: 0; padding-left: 3px; }
  .title__inside,
  .title__baseball { font-size: clamp(80px, 11.2vw, 112px); line-height: 0.93; letter-spacing: 0.09em; }
  .title__of { font-size: clamp(56px, 8vw, 80px); margin-left: -2px; }

  .host {
    width: calc(100% + 38%);
    margin-top: 16px;
    font-size: 16px;
    letter-spacing: 0.26em;
  }
  .host__rule { margin-left: 12px; }

  .intro { max-width: 460px; margin-top: 22px; font-size: 24px; }
  .cta { gap: 14px; margin-top: 26px; }
  .btn { height: 64px; font-size: 19px; }
  .btn--primary { width: 250px; min-width: 0; padding-left: 20px; gap: 16px; }
  .btn--secondary { width: 170px; min-width: 0; }

  /* Photo box fills the hero height; the layer is cover-cropped on the
     right so Peter and the microphone stay the focal point. */
  .hero__photo {
    top: 0;
    bottom: 0;
    height: auto;
    width: 50%;
  }
  .hero__photo picture,
  .hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% bottom;
  }

  .strip { min-height: 0; padding: 18px var(--pad); flex-wrap: wrap; row-gap: 16px; }
  .strip__latest { margin-right: 40px; }
  .strip__title { font-size: 22px; }
  .strip__cats a { padding: 10px 22px; font-size: 13px; }
  .strip__tagline { display: none; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .hero__copy { max-width: 54%; }
  .hero__photo { width: 46%; }
  .hero__photo picture,
  .hero__photo img { object-position: 22% bottom; }
}

/* ==========================================================================
   Mobile (<=720px): simplified header, title first, Peter below, stacked
   CTAs, horizontally scrollable strip. No horizontal page overflow.
   ========================================================================== */
@media (max-width: 720px) {
  :root { --pad: 20px; }

  .header { height: 56px; }
  .header__logo { font-size: 17px; }
  .header__nav,
  .header__search { display: none; }
  .header__cta { height: 34px; padding: 0 14px; font-size: 14px; }
  .header__cta-long { display: none; }

  .hero { display: flex; flex-direction: column; padding: 28px var(--pad) 40px; }
  .hero__copy { display: contents; }

  .title { order: 1; margin-left: -2px; }
  .title__the { font-size: 42px; padding-left: 2px; }
  .title__inside,
  .title__baseball { font-size: 15.2vw; line-height: 0.93; letter-spacing: 0.07em; }
  .title__of { font-size: 11vw; margin-left: -1px; }

  .hero__photo {
    order: 2;
    position: relative;
    top: auto;
    bottom: auto;
    width: calc(100% + 2 * var(--pad));
    height: auto;
    margin: 10px calc(-1 * var(--pad)) 0;
    overflow: hidden;
    aspect-ratio: 5 / 6;
  }
  .hero__photo picture {
    position: absolute;
    left: -34%;
    bottom: 0;
    width: 150%;
    height: auto;
  }
  .hero__photo img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .host {
    order: 3;
    width: calc(100% + var(--pad));
    margin-top: 22px;
    font-size: 14px;
    letter-spacing: 0.24em;
  }
  .host__rule { margin-left: 12px; height: 1.5px; }

  .intro { order: 4; max-width: none; margin-top: 18px; font-size: 21px; }

  .cta { order: 5; flex-direction: column; gap: 12px; margin-top: 24px; }
  .btn,
  .btn--primary,
  .btn--secondary { width: 100%; min-width: 0; height: 60px; font-size: 18px; }
  .btn--primary { justify-content: center; padding-left: 0; gap: 14px; }

  .strip { display: block; padding: 20px 0 22px; }
  .strip__latest { padding: 0 var(--pad); margin: 0 0 16px; }
  .strip__title { font-size: 19px; white-space: normal; }
  .strip__cats {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-left: 0;
    padding: 0 var(--pad);
  }
  .strip__cats::-webkit-scrollbar { display: none; }
  .strip__cats li:first-child { border-left: 1px solid var(--rule-strong); }
  .strip__cats a { padding: 10px 18px; font-size: 12px; white-space: nowrap; }
  .strip__tagline { display: none; }
}

@media (max-width: 380px) {
  .title__the { font-size: 36px; }
}

/* Focus / motion -------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
