/* The teaching page: what is ours beyond the SemaBooks base. */
.brand { gap: 11px; }
.brand .b-t { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand .b-t em { font-style: italic; color: var(--blue-t); }
.ftr .brand .b-t { font-size: 25px; }

/* the problem */
.block .big-n { font-family: var(--serif); font-size: clamp(54px, 7vw, 92px); line-height: 1; letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); font-variant-numeric: lining-nums; }
.block .src { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.sol { margin-top: clamp(40px, 5vw, 64px); max-width: 46ch; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; color: var(--ink); }

/* how it works: one step per row, the picture cut from the film */
.flow { display: grid; gap: clamp(56px, 8vw, 104px); }
.fl { display: grid; gap: 28px; align-items: center; }
.fl .still { aspect-ratio: 960 / 470; }
@media (max-width: 699.98px) and (orientation: portrait) { .fl .still { aspect-ratio: 380 / 590; max-width: 380px; margin: 0 auto; } }
.fl-w h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 12px; }
.fl-w h3 + p { margin-bottom: 26px; }
.fl-w p { color: var(--ink-2); max-width: 48ch; }
.fl-w p b { color: var(--ink); }
.fl-w .kicker { margin-bottom: 12px; }
@media (min-width: 960px) {
  .fl { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .fl:nth-child(even) .still { order: 2; }
}
#interview .still { aspect-ratio: 450 / 420; max-width: 560px; margin-left: auto; }
@media (max-width: 699.98px) and (orientation: portrait) { #interview .still { aspect-ratio: 380 / 300; } }

/* what students see */
.shots { display: grid; gap: 18px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, 1fr); } .shot.wide-s { grid-column: 1 / -1; } }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card); }
.shot figcaption { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); }

/* sample classes */
.scard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.scard h3 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; margin: 0 0 12px; }
.scard p { color: var(--ink-2); }
.s-k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-t) !important; margin-bottom: 14px; }
.s-m { font-size: 13.5px; color: var(--ink-3) !important; margin-top: auto; }
.scard .btn { align-self: flex-start; margin-top: 8px; }
.soon { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--on-ink) 18%, transparent); }

.contact .big { font-size: clamp(28px, 5.6vw, 72px); }

/* phones: the header holds the brand, the two pathways and an icon-only menu button */
@media (max-width: 520px) {
  .hdr .wrap { gap: 8px; }
  .nav-toggle { font-size: 0 !important; width: 42px; padding: 0 !important; gap: 0 !important; flex: none; }
  .brand svg { width: 30px; height: 30px; }
  .brand .b-t { font-size: 21px; }
}

/* the film always fits the visible area under the header (the size is set in sb.js); the hero is laid out for it */
@media (min-width: 1200px) {
  .hero { padding: 14px 0; min-height: calc(100svh - var(--hdr)); }
}
/* below a wide desktop the film comes first, right under the header; the headline and buttons follow */
@media (max-width: 1199.98px) {
  .hero { padding: 14px 0 clamp(40px, 6vw, 72px); }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .hero .film { order: -1; }
}
/* phones: slimmer controls, so the picture gets the room */
@media (max-width: 699.98px) {
  .film-bar { margin-bottom: 6px; }
  .film-pp { height: 34px; }
  .film-day { padding: 5px 9px; min-width: 0; }
  .film-rail { margin-bottom: 8px; }
  .seg { padding: 7px 0 6px; }
  .film-say { min-height: 0; padding: 8px 14px 9px; }
  .say-l { font-size: 13.5px; }
}
/* very short screens (a phone held sideways): a slimmer header and controls, so the picture keeps the room */
@media (max-height: 520px) {
  :root { --hdr: 52px; }
  .brand svg { width: 28px; height: 28px; }
  .brand .b-t { font-size: 21px; }
  .hero { padding-top: 8px; }
  .film-bar { margin-bottom: 4px; }
  .film-pp { height: 30px; }
  .film-day { padding: 4px 8px; font-size: 11.5px; }
  .film-chap { font-size: 13.5px; }
  .film-rail { margin-bottom: 6px; }
  .seg { padding: 4px 0 4px; }
  .film-say { min-height: 0; padding: 5px 12px 6px; }
  .say-l { font-size: 12.5px; }
}
