/* Prodigy Host Academy — site styles */
:root {
  --ink: #16263D;
  --ink-soft: #2B3D57;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --slate: #536073;
  --line: #D8DEE6;
  --brass: #B7843A;
  --brass-text: #7E5A1F;
  --sage: #D5E4DB;
  --sage-deep: #5F8C76;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: 42rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }


/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-size: 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: #E9EDF2; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink a { color: var(--white); }
.page-head { padding: 72px 0 40px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-head p { max-width: 38em; }

/* Hero */
.hero { padding: 80px 0 96px; background: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-weight: 600; }
.hero-note { margin-top: 28px; font-size: .92rem; color: var(--slate); max-width: 34em; }

/* The calendar: the one bold element */
.calendar { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.calendar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.calendar-head strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.calendar-head span { font-size: .85rem; color: var(--slate); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid .dow { font-size: .72rem; color: var(--slate); text-align: center; padding-bottom: 4px; }
.cal-grid .d { aspect-ratio: 1; border-radius: 6px; background: var(--white); border: 1px solid var(--line); font-size: .74rem; color: var(--slate); padding: 4px 5px; }
.cal-grid .d.b { background: var(--sage); border-color: #BCD3C6; color: #2F5443; }
.cal-grid .d.o { background: var(--ink); border-color: var(--ink); color: #C9D2DE; }
.cal-grid .d.x { visibility: hidden; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .8rem; color: var(--slate); }
.cal-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); background: var(--white); }
.cal-legend i.b { background: var(--sage); border-color: #BCD3C6; }
.cal-legend i.o { background: var(--ink); border-color: var(--ink); }
.cal-stats { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: .85rem; }
.cal-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.cal-caption { font-size: .78rem; color: var(--slate); margin: 10px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .cal-grid .d.b, .cal-grid .d.o { animation: fill .5s ease-out both; animation-delay: calc(var(--i, 0) * 45ms + 250ms); }
  @keyframes fill { from { background: var(--white); border-color: var(--line); color: var(--slate); } }
}

/* Facts strip */
.facts { padding: 34px 0; background: var(--ink); color: #DCE3EC; }
.facts p { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; max-width: 52rem; }

/* Paths (a real progression, so numbered) */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 2px solid var(--ink); }
.path { padding: 28px 28px 8px 0; }
.path + .path { padding-left: 28px; border-left: 1px solid var(--line); }
.path .num { font-family: var(--serif); font-size: 2.6rem; color: var(--brass); line-height: 1; margin-bottom: 14px; }
.path dl { margin: 18px 0 0; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 12px; }
.path dt { color: var(--slate); }
.path dd { margin: 0 0 8px; font-weight: 600; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr .7fr; }
.portrait { aspect-ratio: 4 / 5; border-radius: 14px; background: repeating-linear-gradient(135deg, #E6EBF0 0 14px, #EEF1F4 14px 28px); border: 1px dashed #AEB8C5; display: grid; place-items: center; text-align: center; color: var(--slate); font-size: .9rem; padding: 20px; }

/* Included list */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 36px; }
.included div { padding: 22px 0; border-top: 1px solid var(--line); }
.included h3 { font-size: 1.2rem; margin-bottom: .35em; }
.included p { margin: 0; color: var(--ink-soft); }

/* Testimonials */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.story { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.story .media { aspect-ratio: 16 / 9; border-radius: 6px; background: var(--paper); border: 1px dashed #AEB8C5; display: grid; place-items: center; color: var(--slate); font-size: .85rem; text-align: center; padding: 10px; }
.story blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; }
.story .who { font-weight: 600; margin: 0; }
.story .meta { font-size: .88rem; color: var(--slate); margin: 0; }

/* Notice band */
.notice { border-left: 4px solid var(--brass); background: var(--white); padding: 22px 26px; max-width: 48rem; }
.notice p:last-child { margin-bottom: 0; }

/* Modules (sequence) */
.modules { counter-reset: m; list-style: none; padding: 0; margin: 36px 0 0; }
.modules li { counter-increment: m; display: grid; grid-template-columns: 64px 1fr; gap: 8px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.modules li::before { content: counter(m, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--brass); line-height: 1.2; }
.modules h3 { font-size: 1.25rem; margin-bottom: .25em; }
.modules p { margin: 0; color: var(--ink-soft); max-width: 40rem; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: "Step " counter(s); display: block; font-size: .85rem; color: var(--slate); margin-bottom: 6px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* Tables and detail lists */
.facts-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 1rem; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 34%; font-weight: 600; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; }
.two-lists ul { padding-left: 1.1em; margin: 0; }
.two-lists li { margin-bottom: .5em; }

.price { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 30px; max-width: 40rem; }
.price .amount { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 6px; }

/* Legal pages */
.legal { padding: 56px 0 96px; }
.legal .prose h2 { font-size: 1.55rem; margin-top: 2em; }
.legal .prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal .prose ul { padding-left: 1.2em; }
.legal .prose li { margin-bottom: .45em; }
.legal-meta { font-size: .92rem; color: var(--slate); }

/* Footer */
.site-footer { background: var(--ink); color: #C3CDD9; padding: 64px 0 36px; font-size: .95rem; }
.site-footer a { color: #E7ECF2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 1.15rem; color: var(--white); margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid #33455F; margin-top: 44px; padding-top: 22px; font-size: .84rem; color: #9DAABA; }
.footer-legal p { max-width: 62rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero .wrap, .split, .split.wide-left { grid-template-columns: 1fr; gap: 40px; }
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .path:first-child { border-top: 0; }
  .stories { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 360px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .included, .stories, .steps, .two-lists, .footer-grid { grid-template-columns: 1fr; }
  .site-nav ul { gap: 2px 16px; }
  .facts-table th { width: 42%; }
}
figure.calendar { margin: 0; }
.cal-stats { gap: 12px; }
.cal-stats span { flex: 1; }

/* ---- v2 additions ---- */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
.brand img { height: 46px; width: auto; }
.footer-logo { height: 52px; width: auto; margin-bottom: 18px; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: 14px; }
.photo.on-white img { border-radius: 0; }
.photo figcaption { font-size: .85rem; color: var(--slate); margin-top: 10px; }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.founder-grid h3 { margin-bottom: .2em; }
.founder-grid .role { color: var(--slate); margin-bottom: .8em; }
.legal .prose h2 { font-size: 1.35rem; }
.legal .prose p, .legal .prose li { font-size: 1rem; }
.legal .caps { font-size: .92rem; }
.address { font-style: normal; }
@media (max-width: 640px) { .founder-grid { grid-template-columns: 1fr; } .brand img { height: 40px; } }
.prose p + h2, .prose ul + h2 { margin-top: 1.6em; }
.brand img { height: 54px; }
@media (max-width: 640px) { .brand img { height: 44px; } }
.photo.framed { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 440px; justify-self: end; }
.photo.framed img { border-radius: 0; display: block; }
@media (max-width: 920px) { .photo.framed { justify-self: start; max-width: 360px; } }
