:root {
  --bg: #f0ebe3;
  --bg-deep: #e4ddd2;
  --surface: #fffaf4;
  --ink: #2a3226;
  --muted: #5c6556;
  --line: rgba(42, 50, 38, 0.12);
  --sage: #6b8f71;
  --sage-deep: #4f7356;
  --honey: #c9924a;
  --honey-soft: #e8c48a;
  --moss: #3d5240;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 12px 32px rgba(61, 82, 64, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(107, 143, 113, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 146, 74, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(240, 235, 227, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 30% 30%, var(--honey-soft), transparent 45%),
    linear-gradient(145deg, var(--sage), var(--moss));
  box-shadow: inset 0 0 0 2px rgba(255, 250, 244, 0.35);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

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

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

.nav-cta {
  background: var(--sage);
  color: #fffaf4 !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--sage-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-alt {
  background: rgba(255, 250, 244, 0.55);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sage);
  color: #fffaf4;
  box-shadow: 0 8px 20px rgba(107, 143, 113, 0.28);
}

.btn-primary:hover {
  background: var(--sage-deep);
  color: #fffaf4;
}

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fffaf4;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(42, 50, 38, 0.82) 0%, rgba(42, 50, 38, 0.55) 48%, rgba(42, 50, 38, 0.28) 100%),
    linear-gradient(0deg, rgba(42, 50, 38, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  width: 100%;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 650;
  margin: 0 0 0.35em;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  max-width: 22ch;
  color: rgba(255, 250, 244, 0.95);
}

.hero .support {
  max-width: 34rem;
  font-size: 1.1rem;
  color: rgba(255, 250, 244, 0.82);
  margin-bottom: 0;
}

.hero .btn-primary {
  background: var(--honey);
  box-shadow: 0 8px 22px rgba(201, 146, 74, 0.35);
}

.hero .btn-primary:hover {
  background: #b57d38;
}

.hero .btn-secondary {
  background: rgba(255, 250, 244, 0.12);
  color: #fffaf4;
  border-color: rgba(255, 250, 244, 0.35);
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 16ch;
}

/* Grids & media blocks */
.feature-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 0.25rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.media-split img {
  width: 100%;
  border-radius: calc(var(--radius) + 0.35rem);
  min-height: 280px;
  object-fit: cover;
  box-shadow: var(--shadow);
  animation: softFloat 7s ease-in-out infinite;
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.course-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid { grid-template-columns: repeat(2, 1fr); }
.tier-grid { grid-template-columns: repeat(3, 1fr); }
.review-grid { grid-template-columns: repeat(2, 1fr); }

.course-tile,
.blog-tile,
.tier,
.review-block,
.module,
.faq-item,
.stat-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-tile a,
.blog-tile a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-tile img,
.blog-tile img,
.article-cover img,
.instructor-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-body,
.tier,
.review-block,
.module,
.faq-item,
.stat-block {
  padding: 1.25rem 1.35rem 1.5rem;
}

.tier { padding: 1.75rem; }

.course-tile h3,
.blog-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35em;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sage-deep);
  font-weight: 650;
}

.tier h3 {
  font-size: 1.45rem;
}

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

.tier ul {
  padding-left: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.tier.featured {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.attribution {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.stars {
  color: var(--honey);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

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

.stat-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage-deep);
}

.faq-item + .faq-item,
.module + .module {
  margin-top: 0.85rem;
}

.faq-item h3,
.module h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

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

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  background: var(--surface);
}

.prose th {
  background: rgba(107, 143, 113, 0.12);
}

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

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

.form .error {
  color: #9a3b2f;
  font-weight: 600;
  font-size: 0.88rem;
}

.form .success {
  background: rgba(107, 143, 113, 0.15);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--moss);
  font-weight: 600;
}

.form .form-status[hidden] {
  display: none;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

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

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

.instructor-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer {
  margin-top: 3rem;
  background: var(--moss);
  color: rgba(255, 250, 244, 0.88);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  color: #fffaf4;
}

.footer-tag {
  color: rgba(255, 250, 244, 0.72);
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 2rem;
}

.footer-label {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey-soft);
  margin: 0 0 0.75rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 250, 244, 0.82);
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: #fffaf4;
}

.footer-address {
  margin: 0 0 0.5rem;
  color: rgba(255, 250, 244, 0.78);
  font-size: 0.92rem;
}

.footer-copy {
  border-top: 1px solid rgba(255, 250, 244, 0.15);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 250, 244, 0.6);
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  animation: riseIn 0.45s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 18rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.inline-error {
  background: #f8e4e0;
  color: #7a2e24;
  border: 1px solid #e0b0a8;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

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

.not-found h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 0.2em;
  color: var(--sage-deep);
}

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

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sage);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .feature-row,
  .course-grid,
  .tier-grid,
  .stats,
  .footer-cols,
  .media-split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(240, 235, 227, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero {
    min-height: 78vh;
  }
}
