/* ============================================================
   The Healer's Code Academy — Luminous Ground
   Porcelain · Warm Sand · Ink Indigo · Antique Brass
   ============================================================ */

:root {
  --porcelain: #f7f3eb;
  --porcelain-deep: #f0e9dc;
  --paper: #fffdf9;
  --sand: #eadfcb;
  --sand-soft: #f2e9d9;
  --ink: #1b2140;
  --ink-soft: #454b66;
  --ink-mute: #6b7089;
  --brass: #a8823e;
  --brass-light: #c6a464;
  --line: rgba(27, 33, 64, 0.14);
  --line-soft: rgba(27, 33, 64, 0.08);
  --shadow: 0 1px 2px rgba(27, 33, 64, 0.04), 0 18px 40px -24px rgba(27, 33, 64, 0.35);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--sand); color: var(--ink); }

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--porcelain);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.022em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(3.4rem, 8.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text b {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.brand-text span {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-color: var(--brass); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--porcelain) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px;
  padding: 10px 18px !important;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: #2b3358; transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 7vw, 92px) 0 0; }

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 60px);
}

.hero h1 { margin-bottom: 26px; }

.hero-aside {
  padding-bottom: 10px;
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.hero-aside p {
  margin: 0 0 18px;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
}
.hero-media img {
  width: 100%;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px clamp(20px, 3vw, 34px);
  background: linear-gradient(to top, rgba(20, 24, 45, 0.72), rgba(20, 24, 45, 0));
  color: #fdfaf3;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- section jump nav ---------- */

.jump {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--porcelain-deep);
}
.jump .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
  scrollbar-width: none;
  padding: 12px 0;
}
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.125rem;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.jump a b {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brass);
}
.jump a:hover {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }

.section-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}

.section-num {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brass);
  padding-top: 10px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.028em;
}

.section-note {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 42ch;
  padding-top: 6px;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 .card-media, .cards--3 .card-media { aspect-ratio: 8 / 5; }

.subhead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.022em;
  margin: clamp(44px, 5vw, 64px) 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(27, 33, 64, 0.05), 0 28px 48px -30px rgba(27, 33, 64, 0.45);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-soft);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.035); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 24px;
}

.card-kicker {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}

.card h3 {
  font-size: clamp(1.5rem, 1.9vw, 1.72rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 22px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--porcelain);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 19px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: #2b3358; border-color: #2b3358; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--sand-soft); border-color: var(--brass-light); color: var(--ink); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-light);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link:hover { gap: 11px; border-color: var(--brass); }

.link svg { width: 13px; height: 13px; flex: none; }

/* ---------- coming soon ---------- */
.soon-inline { margin-top: 26px; border-top: 1px solid var(--line-soft); border-bottom: 0; padding: 26px 0 0; }
.soon-inline h2 { font-family: var(--serif); }

.soon {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}
.soon h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 8px;
}
.soon p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 60ch;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--porcelain-deep);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

/* ---------- closing note + footer ---------- */

.closing {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(38px, 5vw, 60px);
  background: var(--sand-soft);
  border-radius: 3px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}
.closing h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 14px;
}
.closing p { margin: 0; color: var(--ink-soft); max-width: 48ch; font-size: 1.125rem; }
.closing .actions { justify-content: flex-start; }

.site-footer {
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--ink);
  color: #ece6da;
  padding: 26px 0;
}
.footer-bar p {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  color: rgba(236, 230, 218, 0.68);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-media img, .btn { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .section-head { grid-template-columns: 56px minmax(0, 1fr); }
  .section-note { grid-column: 2; padding-top: 12px; }
  .soon { grid-template-columns: 56px minmax(0, 1fr); }
  .soon .pill { grid-column: 2; justify-self: start; }
  .closing { grid-template-columns: 1fr; }
  .footer-bar { text-align: left; }
}

@media (max-width: 720px) {
  body { font-size: 1.125rem; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-header .wrap { min-height: 66px; gap: 12px; }
  .brand-logo { height: 34px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-text b { font-size: 1.125rem; letter-spacing: 0.13em; line-height: 1.3; }
  .brand-text span { display: none; }
  .nav-cta { padding: 9px 14px !important; font-size: 1.125rem !important; white-space: nowrap; letter-spacing: 0.1em !important; }
  .wrap { width: calc(100% - 2.2rem); }
  .hero-media figcaption { font-size: 1.125rem; padding: 18px; }
  .cards { grid-template-columns: 1fr; }
}
