:root {
  --bg: #fff6e9;
  --bg2: #e8f4ff;
  --card: #ffffff;
  --ink: #2b2433;
  --ink-soft: #5d5568;
  --muted: #8d8496;
  --coral: #ff8a5b;
  --coral-deep: #e5643a;
  --blue: #4a8cff;
  --blue-deep: #2f6fd0;
  --sun: #ffc93c;
  --shadow: 0 2px 0 rgba(43, 36, 51, .06), 0 18px 40px -14px rgba(43, 36, 51, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1826; --bg2: #14202f; --card: #262033; --ink: #f6f0ff; --ink-soft: #cfc5dd; --muted: #9a90a8;
    --coral: #ff9a70; --coral-deep: #ff8a5b; --blue: #78a9ff; --blue-deep: #5b93ff;
    --shadow: 0 2px 0 rgba(0,0,0,.3), 0 18px 40px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1826; --bg2: #14202f; --card: #262033; --ink: #f6f0ff; --ink-soft: #cfc5dd; --muted: #9a90a8;
  --coral: #ff9a70; --coral-deep: #ff8a5b; --blue: #78a9ff; --blue-deep: #5b93ff;
  --shadow: 0 2px 0 rgba(0,0,0,.3), 0 18px 40px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 55%);
  overflow-x: hidden;
}
a { color: var(--blue-deep); }
h1, h2 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; margin: 0; letter-spacing: 0; }

/* Floating decorations */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.float { position: absolute; font-size: 2rem; opacity: .55; animation: floaty 9s ease-in-out infinite alternate; }
.f1 { top: 9%; left: 6%; }
.f2 { top: 14%; right: 9%; font-size: 3rem; animation-duration: 12s; }
.f3 { top: 58%; left: 3%; font-size: 2.4rem; animation-duration: 10s; animation-delay: -3s; }
.f4 { top: 40%; right: 4%; animation-delay: -5s; }
.f5 { bottom: 12%; left: 42%; font-size: 2.6rem; animation-duration: 14s; animation-delay: -7s; }
.f6 { bottom: 20%; right: 12%; font-size: 2.2rem; animation-delay: -2s; }
@keyframes floaty { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(14px, -22px) rotate(5deg); } }

.landing { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 5vh, 3.5rem) 16px 2rem; }

.top { text-align: center; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.logo { display: inline-block; animation: bounce 2.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.brand { font: 600 1.05rem "Fredoka", sans-serif; color: var(--coral-deep); margin: .35rem 0 .6rem; letter-spacing: .02em; }
.top h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.1; }
.sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); margin: .75rem 0 0; }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

.door {
  display: flex; flex-direction: column; background: var(--card); border-radius: 28px; overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); border: 3px solid transparent;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), border-color .2s;
}
.door:hover, .door:focus-visible { transform: translateY(-6px) rotate(-.4deg); outline: none; }
.door-challenge:hover, .door-challenge:focus-visible { border-color: var(--coral); }
.door-concept:hover, .door-concept:focus-visible { border-color: var(--blue); transform: translateY(-6px) rotate(.4deg); }

.door-art { aspect-ratio: 800 / 420; overflow: hidden; }
.door-art svg { width: 100%; height: 100%; display: block; }

.door-body { position: relative; padding: 2rem clamp(1.25rem, 3vw, 2rem) 1.6rem; flex: 1; display: flex; flex-direction: column; }
.door-emoji {
  position: absolute; top: -30px; left: clamp(1.25rem, 3vw, 2rem); width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem; background: var(--card); box-shadow: 0 6px 16px -6px rgba(0,0,0,.3);
}
.door h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: .3rem; }
.door-challenge h2 { color: var(--coral-deep); }
.door-concept h2 { color: var(--blue-deep); }
.door p { font-size: 1.08rem; line-height: 1.5; color: var(--ink-soft); margin: .5rem 0 1.25rem; flex: 1; }
.door-go {
  align-self: flex-start; font: 600 1.1rem "Fredoka", sans-serif; color: #fff; padding: .7rem 1.4rem; border-radius: 999px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15);
}
.door-challenge .door-go { background: var(--coral-deep); }
.door-concept .door-go { background: var(--blue-deep); }
.door:hover .door-go span { display: inline-block; animation: nudge-right .6s ease-in-out infinite alternate; }
@keyframes nudge-right { to { transform: translateX(5px); } }

.examples { text-align: center; color: var(--muted); margin: 1.75rem 0 0; font-size: .98rem; }
.examples a { font-weight: 700; }

.foot { position: relative; z-index: 1; text-align: center; padding: 1rem 16px 1.5rem; font-size: .82rem; color: var(--muted); }
.foot p { max-width: 44rem; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .float, .logo, .door-go span { animation: none !important; }
  .door { transition: none; }
}

/* On small screens the decorations would sit on top of the text. */
@media (max-width: 760px) { .sky { display: none; } }
