:root {
  --bg: #fbf9f5;
  --card: #ffffff;
  --ink: #12393a;
  --muted: #4f6b6b;
  --teal: #2c7a77;
  --teal-dark: #114e4f;
  --yellow: #fbd201;
  --purple: #8f68d4;
  --pink: #ff5aa0;
  --ring: rgba(44, 122, 119, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2a2b;
    --card: #163a3b;
    --ink: #f4f1e8;
    --muted: #a9c4c2;
    --ring: rgba(251, 210, 1, .45);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(143, 104, 212, .12), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(44, 122, 119, .14), transparent 45%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.5 ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero { position: relative; width: 100%; margin-top: 12px; }
.hero h1 { margin: 0; }
.logo { width: min(320px, 78%); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(17, 78, 79, .18)); }
.mascot {
  width: 132px;
  height: auto;
  display: block;
  margin: -18px auto 0;
  animation: wave 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }

.tagline { margin: 10px 0 24px; font-size: 18px; font-weight: 600; color: var(--muted); max-width: 30ch; }

.links { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  border: 3px solid var(--teal);
  box-shadow: 0 5px 0 var(--teal-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.link:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--teal-dark); }
.link:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--teal-dark); }
.link:focus-visible { outline: 4px solid var(--ring); outline-offset: 3px; }
.link .icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #ff0033; color: #fff; }
.link .icon svg { width: 24px; height: 24px; }
.link.idea .icon { background: var(--purple); }
.link .text { display: flex; flex-direction: column; min-width: 0; }
.link b { font-size: 18px; line-height: 1.2; }
.link small { color: var(--muted); font-size: 14px; }
.link .arrow { margin-left: auto; color: var(--teal); font-size: 22px; font-weight: 700; }
.link.main { background: var(--yellow); color: #12393a; }
.link.main small { color: #3b5555; }
.link.main .arrow { color: var(--teal-dark); }

footer { margin-top: 36px; color: var(--muted); font-size: 13px; }
footer p { margin: 10px 0 0; }
footer .lang { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
footer .lang:hover, footer .lang:focus-visible { color: var(--ink); background: var(--card); }

/* the heart in the footer beats gently; still for visitors who ask for less motion */
.heart { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.18em; color: var(--pink); }
.heart svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .heart { animation: beat 1.4s ease-in-out infinite; transform-origin: 50% 60%; }
}
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 28% { transform: scale(1.08); } }

/* images fade in when loaded (appear.js); without the script they are just there */
.js img.appear { opacity: 0; transition: opacity .5s ease, scale .5s cubic-bezier(.34, 1.56, .64, 1); scale: .94; }
.js img.appear.ready, .js.shown img.appear { opacity: 1; scale: 1; }
.js img.mascot.appear { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .js img.appear { transition: opacity .3s ease; scale: 1; } }
