:root {
  --bg: #f3f0ea;
  --paper: #fffcf7;
  --ink: #1a1916;
  --muted: #5e5a53;
  --line: #ddd6ca;
  --accent: #3a4638;
  --accent-hover: #2a3329;
  --sand: #c9b89a;
  --shadow: 0 18px 40px rgba(26, 25, 22, 0.06);
  --radius: 14px;
  --max: 1120px;
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4.5rem;
  padding: 2.8rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer-grid h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
}

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

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

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
}

.address {
  white-space: pre-line;
}

.inline-error {
  background: #f3e4dc;
  color: #5a2e22;
  border: 1px solid #e2c4b6;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.hero-editorial {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3rem;
  align-items: end;
  padding: 3.2rem 0 1rem;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-editorial img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px 48px 4px 4px;
  animation: rise 0.8s ease both;
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #f7f4ee;
  text-decoration: none;
  border: 0;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #f7f4ee;
  transform: translateY(-1px);
}

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

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

.quote-band {
  margin: 4rem 0 2rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  font-weight: 500;
  max-width: 44rem;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

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

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

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

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

.section {
  padding: 2.4rem 0;
}

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

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

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(221, 214, 202, 0.7);
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-split img {
  height: 100%;
  min-height: 240px;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.card-body h3 {
  font-size: 1.2rem;
}

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

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

.benefit-list {
  display: grid;
  gap: 1.2rem;
}

.benefit {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.benefit h3 {
  margin-bottom: 0.3rem;
}

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

.page-intro {
  padding: 3rem 0 1.5rem;
  max-width: 42rem;
}

.course-hero img,
.article-cover,
.custom-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin: 1rem 0 2rem;
}

.modules {
  display: grid;
  gap: 0.8rem;
}

.module {
  background: var(--paper);
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
}

.instructor {
  background: var(--paper);
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.instructor img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

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

.price-card {
  background: var(--paper);
  padding: 1.6rem;
  border-radius: 16px;
  border: 1px solid var(--line);
}

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

.price-card.featured .muted,
.price-card.featured a {
  color: #d8d2c6;
}

.price-card .amount {
  font-family: var(--font-serif);
  font-size: 2.2rem;
}

.reviews {
  display: grid;
  gap: 1.2rem;
}

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

.stars {
  letter-spacing: 0.08em;
  color: #8a7349;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

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

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #8a3b2a;
  font-size: 0.85rem;
}

.form-status {
  padding: 0.8rem 1rem;
  border-radius: 10px;
}

.form-status.ok {
  background: #e4eee3;
  color: #284028;
}

.form-status.bad {
  background: #f3e4dc;
  color: #5a2e22;
}

.legal {
  max-width: 46rem;
  padding-bottom: 3rem;
}

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

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

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

.cookie-banner {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: min(420px, calc(100% - 2rem));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  z-index: 80;
  animation: rise 0.4s ease;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

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

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

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.blog-row img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

.blog-row div {
  padding-right: 1.2rem;
}

.prose {
  max-width: 44rem;
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-editorial,
  .benefits,
  .two-col,
  .footer-grid,
  .cards,
  .stats,
  .price-grid,
  .blog-row,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .hero-editorial img {
    height: 280px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 3.4rem;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    box-shadow: var(--shadow);
  }

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

  .header-inner {
    position: relative;
  }
}
