@font-face {
  font-family: "Andika";
  src: url("../fonts/Andika-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fbf7ef;
  --paper: #fffdf8;
  --ink: #2d2637;
  --muted: #6b6472;
  --purple: #7561a8;
  --purple-dark: #5e4b91;
  --gold: #e3ad45;
  --line: rgba(76, 61, 99, 0.14);
  --shadow: 0 20px 55px rgba(62, 45, 82, 0.13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(227, 173, 69, 0.10), transparent 26rem),
    var(--background);
  font-family: "Andika", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 72px;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(14px);
}

.logo {
  color: var(--purple-dark);
  text-decoration: none;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 680;
}

nav a:hover,
nav a:focus-visible { color: var(--purple-dark); }

.languages {
  display: flex;
  gap: 0.35rem;
}

.languages button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
}

.languages button.active {
  color: white;
  border-color: var(--purple);
  background: var(--purple);
}

main {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: calc(100dvh - 72px);
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.hero-copy { max-width: 690px; }

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--purple-dark);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 850;
  letter-spacing: 0.015em;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.55rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro {
  max-width: 59ch;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.78rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

.primary {
  color: white;
  background: var(--purple);
  box-shadow: 0 9px 24px rgba(94, 75, 145, 0.22);
}

.primary:hover,
.primary:focus-visible { background: var(--purple-dark); }

.secondary {
  color: var(--purple-dark);
  border: 1px solid var(--line);
  background: var(--paper);
}

.note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.door-area {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
}

.door-link {
  display: block;
  width: min(100%, 510px);
  border-radius: 30px;
  outline-offset: 7px;
  transition: transform 180ms ease, filter 180ms ease;
}

.door-link:hover,
.door-link:focus-visible {
  transform: translateY(-5px) scale(1.012);
  filter: drop-shadow(0 24px 28px rgba(52, 35, 32, 0.18));
}

.door-link:active { transform: scale(0.985); }

.door-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(74dvh, 780px);
  object-fit: contain;
  border-radius: 30px;
}

.door-caption {
  margin: 0.65rem 0 0;
  color: var(--purple-dark);
  font-size: 0.9rem;
  font-weight: 780;
  text-transform: lowercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0 4rem;
}

.cards article,
.information article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.cards article { padding: clamp(1.35rem, 3vw, 2.1rem); }

.cards small {
  color: var(--gold);
  font-weight: 900;
}

h2 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.cards p,
.information p {
  margin: 0;
  color: var(--muted);
}

.parents-invitation {
  margin: 0 0 4rem;
  padding: clamp(1.6rem, 3vw, 2.3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.parents-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.parents-invitation h2 {
  max-width: 34ch;
  margin: 0 auto 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.parents-invitation-link {
  color: var(--purple-dark);
  font-weight: 800;
  text-decoration: none;
}

.parents-invitation-link:hover,
.parents-invitation-link:focus-visible { text-decoration: underline; }

.information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 0 5rem;
}

.information article { padding: clamp(1.5rem, 3vw, 2.35rem); }

footer {
  padding: 1.6rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.noscript {
  margin: 0;
  padding: 1rem;
  color: white;
  background: #8a2f3b;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1rem;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  nav a { white-space: nowrap; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.3rem;
    padding: 3.5rem 0;
  }

  h1 { max-width: 18ch; }

  .door-area { order: 2; }

  .door-link { width: min(88vw, 480px); }

  .door-link img { max-height: none; }

  .cards { grid-template-columns: 1fr; }

  .information { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main { width: min(100% - 1.25rem, 1280px); }

  .site-header { padding-inline: 0.75rem; }

  .languages button { padding-inline: 0.58rem; }

  h1 { font-size: clamp(2.25rem, 13vw, 3.45rem); }

  .actions { display: grid; }

  .actions a { width: 100%; }

  .door-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door-link { transition: none; }
}

.parents-page { width: min(980px, calc(100% - 2rem)); }
.parents-hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.parents-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
.parents-content { padding: clamp(1.6rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.parents-content h2 { margin-top: 0; }
.parents-content p { max-width: 72ch; color: var(--muted); font-size: 1.05rem; }
.goal-list { margin: 1.2rem 0 0; padding-left: 1.6rem; max-width: 72ch; }
.goal-list li { margin: 0.8rem 0; padding-left: 0.35rem; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }

/* Parent guide additions */
.parents-content h3 {
  margin: 1.8rem 0 0.55rem;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
}
.parent-principle {
  max-width: 38ch !important;
  margin: 1rem 0 1.4rem !important;
  color: var(--purple-dark) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important;
  font-weight: 800;
  line-height: 1.3;
}
