/* ===== Design tokens — inspired by Acquired's structure, AAIM High's own brand ===== */
:root {
  --navy: #1c4484;
  --navy-deep: #12305f;
  --sky: #a3c0ef;
  --gold: #b6995c;
  --cream: #f6f1e6;
  --cream-alt: #ece2cd;
  --ink: #171a21;
  --ink-70: rgba(23, 26, 33, 0.7);
  --ink-50: rgba(23, 26, 33, 0.5);
  --ink-15: rgba(23, 26, 33, 0.12);
  --cream-70: rgba(246, 241, 230, 0.7);
  --cream-50: rgba(246, 241, 230, 0.5);
  --cream-15: rgba(246, 241, 230, 0.15);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.section-intro {
  max-width: 620px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--navy);
  color: var(--cream);
}
.btn--primary:hover { background: var(--navy-deep); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--ink-15);
}
.btn--ghost:hover { border-color: var(--navy); }

.btn--on-dark {
  background: var(--cream);
  color: var(--navy-deep);
}
.btn--on-dark:hover { background: var(--sky); }

.btn--ghost-on-dark {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream-15);
}
.btn--ghost-on-dark:hover { border-color: var(--cream); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream-70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a:not(.btn) {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-70);
}
.nav-menu a:not(.btn):hover { color: var(--navy); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero .eyebrow { color: var(--sky); }

.hero h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.02;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p.subhead {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--cream-70);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.hero__host {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-50);
}

/* ===== Brand grid ===== */
.brand-section {
  padding: 64px 0 40px;
}

.brand-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.brand-section__header p {
  margin-top: 10px;
  color: var(--ink-70);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-15);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.logo-panel {
  background: #fff;
  border: none;
  padding: 26px 20px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.logo-panel:hover,
.logo-panel:focus-visible {
  background: var(--cream-alt);
  transform: scale(1.03);
  z-index: 1;
  position: relative;
  box-shadow: 0 10px 24px rgba(23, 26, 33, 0.12);
  outline: none;
}

.logo-panel__img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* A few marks read small/whitespace-heavy at the default size — scale those up */
.logo-panel__img--boost { max-height: 68px; }

/* Shown automatically if a logo file hasn't been added to images/logos/ yet */
.logo-panel--fallback {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-70);
}
.logo-panel--fallback:hover { color: var(--navy); }

@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mission strip ===== */
.mission {
  padding: 56px 0;
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
  background: var(--cream-alt);
}

.mission__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.mission blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.25;
  color: var(--navy-deep);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.mission cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* ===== Episodes ===== */
.episodes-section { padding: 72px 0; }

.episodes-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-15);
}

.episode-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--ink-15);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease);
}
.episode-row:hover,
.episode-row:focus-visible { background: var(--cream-alt); outline: none; }

/* Vinyl hover-reveal — record slides out from behind the tile, à la Acquired */
.episode-row__art {
  position: relative;
  width: 110px;
  height: 72px;
  flex-shrink: 0;
}

.vinyl {
  position: absolute;
  top: 50%;
  left: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transform: translate(0, -50%);
  background:
    radial-gradient(circle at center, transparent 0 4px, rgba(255,255,255,0.05) 4px 5px, transparent 5px 100%),
    repeating-radial-gradient(circle at center, #0e0f12 0, #0e0f12 3px, #1c1e24 3px, #1c1e24 5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease);
  z-index: 1;
}

.vinyl__label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--tile-color, var(--navy));
  color: var(--tile-text, var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.vinyl::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.episode-row__tile {
  position: absolute;
  top: 50%;
  left: 0;
  width: 72px;
  height: 72px;
  transform: translateY(-50%);
  border-radius: var(--radius-sm);
  background: var(--tile-color, var(--navy));
  color: var(--tile-text, var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(23, 26, 33, 0.18);
  transition: transform 0.35s var(--ease);
}

.episode-row:hover .vinyl,
.episode-row:focus-visible .vinyl {
  transform: translate(38px, -50%) rotate(18deg);
}
.episode-row:hover .episode-row__tile,
.episode-row:focus-visible .episode-row__tile {
  transform: translateY(-50%) translateX(-6px);
}

.episode-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.episode-row__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.episode-row__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.episode-row__title {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink-70);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-row__arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-15);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.episode-row:hover .episode-row__arrow,
.episode-row:focus-visible .episode-row__arrow {
  color: var(--navy);
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .episode-row__title { white-space: normal; }
  .episode-row__art { width: 88px; height: 60px; }
  .vinyl, .episode-row__tile { width: 60px; height: 60px; }
  .episode-row:hover .vinyl, .episode-row:focus-visible .vinyl { transform: translate(28px, -50%) rotate(18deg); }
}

/* ===== Host teaser (homepage) ===== */
.host-teaser {
  padding: 64px 0;
  background: var(--cream-alt);
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
}

.host-teaser__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Drop a photo into images/host/ben-shin.jpg — shows as a plain navy box until then */
.host-teaser__photo-box {
  width: 120px;
  height: 150px;
  border-radius: var(--radius-md);
  background: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
}
.host-teaser__photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-teaser__info h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 26px;
  margin: 4px 0 16px;
}

