:root {
  --ink: #141c28;
  --ink-soft: #2c3545;
  --muted: #6a6258;
  --cream: #f6f1e8;
  --parchment: #ebe3d4;
  --paper: #fdfbf7;
  --gold: #a6854d;
  --gold-deep: #8a6b38;
  --gold-pale: #e8dcc4;
  --line: #d9d0c0;
  --white: #ffffff;
  --error: #7a3333;
  --error-bg: #f6eaea;
  --success: #2d5a45;
  --success-bg: #e8f1ec;
  --shadow: 0 18px 40px rgba(20, 28, 40, 0.08);
  --shadow-soft: 0 8px 24px rgba(20, 28, 40, 0.05);
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  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);
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

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

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

.gold-rule {
  width: 3.2rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.2rem;
}

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

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 400;
  padding: 0.2rem 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active {
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

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

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

.btn-text {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-deep);
  text-decoration: none;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 var(--gold-pale);
}

.btn-text:hover {
  color: var(--ink);
  transform: none;
}

.hero-editorial {
  padding: 3.2rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}

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

.hero-aside p {
  font-size: 1.02rem;
  color: var(--ink-soft);
}

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

.hero-figure img {
  width: 100%;
  height: min(62vh, 540px);
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 2.4rem 0 0.4rem;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4.2rem 0;
}

.section-tight {
  padding: 2.4rem 0 4rem;
}

.section-ink {
  background: var(--ink);
  color: var(--gold-pale);
}

.section-ink h2,
.section-ink h3 {
  color: var(--paper);
}

.section-paper {
  background: var(--paper);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-body h3 {
  margin: 0;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pull-quote {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.pull-quote blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.pull-quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.benefit-index {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.3rem;
}

.journal-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
}

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

.journal-side {
  display: grid;
  gap: 1rem;
}

.journal-side a {
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.journal-side a:hover h3 {
  color: var(--gold-deep);
}

.invite {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

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

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  background: var(--ink);
  color: var(--gold-pale);
  border-color: var(--ink);
}

.price-card.featured h3,
.price-card.featured .price {
  color: var(--paper);
}

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

.price small {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.price-card.featured .price small {
  color: var(--gold-pale);
}

.price-card ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  flex: 1;
}

.review-stack {
  display: grid;
  gap: 1.2rem;
}

.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.review-rating {
  color: var(--gold-deep);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.case-study {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

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

.modules {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.module {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.module-num {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.3rem;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

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

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

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

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

.article {
  max-width: 46rem;
  margin: 0 auto;
}

.article-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.4rem 0 2rem;
}

.article h2 {
  margin-top: 1.8rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

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

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--gold-pale);
  border-color: var(--gold);
}

.field .is-invalid {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
}

.form-status {
  padding: 0.8rem 1rem;
  border-radius: 10px;
}

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

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

.legal {
  max-width: 48rem;
}

.legal h2 {
  margin-top: 1.8rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 500;
  background: var(--parchment);
}

.site-footer {
  background: var(--ink);
  color: #d8cbb3;
  padding: 3rem 0 1.4rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

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

.site-footer a:hover {
  color: var(--paper);
}

.footer-address {
  white-space: pre-wrap;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 220, 196, 0.18);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.cookie-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--gold-pale);
  border: 1px solid #3a4558;
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cookie-banner a {
  color: var(--gold);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.inline-error {
  background: var(--error-bg);
  color: var(--error);
  padding: 0.7rem 1rem;
  margin: 0.5rem auto;
  width: min(var(--wrap), calc(100% - 2.4rem));
  border-radius: 10px;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 0.9;
  color: var(--gold);
  margin: 0;
}

.atlas-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.atlas-step {
  background: var(--paper);
  border-top: 2px solid var(--gold);
  padding: 1.2rem 1.1rem 1.3rem;
}

#site-header[data-pending],
#site-footer[data-pending] {
  min-height: 4.4rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .card-grid,
  .price-grid,
  .contact-grid,
  .journal-row,
  .case-study,
  .stat-band,
  .footer-grid,
  .atlas-rail,
  .card-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .stat-band,
  .atlas-rail,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .invite,
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

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

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

  .header-row {
    position: relative;
  }

  .hero-grid,
  .split,
  .card-grid,
  .price-grid,
  .contact-grid,
  .journal-row,
  .case-study,
  .stat-band,
  .footer-grid,
  .atlas-rail,
  .card-grid-2,
  .instructor,
  .module {
    grid-template-columns: 1fr;
  }

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

  .instructor img {
    width: 96px;
    height: 96px;
  }
}
