@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --bg: #faf6ee;
  --surface: #fffdf7;
  --sand: #f3e7d4;
  --ink: #26343b;
  --ink-soft: #46565d;
  --muted: #66757b;
  --line: #e8ddcb;
  --accent: #2c7a6e;
  --accent-deep: #1f5d54;
  --accent-soft: #deece7;
  --gold: #c98f2f;
  --gold-soft: #f7e8c8;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 480px at 88% 4%, #fdf3e2 0%, rgba(253, 243, 226, 0) 65%),
    radial-gradient(900px 520px at 4% 30%, #f2f7f3 0%, rgba(242, 247, 243, 0) 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) clamp(18px, 4vw, 32px) 12px;
  background: linear-gradient(to bottom, rgba(250, 246, 238, 0.96) 65%, rgba(250, 246, 238, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
}

.brand:focus-visible,
.parent-link:focus-visible,
.btn:focus-visible,
.card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid #c8ded6;
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 14px;
}

.brand-text strong {
  font-weight: 800;
}

.brand-text span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.parent-link {
  padding: 8px 2px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.parent-link:hover {
  border-bottom-color: #cbbba2;
}

main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px) 24px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(30px, 5vw, 64px) 0 clamp(40px, 6vw, 76px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(38px, 5.3vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px -18px rgba(31, 93, 84, 0.9);
}

.btn.primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn:active {
  transform: translateY(1px);
}

.hero-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% -6% 4% 8%;
  border-radius: 48% 52% 44% 56% / 54% 42% 58% 46%;
  background: #e9f0e9;
  transform: rotate(-3deg);
}

.art-card {
  position: relative;
  width: min(330px, 100%);
  padding: 15px;
  border: 1px solid #eadfcd;
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 30px 60px -38px rgba(47, 55, 50, 0.55);
}

.art-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5716;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.art-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 252px;
  border: 1px solid #f2e7d5;
  border-radius: 20px;
  background: radial-gradient(120% 100% at 50% 0%, #fffefb 0%, #fffcf4 100%);
}

.art-letter {
  height: 86%;
  width: auto;
}

.art-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 6px 1px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Modules ---------- */

.modules {
  padding: 8px 0 20px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 22px 2px 18px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.72);
  text-decoration: none;
  color: var(--ink);
}

.card.ready {
  background: var(--surface);
  border-color: #cfe2d8;
  box-shadow: 0 18px 44px -34px rgba(40, 70, 60, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card.ready:hover {
  transform: translateY(-2px);
  border-color: #a9cbbb;
  box-shadow: 0 24px 48px -32px rgba(40, 70, 60, 0.6);
}

.card.soon {
  background: rgba(255, 253, 247, 0.42);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.muted {
  background: #efe9db;
  color: #7d7361;
}

.card-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #e3d6c2;
  background: #f8efdf;
  color: #8a6b36;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card-mark.soft {
  background: #f4efe5;
  color: #9a907f;
  font-size: 17px;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.tags span {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid #e6dac6;
  background: #fbf5e9;
  color: #6d6353;
  font-size: 11.5px;
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 800;
}

.card-link.muted {
  color: #8a8171;
}

.card.soon .card-link {
  margin-top: auto;
}

/* ---------- Parents ---------- */

.parents {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 22px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #e8dcc8;
  border-radius: 30px;
  background:
    radial-gradient(600px 300px at 100% 0%, #fdf5e6 0%, rgba(253, 245, 230, 0) 70%),
    #f6eddd;
}

.parents h2 {
  max-width: 18ch;
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.parents-head > p:last-child {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.principles strong {
  color: var(--ink);
  font-weight: 800;
}

/* ---------- 404 ---------- */

.notfound {
  max-width: 680px;
  margin: clamp(32px, 8vh, 96px) auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 30px 60px -46px rgba(47, 55, 50, 0.5);
}

.notfound h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.notfound > p:not(.eyebrow) {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Footer ---------- */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 30px 20px calc(34px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

footer > span:first-child {
  color: var(--ink-soft);
  font-weight: 800;
}

.foot-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7ab97;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 28px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-art {
    order: 2;
  }

  .hero-art::before {
    inset: 8% 12% 2% 12%;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card.ready {
    grid-column: 1 / -1;
  }

  .parents {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding-bottom: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }

  .brand-text {
    font-size: 13px;
  }

  .parent-link {
    font-size: 12.5px;
  }

  .hero {
    padding-bottom: 36px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions {
    gap: 12px;
  }

  .art-stage {
    height: 224px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .parents {
    padding: 22px 20px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
