:root {
  --sky: #73c7f7;
  --sky-light: #dff5ff;
  --ocean: #1764b0;
  --ocean-deep: #08396f;
  --orange: #ffad32;
  --cream: #fff7df;
  --ink: #2d160f;
  --white: #ffffff;
  --green: #42d19a;
  --shadow: 0 14px 0 rgba(45, 22, 15, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--sky-light);
  font-family: "Trebuchet MS", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 45% 55%;
  background: var(--orange);
  color: var(--white);
  font: 700 1.4rem/1 "Comic Sans MS", cursive;
  transform: rotate(-5deg);
  box-shadow: 3px 4px 0 var(--ink);
}

nav { display: flex; gap: 28px; }
nav a {
  position: relative;
  text-decoration: none;
  font-weight: 900;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 4px;
  border-radius: 99px;
  background: var(--orange);
  transition: right .2s ease;
}
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(410px, 1.14fr);
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
  padding: 120px max(28px, calc((100vw - 1180px) / 2)) 80px;
  background: linear-gradient(157deg, #dbf4ff 0 44%, #92d6f8 44.2% 68%, #3f91d0 68.2% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -15px;
  height: 45px;
  background: var(--white);
  clip-path: polygon(0 45%, 4% 57%, 9% 38%, 16% 65%, 23% 42%, 30% 58%, 38% 34%, 45% 62%, 53% 40%, 61% 68%, 69% 39%, 77% 61%, 84% 36%, 92% 60%, 100% 43%, 100% 100%, 0 100%);
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--ocean-deep);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
}

h1, h2 { margin: 0; font-family: "Comic Sans MS", cursive; letter-spacing: -.05em; }
h1 { font-size: clamp(4.1rem, 7.8vw, 7.2rem); line-height: .79; }
h1 span { display: block; color: var(--orange); text-shadow: 4px 4px 0 var(--ink); }
.ticker {
  display: inline-block;
  margin: 24px 0 18px;
  padding: 7px 20px 4px;
  background: var(--ink);
  color: var(--white);
  font: 700 1.6rem/1 "Comic Sans MS", cursive;
  letter-spacing: .12em;
  transform: rotate(-2deg);
}
.intro { max-width: 530px; margin: 0; font-size: 1.1rem; line-height: 1.65; font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.brush-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 12px 22px;
  border: 3px solid var(--ink);
  border-radius: 18px 24px 17px 22px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brush-button:hover, .brush-button:focus-visible { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 2px 3px 0 var(--ink); }
.pump-button { background: var(--green); }
.x-button { background: #161616; color: var(--white); }
.button-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid currentColor;
  border-radius: 50% 44% 52% 48%;
  font: 900 1rem/1 "Comic Sans MS", cursive;
}

.ca-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 610px;
  padding: 15px 15px 15px 19px;
  border: 3px solid var(--ink);
  border-radius: 18px 22px 17px 20px;
  background: rgba(255,255,255,.76);
  box-shadow: 5px 6px 0 rgba(45,22,15,.2);
}
.ca-card > div { min-width: 0; }
.ca-label { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 900; letter-spacing: .14em; color: var(--ocean-deep); }
.ca-card code { display: block; overflow: hidden; text-overflow: ellipsis; font: 800 .9rem/1.4 "Trebuchet MS", sans-serif; white-space: nowrap; }
.copy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px 14px 11px 15px;
  background: var(--orange);
  color: var(--ink);
  font: 900 .85rem/1 "Trebuchet MS", sans-serif;
  cursor: pointer;
}
.copy-button:hover { background: #ffc35f; }
.copy-icon { width: 14px; height: 16px; border: 2px solid currentColor; border-radius: 3px; box-shadow: 4px -4px 0 -2px var(--orange), 4px -4px 0 0 currentColor; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 570px);
  transform: rotate(2deg);
}
.hero-art img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 2.65;
  object-fit: cover;
  object-position: center 49%;
  border: 8px solid var(--white);
  border-radius: 46% 54% 48% 52% / 4% 5% 4% 5%;
  filter: saturate(1.04) contrast(1.01);
  box-shadow: 16px 18px 0 rgba(8,57,111,.22), 0 24px 60px rgba(8,57,111,.25);
  animation: shiba-bop 3.4s ease-in-out infinite;
}
.sun-wash {
  position: absolute;
  top: -40px;
  right: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #ffe47e;
  box-shadow: 0 0 0 24px rgba(255,228,126,.18), 0 0 0 52px rgba(255,228,126,.10);
}
.music-note { position: absolute; z-index: 3; color: var(--ink); font: 700 3.1rem/1 "Comic Sans MS", cursive; animation: note-float 2.8s ease-in-out infinite; }
.note-one { left: -38px; top: 21%; transform: rotate(-12deg); }
.note-two { right: -31px; bottom: 24%; animation-delay: -.8s; }
.paint-splash { position: absolute; z-index: 1; width: 78px; height: 20px; border-radius: 50%; background: var(--orange); }
.splash-one { left: -42px; bottom: 18%; transform: rotate(18deg); }
.splash-two { right: -28px; top: 34%; width: 48px; transform: rotate(-16deg); }

