@font-face {
  font-family: "XOOX";
  src: url("./assets/fredoka-xoox-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9fcff;
  --light: #ffffff;
  --shade: #dcecff;
  --ink: #202a38;
  --muted: #5c6878;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "XOOX", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -6%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 64% at 50% 40%, var(--light) 0%, #ffffffed 36%, #ffffff00 100%),
    radial-gradient(ellipse 74% 78% at 0% 100%, var(--shade) 0%, #e7f2ff9c 42%, #e7f2ff00 100%),
    radial-gradient(ellipse 58% 68% at 100% 0%, #e2f1ff 0%, #e2f1ff00 100%),
    var(--paper);
  animation: daylight 20s ease-in-out infinite alternate;
}
@keyframes daylight {
  from { transform: translate3d(-1%, -.5%, 0) scale(1); }
  to { transform: translate3d(1%, .5%, 0) scale(1.035); }
}
.brand {
  position: absolute;
  top: clamp(25px, 4.6vh, 48px);
  left: clamp(25px, 4.2vw, 72px);
  width: 136px;
  color: var(--ink);
  user-select: none;
}
.brand__wordmark { display: block; width: 100%; height: auto; }
.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 24px 102px;
}
.mascot {
  position: relative;
  width: min(640px, 87vw, 76svh);
  aspect-ratio: 324 / 248;
  isolation: isolate;
  --look-x: 0px;
  --look-y: 0px;
  --look-tilt: 0deg;
  --light-x: 0px;
  --light-y: 0px;
}
.mascot__art { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot__gaze {
  transform: translate(var(--look-x), var(--look-y)) rotate(var(--look-tilt));
  transform-origin: 0 0;
}
.eye { transform-origin: 0 0; }
.eye__reflection { transform: translate(var(--light-x), var(--light-y)); }
.mascot__shadow {
  position: absolute;
  z-index: -1;
  width: 56%;
  height: 4.5%;
  bottom: 8%;
  left: 22%;
  background: #617d9b;
  border-radius: 50%;
  filter: blur(16px);
  opacity: .13;
  transform: translateX(var(--look-x));
}
h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.15;
  text-align: center;
}
.heading-dot { color: #758aa4; }
.social-footer {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.social-link:hover { color: var(--ink); }
.social-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.social-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
@media (max-width: 600px) {
  .brand { width: 118px; }
  .stage { padding-inline: 12px; }
  .mascot { width: min(98vw, 560px); }
  h1 { margin-top: 24px; }
  .mascot__shadow { filter: blur(11px); }
}
@media (max-height: 560px) {
  .stage { padding-block: 48px; }
  .mascot { width: min(390px, 65svh); }
  h1 { font-size: 34px; margin-top: 0; }
  .social-footer { bottom: max(12px, env(safe-area-inset-bottom)); }
  .social-link { min-height: 40px; padding-block: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
