/* ==========================================================================
   Inside the Race — The MyWhoosh Racing Podcast
   Design tokens + component styles. Deliberately flat/editorial:
   no glows, no drop shadows, small radii only.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #0B0B0D;
  --surface: #141418;
  --surface-hover: #17171c;
  --input-bg: #0B0B0D;

  --text: #F5F3EE;
  --muted-light: #C4C0B7;
  --muted-light-2: #C9C5BC;
  --muted-light-3: #CBC7BE;
  --muted: #A9A59C;
  --muted-2: #97938B;
  --fine: #6E6A63;

  --amber: #E8A317;
  --amber-border: rgba(232, 163, 23, 0.5);

  --hairline: rgba(255, 255, 255, 0.08);
  --control-border: rgba(255, 255, 255, 0.14);
  --control-border-strong: rgba(255, 255, 255, 0.22);

  --spotify: #1DB954;
  --youtube: #FF0000;
  --apple: linear-gradient(160deg, #F452FF, #832BC1);

  /* Type */
  --display: 'Saira Condensed', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;

  /* Radius */
  --r-sm: 2px; /* buttons / inputs / chips */
  --r-md: 3px; /* cards / panels / tiles / iframe */

  /* Layout */
  --maxw: 1200px;
  --pad-x: 28px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--amber); color: var(--bg); }

/* Sections offset the sticky header when jumped to via anchor. */
[id] { scroll-margin-top: 84px; }

/* Visible focus for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* --- Shared building blocks ---------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

/* eyebrow with a leading amber rule */
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.eyebrow-rule .eyebrow { letter-spacing: 0.22em; }

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--amber); color: var(--bg); }
.btn--primary:hover { background: #f2af23; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--control-border-strong);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

/* Instagram-style pill link */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  padding: 8px 16px;
  transition: border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--amber); color: var(--amber); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(11, 11, 13, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--amber);
}
.brand__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a.nav-link {
  color: var(--muted-light-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .15s ease;
}
.site-nav a.nav-link:hover { color: var(--text); }
.nav-cta { font-size: 15px; letter-spacing: 0.05em; padding: 9px 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 88px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow { margin-bottom: 26px; }
.hero__eyebrow .eyebrow { letter-spacing: 0.22em; }

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title .amber { color: var(--amber); }

.hero__lead {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-light);
  margin-bottom: 34px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__buttons .btn { font-size: 17px; padding: 14px 26px; }

.hero__art { display: flex; justify-content: center; }
.hero__art img {
  width: min(380px, 80vw);
  height: auto; /* override the width/height HTML attrs so aspect-ratio keeps it a circle */
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--amber-border);
}

/* Waveform accent */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 38px;
  margin-bottom: 34px;
}
.waveform span {
  width: 5px;
  height: 38px;
  border-radius: 3px;
  background: var(--amber);
  opacity: 0.85;
  transform-origin: bottom;
  animation: wf 1s ease-in-out infinite;
}
@keyframes wf {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; transform: scaleY(0.6); }
}

/* ==========================================================================
   Listen / subscribe row
   ========================================================================== */
.listen {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 8px var(--pad-x);
}
.listen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 20px 22px;
  transition: border-color .15s ease, background .15s ease;
}
.platform-card:hover {
  border-color: rgba(232, 163, 23, 0.55);
  background: var(--surface-hover);
}
.platform-card__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-card__icon--spotify { background: var(--spotify); }
.platform-card__icon--apple   { background: var(--apple); }
.platform-card__icon--youtube { background: var(--youtube); }
.platform-card__title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.platform-card__sub { display: block; font-size: 13px; color: var(--muted-2); }

/* ==========================================================================
   Generic section header (eyebrow + title + intro)
   ========================================================================== */
.section { padding: 72px var(--pad-x) 24px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head__aside {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* ==========================================================================
   Episodes
   ========================================================================== */
.episode-players {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.episode-player__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.episode-embed {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px;
  overflow: hidden;
}
.episode-embed iframe {
  border: 0;
  border-radius: var(--r-md);
  display: block;
  width: 100%;
}
/* YouTube video plays 16:9 rather than the fixed-height Spotify box */
.episode-embed--video iframe { aspect-ratio: 16 / 9; height: auto; }

/* ==========================================================================
   Hosts
   ========================================================================== */
.hosts__head { margin-bottom: 34px; }
.hosts__head .eyebrow { display: block; margin-bottom: 10px; }
.hosts__intro {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 14px;
}

.hosts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.host-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease;
}
.host-card:hover { border-color: rgba(232, 163, 23, 0.4); }
.host-card__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.host-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.host-card__body { padding: 22px; }
.host-card__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.host-card__role {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.host-card__bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.host-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about__panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.about__inner { position: relative; max-width: 760px; }
.about__inner .eyebrow { display: block; margin-bottom: 12px; }
.about__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.about__inner p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--muted-light-3);
  margin-bottom: 18px;
}
.about__inner a { color: var(--amber); text-decoration: none; font-weight: 600; }
.about__inner a:hover { text-decoration: underline; }
.about__signoff {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 8px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact__lead .eyebrow-rule { margin-bottom: 12px; }
.contact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact__copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea {
  background: var(--input-bg);
  border: 1px solid var(--control-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { border-color: var(--amber); }

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-form__actions .btn { font-size: 16px; padding: 13px 26px; }
.contact-form__hint { font-size: 13px; color: var(--fine); }

/* Form status messages (success / error) */
.form-status {
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
}
.form-status--success { color: var(--text); border-color: rgba(232, 163, 23, 0.45); }
.form-status--error { color: #ffb4b4; border-color: rgba(255, 90, 90, 0.4); }
[hidden] { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 64px var(--pad-x) 56px;
}
.site-footer__top {
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--amber);
}
.footer-brand__name {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.footer-brand__sub {
  display: block;
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 4px;
}

.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--control-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light-2);
  transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }

.site-footer__fine {
  margin-top: 28px;
  font-size: 13px;
  color: var(--fine);
}
.site-footer__fine a { color: var(--muted-2); text-decoration: none; }
.site-footer__fine a:hover { color: var(--amber); }

/* ==========================================================================
   Partners / MyWhoosh world
   ========================================================================== */
.partners { padding: 64px var(--pad-x) 8px; }
.partners__eyebrow { display: block; margin-bottom: 18px; }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.partner-card {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: border-color .15s ease, background .15s ease;
}
.partner-card:hover {
  border-color: rgba(232, 163, 23, 0.4);
  background: var(--surface-hover);
}
.partner-card__logo {
  flex: none;
  width: 116px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.partner-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partner-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-light);
}
.partner-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}
.partner-card__cta svg { transition: transform .15s ease; }
.partner-card:hover .partner-card__cta svg { transform: translateX(3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  [id] { scroll-margin-top: 72px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px var(--pad-x) 64px;
  }
  .hero__art { order: -1; }

  .listen__grid { grid-template-columns: 1fr; }
  .hosts__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 56px var(--pad-x) 20px; }
}

/* Tablet: hosts 2-up */
@media (min-width: 640px) and (max-width: 900px) {
  .hosts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: 12px 16px; padding: 12px var(--pad-x); }
  .site-nav { gap: 18px; flex-wrap: wrap; }
  .brand__word { font-size: 16px; }
  .partners__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .site-nav { width: 100%; justify-content: flex-start; }
  /* Tap targets stay comfortable on mobile */
  .nav-link { padding-block: 4px; }
}