.role {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
}

@media (max-width: 480px) {
  .host-teaser__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ===== Contact ===== */
.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-section__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-section p {
  color: var(--ink-70);
  margin-top: 14px;
}

.contact-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream-70);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cream-15);
}

.footer-top .logo { color: var(--cream); }

.footer-tagline {
  max-width: 320px;
  color: var(--cream-50);
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream-50);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--cream-70);
  font-size: 14.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--sky); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--cream-50);
}

/* ===== Episode page (episode.html) ===== */
.episode-page { padding: 48px 0 80px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 32px;
}
.back-link:hover { color: var(--navy); }

/* Top of the page: name/photo on the left, description on the right */
.episode-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-15);
  margin-bottom: 32px;
}

.episode-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.episode-top .episode-bio { padding-top: 4px; }

/* Box hugs the image exactly — sized to the rendered photo, capped so no guest's photo dominates the page.
   Becomes a real link (hover feedback) only when the guest has a `linkedin` URL set in data.js. */
.episode-hero__photo-box {
  display: inline-block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-15);
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.episode-hero__photo-box[href]:hover { opacity: 0.85; transform: translateY(-2px); }

.episode-hero__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 300px;
}

.episode-hero__info { padding-top: 12px; }

.episode-hero__tag {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.episode-hero__name {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 42px);
  text-transform: none;
  letter-spacing: 0;
}

.episode-hero__title {
  margin-top: 6px;
  font-family: var(--font-body);
  color: var(--ink-70);
  font-size: 16px;
}

.listen-panel {
  position: relative;
  background: var(--cream-alt);
  border-radius: var(--radius-lg);
  padding: 40px 28px 76px;
  margin-bottom: 44px;
  text-align: center;
}

/* Interactive vinyl — press to spin + load the player, press again to stop */
.vinyl-player {
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: relative;
  background:
    radial-gradient(circle at center, transparent 0 4px, rgba(255,255,255,0.05) 4px 5px, transparent 5px 100%),
    repeating-radial-gradient(circle at center, #0e0f12 0, #0e0f12 3px, #1c1e24 3px, #1c1e24 5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.vinyl-player:hover { transform: scale(1.03); }
.vinyl-player:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

.vinyl-player.is-spinning { animation: vinyl-spin 2.6s linear infinite; }

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

.vinyl-player__label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--tile-color, var(--navy));
  color: var(--tile-text, var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.vinyl-player::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(7px, 0.8vw, 10px);
  height: clamp(7px, 0.8vw, 10px);
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, -50%);
}

.vinyl-player__caption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  font-weight: 600;
}

.listen-panel__embed:not(:empty) { margin: 20px auto 0; max-width: 420px; }
.listen-panel__embed iframe { border-radius: var(--radius-sm); display: block; }

.listen-panel__note {
  color: var(--ink-70);
  font-size: 14.5px;
}

.section-heading--small { font-size: clamp(20px, 2.6vw, 26px); }

.episode-bio__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

.episode-bio__list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.65;
}

.episode-bio__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 860px) {
  .episode-top { grid-template-columns: 1fr; gap: 28px; }
  .episode-top .episode-bio { padding-top: 0; }
}

@media (max-width: 560px) {
  .episode-hero { flex-direction: column; align-items: flex-start; }
  .episode-hero__photo { max-width: 200px; max-height: 240px; }
}

/* ===== Simple content pages (about.html, host.html) ===== */
.info-page { padding: 48px 0 96px; }

.info-page__narrow { max-width: 720px; }

.info-page h1 { margin-top: 10px; }

.info-page__body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-page__body p {
  color: var(--ink-70);
  font-size: 17px;
  line-height: 1.65;
}

.info-page__body a { color: var(--navy); text-decoration: underline; }

/* Partnerships page — the two marks sit side by side, each on its own beveled white tile */
.partner-logos {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.partner-logos__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(23, 26, 33, 0.06),
    0 4px 10px rgba(23, 26, 33, 0.08);
}

.partner-logos__mark {
  display: block;
  max-height: 140px;
  max-width: 385px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logos__divider {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-50);
}

.info-page__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.host-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.host-page__photo-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--navy);
  overflow: hidden;
}
.host-page__photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-page__info h1 { margin: 6px 0 0; }
.host-page__info .info-page__body { margin-top: 20px; max-width: 560px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .host-page { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--ink-15);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .btn { width: 100%; justify-content: center; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 480px) {
  .listen-panel { padding: 20px 20px 70px; }
  .vinyl-player__caption { bottom: 16px; left: 20px; right: 20px; font-size: 20px; }
}
