:root {
  --ink: #1c1712;
  --ink-soft: #4a4034;
  --muted: #7a6e60;
  --cream: #f4efe6;
  --paper: #faf7f1;
  --stone: #e7dfd1;
  --gold: #a67c52;
  --gold-deep: #8a6240;
  --gold-light: #d4bc9a;
  --rule: rgba(28, 23, 18, 0.12);
  --rule-strong: rgba(28, 23, 18, 0.22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 40px rgba(28, 23, 18, 0.08);
  --header-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  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);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.6rem; }
h4 { font-size: 1.15rem; margin: 0 0 0.4rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1rem; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
}
.skip-link:focus { top: 0.75rem; }

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

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

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  min-height: var(--header-h);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0.28rem auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--gold);
  color: var(--ink) !important;
  box-shadow: none !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--gold); color: var(--paper) !important; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d8cfc2;
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.site-footer h2 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 0.9rem;
}

.site-footer a { color: #d8cfc2; text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }

.footer-address,
.footer-phone {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.footer-base {
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #a89b8c;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-text {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  letter-spacing: 0.03em;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

/* Hero variants */
.hero-editorial {
  padding: 3.5rem 0 0;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 1.6fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.25rem;
}
.metric-stack {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  display: grid;
  gap: 1.4rem;
}
.metric dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}
.metric dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.hero-copy .kicker { margin-bottom: 0.5rem; }
.hero-band {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 2px;
}
.hero-band img {
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.page-hero {
  padding: 3.25rem 0 2.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.75rem;
}
.page-hero.with-image {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
}

.section { padding: 3.75rem 0; }
.section-alt { background: var(--cream); }
.section-ink {
  background: var(--ink);
  color: #d8cfc2;
}
.section-ink h2, .section-ink h3 { color: var(--cream); }

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

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { font-size: 1.35rem; }
.card-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.card-body p { color: var(--ink-soft); font-size: 0.98rem; }
.card-body .btn-text { margin-top: auto; padding-top: 0.6rem; text-align: left; text-decoration: none; }

.essay {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.essay img { width: 100%; height: 360px; object-fit: cover; border-radius: 2px; }

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
.benefit {
  border-top: 1px solid var(--rule-strong);
  padding-top: 1rem;
}
.benefit h3 { font-family: var(--serif); font-size: 1.5rem; }

/* Quotes */
.quote-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
}
.quote {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.7rem;
}
.quote blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.35rem; font-style: italic; font-weight: 500; line-height: 1.4; }
.quote figcaption { font-size: 0.88rem; color: var(--muted); }
.quote.compact blockquote { font-size: 1.1rem; font-family: var(--sans); font-style: normal; font-weight: 400; }

.stars { color: var(--gold); letter-spacing: 0.08em; font-size: 0.85rem; margin: 0 0 0.5rem; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.price-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.6rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--gold);
  background: var(--cream);
}
.price-card h3 { font-size: 1.55rem; }
.price { font-family: var(--serif); font-size: 2.1rem; margin: 0.2rem 0 0.8rem; }
.price span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.price-card ul { margin: 0 0 1.4rem; padding: 0 0 0 1.1rem; color: var(--ink-soft); flex: 1; }
.price-card li { margin: 0 0 0.45rem; }

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field-error {
  color: #8a3b2b;
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
  min-height: 1.1em;
}
.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  display: none;
}
.form-status.ok { display: block; background: #eef3e8; border-color: #b7c9a6; }
.form-status.bad { display: block; background: #f7ece8; border-color: #d4a99a; }
.script-error {
  background: #f7ece8;
  border: 1px solid #d4a99a;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  color: #5c2b20;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.address-block {
  background: var(--cream);
  padding: 1.75rem;
  border: 1px solid var(--rule);
}
.address-block address { font-style: normal; white-space: pre-wrap; }

/* Blog / article */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; font-family: var(--serif); font-size: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.article-hero img { width: 100%; height: 380px; object-fit: cover; margin: 0.5rem 0 1.75rem; }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Course detail */
.module-list { counter-reset: mod; display: grid; gap: 0; }
.module {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}
.module::before {
  counter-increment: mod;
  content: counter(mod, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}
.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--cream);
  padding: 1.4rem;
  border: 1px solid var(--rule);
}
.instructor img { width: 140px; height: 140px; object-fit: cover; border-radius: 2px; }

.faq details {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-soft); }

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

.case-study {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0;
  overflow: hidden;
}
.case-study img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.case-study > div { padding: 1.8rem 1.8rem 2rem; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; }
table.cookies {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.cookies th,
table.cookies td {
  border: 1px solid var(--rule);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
table.cookies th { background: var(--cream); font-weight: 600; }

.legal { padding-bottom: 4rem; }

.invite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found p.num {
  font-family: var(--serif);
  font-size: 6rem;
  margin: 0;
  color: var(--gold);
  line-height: 1;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  background: var(--ink);
  color: #e6dfd2;
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 188, 154, 0.25);
  max-width: 1120px;
  margin-inline: auto;
}
.cookie-banner p { margin: 0; font-size: 0.95rem; }
.cookie-banner a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions .btn { min-width: 7.5rem; }
.cookie-actions .btn-line { color: var(--cream); border-color: var(--cream); }
.cookie-actions .btn-line:hover { background: var(--cream); color: var(--ink); }

.include-slot { min-height: var(--header-h); }
.include-slot[data-include="footer"] { min-height: 0; }

@media (max-width: 980px) {
  .hero-split,
  .page-hero.with-image,
  .essay,
  .quote-grid,
  .contact-layout,
  .two-col,
  .case-study,
  .footer-grid,
  .instructor {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .card-grid.four,
  .price-grid,
  .benefit-list {
    grid-template-columns: 1fr 1fr;
  }
  .cookie-banner { grid-template-columns: 1fr; left: 0.75rem; right: 0.75rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .price-grid,
  .benefit-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-band img, .article-hero img, .page-hero img { height: 220px; }
}
