:root {
  --bg: #f3efe6;
  --bg-warm: #ebe4d6;
  --surface: #faf7f1;
  --ink: #1c1915;
  --ink-soft: #5a5348;
  --line: #d8cfc0;
  --gold: #8c6a3d;
  --gold-deep: #6e522f;
  --gold-pale: #e8dcc8;
  --cream: #faf7f1;
  --forest: #24342c;
  --error: #8a2f2f;
  --ok: #2d5a3f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.06);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
  color: var(--cream);
}

.inline-error {
  background: #f6ece8;
  color: var(--error);
  border: 1px solid #e2c9c2;
  padding: 0.75rem 1rem;
  margin: 0.75rem 1rem;
  font-size: 0.95rem;
}

[data-include="header"],
[data-include="footer"] {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  position: relative;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold-deep);
}

.wordmark-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.4rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.35em;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.55rem 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.narrow {
  max-width: 760px;
}

.page-main {
  padding: 2.75rem 0 4.5rem;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.25rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.78rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-gold {
  background: var(--gold-deep);
  color: var(--cream);
  border-color: var(--gold-deep);
}

.btn-gold:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--gold-pale);
  color: var(--ink);
}

.hero-editorial {
  padding: 3.2rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: end;
}

.hero-editorial h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 600;
  margin-bottom: 0;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding: 0.4rem 0 0.4rem 1.6rem;
}

.hero-aside p {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

.hero-figure {
  margin: 2.2rem 0 0;
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(28, 25, 21, 0.82);
  color: var(--cream);
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
  max-width: 18rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 2.8rem 0 3.2rem;
}

.stat-strip article {
  background: var(--surface);
  padding: 1.3rem 1.2rem;
}

.stat-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section {
  margin: 3.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 0;
}

.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: stretch;
}

.feature-split img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 1.7rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.card-grid,
.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.3rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.review-grid {
  grid-template-columns: 1fr 1fr;
}

.card,
.course-card,
.blog-card,
.tier,
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.course-card:hover,
.blog-card:hover,
.tier:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.course-card img,
.blog-card img,
.case-figure img,
.portrait {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body,
.course-card .card-body,
.blog-card .card-body,
.tier,
.review-card {
  padding: 1.25rem 1.2rem 1.4rem;
}

.tier {
  display: flex;
  flex-direction: column;
}

.tier-price {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0.3rem 0 0.8rem;
}

.tier-price span {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tier ul {
  flex: 1;
}

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

.quote {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.quote-mark {
  color: var(--gold);
  font-size: 2.2rem;
  line-height: 1;
  display: block;
}

.attribution {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.stars {
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.note-list {
  list-style: none;
  padding: 0;
}

.note-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.note-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.cycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.cycle article {
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--gold);
}

.cycle span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.closer {
  margin-top: 4rem;
  padding: 2.4rem 2rem;
  background: var(--forest);
  color: #f3efe6;
}

.closer h2,
.closer p {
  color: inherit;
  max-width: 38rem;
}

.closer .btn-gold {
  background: #c4a574;
  border-color: #c4a574;
  color: #1c1915;
}

.closer .btn-gold:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.page-hero {
  padding-bottom: 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.page-hero.with-image {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.page-hero.with-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.prose h2 {
  font-size: 1.85rem;
  margin-top: 2rem;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

.legal-list dt {
  font-weight: 600;
  margin-top: 1rem;
}

.legal-list dd {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

table.cookie-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--bg-warm);
  font-weight: 600;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.7rem 0 0.2rem;
  color: var(--ink-soft);
}

.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.4rem;
  align-items: center;
}

.instructor img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

.modules {
  counter-reset: module;
  list-style: none;
  padding: 0;
}

.modules li {
  counter-increment: module;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.modules li::before {
  content: counter(module, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.2rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.8rem;
  font: inherit;
  border-radius: var(--radius);
}

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

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  min-height: 1.1em;
}

.form-status {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--error);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.address-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.team-card img {
  height: 240px;
  object-fit: cover;
}

.case-study {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  margin: 2rem 0 2.8rem;
  align-items: center;
}

.site-footer {
  background: #1c1915;
  color: #e7e0d4;
  margin-top: auto;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.8rem 1.4rem 1.8rem;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer-kicker {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #f3efe6;
}

.footer-lede,
.footer-address,
.site-footer p,
.site-footer li {
  color: #cfc6b6;
  font-size: 0.95rem;
}

.footer-heading {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #c4a574;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #e7e0d4;
  text-decoration: none;
}

.site-footer a:hover {
  color: #c4a574;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-base {
  border-top: 1px solid #3a342c;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.4rem 1.6rem;
  font-size: 0.88rem;
  color: #b7ae9f;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 30px rgba(28, 25, 21, 0.08);
}

.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.4rem 1.25rem;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-inner p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.missing {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.4rem;
}

.missing h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 0.2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.chip {
  display: inline-block;
  border: 1px solid var(--gold-pale);
  color: var(--gold-deep);
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero-editorial,
  .feature-split,
  .page-hero.with-image,
  .contact-grid,
  .case-study,
  .footer-inner,
  .instructor {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .cycle,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 0;
  }

  .hero-figure img,
  .page-hero.with-image img {
    height: 280px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.4rem 1.2rem;
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 700px) {
  .stat-strip,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .cycle,
  .team-grid,
  .review-grid,
  .two-col,
  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
