/* You Got This — website. Colours are the app's Palette.swift pastels;
   the outline is the sprite outline (#2E2433) so cards look drawn like the buddy. */
:root {
  --sky: #F4EEFF;
  --sky-2: #FCEAF3;
  --card: #FFFFFF;
  --ink: #2E2433;
  --ink-soft: #6E6578;
  --pink: #F7C5D8;
  --pink-deep: #E289AF;
  --lavender: #C9BFF0;
  --lavender-deep: #9A88DC;
  --mint: #B8E2D2;
  --mint-deep: #63BFA0;
  --butter: #FBE3B0;
  --blue: #A8D4EE;
  --grass: #8FD694;
  --grass-deep: #6DBE7A;
  --line: #2E2433;
  --placeholder: #FFF4C2;
  --px: 4px;
  --display: "Pixelify Sans", ui-monospace, monospace;
  --body: "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #1D1826;
    --sky-2: #261C2A;
    --card: #2A2433;
    --ink: #F1EDF5;
    --ink-soft: #B4ACC0;
    --pink: #6A3A52;
    --lavender: #4D4479;
    --mint: #2D5E4F;
    --butter: #6A5428;
    --blue: #2E5670;
    --line: #0E0B12;
    --placeholder: #4A3F1E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%) fixed;
  overflow-x: hidden;
}
img.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px dashed var(--pink-deep);
  outline-offset: 3px;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 22px; text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 4px 10px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--pink); }

/* Pixel box: chunky outline + hard offset shadow, like the sprite outline */
.pixbox {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--px) var(--px) 0 var(--line);
}

/* Hero */
.hero { text-align: center; padding: 28px 0 0; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 12vw, 88px); line-height: 1; margin: 0;
  letter-spacing: 1px;
  color: var(--pink-deep);
  text-shadow: 3px 3px 0 var(--line);
}
.hero h1 span { color: var(--lavender-deep); }
.hero .lede { max-width: 34em; margin: 16px auto 0; font-size: 18px; }
.soon {
  display: inline-block; margin-top: 18px;
  font-family: var(--display); font-size: 18px;
  padding: 8px 16px; background: var(--butter);
}

.stage { position: relative; margin-top: 28px; }
.crew {
  display: flex; justify-content: center; align-items: flex-end; gap: 8px;
  position: relative; z-index: 1;
}
.crew img { width: 128px; height: 128px; animation: hop 1.2s steps(1) infinite; }
.crew img:nth-child(2) { animation-delay: .3s; }
.crew img:nth-child(3) { animation-delay: .6s; }
.crew img:nth-child(4) { animation-delay: .9s; }
.crew img:nth-child(n+3) { display: none; }
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0); }
  70% { transform: translateY(-8px); }
  80% { transform: translateY(-12px); }
  90% { transform: translateY(-4px); }
}
.ground {
  height: 28px; margin-top: -10px;
  background:
    linear-gradient(90deg, var(--grass) 50%, var(--grass-deep) 50%) 0 0 / 16px 8px repeat-x,
    var(--grass-deep);
  border-top: 3px solid var(--line);
}
.hero .pet-walk {
  position: absolute; bottom: 14px; left: 0; width: 60px; height: 60px; z-index: 2;
  animation: walk 14s steps(28) infinite;
}
@keyframes walk {
  from { transform: translateX(-70px); }
  to { transform: translateX(calc(100vw + 10px)); }
}

/* Sections */
section { padding: 56px 0 8px; }
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 7vw, 40px); line-height: 1.1; margin: 0 0 8px;
}
.sub { color: var(--ink-soft); margin: 0 0 24px; }

.days { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 32px; }
.day { position: relative; padding: 18px 18px 16px; }
.day h3 { margin: 0 0 4px; font-size: 19px; }
.day p { margin: 0; }
.day .tag {
  display: inline-block; font-family: var(--display); font-size: 14px;
  padding: 0 8px; margin-bottom: 8px; border: 2px solid var(--line); border-radius: 4px;
}
.tag.pink { background: var(--pink); }
.tag.mint { background: var(--mint); }
.tag.lav { background: var(--lavender); }
.tag.butter { background: var(--butter); }
.tag.blue { background: var(--blue); }

/* Pets peek over a card's top edge */
.peek {
  position: absolute; width: 60px; height: 60px; top: -51px; right: 18px;
  animation: peek 5s steps(1) infinite;
}
@keyframes peek {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(0); }
  50% { transform: translateY(8px); }
  60% { transform: translateY(0); }
}

/* Coin promise band */
.promise { margin-top: 8px; padding: 22px 18px; background: var(--butter); text-align: center; }
.promise strong { font-family: var(--display); font-size: 24px; font-weight: 600; display: block; line-height: 1.2; }
.promise p { margin: 8px auto 0; max-width: 32em; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.langs li {
  font-weight: 700; padding: 6px 14px; background: var(--card);
  border: 2px solid var(--line); border-radius: 999px;
}

/* Text pages */
.page { padding-top: 32px; padding-bottom: 8px; }
.page .pixbox { padding: 22px 18px; position: relative; }
.page h1 {
  font-family: var(--display); font-size: clamp(36px, 9vw, 56px); line-height: 1.05; margin: 0 0 6px;
  color: var(--pink-deep); text-shadow: 2px 2px 0 var(--line);
}
.page h2 { font-size: 26px; margin-top: 24px; }
.todo {
  background: var(--placeholder); border: 2px dashed var(--line); border-radius: 6px;
  padding: 12px 14px; margin: 14px 0;
}
.todo b { font-family: var(--display); font-weight: 600; }

/* Footer */
footer { padding-top: 48px; padding-bottom: 32px; text-align: center; font-size: 14px; color: var(--ink-soft); }
footer nav { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
footer nav a { font-weight: 700; color: var(--ink); }
footer .pets { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
footer .pets img { width: 40px; height: 40px; }

@media (min-width: 600px) {
  .crew img:nth-child(n+3) { display: block; }
  .days { grid-template-columns: 1fr 1fr; }
  .page .pixbox { padding: 32px 36px; }
}
@media (min-width: 900px) {
  .crew { gap: 24px; }
  .crew img { width: 192px; height: 192px; }
  .days { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .crew img, .peek, .hero .pet-walk { animation: none; }
  .hero .pet-walk { left: 16px; }
}
