:root {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #5c5a54;
  --line: #ddd9d0;
  --accent: #1b3a4b;
  --accent-hover: #143040;
  --accent-soft: #e6eef1;
  --success: #2f5d4a;
  --error: #8b3a3a;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(26, 26, 24, 0.06);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, #e8eef1 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, #eceae4 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1em;
}

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

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

.inline-error {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #f7e9e9;
  color: var(--error);
  font-size: 0.95rem;
}

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

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

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    gap: 0;
  }

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

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #f7f6f3;
}

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

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

.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

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

/* Hero variants */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: min(88vh, 760px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 0);
  padding-left: max(calc((100vw - var(--max)) / 2), 1.25rem);
  padding-right: 2rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 58, 75, 0.18), transparent 55%);
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.5%, 1%);
  }
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.page-hero p {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero-fullbleed {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  color: #f7f6f3;
  overflow: hidden;
}

.hero-fullbleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(26, 26, 24, 0.78) 10%, rgba(26, 26, 24, 0.25) 70%);
}

.hero-fullbleed .container {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  padding-top: 6rem;
}

.hero-fullbleed h1,
.hero-fullbleed p {
  color: #f7f6f3;
}

.hero-fullbleed p {
  max-width: 34rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--ink-soft);
}

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

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

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 3rem 1.25rem 2rem;
  }

  .hero-media {
    min-height: 280px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 0.25rem 0;
}

.feature h3 {
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--ink-soft);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* Course / blog cards — interaction containers */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(26, 26, 24, 0.09);
  color: inherit;
}

.media-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.media-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.media-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.media-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.meta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Quotes / reviews */
.quote {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.quote p {
  font-size: 1.15rem;
  max-width: 42rem;
}

.quote footer {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.quote.compact p {
  font-size: 1rem;
}

.rating {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 980px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-tier.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.price-tier h3 {
  margin: 0;
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

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

.price-tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  flex: 1;
}

.price-tier li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.price-note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 1.15rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font: inherit;
  color: var(--ink);
}

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

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

.field-error {
  min-height: 1.2em;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--error);
}

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

.form-status.is-success,
.form-status.is-error {
  display: block;
}

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

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

.contact-aside {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Prose / legal */
.prose {
  max-width: 42rem;
}

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

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

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

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

.prose th {
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

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

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

.module-list .num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

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

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

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

.faq details p {
  margin-top: 0.65rem;
  color: var(--ink-soft);
}

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

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

@media (max-width: 560px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--accent);
  color: #f7f6f3;
}

.cta-band h2 {
  color: #f7f6f3;
}

.cta-band p {
  color: rgba(247, 246, 243, 0.85);
  max-width: 32rem;
}

.cta-band .btn-primary {
  background: #f7f6f3;
  color: var(--accent);
}

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

.cta-band .btn-ghost {
  border-color: rgba(247, 246, 243, 0.35);
  color: #f7f6f3;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 0;
  background: rgba(255, 255, 255, 0.35);
  margin-top: 2rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}

.footer-tag {
  color: var(--ink-soft);
  max-width: 18rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

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

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

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

.footer-address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  animation: rise 0.45s ease both;
}

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

.cookie-banner__inner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

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

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent);
  margin: 0;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
}

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

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
  border-left: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline strong {
  display: block;
  margin-bottom: 0.25rem;
}
