:root {
  --ink: #1b2430;
  --ink-soft: #2a3444;
  --gold: #c4a574;
  --gold-deep: #8f7349;
  --ivory: #f6f1e8;
  --cream: #ede6d9;
  --paper: #fffbf5;
  --text: #2f2a24;
  --muted: #6b6358;
  --line: #d9d0c3;
  --error: #8b3a3a;
  --success: #3d5c4a;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
  --shadow: 0 18px 40px rgba(27, 36, 48, 0.08);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
}

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

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

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

.inline-error {
  margin: 0;
  padding: 0.85rem 1.2rem;
  background: #f4e6e4;
  color: var(--error);
  border-bottom: 1px solid #e3c7c3;
}

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

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

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

h1,
h2,
h3,
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

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

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.wordmark {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.site-footer {
  background: var(--ink);
  color: #d9d0c3;
  margin-top: 4.5rem;
  padding: 3.5rem 0 1.5rem;
}

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

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

.site-footer .wordmark {
  color: var(--ivory);
  margin: 0 0 0.6rem;
}

.footer-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.4fr;
  gap: 2rem;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  text-decoration: none;
}

.footer-tag,
.footer-contact p {
  color: #cfc6b8;
  font-size: 0.95rem;
}

.footer-copy {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(196, 165, 116, 0.25);
  font-size: 0.85rem;
  color: #9a9184;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}

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

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

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

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

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

.text-link {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  padding-bottom: 0.12rem;
}

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

.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: end;
  padding: 3.5rem 0 2.5rem;
}

.hero-kicker {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.2rem;
  height: 11rem;
}

.hero-copy h1 {
  max-width: 14ch;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 251, 245, 0.92);
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.band {
  padding: 4rem 0;
}

.band-cream {
  background: var(--cream);
}

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

.band-ink {
  background: var(--ink);
  color: #e8e0d4;
}

.band-ink h2,
.band-ink h3 {
  color: var(--ivory);
}

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

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

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

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

.stat-row {
  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;
}

.stat {
  padding-right: 1rem;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(27, 36, 48, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.card-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-featured img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.card-featured .card-body {
  padding: 2rem;
  justify-content: center;
}

.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 1.3rem 1.5rem;
}

.quote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.quote footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

.split-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.split-ledger > div {
  padding: 2rem;
}

.split-ledger > div:first-child {
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.split-ledger ol,
.split-ledger ul {
  margin: 0;
  padding-left: 1.15rem;
}

.split-ledger li {
  margin-bottom: 0.65rem;
}

.note-list article {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.note-list img {
  width: 8rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 4px;
}

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

.page-hero.with-image {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: var(--radius);
}

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

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

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

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

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

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

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

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

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

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

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

.price {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
  margin: 0.4rem 0 1rem;
}

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

.price-card ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.review-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.case-study {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  margin: 2.5rem 0;
}

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

.blog-index {
  display: grid;
  gap: 2rem;
}

.blog-tease {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-tease img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
}

.blog-tease > div {
  padding: 1.4rem 1.5rem 1.5rem 0;
}

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.article header {
  margin-bottom: 2rem;
}

.article img.cover {
  width: min(1120px, 100vw);
  max-width: none;
  height: 22rem;
  object-fit: cover;
  margin: 0 0 2rem;
  border-radius: var(--radius);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.address-block,
.phone-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

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

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

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

.field {
  margin-bottom: 1rem;
}

.field-error {
  min-height: 1.1rem;
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--error);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

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

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

.legal {
  max-width: 46rem;
}

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

table.cookies {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper);
}

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

table.cookies th {
  background: var(--cream);
  font-weight: 500;
}

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

.not-found p.code {
  font-family: var(--serif);
  font-size: 4.5rem;
  color: var(--gold);
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -12px 30px rgba(27, 36, 48, 0.08);
}

.cookie-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 1.2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.95rem;
}

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

.avatar-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.avatar-row img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  object-fit: cover;
}

.soft-close {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: var(--gold-deep);
  font-weight: 500;
}

.og-hidden {
  display: none;
}

@media (max-width: 960px) {
  .hero-editorial,
  .page-hero.with-image,
  .card-featured,
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-row,
  .course-grid,
  .pricing-grid,
  .contact-layout,
  .case-study,
  .footer-inner,
  .split-ledger,
  .blog-tease,
  .note-list article {
    grid-template-columns: 1fr;
  }

  .hero-kicker {
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
  }

  .hero-figure img,
  .page-hero img,
  .card-featured img,
  .blog-tease img,
  .article img.cover,
  .case-study img {
    height: 16rem;
  }

  .blog-tease > div,
  .note-list article {
    padding: 1rem 1.1rem 1.2rem;
  }

  .split-ledger > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    gap: 1.6rem;
  }
}

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

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

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

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

  .instructor,
  .module-list li,
  .timeline li {
    grid-template-columns: 1fr;
  }
}
