:root {
  --ink: #1f2a2a;
  --soft-ink: #52615f;
  --paper: #fffdf7;
  --mist: #edf3ee;
  --sage: #627b68;
  --teal: #285f68;
  --clay: #a96548;
  --gold: #d4aa54;
  --line: #dce4de;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(31, 42, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(220, 228, 222, 0.8);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 30, 31, 0.78) 0%, rgba(12, 30, 31, 0.5) 48%, rgba(12, 30, 31, 0.05) 100%),
    linear-gradient(0deg, rgba(12, 30, 31, 0.4), rgba(12, 30, 31, 0.04));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  padding: 22vh clamp(18px, 7vw, 90px) 16vh;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.75rem;
}

.hero-content > p:not(.eyebrow),
.join-band p,
.section-note {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--gold);
  color: #1d2522;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.secondary,
.outline {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.outline {
  border-color: var(--line);
  color: var(--ink);
}

.stats-band {
  background: var(--teal);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.stats-band div {
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(22px, 4vw, 42px);
}

.stats-band strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.stats-band span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 70px);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 1180px;
}

.section-heading.inline {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.section-heading .section-note {
  color: var(--soft-ink);
  font-size: 1rem;
  margin: 14px 0 0;
  max-width: 720px;
}

.muted {
  background: var(--mist);
}

.plans,
.course-grid,
.thread-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
}

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

.plan,
.course-card,
.thread-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan {
  padding: 28px;
}

.plan.featured {
  border-color: rgba(212, 170, 84, 0.75);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.badge {
  background: #f5ead1;
  border-radius: 999px;
  color: #785421;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 18px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 18px 0;
}

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

.join-signup,
.login-panel {
  align-items: center;
  background: var(--teal);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr minmax(320px, 460px);
  margin: 34px auto 0;
  max-width: 1180px;
  padding: clamp(28px, 5vw, 48px);
}

.join-signup h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.join-signup p,
.login-panel .section-note {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 620px;
}

.login-panel {
  margin-top: 0;
}

.login-form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.login-form label {
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.login-form .button {
  width: 100%;
}

.login-form a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
}

ul {
  color: var(--soft-ink);
  line-height: 1.8;
  margin: 0 0 24px;
  padding-left: 20px;
}

.segmented,
.thread-toolbar {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

.segmented button,
.thread-toolbar button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--soft-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.segmented button.active,
.thread-toolbar button.active {
  background: var(--teal);
  color: var(--white);
}

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

.course-card {
  min-height: 250px;
  overflow: hidden;
}

.course-top {
  align-items: center;
  background: linear-gradient(135deg, var(--sage), var(--teal));
  color: var(--white);
  display: flex;
  justify-content: space-between;
  min-height: 90px;
  padding: 22px;
}

.course-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.5rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.course-body {
  padding: 22px;
}

.course-status {
  background: #f5ead1;
  border-radius: 999px;
  color: #785421;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.course-description p,
.thread-card p {
  color: var(--soft-ink);
  line-height: 1.55;
}

.course-description p {
  margin: 12px 0 0;
}

.course-description p:first-child {
  margin-top: 0;
}

.course-lessons {
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}

.course-lessons h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.course-lessons ol {
  color: var(--soft-ink);
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

.course-lessons li + li {
  margin-top: 8px;
}

.course-meta {
  color: var(--clay);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 14px;
  margin-top: 18px;
}

.search {
  color: var(--soft-ink);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  min-width: min(100%, 340px);
  text-transform: uppercase;
}

input,
select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
}

.thread-toolbar {
  margin: 0 auto 22px;
  max-width: 1180px;
}

.thread-grid {
  grid-template-columns: repeat(4, 1fr);
}

.thread-card {
  min-height: 178px;
  padding: 20px;
  position: relative;
}

.thread-card h3 {
  font-size: 1.35rem;
  padding-right: 34px;
}

.thread-count {
  align-items: center;
  background: var(--mist);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.thread-card small {
  color: var(--clay);
  display: block;
  font-weight: 900;
  margin-top: 20px;
  text-transform: uppercase;
}

.join-band {
  align-items: center;
  background: var(--teal);
  color: var(--white);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr minmax(320px, 460px);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 70px);
}

.join-form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.join-form label {
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.join-form .button {
  width: 100%;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-content {
    padding-top: 26vh;
  }

  .stats-band,
  .plans,
  .course-grid,
  .thread-grid,
  .join-band,
  .join-signup,
  .login-panel {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading.inline {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.65rem;
  }

  .hero {
    min-height: 96vh;
  }

  .stats-band,
  .plans,
  .course-grid,
  .thread-grid,
  .join-band,
  .join-signup,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .plan.featured {
    transform: none;
  }
}
