/* Homepage, layout C1 "Classic" (Mary 2026-11-21): calm, centered, cream all the way down, navy footer.
   Loads after styles.css. Everything here is scoped to body.home or the h- prefix so the Guide page and the
   pop-up keep their own styles. Teachers 800 caps headlines, JetBrains Mono labels, one blue accent. */

.home { --ink: #0A6BB8; --muted: #4F6072; --line: #E6D8C6; --sky: #BDE5FF; overflow-x: clip; }
.home *, .home *::before, .home *::after { min-width: 0; }

.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.h-blue { color: var(--blue); }
.h-mono { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }

/* Buttons: navy, chunky, a little blue shadow (round 5) */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px;
  border: 0; border-radius: 6px; background: var(--navy); color: var(--cream); cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; box-shadow: 4px 4px 0 var(--blue);
  transition: transform .15s ease, box-shadow .15s ease;
}
.h-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--blue); }
.h-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--blue); }
.h-btn:disabled { opacity: .6; cursor: default; }
.h-btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* Nav */
.h-nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.h-wm { display: inline-flex; flex-direction: column; justify-self: start; font-weight: 800; text-transform: uppercase; line-height: .84; font-size: 28px; text-decoration: none; }
.h-wm__k { font-size: .355em; margin-bottom: .06em; }
.h-links { display: flex; gap: 34px; }
.h-links a { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.h-links a:hover { border-color: var(--navy); }
.h-nav .h-btn { justify-self: end; }

/* Hero */
/* Base sizes live in custom properties so the phone breakpoint can change them; --hs (set by the
   fit script after the hero in index.html) shrinks them so the form and the listen line load on screen */
.h-hero { --pad: 64px; --kick: 52px; --big: 150px; --gap: 40px; --mary: 184px; --josh: 232px;
  padding: calc(var(--pad) * var(--hs, 1)) 0 88px; text-align: center; }
.h-hero__inner { display: flex; flex-direction: column; align-items: center; }
.h-hero h1 { margin: 0; font-weight: 800; text-transform: uppercase; }
.h-hero__kick { display: block; font-size: calc(var(--kick) * max(var(--hs, 1), var(--hsmin, 0))); line-height: 1; letter-spacing: -.01em; }
.h-hero__big { display: block; font-size: calc(var(--big) * max(var(--hs, 1), var(--hsmin, 0))); line-height: .86; letter-spacing: -.03em; }
.h-hosts { display: flex; align-items: flex-end; justify-content: center; gap: 24px; margin: calc(var(--gap) * var(--hs, 1)) 0 0; }
/* Floating, like Get It Girl's sticker: up about 12px with a degree or two of tilt, slow, each on its own rhythm */
.h-host { position: relative; padding: 0; border: 0; background: none; cursor: pointer; animation: h-float 6s ease-in-out infinite alternate; }
.h-host img { display: block; height: auto; }
.h-hero__big .h-blue { display: block; } /* Normal / people always stack, even when the scale lets them fit on one line */
.h-host--mary { --tilt: -1.6deg; }
.h-host--mary img { width: calc(var(--mary) * var(--hs, 1)); }
.h-host--josh { --tilt: 1.4deg; animation-duration: 6.8s; animation-delay: -3.2s; }
.h-host--josh img { width: calc(var(--josh) * var(--hs, 1)); }
@keyframes h-float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-12px) rotate(var(--tilt)); } }
.h-host:focus-visible { outline: 0; }
.h-host:focus-visible img { filter: drop-shadow(0 0 10px rgba(56,182,255,.9)); }
/* Speech bubble on tap */
.h-bubble { position: absolute; left: 50%; bottom: calc(100% - 18px); transform: translate(-50%, 8px) scale(.9); width: max-content; max-width: 220px; padding: 10px 14px; border-radius: 14px; background: var(--navy); color: var(--cream); font: 700 15px/1.3 var(--display); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.h-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--navy); }
.h-host.is-talking .h-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* Hover NORMAL and an "-ish" slaps on */
.h-normal { position: relative; }
.h-normal::after { content: '-ish'; position: absolute; right: -.1em; top: -.05em; transform: rotate(8deg) scale(.6); font-family: var(--mono); font-size: 38px; letter-spacing: 0; text-transform: none; color: var(--blue); opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.h-hero h1:hover .h-normal::after { opacity: 1; transform: rotate(8deg) scale(1); }
.h-lead { margin: calc(22px * var(--hs, 1)) auto calc(30px * var(--hs, 1)); max-width: 500px; font-size: 20px; line-height: 1.5; font-weight: 500; }

.h-form { width: 100%; max-width: 560px; }
.h-form__row { display: flex; gap: 8px; justify-content: center; }
.h-input {
  flex: 1; height: 54px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 6px;
  background: var(--foam); color: var(--navy); font: 500 17px var(--display);
}
.h-input::placeholder { color: var(--muted); }
.h-input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.h-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.h-hero .h-form { max-width: none; }
.h-hero .h-form__row { max-width: 560px; margin: 0 auto; }
.h-hero .h-note { white-space: nowrap; }
.home .notes__status:empty { min-height: 0; margin: 0; }
.home .notes__status { margin: 8px 0 0; min-height: 1.4em; font-size: 15px; color: var(--muted); }
.home .notes__status--ok { color: var(--navy); font-weight: 700; }
.home .notes__status--err { color: #B3261E; }

/* Watch or listen: one quiet line of links under the email note (Mary 2026-11-21) */
.h-listen { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.h-listen a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.h-listen a:hover { color: var(--ink); }
.h-listen a.btn--soon { pointer-events: none; opacity: .6; }

/* Sections */
.h-sec { padding: 96px 0; }
.home .h-sec[id] { scroll-margin-top: 24px; }
.h-jump { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.h-jump:hover { color: var(--navy); }
.h-jump:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
.h-build__intro { max-width: 620px; margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.h-get { padding-top: 24px; }
.h-rule { border-top: 0; } /* no divider lines (Mary 2026-11-21) */
.h-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.h-get h2 { margin: 12px 0 8px; font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.h-get p:not(.h-mono) { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }

.h-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.h-head h2, .h-guide h2 { margin: 0; font-weight: 800; font-size: 56px; line-height: .9; letter-spacing: -.025em; text-transform: uppercase; }
.h-head__all:hover { text-decoration: underline; }

/* Try it yourself cards (from the earlier C1 mock) */
.h-card { display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: 28px; border-radius: 22px; background: var(--foam); color: var(--navy); text-decoration: none; transition: transform .2s ease, background .2s; }
.h-card:hover { transform: translateY(-3px); background: #FFFFFF; }
.h-card__k { color: var(--muted); }
.h-card__t { font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.h-card__p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.h-card__go { margin-top: auto; }
.h-try { text-align: left !important; }

/* Study guide band */
.h-guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.h-guide__cover { display: block; transform: rotate(-2deg); transition: transform .3s ease; }
.h-guide__cover:hover { transform: rotate(0deg) translateY(-4px); }
.h-guide__cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 0 var(--line), 0 24px 48px -24px rgba(11, 42, 69, .35); }
.h-guide__copy .h-mono { margin-bottom: 14px; }
.h-guide__copy > p:not(.h-mono) { margin: 18px 0 20px; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.h-guide__levels { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.h-guide__levels li { padding: 10px 14px; border-radius: 10px; background: var(--foam); font-weight: 700; text-transform: uppercase; font-size: 15px; }
.h-guide__levels b { display: inline-block; width: 40px; color: var(--blue); font-weight: 800; }

/* Episodes: six newest, three across, all the same size */
.h-eps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.home .ep--latest { grid-column: auto; }
.home .ep--latest .ep__title { font-size: clamp(17px, 1.4vw, 19px); }
.home .ep--latest .ep__thumb, .home .ep__thumb { border-radius: 10px; }
.home .ep__meta { color: var(--ink); }
.h-eps .ep:nth-child(n + 7) { display: none; }

/* Footer */
.h-foot { background: var(--navy); color: var(--cream); padding: 96px 0 40px; text-align: center; }
.h-foot__big { margin: 0; font-weight: 800; text-transform: uppercase; font-size: 160px; line-height: .82; letter-spacing: -.035em; }
.h-foot__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; }
.h-foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.h-foot__links a { color: var(--sky); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.h-foot__links a:hover { color: var(--cream); }
.h-foot .social { color: var(--cream); }
.h-foot .social:hover { background: var(--cream); color: var(--navy); }
.h-foot .h-foot__social { margin: 0; }
.h-foot__fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.h-foot__fine .h-foot__sign { margin: 0; }
.h-foot__sign { margin: 24px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--sky); text-align: left; }

/* Laptops */
@media (max-width: 1100px) {
  .h-hero { --big: 120px; }
  .h-foot__big { font-size: 120px; }
}

@media (860px < width <= 1000px) {
  .h-get .h-three { gap: 20px; }
  .h-get h2 { font-size: 21px; }
  .h-get p:not(.h-mono) { font-size: 16px; }
}

/* Tablets */
@media (max-width: 860px) {
  .h-guide { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .h-guide__cover { max-width: 300px; }
  .h-guide__copy > p:not(.h-mono), .h-guide__levels { margin-left: auto; margin-right: auto; text-align: left; }
  .h-three { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .h-eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-eps .ep:nth-child(n + 5) { display: none; }
  .h-foot__big { font-size: 88px; }
}

/* Phones */
@media (max-width: 640px) {
  .h-wrap { padding: 0 20px; }
  .h-nav__inner { grid-template-columns: 1fr auto; grid-template-areas: 'wm btn' 'links links'; height: auto; padding-top: 14px; padding-bottom: 2px; row-gap: 8px; }
  .h-wm { grid-area: wm; }
  .h-nav .h-btn { grid-area: btn; }
  .h-links { grid-area: links; justify-content: space-between; gap: 10px; }
  .h-links a { font-size: 11px; letter-spacing: .1em; }
  .h-hero { --pad: 36px; --kick: 26px; --big: 58px; --gap: 44px; --mary: 140px; --josh: 176px; --hsmin: .82; padding-bottom: 64px; }
  .h-hosts { gap: 14px; }
  .h-hero .h-note { white-space: normal; text-wrap: balance; font-size: 14px; }
  .h-bubble { font-size: 13px; max-width: 160px; }
  .h-normal::after { font-size: 18px; }
  .h-lead { font-size: 17px; margin: 18px auto 24px; }
  .h-form__row { flex-direction: column; }
  .h-input { flex: none; width: 100%; font-size: 16px; } /* 16px keeps iOS Safari from zooming in */
  .h-form .h-btn { width: 100%; }
  .h-sec { padding: 64px 0; }
  .h-get { padding-top: 8px; }
  .h-head { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 28px; }
  .h-head h2, .h-guide h2 { font-size: 40px; }
  .h-guide__levels { grid-template-columns: 1fr; }
  .h-guide__levels li { font-size: 14px; }
  .h-guide__copy .h-btn { width: 100%; }
  /* styles.css turns older episodes into text rows on phones; keep the three newest as cards here */
  .h-eps { grid-template-columns: 1fr; gap: 28px; }
  .h-eps .ep:nth-child(n + 4) { display: none; }
  .home .ep:not(.ep--latest) { padding: 0; border-top: 0; gap: 12px; }
  .home .ep:not(.ep--latest) .ep__thumb { display: block; }
  .home .ep--latest { padding-bottom: 0; }
  .h-foot { padding: 64px 0 32px; }
  .h-foot__big { font-size: 54px; }
  .h-foot__row { flex-direction: column; align-items: center; }
  .h-foot__links { justify-content: center; gap: 16px; }
  .h-foot__sign { text-align: center; }
  .h-foot__fine { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .h-btn, .h-guide__cover { transition: none; }
  .h-host { animation: none; }
  .h-guide__cover:hover { transform: none; }
}

/* about */
.h-about__lead--2 { margin-bottom: 40px !important; }
.h-about__head { margin-bottom: 18px; }
.h-about__lead { margin: 0 0 14px; text-wrap: pretty; font-size: 21px; line-height: 1.5; font-weight: 500; }
.h-about__break { margin: 0 0 18px; font-size: 20px; line-height: 1.25; text-wrap: balance; }
.h-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h-who { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 22px; border-radius: 24px; background: var(--foam); }
.h-who img { width: 100%; height: auto; transform: rotate(-2deg); }
.h-who:first-child img { width: 75%; justify-self: center; }
.h-who:nth-child(2) img { transform: rotate(2deg); }
.h-who > div { align-self: start; }
.h-who h4 { margin: 6px 0 12px; font-weight: 800; font-size: 30px; line-height: .95; text-transform: uppercase; }
.h-who h4 span { display: block; }
.h-who ul { margin: 0; padding-left: 18px; font-size: 17px; line-height: 1.45; }
.h-who li { margin-bottom: 6px; }
@media (max-width: 900px) { .h-about__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .h-who { grid-template-columns: 84px 1fr; gap: 14px; padding: 18px; } .h-who h4 { font-size: 24px; } .h-about__lead { font-size: 18px; } }
@media (max-width: 380px) { .h-who { grid-template-columns: 60px 1fr; gap: 10px; padding: 16px; } }
