:root {
  --ivory: #f3eee4;
  --paper: #fbf7f0;
  --cream: #e8dfd0;
  --white: #fffdf9;
  --ink: #1c1710;
  --ink-soft: #3a3228;
  --muted: #6f6558;
  --line: #d8cfc0;
  --gold: #a6844c;
  --gold-deep: #7c6234;
  --espresso: #241c14;
  --danger: #8a3b32;
  --ok: #2f5d45;
  --shadow: 0 18px 40px rgba(28, 23, 16, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --narrow: 760px;
}

*,
*::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(--ivory);
  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: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--espresso);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

address {
  font-style: normal;
}

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

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

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

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 238, 228, 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.5rem;
  min-height: 4.4rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--espresso);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.wordmark span {
  font-style: italic;
  color: var(--gold-deep);
}

.wordmark:hover {
  color: var(--espresso);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

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

.primary-nav a:hover {
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--espresso);
  padding: 0.45rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--espresso);
  color: var(--paper);
  border-color: var(--espresso);
}

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

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

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

.btn-text {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-decoration: none;
}

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

.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
}

.hero-editorial h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.hero-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 34rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--espresso);
  color: #efe7d8;
}

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

.section-dark .muted,
.section-dark p {
  color: #d8cbb6;
}

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

.split-wide {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.feature-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

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

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--espresso);
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0 0 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card-body {
  padding: 0 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

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

.card p {
  color: var(--ink-soft);
  flex: 1;
}

.meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.quote-block {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--espresso);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.25rem;
}

.testimonial p {
  margin-bottom: 0.9rem;
}

.testimonial footer {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.flagship {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.flagship img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
}

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

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
}

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

.prose th {
  background: var(--paper);
  font-weight: 500;
  color: var(--espresso);
}

.modules {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.modules li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

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

.modules em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.2rem;
}

.instructor {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--espresso);
  color: #efe7d8;
  border-color: var(--espresso);
}

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

.price-card.featured p,
.price-card.featured li {
  color: #d8cbb6;
}

.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 ul {
  padding-left: 1.1rem;
  flex: 1;
}

.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: 500;
  color: var(--espresso);
}

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

.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
}

.form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field-error {
  color: var(--danger);
  font-size: 0.86rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
}

.form-status.is-success {
  border-color: var(--ok);
  color: var(--ok);
  background: #eef6f1;
}

.form-status.is-error {
  border-color: var(--danger);
  color: var(--danger);
  background: #f8eeee;
}

.runtime-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8eeee;
  color: var(--danger);
  border-bottom: 1px solid #e2c6c3;
  text-align: center;
}

.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.site-footer {
  background: var(--espresso);
  color: #d8cbb6;
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

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

.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(216, 203, 182, 0.2);
  font-size: 0.88rem;
}

.footer-legal ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}

.cookie-banner-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.cookie-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.cookie-banner p {
  margin: 0 0 0.4rem;
  max-width: 48rem;
  color: var(--ink-soft);
}

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

.article-cover {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--line);
}

.case-study {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

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

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

@media (max-width: 960px) {
  .hero-editorial,
  .split,
  .split-wide,
  .flagship,
  .stats,
  .card-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats,
  .pricing-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo img,
  .flagship img,
  .article-cover {
    height: 20rem;
  }
}

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

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
    flex-direction: column;
    gap: 0.7rem;
  }

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

  .hero-editorial,
  .split,
  .split-wide,
  .flagship,
  .stats,
  .card-grid,
  .card-grid-2,
  .pricing-grid,
  .footer-grid,
  .instructor,
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .hero-editorial {
    padding-top: 2.5rem;
  }

  .hero-photo img {
    height: 16rem;
  }

  .header-row {
    position: relative;
  }
}
