@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,500&display=swap");

:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #66706a;
  --paper: #f4f0e8;
  --card: #fbf8f1;
  --line: #d7d1c5;
  --accent: #df5b3f;
  --green: #1c5949;
  --mint: #a8d7bd;
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 8%, rgb(168 215 189 / 18%), transparent 25rem),
    var(--paper);
  color: var(--ink);
  min-width: 320px;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 22px;
  font-style: italic;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

.hero {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 96px;
}

.eyebrow,
.section-number,
.lesson-number,
.topic-tag,
.status-dot {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--green);
  font-size: 11px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 30px;
  font-size: clamp(62px, 9vw, 126px);
  line-height: 0.86;
  letter-spacing: -0.07em;
  font-weight: 500;
}

h1 em {
  color: var(--accent);
  font-family: "Newsreader", serif;
  font-weight: 500;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.paths,
.library {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}

.path-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 3px;
  background: var(--green);
  color: #f7f2e9;
  text-decoration: none;
}

.path-card-copy { align-self: end; max-width: 570px; }
.path-card .topic-tag { display: inline-block; border-color: rgb(255 255 255 / 28%); }
.path-card .lesson-number { margin-top: 62px; color: var(--mint); }
.path-card h3 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -0.055em; font-weight: 500; }
.path-card-copy > p:not(.lesson-number) { max-width: 500px; color: rgb(247 242 233 / 66%); line-height: 1.65; }
.path-card-copy > strong { display: inline-block; margin-top: 20px; color: var(--mint); font-size: 12px; }
.path-map { display: flex; align-items: center; justify-content: center; position: relative; }
.path-map::before { content: ""; width: 72%; position: absolute; border-top: 1px solid rgb(255 255 255 / 35%); }
.path-map i { width: 13px; height: 13px; z-index: 1; margin: 0 clamp(7px, 1.5vw, 16px); border: 3px solid var(--green); border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1px rgb(255 255 255 / 40%); }
.path-map i:nth-child(3) { width: 25px; height: 25px; background: var(--accent); }
.path-card:hover .path-map i { background: #f7f2e9; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 52px;
}

.section-number {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 10px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  gap: 20px;
}

.mini-lesson-grid { display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px; }
.mini-lesson-grid a { min-height:250px;padding:28px;border:1px solid var(--line);background:var(--card);text-decoration:none; }
.mini-lesson-grid a>span { color:var(--accent);font:500 9px/1 "DM Mono",monospace;text-transform:uppercase; }
.mini-lesson-grid h3 { margin:48px 0 12px;font-size:28px;font-weight:500;letter-spacing:-.04em; }
.mini-lesson-grid p { max-width:430px;color:var(--muted);font-size:13px;line-height:1.6; }
.mini-lesson-grid strong { display:inline-block;margin-top:12px;font-size:11px; }
.mini-lesson-grid a:hover h3 { color:var(--accent); }

.lesson-card,
.principle-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}

.lesson-card {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.card-topline {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.topic-tag,
.status-dot {
  font-size: 9px;
}

.topic-tag {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.status-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(168 215 189 / 22%);
}

.card-visual {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 12px 0 auto 45%;
  width: 340px;
  height: 340px;
}

.orbit,
.orbit-core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid rgb(28 89 73 / 28%);
}

.orbit-one {
  width: 280px;
  height: 280px;
  animation: breathe 7s ease-in-out infinite;
}

.orbit-two {
  width: 196px;
  height: 196px;
  border-style: dashed;
  animation: spin 28s linear infinite;
}

.orbit-three {
  width: 110px;
  height: 110px;
  background: rgb(168 215 189 / 35%);
  border: 0;
}

.orbit-core {
  width: 24px;
  height: 24px;
  background: var(--accent);
  box-shadow: 0 0 0 12px rgb(223 91 63 / 12%);
}

.card-copy {
  grid-column: 1 / 2;
  align-self: end;
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.lesson-number {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 9px;
}

.card-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.card-copy h3 a {
  text-decoration: none;
}

.card-copy h3 a:hover {
  color: var(--accent);
}

.card-copy > p:not(.lesson-number) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-copy .card-cta {
  display: inline-flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.principle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--green);
  color: #f7f2e9;
}

.principle-card .section-number {
  color: var(--mint);
}

.principle-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principle-card li {
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 20px 0;
  border-top: 1px solid rgb(255 255 255 / 17%);
}

.principle-card li > span {
  grid-row: 1 / 3;
  color: var(--mint);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.principle-card strong {
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 500;
}

.principle-card small {
  color: rgb(247 242 233 / 65%);
  font-size: 12px;
  line-height: 1.5;
}

.about {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.about > div {
  max-width: 760px;
}

.about h2 {
  margin-bottom: 30px;
}

.about div p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.6;
}

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  50% { transform: scale(1.04); opacity: 0.65; }
}

@media (max-width: 820px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 540px;
  }

  .section-heading,
  .path-card,
  .lesson-grid,
  .mini-lesson-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .lesson-card {
    grid-template-columns: 1fr;
  }

  .card-copy {
    grid-column: 1;
  }

  .principle-card {
    min-height: 390px;
  }

  .about {
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 18px;
  }

  nav a:last-child {
    display: none;
  }

  .hero {
    min-height: 500px;
    padding: 64px 0 70px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .paths,
  .library,
  .about {
    padding: 76px 0;
  }

  .lesson-card {
    min-height: 570px;
    padding: 20px;
  }

  .card-visual {
    inset: 70px auto auto 50%;
    width: 290px;
    height: 290px;
    transform: translateX(-50%);
  }

  .orbit-one { width: 250px; height: 250px; }
  .orbit-two { width: 174px; height: 174px; }

  .card-copy h3 {
    font-size: 36px;
  }

  footer {
    min-height: 92px;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; }
}
