/* =========================================================================
   Dr. Jeff Yoo · funnel brand (system B)
   His own world, elevated: warm off-white canvas, navy ink, ER coral.
   Sora (display) + Manrope (text), both self-hosted.
   Type runs +2px over the skill defaults (Diego's readability brief).
   ========================================================================= */

@font-face { font-family: "Sora"; src: url("fonts/sora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* canvas */
  --bg: #f7f5f1;            /* his site's warm off-white */
  --bg-2: #f1ede6;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --navy: #1b2940;          /* his navy, used for the one dark band and the mark */
  --navy-2: #22344f;

  /* ink */
  --ink: #172842;
  --muted: #535d6c;
  --muted-2: #6b7482;
  --hair: rgba(23, 40, 66, 0.12);
  --hair-soft: rgba(23, 40, 66, 0.07);

  /* accent: ER coral, deepened from his #ca544f to pass with white text */
  --accent: #b9423c;
  --accent-2: #d0594f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(185, 66, 60, 0.09);
  --accent-line: rgba(185, 66, 60, 0.28);
  --sky: #a9c0e6;           /* his soft sky, for accents on navy only */

  --display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(23, 40, 66, 0.05), 0 18px 44px -26px rgba(23, 40, 66, 0.28);
  --shadow-lg: 0 2px 4px rgba(23, 40, 66, 0.05), 0 40px 90px -40px rgba(23, 40, 66, 0.38);
}

/* ------------------------------ Base ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;             /* 17 + 2 */
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 14px;             /* 12 + 2 */
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 700; }
h3 { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.25; font-weight: 600; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--muted); margin: 18px 0 0; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 17px 34px;
  font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: -0.005em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.btn--primary {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 34px -14px rgba(185, 66, 60, 0.6);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.32), transparent 70%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 22px 40px -14px rgba(185, 66, 60, 0.7); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: scale(0.98); }
.btn .ar { transition: transform 0.35s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn--lg { min-height: 62px; padding: 19px 42px; font-size: 20px; }

/* ------------------------------ Lockup ---------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; line-height: 1; }
.brand__word b { font-weight: 700; }

/* Footer = branding-only banner. Height is exactly 1.5x the lockup (30px -> 45px). */
.brandfoot {
  position: relative;
  height: 45px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
}
.brandfoot .brand__word { color: #ffffff; font-size: 17px; }
.brandfoot .brand__mark { width: 30px; height: 30px; }
/* soft fade into the footer so the only hard line is the footer's own edge */
.fade-to-foot { height: 120px; background: linear-gradient(180deg, transparent, rgba(27, 41, 64, 0.06)); }

/* --------------------------- Shared cards ------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------- Video cards -------------------------------- */
/* 2-up, name + description centred BELOW the video, no "Watch on YouTube". */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; max-width: 980px; margin: 0 auto; }
.vcard { text-align: center; }
.vframe {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow-lg); cursor: pointer;
}
.vframe img { width: 100%; height: 100%; object-fit: cover; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vframe__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--accent);
  box-shadow: 0 12px 34px rgba(10, 18, 32, 0.35); transition: transform 0.35s var(--ease);
}
.vframe__play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.vframe:hover .vframe__play { transform: scale(1.07); }
.vname { margin: 22px 0 6px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.vdesc { margin: 0 auto; max-width: 38ch; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* --------------------------- Reveal (progressive) ----------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn--primary::after, .vframe__play { transition: none; }
}

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
p, li, td, th, blockquote, figcaption,
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 700px) {
  .tag, [class*="badge"], [class*="pill"] { margin-left: 0; }
  .vgrid { grid-template-columns: 1fr; gap: 40px; }
  body { font-size: 18px; }
}
@media (max-width: 420px) {
  .tok-merge, .tok-link, code { white-space: normal; }
}
