@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600&display=swap");

:root {
  --paper: #fff1e8;
  --sand: #ffccaa;
  --ink: #1d2b53;
  --mute: #5f574f;
  --pink: #ff77a8;
  --red: #ff004d;
  --yellow: #ffec27;
  --orange: #ffa300;
  --green: #00e436;
  --blue: #29adff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  min-height: 100svh;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(29,43,83,.05) 7px, rgba(29,43,83,.05) 8px),
    repeating-linear-gradient(90deg, transparent, transparent 7px, rgba(29,43,83,.05) 7px, rgba(29,43,83,.05) 8px);
  image-rendering: pixelated;
}
canvas#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.shell { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 28px 24px 64px; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 5;
  background: var(--ink); color: var(--paper); padding: 8px 12px; font-weight: 600;
}
.skip:focus { top: 12px; }
a { color: var(--red); text-decoration: none; cursor: pointer; }
a:hover { color: #ab5236; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--ink); letter-spacing: -.02em;
}
.brand img {
  width: 44px; height: auto;
  image-rendering: pixelated; image-rendering: crisp-edges;
  background: transparent; border: 0;
  animation: bob 2.6s ease-in-out infinite;
}
nav { display: flex; gap: 8px; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--mute); font-weight: 500; font-size: 15px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 52svh; padding: 36px 0 32px;
}
.hero-copy { animation: rise .8s .08s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(72px, 14vw, 140px); line-height: .86; letter-spacing: -.06em;
}
.hero h1 span { color: var(--red); }
.mascot {
  display: block;
  width: min(180px, 42vw);
  height: auto;
  margin-top: 20px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: bob 2.8s ease-in-out infinite;
}
.pix { display: flex; gap: 6px; margin-top: 18px; }
.pix i {
  width: 12px; height: 12px; display: block;
  animation: blink 1.2s steps(2) infinite;
}
.pix i:nth-child(1) { background: var(--pink); }
.pix i:nth-child(2) { background: var(--yellow); animation-delay: .15s; }
.pix i:nth-child(3) { background: var(--green); animation-delay: .3s; }
.pix i:nth-child(4) { background: var(--blue); animation-delay: .45s; }

.courier {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.art { justify-self: end; animation: rise .9s .16s cubic-bezier(.2,.8,.2,1) both; }
.picture {
  margin: 0;
  width: min(100%, 400px);
  transform-origin: 50% 0;
  animation: hang 5.5s ease-in-out infinite;
}
.picture-nail {
  display: block;
  width: 10px; height: 10px;
  margin: 0 auto 6px;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--ink), -8px 8px 0 var(--ink);
}
.frame {
  padding: 14px;
  background: #ab5236;
  border: 6px solid var(--ink);
  box-shadow:
    inset 4px 4px 0 #ffccaa,
    inset -4px -4px 0 #7e2553,
    10px 10px 0 var(--ink);
}
.mat {
  padding: 8px;
  background: #fff1e8;
  border: 4px solid var(--ink);
}
.scene {
  display: block; width: 100%; height: auto;
  aspect-ratio: 192 / 128;
  image-rendering: pixelated; image-rendering: crisp-edges;
}

.story {
  max-width: 38rem;
  margin: 8px 0 0;
  animation: rise .8s .22s cubic-bezier(.2,.8,.2,1) both;
}
.story p {
  margin: 0 0 1.1rem;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
}
.story p:last-child { margin: 0; color: var(--mute); }

.panel {
  margin-top: 36px; background: #fff; padding: 28px 24px;
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.panel h1 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 6vw, 48px); letter-spacing: -.04em;
}
.panel h2 {
  margin: 28px 0 10px; font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em;
}
.panel h2:first-of-type { margin-top: 18px; }
.panel h3 {
  margin: 20px 0 6px; font-size: 17px; font-weight: 700;
}
.panel p { margin: 0 0 1rem; color: var(--mute); max-width: 42rem; }
.panel p:last-child { margin-bottom: 0; }
.panel ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--mute); max-width: 42rem; }
.panel li { margin: 0.35rem 0; }
.panel table {
  width: 100%; max-width: 42rem; border-collapse: collapse;
  margin: 0 0 1rem; font-size: 15px;
}
.panel th, .panel td {
  text-align: left; vertical-align: top;
  padding: 8px 10px; border: 3px solid var(--ink);
}
.panel th { background: var(--paper); }
.panel .note { font-size: 15px; }

footer {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  margin-top: 48px; padding-top: 20px;
  border-top: 4px solid var(--ink); color: var(--mute); font-size: 15px;
}
footer a { color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes hang {
  0%, 100% { transform: rotate(-0.8deg); }
  50% { transform: rotate(0.8deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 24px 0; gap: 20px; }
  .art { justify-self: start; }
  .picture { width: min(100%, 360px); }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(64px, 22vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
