/* SqueezeRush — site styles */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; }

:root {
  --ink: #1B2A6B;          /* the logo's outline navy: all text */
  --ink-soft: #46548C;
  --sky: #EEF8FF;          /* page base */
  --paper: #FFFFFF;
  --pool: #26A9F5;         /* ocean band */
  --pool-deep: #1386D6;
  --bubblegum: #FF3E9A;    /* primary action */
  --bubblegum-deep: #E0237F;
  --sunny: #FFC928;
  --rosie: #FF6FB5;
  --jules: #B06CFF;
  --splash: #3DB5FF;
  --tango: #FF8A2A;
  --razz: #E8248F;

  --display: "Fredoka", "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-big: 36px;
  --r-mid: 20px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bubblegum-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.defs { position: absolute; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* bear colors */
.c-sunny { color: var(--sunny); } .c-rosie { color: var(--rosie); } .c-jules { color: var(--jules); }
.c-splash { color: var(--splash); } .c-tango { color: var(--tango); } .c-razz { color: var(--razz); }

/* ---------- Sticker lettering: the logo's outlined candy type ---------- */
.gummy-type {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  letter-spacing: -.01em;
  color: var(--bubblegum);
  -webkit-text-stroke: .12em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--ink);
}
.gummy-type.small { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); -webkit-text-stroke-width: .09em; text-shadow: 0 .06em 0 var(--ink); }
.gummy-type.on-ocean { color: var(--sunny); }
h1.gummy-type { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); color: var(--splash); max-width: 12em; }

