:root {
  --red: #e31e24;
  --red-dark: #c2181d;
  --yellow: #ffd200;
  --yellow-soft: #ffe56a;
  --orange: #ff8a1a;
  --ink: #1c1410;
  --brown: #6b4423;
  --cream: #fff7ea;
  --cream-deep: #f6e4c8;
  --paper: #fffdf8;
  --muted: #5e554d;
  --line: #1c1410;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --radius-sm: 14px;
  --header: 228px;
  --max: 1240px;
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.35rem;
  line-height: 1.72;
  min-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 0.55em;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1.05em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.02rem;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.lede {
  font-size: 1.45rem;
  line-height: 1.65;
  color: #3f3832;
  max-width: 40rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.45rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-link img {
  height: 200px;
  width: auto;
  max-width: none;
}

.logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--red);
}

.logo-text small {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.42rem;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--yellow);
}

.nav-cta {
  margin-left: 0.55rem;
}

.nav-cta .btn {
  font-size: 1.38rem;
  padding: 1.05rem 1.9rem;
}

.menu-toggle {
  display: none;
  border: 3px solid var(--ink);
  background: var(--yellow);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  margin: 4px auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 1.28rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 1.05rem 1.8rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px) scale(1.03);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn-row .btn {
  font-size: 1.55rem;
  padding: 1.35rem 2.4rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.2rem;
  background:
    radial-gradient(circle at 12% 20%, #ffe56a 0 70px, transparent 71px),
    radial-gradient(circle at 88% 18%, #ffb347 0 42px, transparent 43px),
    radial-gradient(circle at 80% 80%, #ffd200 0 90px, transparent 91px),
    linear-gradient(180deg, #fff3cf 0%, var(--cream) 55%, #ffe8c2 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background-image: radial-gradient(circle, rgba(227, 30, 36, 0.18) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3.15rem, 6.4vw, 5.2rem);
  max-width: 12ch;
}

.chipmunk-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin: 0 0 1.8rem;
}

.chipmunk-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0.45rem;
  transition: transform 0.18s ease;
}

.chipmunk-card:hover {
  transform: translate(-3px, -3px) rotate(-1.5deg);
}

.chipmunk-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff7ea;
}

.chipmunk-frame {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff7ea;
}

.chipmunk-frame img {
  width: 100%;
  display: block;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem 2rem;
  align-items: center;
}

.page-hero-chipmunk {
  width: min(220px, 32vw);
  height: auto;
  display: block;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 0.35rem;
}

.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.burst {
  position: absolute;
  width: min(108%, 520px);
  aspect-ratio: 1;
  background: var(--yellow);
  clip-path: polygon(
    50% 0%, 61% 18%, 82% 8%, 78% 30%, 100% 38%, 82% 50%,
    98% 68%, 76% 66%, 72% 90%, 54% 74%, 38% 100%, 34% 74%,
    12% 86%, 22% 62%, 0% 52%, 22% 42%, 4% 24%, 28% 28%, 22% 6%, 42% 20%
  );
  animation: burst-pulse 7s ease-in-out infinite;
}

.burst::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #ffb347;
  clip-path: inherit;
  opacity: 0.55;
}

.hero-logo {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  animation: pop-in 0.7s ease both, float-y 4.5s ease-in-out 0.7s infinite;
}

