/* Light the Flame — sister school of Flint & Flicker.
   Cream parchment, wine, antique gold, dark wood. No build step. */

:root {
  --cream: #f6f1e6;
  --ivory: #fbf8f1;
  --paper: #fffdf8;
  --card: #ebe3d5;
  --bg-2: #eee7d9;
  --bg-3: #e7decd;
  --ink: #211f19;
  --ink-soft: #4a4437;
  --muted: #514b42;
  --faint: #7b705a;
  --wine: #611e21;
  --wine-2: #6d1825;
  --wine-3: #7d2a2e;
  --gold: #b08d57;
  --gold-soft: #e8d8b6;
  --highlight: #e0b25f;
  --wood: #2b201a;
  --moss: #3d4b33;
  --line: #c8beaa;
  --line-strong: #aa9f87;
  --moon: #756a56;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 40px -26px rgba(43, 32, 26, 0.55), 0 2px 8px rgba(43, 32, 26, 0.06);
  --shadow-hover: 0 26px 50px -26px rgba(43, 32, 26, 0.6), 0 4px 12px rgba(43, 32, 26, 0.08);
  --wrap: 1120px;
  --measure: 68ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 10% -10%, rgba(255, 252, 245, 0.9), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(232, 216, 182, 0.35), transparent 36%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink);
}

p { margin: 0 0 0.9em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--wine);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font: 600 13px/1 var(--sans);
}

