:root {
  --ivory: #f4efe6;
  --cream: #fbf7f0;
  --paper: #fffdf8;
  --ink: #1c1814;
  --ink-soft: #433c35;
  --muted: #746b61;
  --line: #e4dacb;
  --gold: #a6844a;
  --gold-deep: #8a6c38;
  --gold-soft: #c9a86c;
  --espresso: #2a221b;
  --espresso-deep: #16120f;
  --blush: #efe6d8;
  --error: #8f3a2a;
  --success: #2f5d43;
  --shadow: 0 18px 40px rgba(28, 24, 20, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

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

.inline-script-error,
[data-include-error]:not([hidden]),
[data-form-fallback]:not([hidden]) {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f3e4de;
  color: var(--error);
  text-align: center;
  font-size: 0.95rem;
}

.site-header {
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

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

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--gold);
  box-shadow: 0.35rem 0.35rem 0 0 var(--gold-soft);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

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

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

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.35rem 0.8rem;
  color: var(--espresso) !important;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

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

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

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

.footer-brand .brand-name {
  color: var(--cream);
  margin: 0 0 0.6rem;
}

.footer-tag,
.footer-address,
.footer-meta {
  color: #cfc5b8;
  font-style: normal;
  font-size: 0.95rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.8rem;
}

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

.footer-links a,
.footer-meta a {
  color: #efe6d8;
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--gold-soft);
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201, 168, 108, 0.25);
  font-size: 0.88rem;
  color: #a89f93;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1.15rem;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.btn-text {
  border: 0;
  background: none;
  color: var(--gold-deep);
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

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

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

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

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 2.5rem 0;
}

.section {
  padding: 4.2rem 0;
}

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

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

.paper-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

.hero-editorial h1 {
  margin-bottom: 0.8rem;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-row div {
  padding: 1.4rem 1rem;
  border-right: 1px solid var(--line);
}

.stat-row div:last-child {
  border-right: 0;
}

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

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

.manifesto ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.manifesto li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.manifesto li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.4rem;
}

.quote-block {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--ink-soft);
}

.quote-attr {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

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

.page-hero h1 {
  max-width: 18ch;
}

.course-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.price-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.price-card h2 {
  font-size: 1.8rem;
}

.price-amount {
  font-family: var(--serif);
  font-size: 2.2rem;
  margin: 0.4rem 0 1rem;
}

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

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem;
}

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

.case-study {
  background: var(--espresso);
  color: #efe6d8;
  padding: 2rem;
}

.case-study h2,
.case-study h3 {
  color: var(--cream);
}

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

label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

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

textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.form-error,
.field-error {
  color: var(--error);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.form-success {
  color: var(--success);
  font-size: 0.98rem;
  margin: 0.6rem 0 0;
}

.legal-body h2 {
  margin-top: 2rem;
}

.legal-body table,
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  background: var(--paper);
}

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

.legal-body th,
.cookies-table th {
  background: var(--blush);
  font-weight: 600;
}

.article-body h2 {
  margin-top: 2.2rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin: 1.2rem 0 1.8rem;
  border: 1px solid var(--line);
}

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

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

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

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

.quiet-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

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

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

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 920px;
  margin: 0 auto;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  padding: 1.2rem 1.3rem;
  align-items: center;
}

.cookie-banner-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
}

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

.blog-list article,
.course-list article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-list img,
.course-list img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.modules li {
  margin-bottom: 0.6rem;
}

@media (max-width: 960px) {
  .footer-grid,
  .hero-editorial .hero-layout,
  .grid-4,
  .stat-row,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .stat-row div:nth-child(2) {
    border-right: 0;
  }

  .stat-row div:nth-child(3),
  .stat-row div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

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

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

  .hero-editorial .hero-layout,
  .footer-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-row,
  .blog-list article,
  .course-list article,
  .instructor,
  .cookie-banner-inner,
  .quiet-strip {
    grid-template-columns: 1fr;
    display: grid;
  }

  .quiet-strip {
    gap: 0.4rem;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .stat-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