@keyframes pop-in {
  from {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.stars span {
  position: absolute;
  color: var(--orange);
  font-size: 1.6rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

.stars span:nth-child(1) { top: 8%; left: 8%; }
.stars span:nth-child(2) { top: 14%; right: 10%; animation-delay: 0.4s; }
.stars span:nth-child(3) { bottom: 16%; left: 12%; animation-delay: 0.8s; }
.stars span:nth-child(4) { bottom: 10%; right: 16%; animation-delay: 1.1s; }

@keyframes twinkle {
  50% { transform: scale(1.25) rotate(12deg); }
}

@keyframes burst-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.07) rotate(6deg); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Panels */

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.55rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.panel:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card h3 {
  font-size: 1.55rem;
}

.age {
  position: relative;
  overflow: hidden;
}

.age .emoji {
  font-size: 2.45rem;
}

.age .meta {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature {
  background: #fff;
}

.feature .icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  background: var(--yellow);
  transition: transform 0.25s ease;
}

.feature:hover .icon {
  transform: rotate(-10deg) scale(1.12);
}

.feature:nth-child(2) .icon { background: #ffb347; }
.feature:nth-child(3) .icon { background: #ff8a80; }
.feature:nth-child(4) .icon { background: #9be7ff; }
.feature:nth-child(5) .icon { background: #c5f2a4; }
.feature:nth-child(6) .icon { background: #ffd6e7; }

.scheme-banner {
  background: linear-gradient(135deg, var(--red) 0%, #ff4d4d 100%);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  background-size: 100% 100%;
  animation: banner-shift 8s ease-in-out infinite;
}

.scheme-banner h2,
.scheme-banner p {
  color: #fff;
}

.scheme-banner p {
  max-width: 42rem;
  opacity: 0.95;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.time-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  font-size: 1.22rem;
  transition: transform 0.2s ease;
}

.time-row:hover {
  transform: translateX(6px);
}

.time-row strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.quote {
  background: #fffdf2;
}

.quote p {
  font-size: 1.18rem;
}

.quote footer {
  font-weight: 800;
  color: var(--brown);
}

.cta-band {
  background: var(--yellow);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.page-hero {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, #fff3cf, var(--cream));
}

.page-hero h1 {
  font-size: clamp(2.85rem, 5.4vw, 4.45rem);
}

.breadcrumbs {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.tile {
  min-height: 160px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.tile:nth-child(1) { background: #ffe56a; }
.tile:nth-child(2) { background: #ffb347; }
.tile:nth-child(3) { background: #ff8a80; }
.tile:nth-child(4) { background: #9be7ff; }
.tile:nth-child(5) { background: #c5f2a4; }
.tile:nth-child(6) { background: #ffd6e7; }
.tile:nth-child(7) { background: #fff; }
.tile:nth-child(8) { background: #ffd200; }

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq details {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.7rem;
  transition: transform 0.2s ease;
}

.faq details:hover {
  transform: translateX(4px);
}

.faq summary {
  font-weight: 800;
  font-size: 1.28rem;
  cursor: pointer;
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1.15rem;
  font-size: 1.5rem;
}

.form.panel {
  padding: 2rem 2.15rem 2.2rem;
}

.register-page .lede {
  max-width: 54rem;
  font-size: 1.55rem;
}

.form-wrap {
  width: min(1180px, calc(100% - 2.4rem));
}

.form-note {
  margin: 0 0 1.1rem;
  font-size: 1.28rem;
  font-weight: 700;
}

.form-note a {
  color: var(--red);
  text-decoration: underline;
}

.form-wrap iframe {
  border-radius: var(--radius);
  background: #fff;
}

.privacy-box {
  background: #fff7ea;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin: 0 0 1.2rem;
}

.privacy-box p {
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
  font-weight: 700;
}

.privacy-box p:last-child {
  margin-bottom: 0;
}

.privacy-box a,
.form .stack-check a {
  color: var(--red);
  text-decoration: underline;
}

label {
  font-weight: 800;
  display: grid;
  gap: 0.4rem;
  font-size: 1.5rem;
}

input,
select,
textarea {
  font: inherit;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  background: #fff;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.notice {
  background: #e8fff0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  display: none;
}

.notice.show {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.map-placeholder {
  min-height: 280px;
  background:
    linear-gradient(160deg, #9be7ff, #fff7ea);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.site-footer {
  background: var(--ink);
  color: #f7efe4;
  padding: 2.5rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.site-footer a {
  color: var(--yellow);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1rem;
  font-size: 1.12rem;
  color: #cbbfb3;
}

fieldset {
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 1rem 1.2rem 1.2rem;
  margin: 0 0 1rem;
}

legend {
  font-weight: 800;
  padding: 0 0.4rem;
  font-size: 1.45rem;
}

figcaption {
  font-size: 1.02rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
}

.chip {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cards,
  .features,
  .quotes,
  .contact-grid,
  .footer-grid,
  .gallery,
  .values,
  .scheme-banner,
  .form-row,
  .page-hero-grid,
  .chipmunk-strip {
    grid-template-columns: 1fr;
  }

  :root {
    --header: 148px;
  }

  .logo-link img {
    height: 128px;
    width: auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header) + 3px);
    left: 0;
    right: 0;
    background: #fffdf8;
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    padding: 1rem 1.2rem 1.2rem;
    align-items: stretch;
    gap: 0.4rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    margin: 0.4rem 0 0;
  }

  .hero-logo-wrap {
    min-height: 320px;
    order: -1;
  }

  .logo-text {
    display: none;
  }

  .time-row {
    grid-template-columns: 1fr;
  }
}

.checklist,
.plain-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.checklist li,
.plain-list li {
  margin: 0.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 3px solid var(--ink);
  margin: 1rem 0 1.4rem;
}

.data-table th,
.data-table td {
  border: 2px solid var(--ink);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  font-size: 1.18rem;
}

.data-table th {
  background: var(--yellow);
  font-family: var(--font-display);
}

.md-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.portrait {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.fee-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fee-cards .amount {
  font-family: var(--font-display);
  font-size: 2.95rem;
  color: var(--red);
  margin: 0.2rem 0 0.4rem;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.jump-links a {
  text-decoration: none;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.12rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.jump-links a:hover {
  background: var(--yellow);
  transform: translateY(-3px);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.checks label,
label.stack-check {
  font-weight: 700;
  font-size: 1.42rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

label.stack-check {
  margin-bottom: 0.75rem;
}

label.stack-check input {
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.form input[type="checkbox"],
.form input[type="radio"] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--red);
}

.form p {
  font-size: 1.4rem;
}

.form .btn {
  font-size: 1.55rem;
  padding: 1.3rem 2.3rem;
  margin-top: 0.4rem;
  width: fit-content;
}

.form-block {
  border-top: 3px solid var(--ink);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.form-block h3 {
  margin-bottom: 0.95rem;
  font-size: 1.85rem;
}

.poster {
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.letter {
  font-size: 1.32rem;
}

.form.panel:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes banner-shift {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.18) brightness(1.06); }
}

@media (max-width: 900px) {
  .md-grid,
  .fee-cards {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 280px;
  }

  body {
    font-size: 1.25rem;
  }

  .form.panel {
    padding: 1.4rem 1.15rem 1.6rem;
  }

  .form-block h3 {
    font-size: 1.65rem;
  }

  .chipmunk-strip {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero-chipmunk {
    width: 150px;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo,
  .stars span,
  .burst,
  .scheme-banner {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .panel:hover,
  .time-row:hover,
  .faq details:hover,
  .btn:hover,
  .jump-links a:hover,
  .feature:hover .icon {
    transform: none;
  }
}
