:root {
  --paper: #f4f1ec;
  --ink: #1b1916;
  --muted: #6a655e;
  --line: #ddd8cf;
  --card: #fffefb;
  --accent: #3e5348;
  --accent-soft: #dce6df;
  --gold: #c4a574;
  --danger: #8a3a2a;
  --ok: #2f5d45;
  --shadow: 0 18px 40px rgba(27, 25, 22, 0.06);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  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(--ink);
}

h1,
h2,
h3,
.logo,
.footer-brand {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

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

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

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

.logo {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.45rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: end;
}

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

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

.metric-rail {
  display: grid;
  gap: 1.2rem;
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}

.metric-rail strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.metric-rail span {
  color: var(--muted);
  font-size: 0.92rem;
}

.band {
  padding: 4rem 0;
}

.band-alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.card-grid,
.course-grid,
.post-grid,
.tier-grid {
  display: grid;
  gap: 1.4rem;
}

.course-grid,
.post-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.card,
.course-card,
.post-card,
.tier,
.quote,
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.course-card img,
.post-card img,
.hero-photo,
.media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.86) contrast(1.02);
}

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

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-solid {
  background: var(--accent);
  color: #f7f4ef;
}

.btn-solid:hover {
  background: var(--ink);
  color: #f7f4ef;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: var(--accent-soft);
}

.text-link {
  font-size: 0.95rem;
}

.quote {
  padding: 1.6rem;
}

.quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
}

.quote footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.stars {
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

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

.person {
  display: flex;
  gap: 1rem;
  align-items: center;
}

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

.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: 500;
}

.field {
  margin-bottom: 1rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error,
.inline-error,
.form-status.is-error {
  color: var(--danger);
  font-size: 0.9rem;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status {
  margin-top: 0.8rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: #efebe4;
}

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

.footer-brand {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

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

.footer-list li {
  margin-bottom: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: min(28rem, calc(100% - 2.4rem));
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  z-index: 30;
  animation: rise 0.4s ease;
}

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

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

.modules li {
  counter-increment: mod;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--serif);
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

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

th {
  background: #efebe4;
  font-weight: 500;
}

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

.narrow {
  max-width: 42rem;
}

.case {
  margin-top: 2rem;
}

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

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

.fade-in {
  animation: rise 0.7s ease;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .tier-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}