/* ---------- Buttons + forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 700 1.05rem/1 var(--display); letter-spacing: .01em;
  color: #fff; background: var(--bubblegum); text-decoration: none;
  border: 3px solid var(--ink); border-radius: var(--r-pill);
  padding: .85em 1.4em; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--bubblegum-deep); color: #fff; }
.btn:active { transform: translateY(4px) scaleX(1.03); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { font-size: .95rem; padding: .6em 1.05em; box-shadow: 0 3px 0 var(--ink); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: var(--bubblegum); }

.squad-form { max-width: 520px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 230px; min-width: 0;
  font: 600 1.05rem var(--body); color: var(--ink);
  padding: .8em 1.1em; border: 3px solid var(--ink); border-radius: var(--r-pill);
  background: var(--paper);
}
.field-row input::placeholder { color: #8C96BD; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin: .8em 0 0; }
.form-status { font-weight: 800; margin: .6em 0 0; min-height: 1.6em; }
.form-status.ok { color: #0F8A4B; }
.form-status.err { color: #C2185B; }
.center .squad-form { margin: 0 auto; }
.center .field-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { padding: 14px 0 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a:not(.btn) { color: var(--ink); font-weight: 800; text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--bubblegum-deep); }
@media (max-width: 720px) {
  .brand img { width: 120px; }
  .main-nav { gap: 14px; font-size: .95rem; }
  .main-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lede { font-size: 1.2rem; max-width: 34em; }
.hero-art { position: relative; margin: 0; }
.blob {
  background: #fff; border: 4px solid var(--ink);
  border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  overflow: hidden; aspect-ratio: 1 / .86;
  display: grid; place-items: center;
  box-shadow: 0 10px 0 var(--ink);
}
.blob img { width: 88%; height: auto; }
.splash { position: absolute; border: 3px solid var(--ink); border-radius: 50% 50% 50% 0; }
.s1 { width: 44px; height: 44px; background: var(--sunny); top: -10px; left: 6%; transform: rotate(-30deg); }
.s2 { width: 30px; height: 30px; background: var(--rosie); top: 8%; right: -6px; transform: rotate(40deg); }
.s3 { width: 24px; height: 24px; background: var(--splash); bottom: 12%; left: -10px; transform: rotate(160deg); }
.countdown {
  position: absolute; right: 4%; bottom: -26px;
  font: 700 1.1rem var(--display); background: var(--sunny); color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--r-pill); padding: .5em 1.1em;
  transform: rotate(-4deg); box-shadow: 0 4px 0 var(--ink);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; width: 100%; margin: 12px auto 0; }
}

/* ---------- Ocean / journey (the showpiece) ---------- */
.ocean { position: relative; background: var(--pool); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.wave { position: absolute; left: 0; width: 100%; height: 60px; color: var(--pool); }
.wave-top { top: -59px; }
.wave-bottom { bottom: -59px; }
.on-ocean { color: #fff; }
.section-lede { font-size: 1.15rem; max-width: 36em; }
.ocean .section-lede { color: #F2FAFF; }

.route {
  list-style: none; margin: 48px 0 56px; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); position: relative;
}
.route::before { /* the dotted sea lane */
  content: ""; position: absolute; left: 8%; right: 8%; top: 22px;
  border-top: 4px dashed rgba(255,255,255,.75);
}
.stop { position: relative; text-align: center; padding-top: 0; }
.dot {
  position: relative; z-index: 1; display: block; margin: 0 auto 14px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pool-deep); border: 4px solid #fff;
}
.stop.is-done .dot { background: #fff; }
.stop.is-done .dot::after { content: ""; position: absolute; inset: 11px 13px 15px 13px; border: solid var(--pool); border-width: 0 0 4px 4px; transform: rotate(-45deg); }
.stop-name { display: block; font: 700 1.1rem/1.2 var(--display); }
.stop-place { display: block; font-size: .92rem; color: #DDF1FF; }
.stop.is-current .dot { background: var(--sunny); border-color: var(--ink); }
.marker { /* the travelling bear, injected by JS into the current stop */
  position: absolute; left: 50%; top: -58px; width: 44px; height: 57px; margin-left: -22px; z-index: 2;
  filter: drop-shadow(0 3px 0 var(--ink));
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .marker { animation: none; } }

@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 18px; margin: 36px 0 44px; padding-left: 4px; }
  .route::before { left: 26px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 4px dashed rgba(255,255,255,.75); }
  .stop { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; align-items: center; }
  .dot { grid-row: span 2; margin: 0; }
  .marker { left: auto; right: 6px; top: -4px; margin-left: 0; }
}

.postcards-title { font-size: 1.6rem; margin-bottom: .8em; }
.postcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.postcard {
  display: grid; grid-template-columns: 1fr 96px; gap: 16px;
  background: var(--paper); color: var(--ink); border-radius: 10px; padding: 22px;
  border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  transform: rotate(var(--tilt, -1.2deg));
}
.postcard:nth-child(even) { --tilt: 1.4deg; }
.postcard-body { font-style: italic; border-right: 2px dashed #C8D2EE; padding-right: 16px; }
.postcard-body p { margin-bottom: .7em; }
.sig { font-style: normal; font-weight: 800; color: var(--bubblegum-deep); }
.postcard-side { text-align: center; }
.stamp { width: 72px; height: 94px; margin: 0 auto 8px; padding: 8px; background: #FFF6D6; outline: 3px dotted #E3C766; outline-offset: -2px; }
.postmark { font: 600 .82rem/1.2 var(--display); color: var(--ink-soft); border: 2px solid #9AA6D6; border-radius: 50%; padding: 10px 4px; margin: 0; transform: rotate(-10deg); }
.postcard.is-locked { background: rgba(255,255,255,.18); border-style: dashed; border-color: #fff; box-shadow: none; color: #fff; grid-template-columns: 1fr; text-align: center; }
.postcard.is-locked p { margin: 0; font-weight: 700; }

/* ---------- Crew ---------- */
.crew { padding: clamp(96px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); }
.crew-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.crew-list li { text-align: center; }
.crew-list h3 { font-size: 1.6rem; margin: 14px 0 .2em; }
.crew-list p { max-width: 20em; margin: 0 auto; color: var(--ink-soft); }
.bear-btn { background: none; border: 0; padding: 6px; cursor: pointer; border-radius: 24px; }
.bear-btn svg { width: 116px; height: 151px; margin: 0 auto; filter: drop-shadow(0 5px 0 var(--ink)); transform-origin: 50% 100%; }
.bear-btn:hover svg { filter: drop-shadow(0 5px 0 var(--ink)) brightness(1.06); }
.bear-btn.squish svg { animation: squish .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes squish { 0% { transform: scale(1,1); } 30% { transform: scale(1.28,.62); } 60% { transform: scale(.9,1.12); } 100% { transform: scale(1,1); } }
@media (prefers-reduced-motion: reduce) { .bear-btn.squish svg { animation: none; } }
@media (max-width: 760px) { .crew-list { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } .bear-btn svg { width: 92px; height: 120px; } }

/* ---------- Feel ---------- */
.feel { padding: clamp(40px, 6vw, 80px) 0; }
.feel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feel-photos { position: relative; aspect-ratio: 1 / .95; width: 100%; }
.ph { position: absolute; height: auto; border: 4px solid var(--ink); background: #fff; border-radius: var(--r-mid); box-shadow: 0 8px 0 var(--ink); object-fit: cover; }
.ph-b { width: 78%; aspect-ratio: 1; left: 0; top: 0; transform: rotate(-3deg); }
.ph-a { width: 38%; aspect-ratio: 250 / 430; right: 0; bottom: 0; transform: rotate(5deg); z-index: 1; }
.facts { margin: 0; display: grid; gap: 18px; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; align-items: baseline; }
.facts dt { font: 700 1.3rem var(--display); color: var(--bubblegum-deep); }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .feel-grid { grid-template-columns: 1fr; }
  .feel-photos { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Gifts ---------- */
.gifts { background: var(--sunny); border-block: 4px solid var(--ink); padding: clamp(36px, 5vw, 56px) 0; margin: clamp(32px, 5vw, 64px) 0 0; }
.gifts-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.gifts-row > div { flex: 1 1 420px; }
.gifts p { margin: 0; max-width: 34em; font-size: 1.1rem; }
.gifts .gummy-type { color: #fff; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
details { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-mid); margin: 0 0 14px; }
summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 20px; font: 700 1.15rem/1.3 var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--bubblegum); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 20px 18px; margin: 0; }

/* ---------- Join ---------- */
.join { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.join-bear { width: 84px; height: 110px; margin: 0 auto 12px; filter: drop-shadow(0 4px 0 var(--ink)); }
.join p { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E8ECFF; padding: 48px 0 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sunny); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 32px; }
.footer-h { font: 700 1.15rem var(--display); color: var(--sunny); margin-bottom: .6em; }
.plain { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.fine { font-size: .92rem; color: #C3CBF0; margin-top: 12px; }
.site-footer img { width: 140px; height: auto; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Simple content pages (privacy) ---------- */
.page { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.page h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page p, .page li { max-width: 40em; }

/* ---------- Confirm / unsubscribe result pages ---------- */
.result-page { min-height: 60vh; }
.result-bear { width: 84px; height: 110px; margin: 8px auto 14px; }
.result-page p { margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.result-page form { margin: 22px 0 8px; }
.result-home { margin-top: 28px; font-weight: 800; }
