:root {
  --bg: #f3efe6;
  --bg-deep: #e7dfd0;
  --surface: #fffaf2;
  --ink: #2a3228;
  --ink-soft: #5a6356;
  --accent: #4a6741;
  --accent-deep: #355233;
  --clay: #c4785a;
  --clay-soft: #e8b89a;
  --line: rgba(42, 50, 40, 0.12);
  --shadow: 0 18px 40px rgba(53, 82, 51, 0.08);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --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(196, 120, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(74, 103, 65, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #efe8db 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

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

.inline-error {
  background: #f8e0d8;
  color: #7a2e1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #f3e6d0 0 28%, transparent 29%),
    linear-gradient(145deg, var(--accent) 0%, #6d8a5e 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 242, 0.35);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
}

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

.nav-cta {
  background: var(--accent);
  color: #fffaf2 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

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

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(74, 103, 65, 0.25);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(42, 50, 40, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-clay {
  background: var(--clay);
  color: #fffaf2;
}

.btn-clay:hover {
  background: #a85f44;
  color: #fffaf2;
}

/* Hero variants */
.hero-home {
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hero-home h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 12ch;
}

.hero-home .lede {
  font-size: 1.125rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  animation: rise-in 0.9s ease both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 250, 242, 0.92);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}

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

@keyframes soft-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-up {
  animation: rise-in 0.8s ease both;
}

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

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

.page-hero p {
  max-width: 48ch;
  font-size: 1.05rem;
}

.page-hero--media {
  padding-bottom: 0;
}

.page-hero-media {
  margin-top: 1.5rem;
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

.proof-item {
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}

.proof-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.course-card,
.blog-card,
.tier-card,
.review-card,
.lab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.course-card:hover,
.blog-card:hover,
.lab-card:hover {
  transform: translateY(-4px);
}

.course-card img,
.blog-card img,
.lab-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

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

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.chip {
  background: var(--bg-deep);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.65);
  border: 1px solid var(--line);
}

.benefit h3 {
  font-size: 1.2rem;
}

.quote-stack {
  display: grid;
  gap: 1.25rem;
}

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

.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.45;
}

.quote-card cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-band {
  margin: 1rem 0 3.5rem;
  padding: 2.5rem;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(74, 103, 65, 0.92), rgba(53, 82, 51, 0.95)),
    var(--accent);
  color: #fffaf2;
  text-align: center;
}

.cta-band h2,
.cta-band p {
  color: #fffaf2;
}

.cta-band p {
  max-width: 40ch;
  margin-inline: auto;
  opacity: 0.92;
}

.cta-band .btn-primary {
  background: #fffaf2;
  color: var(--accent-deep);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #f0e6d4;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(42, 50, 40, 0.18);
  background: #fff;
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-error {
  color: #8a341f;
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

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

.form-status--success {
  background: #e4efdf;
  color: #2d4a2a;
}

.form-status--error {
  background: #f8e0d8;
  color: #7a2e1c;
}

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

.tier-card {
  padding: 1.75rem;
}

.tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(74, 103, 65, 0.16);
  transform: translateY(-6px);
}

.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-deep);
  margin: 0.5rem 0 1rem;
}

.price span {
  font-size: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.tier-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.tier-card li {
  margin-bottom: 0.45rem;
}

/* Course detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.module-list {
  display: grid;
  gap: 0.85rem;
}

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

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.instructor {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.instructor img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

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

.faq p {
  margin-top: 0.65rem;
}

/* Blog article */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.article-wrap .cover {
  border-radius: 1.5rem;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}

.article-wrap .cover img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-wrap h2 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  font-size: 1.05rem;
}

.prose ul {
  color: var(--ink-soft);
}

/* Legal */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

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

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.legal th {
  background: var(--bg-deep);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.review-card {
  padding: 1.4rem 1.5rem;
}

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

.case-study {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid var(--line);
}

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

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

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #2f392d;
  color: #e8e2d6;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #d7eccf;
  text-decoration: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 1.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fffaf2;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-address,
.site-footer p {
  color: #c9c2b4;
}

.footer-col h2 {
  font-size: 0.95rem;
  color: #fffaf2;
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 250, 242, 0.12);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  animation: soft-fade 0.35s ease both;
}

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

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

.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--ink-soft);
}

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

/* Labs */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-home-grid,
  .contact-layout,
  .detail-layout,
  .benefit-list,
  .review-grid,
  .lab-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .tier-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .tier-card.featured {
    transform: none;
  }

  .side-card {
    position: static;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 250, 242, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-cta {
    text-align: center;
  }

  .header-inner {
    position: relative;
  }

  .hero-home h1 {
    max-width: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
