:root {
  --ink: #1c1814;
  --ink-soft: #3f3832;
  --muted: #6f675e;
  --paper: #f6f1e8;
  --cream: #fffbf5;
  --card: #fffcf7;
  --line: #e4dcd0;
  --gold: #8f6b45;
  --gold-bright: #c4a574;
  --gold-deep: #6e4f30;
  --sage: #3a4a43;
  --sage-soft: #e8eeea;
  --error: #8b3a2f;
  --error-bg: #f6ebe8;
  --success: #2f5d4a;
  --success-bg: #e8f1ec;
  --shadow: 0 18px 40px rgba(28, 24, 20, 0.08);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  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,
.logo,
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

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

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

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

.skip-link:focus {
  top: 0.6rem;
}

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

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(var(--gold-bright), var(--gold-bright)) 50% 50% / 40% 40% no-repeat,
    var(--ink);
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: #efe8dc;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.6rem;
}

.footer-name {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.footer-tag,
.footer-col p,
.footer-col address,
.footer-note {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

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

.footer-col li + li {
  margin-top: 0.25rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.footer-note {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font: 600 0.95rem/1 var(--font-body);
  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;
}

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

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

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

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

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

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

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

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

.section {
  padding: 4.2rem 0;
}

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.4rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card img,
.media-frame img {
  width: 100%;
  object-fit: cover;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.55rem;
}

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

.hero-editorial .stat-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.stat-item {
  border-left: 2px solid var(--gold-bright);
  padding-left: 0.9rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 18px 18px 4px 18px;
  border: 1px solid var(--line);
}

.float-card {
  position: absolute;
  left: -1.2rem;
  bottom: 1.4rem;
  max-width: 16rem;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.band {
  background: var(--sage);
  color: #f4f7f5;
  padding: 2.4rem 0;
}

.band h2,
.band p,
.band a {
  color: #f4f7f5;
}

.band a {
  text-decoration-color: var(--gold-bright);
}

.trust-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}

.trust-rail div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.course-card img {
  height: 180px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

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

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

.review-card .stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

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

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0 0.2rem;
}

.price-card ul {
  flex: 1;
  padding-left: 1.05rem;
}

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

.price-card.featured h3,
.price-card.featured .amount,
.price-card.featured p,
.price-card.featured li {
  color: var(--cream);
}

.price-card.featured .btn-ghost {
  color: var(--cream);
  border-color: var(--gold-bright);
}

.prose {
  max-width: 46rem;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.2rem 0 1.6rem;
}

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

.prose th {
  background: #efe8dc;
  font-weight: 600;
}

.page-masthead {
  padding: 3.2rem 0 1.2rem;
}

.page-masthead.with-rule h1 {
  max-width: 18ch;
}

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

.form-stack {
  display: grid;
  gap: 0.9rem;
}

.form-stack label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

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

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

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

.form-alert {
  min-height: 1.3em;
  font-weight: 600;
}

.form-alert.is-error {
  color: var(--error);
  background: var(--error-bg);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}

.form-alert.is-success {
  color: var(--success);
  background: var(--success-bg);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}

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

.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;
}

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

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

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

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

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.blog-card img {
  height: 200px;
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-study {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.5rem;
}

.overlay-hero {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
}

.overlay-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.overlay-hero .overlay-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(transparent, rgba(28, 24, 20, 0.82));
  color: var(--cream);
}

.overlay-hero .overlay-copy h1,
.overlay-hero .overlay-copy p {
  color: var(--cream);
}

.thesis-steps {
  display: grid;
  gap: 0;
}

.thesis-steps article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.thesis-steps span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
}

.not-found {
  min-height: 60vh;
  display: grid;
  align-content: center;
  text-align: left;
  padding: 4rem 0;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cookie-banner {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 50;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.cookie-banner-inner {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.cookie-banner-copy {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.cookie-fallback {
  position: sticky;
  bottom: 0;
}

@media (max-width: 960px) {
  .hero-editorial,
  .grid-3,
  .grid-4,
  .trust-rail,
  .footer-inner,
  .split-page,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    height: 360px;
  }

  .float-card {
    position: static;
    max-width: none;
    margin-top: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.4rem;
    background: var(--paper);
    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;
  }

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

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

@media (max-width: 600px) {
  .header-inner,
  .footer-inner,
  .wrap {
    width: min(var(--max), calc(100% - 1.4rem));
  }
}