.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.todo {
  /* Launch: author-note highlight is off so leftover brackets never appear as a badge. */
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-weight: inherit;
  font-style: inherit;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 40;
  text-align: center;
  padding: 0 4vw 14px;
  background: linear-gradient(180deg, #fcf9f2 0%, #f6f1e6 100%);
  border-bottom: 1px solid rgba(97, 30, 33, 0.14);
  box-shadow: 0 16px 34px -30px rgba(43, 32, 26, 0.7);
}

.util {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.util-tag {
  margin: 0;
  text-align: left;
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #85795f;
}

.util-tag b {
  font-weight: 650;
  color: var(--wine);
}

.pill,
.btn,
.nav-cta,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  min-height: 44px;
}

.pill {
  padding: 9px 16px;
  border: 1px solid #d5b874;
  background: linear-gradient(180deg, #f6e7bd, #ebd497);
  color: #4a3411;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px -10px rgba(43, 32, 26, 0.5);
}

.pill:hover {
  background: var(--wood);
  border-color: var(--wood);
  color: #f6e7bd;
}

.sign {
  display: inline-block;
  width: min(520px, 92vw);
  margin: 2px auto 2px;
  text-decoration: none;
  color: #f3e6c8;
}

.sign-svg { display: block; width: 100%; height: auto; overflow: visible; }

.sign-svg text { font-family: var(--serif); }

.menu-toggle {
  display: none;
  margin: 4px auto 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(97, 30, 33, 0.18);
  background: var(--paper);
  color: var(--wine);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  padding: 2px 0 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  color: #2a2620;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav a:hover { background: rgba(97, 30, 33, 0.08); color: var(--wine); }

.site-nav a[aria-current="page"] {
  color: var(--wine);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-cta {
  background: linear-gradient(180deg, var(--wine-3), var(--wine));
  color: #fbf1de !important;
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  padding: 0 18px !important;
  box-shadow: 0 10px 20px -12px rgba(97, 30, 33, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-cta:hover {
  background: var(--wood) !important;
  color: #fff !important;
}

/* ---------- Buttons & type helpers ---------- */

.btn {
  background: var(--wine);
  color: #fbf1de;
  border: 1px solid var(--wine);
  padding: 0 22px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 12px 22px -14px rgba(97, 30, 33, 0.75);
}

.btn:hover { background: var(--wood); border-color: var(--wood); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #2a2620;
  box-shadow: none;
}

.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-gold {
  background: linear-gradient(180deg, #f6e7bd, #e0b25f);
  color: #2b201a;
  border-color: #c6a15a;
}

.btn-gold:hover { background: var(--wood); color: #f6e7bd; border-color: var(--wood); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38em;
}

.section { padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 72px); }

.section-head { max-width: 740px; margin-bottom: 28px; }

.section-head h2,
.prose h2,
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  margin: 0 0 14px;
}

.section-head p:last-child { margin-bottom: 0; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--moss);
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
}

.ornament::before,
.ornament::after {
  content: "";
  width: min(120px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.band { background: rgba(251, 248, 241, 0.72); }
.band-2 { background: rgba(238, 231, 217, 0.65); }

.narrow { max-width: 760px; margin: 0 auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

.crumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px clamp(18px, 5vw, 72px) 0;
  color: var(--faint);
  font-size: 15px;
}

.crumb a { color: var(--wine); text-underline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(18px, 5vw, 72px) clamp(48px, 6vw, 78px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 6.2vw, 6.15rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hero .lede { margin: 22px 0 26px; font-size: clamp(1.25rem, 2vw, 1.5rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--wood);
  border: 1px solid rgba(43, 32, 26, 0.18);
  box-shadow: 0 34px 60px -34px rgba(43, 32, 26, 0.8), 0 3px 10px rgba(43, 32, 26, 0.12);
  transform: rotate(0.5deg);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) sepia(0.1);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 244, 214, 0.4);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(20, 14, 10, 0.55));
  color: #f6edd8;
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Cards, path, steps ---------- */

.path-grid,
.card-grid,
.price-grid,
.teacher-grid,
.quote-grid,
.entry-grid {
  display: grid;
  gap: 18px;
}

.path-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid.two,
.card-grid.quarters { grid-template-columns: repeat(2, 1fr); }
.split-late {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}
.price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.teacher-grid { grid-template-columns: 1.15fr 1fr 1fr; }
.quote-grid { grid-template-columns: repeat(3, 1fr); }

.path-card,
.text-card,
.price-card,
.teacher-card,
.quote,
.entry,
.module,
.panel,
.login-card {
  background: var(--paper);
  border: 1px solid rgba(43, 32, 26, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.path-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.path-card:hover,
.text-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.path-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.78) sepia(0.12);
}

.path-card div { padding: 18px 20px 22px; }

.path-card small,
.meta,
.kicker {
  display: block;
  margin: 0 0 6px;
  color: var(--wine);
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.path-card strong,
.text-card h3,
.price-card h3,
.teacher-card h3,
.entry h3 {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.path-card p,
.text-card p,
.teacher-card p,
.entry p { margin: 0; color: var(--ink-soft); }

.text-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(235, 227, 213, 0.55));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.text-card span:last-child { margin-top: auto; padding-top: 12px; color: var(--wine); font: 600 13px/1.3 var(--sans); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  background: var(--paper);
  border: 1px solid rgba(43, 32, 26, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 600 2rem/1 var(--serif);
  color: var(--wine);
  margin-bottom: 10px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Teachers, quotes ---------- */

.teacher-card,
.quote { padding: 22px; }

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 30% 30%, #f6ead4, #d9c4a2 60%, #b08d57);
  color: var(--wine);
  font: 700 12px/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-align: center;
  border: 1px solid rgba(43, 32, 26, 0.15);
}

.avatar.wide {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  font-size: 14px;
}

.teacher-card .role {
  margin: -4px 0 10px;
  color: var(--faint);
  font-size: 14px;
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
}

.quote p {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--ink);
}

.quote footer { margin-top: auto; color: var(--muted); font-size: 14px; }

.flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fbe6bd;
  border: 1px solid #e0b25f;
  color: #6d1825;
  font: 700 10px/1.5 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Moon strip ---------- */

.moon-panel {
  display: grid;
  grid-template-columns: auto 1.1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  background: linear-gradient(135deg, #2b201a, #3a2a22 55%, #241812);
  color: #f4ead6;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow);
}

.moon-panel .eyebrow { color: var(--gold-soft); }
.moon-panel h2 { color: #fbf1de; margin: 0 0 6px; font-size: clamp(2rem, 3vw, 2.8rem); }
.moon-panel p { color: #e4d7c2; margin: 0; }
.moon-panel a { color: #f6e7bd; }

.moon-visual {
  width: 108px;
  height: 108px;
  flex: none;
}

.moon-visual svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35)); }

.moon-links { display: flex; flex-direction: column; gap: 8px; }

.moon-links a {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 244, 220, 0.06);
  border: 1px solid rgba(232, 216, 182, 0.18);
}

.moon-links a:hover { background: rgba(255, 244, 220, 0.12); }

.moon-links strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbf1de;
}

.moon-links span { color: #cbbfa6; font-size: 13px; }

/* ---------- Pricing ---------- */

.price-card {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card .amount {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 8px 0 4px;
}

.price-card .bill { color: var(--faint); font-size: 14px; margin: 0 0 14px; }

.price-card ul {
  margin: 0 0 18px;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
  flex: 1;
}

.price-card li { margin: 0.35em 0; }

.price-card .btn { align-self: flex-start; }

.price-card.featured {
  background: linear-gradient(180deg, #fffdf8, #f6efe0);
  border-color: #d7c094;
  outline: 1px solid rgba(176, 141, 87, 0.45);
}

/* ---------- FAQ, forms, prose ---------- */

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq {
  background: var(--paper);
  border: 1px solid rgba(43, 32, 26, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  padding: 14px 8px 14px 0;
  min-height: 44px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

.faq[open] summary::after { content: "–"; }

.faq p { margin: 0; padding: 0 0 16px; color: var(--ink-soft); }

.prose a,
.entry a,
.note a,
.fine a,
.login-card a,
.teacher-card a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose h2 { margin: 1.4em 0 0.4em; }

.prose h3 {
  font-size: 1.8rem;
  margin: 1.2em 0 0.3em;
}

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }

.prose blockquote,
blockquote.pull {
  margin: 1.2em 0;
  padding: 0.15em 0 0.15em 1rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--ink);
}

.page-hero { padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 10px; }

.page-hero .lede { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(43, 32, 26, 0.18);
  box-shadow: 0 34px 60px -34px rgba(43, 32, 26, 0.8);
  background: var(--wood);
  transform: rotate(0.4deg);
}

.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.frame.logo-frame {
  background: #140e0c;
  padding: 18px;
}

.frame.logo-frame img {
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}

.lesson {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.lesson:first-of-type { border-top: 0; }

.lesson-num {
  font: 600 1.55rem/1 var(--serif);
  color: var(--gold);
  padding-top: 4px;
}

.lesson h3 { margin: 0 0 4px; font-size: 1.55rem; }

.lesson p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.hours {
  margin: 0;
  color: var(--wine);
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  padding-top: 8px;
}

.module { padding: clamp(18px, 3vw, 32px); margin: 18px 0; scroll-margin-top: 72px; }

.module header p { color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }

.chips a, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(97, 30, 33, 0.18);
  background: var(--paper);
  color: var(--wine);
  text-decoration: none;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips a:hover, .chip:hover { background: var(--wine); color: #fff; }

.module-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px 18px;
  overflow: auto;
  background: #eee7d9;
  border-bottom: 1px solid var(--line);
  padding: 10px clamp(18px, 5vw, 72px);
}

.module-nav a {
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.module-nav a:hover { color: var(--wine); }

.sample-banner,
.note,
.form-status {
  background: linear-gradient(135deg, #fff3d6, #fde6b4);
  border: 1px solid #e0b25f;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #3b2410;
}

.sample-banner { margin: 8px 0 18px; }

.form-grid { display: grid; gap: 14px; }

.field label {
  display: block;
  margin: 0 0 6px;
  font: 650 12px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label.check {
  text-transform: none;
  letter-spacing: 0;
  font: 500 15.5px/1.5 var(--sans);
  color: var(--ink-soft);
}

.field .hint { margin: 6px 0 0; color: var(--faint); font-size: 14px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: 500 16px/1.45 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}

textarea { min-height: 140px; resize: vertical; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--wine); }

.field-error { margin: 6px 0 0; color: var(--wine); font-size: 14px; font-weight: 600; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--wine); flex: none; }

.form-status { margin-top: 14px; }
.form-status[hidden] { display: none; }

.newsletter {
  text-align: center;
  background: linear-gradient(135deg, #fbf3e0, #f3e6c6);
  border-top: 1px solid #e2cf9f;
  border-bottom: 1px solid #e2cf9f;
}

.news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-end;
  margin-top: 16px;
}
.news-form .form-status { flex-basis: 100%; text-align: left; }

.news-form input[type="email"] { max-width: 360px; background: #fffdf8; }

.entry-grid { grid-template-columns: 1fr; gap: 22px; }

.entry { padding: clamp(18px, 3vw, 32px); scroll-margin-top: 76px; }

.entry .out {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.cabinet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cabinet a {
  display: block;
  min-height: 132px;
  padding: 20px 18px;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid rgba(43, 32, 26, 0.12);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(235, 227, 213, 0.7));
  box-shadow: var(--shadow);
}

.cabinet a:hover { border-color: var(--gold); transform: translateY(-2px); }

.cabinet strong {
  display: block;
  font: 600 1.7rem/1 var(--serif);
  color: var(--wine);
  margin-bottom: 6px;
}

.cabinet span { color: var(--ink-soft); }

.login-card { max-width: 520px; margin: 10px auto 40px; padding: 28px 24px; }

.legal-block { scroll-margin-top: 24px; padding-top: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--wood);
  color: #e9dfc9;
  border-top: 3px solid var(--gold);
  padding: 52px clamp(18px, 6vw, 72px) 28px;
  font: 400 15px/1.5 var(--sans);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-name {
  font: 600 32px/1.1 var(--serif);
  color: #fbf1de;
  text-decoration: none;
}

.foot-name span { color: var(--gold-soft); }

.site-footer .brand p { margin: 12px 0 0; color: #c9bca0; font-size: 15px; }

.site-footer h2 {
  margin: 0 0 12px;
  font: 650 12px/1.2 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #e8d8b6;
}

.site-footer .col a {
  display: block;
  padding: 4px 0;
  color: #e9dfc9;
  text-decoration: none;
  min-height: 32px;
}

.site-footer .col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }

.fine {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 216, 182, 0.2);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #cbbfa6;
}

.fine a { color: #f6e7bd; }

.fine-links { margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split-late { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: center; font-size: 1.45rem; }
  .nav-cta { margin-top: 6px; }
  .hero, .split, .moon-panel, .teacher-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; transform: none; }
  .hero h1 { max-width: none; }
  .path-grid, .card-grid, .price-grid, .quote-grid, .cabinet { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-inner .brand { grid-column: 1 / -1; }
  .frame { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .util { justify-content: center; }
  .util-tag { text-align: center; }
  .path-grid, .card-grid, .card-grid.quarters, .price-grid, .quote-grid, .cabinet, .steps, .foot-inner { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: 36px minmax(0, 1fr); }
  .hours { grid-column: 2; text-align: left; padding-top: 0; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 3.6rem); }
  .news-form input[type="email"] { max-width: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-figure, .frame { transform: none; }
}

@media print {
  .site-header, .site-footer, .menu-toggle, .newsletter, .hero-actions, .nav-cta, .course-side { display: none !important; }
  body { background: #fff; }
  .path-card, .module, .price-card { break-inside: avoid; }
  .course-shell { display: block; }
}

/* ---------- Courses ---------- */
.course-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 72px;
  align-items: start;
}
.course-side {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid rgba(43, 32, 26, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px;
}
.toc-details > summary {
  display: none;
}
.course-side .toc-course {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
}
.course-side .toc-course:hover { color: var(--wine); }
.mod-label {
  margin: 14px 0 4px;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}
.course-side ol { list-style: none; margin: 0; padding: 0; }
.course-side ol a {
  display: block;
  text-decoration: none;
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  border-bottom: 1px dotted rgba(43, 32, 26, 0.15);
}
.course-side ol a:hover { color: var(--wine); }
.course-side ol a[aria-current="page"] {
  color: var(--wine);
  font-weight: 700;
  border-bottom-color: transparent;
}
.lesson-wrap { min-width: 0; }
.lesson-body { max-width: 68ch; }
.lesson-body h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 14px; }
.lesson-hero { margin: 0 0 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(43,32,26,.18); box-shadow: var(--shadow); }
.lesson-hero img, .text-card img, .course-hero img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.course-hero { margin: 0 0 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(43,32,26,.18); }
.takeaways { background: var(--ivory); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 16px 0; }
.takeaways h2 { font-size: 1.5rem; margin: 0 0 8px; }
.try-it, .knowledge-check, .further-reading { margin: 18px 0; }
.flip-grid, .wheel-grid, .altar-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.flip-card { width: min(220px, 100%); min-height: 120px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; text-align: left; padding: 12px; }
.flip-card .flip-back { display: none; }
.flip-card.is-flipped .flip-front { display: none; }
.flip-card.is-flipped .flip-back { display: block; }
.flip-card.is-flipped { background: #f8ead0; border-color: var(--gold); }
.wheel-btn, .altar-tool { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); padding: 0 14px; cursor: pointer; }
.wheel-btn.is-on, .altar-tool.is-on { background: var(--wine); color: #fff; border-color: var(--wine); }
.wheel-panel, .altar-stage { margin-top: 12px; padding: 12px; background: var(--bg-2); border-radius: 12px; }
select.is-wrong, .check-q.is-wrong { outline: 2px solid var(--wine); }
select.is-right, .check-q.is-right { outline: 2px solid var(--moss); }
.text-card img { border-radius: var(--radius) var(--radius) 0 0; margin: -22px -22px 12px; width: calc(100% + 44px); max-width: none; }
.lesson-body h2 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); margin: 1.3em 0 0.4em; }
.safety, .practice-block, .complete-note {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 1.2em 0;
}
.safety {
  background: linear-gradient(135deg, #fff3d6, #fde6b4);
  border: 1px solid #e0b25f;
  border-left: 8px solid #8a2c10;
}
.safety h2, .practice-block h2, .complete-note h2, .quiz-block h2 { margin-top: 0; }
.safety h2 { color: #8a2c10; font-size: 1.7rem; }
.practice-block, .quiz-block {
  background: var(--paper);
  border: 1px solid rgba(43, 32, 26, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 1.2em 0;
}
.complete-note {
  background: linear-gradient(135deg, #fbf3e0, #f3e6c6);
  border: 1px solid #e2cf9f;
}
.quiz-block details { margin-top: 8px; }
.quiz-block summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--wine);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.quiz-q { margin: 0.8em 0 0.2em; font-weight: 650; }
.quiz-block ul { margin: 0.2em 0 0.6em; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pager a {
  display: block;
  text-decoration: none;
  max-width: 46%;
  color: var(--wine);
}
.pager .next { margin-left: auto; text-align: right; }
.pager small {
  display: block;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.pager strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .course-shell { grid-template-columns: 1fr; }
  .course-side { position: static; max-height: none; }
  .toc-details > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    font: 700 12px/1 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wine);
  }
  .pager a { max-width: 100%; }
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-free { background: #e7f0e4; color: var(--moss); border: 1px solid #b7c7b0; }
.badge-member { background: #f8ead0; color: #6d1825; border: 1px solid #e0b25f; }
.member-banner, .browser-note {
  background: linear-gradient(135deg, #fff3d6, #fde6b4);
  border: 1px solid #e0b25f;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.member-banner p, .browser-note p { margin: 0.4em 0; }
.course-side a.is-recommended { box-shadow: inset 3px 0 0 var(--gold); padding-left: 6px; }
.mark-read[aria-pressed="true"] { background: var(--moss); color: #f6f1e6; border-color: var(--moss); }
.test-mount, .progress-card, .transcript-wrap, .cert-sheet {
  background: var(--paper);
  border: 1px solid rgba(43, 32, 26, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.test-mount { padding: 18px 18px 20px; margin: 1.2em 0; }
.test-q { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.test-q p { margin: 0 0 8px; font-weight: 650; }
.test-q label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-weight: 450; letter-spacing: 0; text-transform: none; font-size: 16px; color: var(--ink); }
.test-q.is-right { border-left: 4px solid var(--moss); padding-left: 10px; }
.test-q.is-wrong { border-left: 4px solid var(--wine); padding-left: 10px; }
.hint { color: var(--ink-soft); background: var(--bg-2); border-radius: 12px; padding: 8px 10px; margin: 6px 0 0; }
.bar { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--wine-3), var(--gold)); }
.progress-grid, .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.filter-bar button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.progress-card { padding: 16px 18px; margin: 0 0 12px; }
.transcript-wrap { padding: 18px; overflow-x: auto; }
.transcript-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.transcript-wrap th, .transcript-wrap td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.transcript-wrap th { font: 700 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine); }
.cert-sheet { padding: 28px 24px; margin: 16px 0; text-align: center; border: 8px solid var(--bg-3); }
.cert-sheet h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cert-sheet .cert-name { font-family: var(--serif); font-size: 2.4rem; margin: 8px 0; }
.check-list label { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.opening-words {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wine);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  margin: 0 0 16px;
}
.opening-words .spoken {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0.2em 0 0;
}
.opening-words audio, .opening-words video {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
}
.deeper-reading {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px 14px 12px;
}
.deeper-reading summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--wine);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.gate-clock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin: 12px 0 18px;
}
.gate-clock strong { font-family: var(--serif); font-size: 2rem; display: block; }
.support-band {
  background: var(--wood);
  color: #f6ead4;
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
}
.support-band a { color: var(--gold-soft); }
.support-band .btn { color: var(--wood); }
.plan-soon { opacity: 0.85; }
.cert-sheet {
  background:
    radial-gradient(circle at 50% 0, rgba(176, 141, 87, 0.18), transparent 46%),
    var(--paper);
  border: 10px double var(--gold) !important;
  padding: 36px 28px;
}
.cert-seal {
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.cert-meta { font-size: 0.95rem; color: var(--ink-soft); }
@media print {
  body * { visibility: hidden; }
  .cert-sheet, .cert-sheet * { visibility: visible; }
  .cert-sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  .no-print { display: none !important; }
}

.bmc-btn{background:#FFC93C;color:#211f19;border-color:#FFC93C}.bmc-btn:hover{background:#ffd666;color:#211f19}
.site-footer .bmc-foot{display:inline-block;margin-top:8px;padding:4px 12px;border-radius:999px;background:#FFC93C;color:#211f19 !important;font-weight:600;text-decoration:none}