.story {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(40px, 7vw, 110px);
  padding: 125px max(28px, calc((100vw - 1180px) / 2));
  background: var(--white);
}
.story h2 { font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: .95; }
.story-body > p { max-width: 700px; margin: 0 0 42px; font-size: 1.2rem; line-height: 1.75; font-weight: 700; }
.beat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.beat-grid article { padding: 24px 20px; border: 3px solid var(--ink); border-radius: 21px 17px 24px 19px; background: var(--cream); box-shadow: 5px 6px 0 var(--ink); }
.beat-grid article:nth-child(2) { background: #d9f3ff; transform: translateY(12px) rotate(1deg); }
.beat-grid article:nth-child(3) { background: #ffe1a4; transform: rotate(-1deg); }
.beat-grid span { color: var(--ocean); font: 700 1.5rem/1 "Comic Sans MS", cursive; }
.beat-grid h3 { margin: 13px 0 7px; font-size: 1.05rem; }
.beat-grid p { margin: 0; font-size: .92rem; line-height: 1.55; }

.finale { position: relative; min-height: 360px; display: grid; place-items: center; overflow: hidden; background: var(--ocean-deep); color: var(--white); }
.finale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.finale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,57,111,.88), rgba(8,57,111,.24)); }
.finale-copy { position: relative; z-index: 2; width: min(1180px, calc(100% - 56px)); }
.finale .eyebrow { color: #ffe18d; }
.finale h2 { margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 6rem); }
.light-button { width: max-content; background: var(--white); color: var(--ink); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(28px, calc((100vw - 1180px) / 2)); background: #06294f; color: rgba(255,255,255,.78); font-size: .84rem; font-weight: 800; }
footer p { margin: 0; }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 25px;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  font-weight: 900;
  box-shadow: 4px 5px 0 var(--ink);
  transform: translate(-50%, 120px) rotate(-2deg);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.show { transform: translate(-50%, 0) rotate(-2deg); opacity: 1; }

@keyframes shiba-bop {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-10px) rotate(-1deg); }
  70% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes note-float {
  0%, 100% { translate: 0 0; rotate: -5deg; }
  50% { translate: 0 -13px; rotate: 6deg; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 125px; }
  .hero-copy { max-width: 680px; }
  .hero-art { width: min(80vw, 540px); }
  .story { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 28px); }
  .brand span:last-child { display: none; }
  nav { gap: 18px; }
  .hero { padding-left: 18px; padding-right: 18px; min-height: auto; }
  h1 { font-size: clamp(3.8rem, 20vw, 5.3rem); }
  .intro { font-size: 1rem; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .brush-button { padding: 10px 12px; font-size: .9rem; }
  .ca-card { align-items: stretch; flex-direction: column; }
  .copy-button { justify-content: center; }
  .hero-art { width: calc(100vw - 56px); margin-top: 20px; }
  .note-one { left: -18px; }
  .note-two { right: -12px; }
  .story { padding: 100px 22px; }
  .beat-grid { grid-template-columns: 1fr; }
  .beat-grid article:nth-child(2) { transform: rotate(1deg); }
  .finale-copy { width: calc(100% - 44px); }
  footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (min-width: 621px) {
  .finale {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--ocean-deep);
  }

  .finale img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    opacity: 1;
  }

  .finale::after { display: none; }

  .finale-copy {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow button"
      "title button";
    align-items: center;
    column-gap: 40px;
    padding: 30px max(28px, calc((100vw - 1180px) / 2)) 34px;
    background: var(--ocean-deep);
  }

  .finale-copy .eyebrow { grid-area: eyebrow; }
  .finale-copy h2 { grid-area: title; margin: 0; font-size: clamp(2.7rem, 4.2vw, 4.5rem); }
  .finale-copy .light-button { grid-area: button; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
