/* ═══════════════════════════════════════════════════════════════
   Selene's Sensory Squishies — styles
   Design tokens from the design handoff (sky blue / pink / butter
   yellow on warm cream). Parents: you shouldn't need to edit this
   file — all names, descriptions and the email live in content.js.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream: #FFF9EF;
  --ink: #3A3450;
  --ink-soft: #6A6485;
  --sky: #3E8FD0;
  --sky-light: #6FB6EA;
  --sky-tint: #E9F3FC;
  --pink: #E2739E;
  --pink-deep: #D95F92;
  --pink-light: #F7A8C4;
  --pink-tint: #FDEEF4;
  --cta-shadow: #BF5580;
  --butter: #FFD469;
  --butter-pale: #FFEDBE;
  --butter-tint: #FFF3CF;
  --butter-dark: #B08A2A;
  --gold: #DFAF3C;
  --white: #FFFFFF;
  --squish-ease: cubic-bezier(0.2, 0, 0, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--sky); }
a:hover { color: var(--pink); }

section { scroll-margin-top: 80px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Sticky nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--butter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sky);
}

.nav-logo {
  width: 50px;
  height: 49px;
  object-fit: contain;
}

.nav-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-link--about   { color: var(--sky); }
.nav-link--gallery { color: var(--pink-deep); }
.nav-link--videos  { color: var(--pink); }
.nav-link--how     { color: var(--gold); }

.nav-link--about:hover,   .nav-link--about:focus-visible   { background: var(--sky-tint);    color: var(--sky); }
.nav-link--gallery:hover, .nav-link--gallery:focus-visible { background: var(--pink-tint);   color: var(--pink-deep); }
.nav-link--videos:hover,  .nav-link--videos:focus-visible  { background: var(--pink-tint);   color: var(--pink); }
.nav-link--how:hover,     .nav-link--how:focus-visible     { background: var(--butter-tint); color: var(--butter-dark); }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 56px 24px 0;
  background: linear-gradient(180deg, #FFF9EF 0%, #E9F3FC 100%);
  overflow: hidden;
}

.hero-logo {
  width: min(300px, 70vw);
  height: auto;
  animation: floaty 5s ease-in-out infinite;
}

.hero-headline {
  font-weight: 900;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  margin: 20px auto 12px;
  max-width: 700px;
  color: var(--sky);
}

.hero-smile { color: var(--pink); }

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 0 auto;
  max-width: 560px;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 28px 0 56px;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--cta-shadow);
  transition: transform 150ms var(--squish-ease);
}

.cta:hover,
.cta:focus-visible,
.cta:active {
  transform: scale(0.95);
  color: var(--white);
}

/* Blobby white divider bleeding past both edges */
.hero-blob {
  height: 46px;
  background: var(--white);
  border-radius: 100% 100% 0 0;
  margin: 0 -40px;
}

/* ── Shared section headings ────────────────────────────────── */

.section-heading {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin: 0 0 8px;
}

.section-subline {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 520px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ── About Selene ───────────────────────────────────────────── */

.about {
  background: var(--white);
  padding: 40px 24px 72px;
}

.about-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px;
  align-items: center;
}

.about-photo-frame {
  background: var(--pink-tint);
  border-radius: 40px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid var(--pink-light);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

.about-badge {
  display: inline-block;
  background: var(--butter-tint);
  color: var(--butter-dark);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.about-heading {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  color: var(--pink-deep);
  line-height: 1.15;
}

.about-p { margin: 0 0 14px; }

.about-closer {
  margin: 0;
  font-weight: 700;
  color: var(--sky);
}

/* ── Squishy Gallery ────────────────────────────────────────── */

.gallery {
  background: var(--sky-tint);
  padding: 64px 24px 80px;
}

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-heading { color: var(--sky); }

.gallery-grid {
  display: grid;
  /* min(100%, …) keeps cards from forcing sideways scroll on small phones */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.squishy-card {
  background: var(--white);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(62, 143, 208, 0.10);
  position: relative;
  transition: transform 150ms var(--squish-ease);
  cursor: pointer;
}

.squishy-card:hover,
.squishy-card:focus-visible,
.squishy-card:active {
  transform: scale(0.94);
}

.squishy-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  color: var(--white);
  font-weight: 900;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transform: rotate(3deg);
}

.squishy-photo {
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.squishy-photo-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.squishy-emoji { font-size: 76px; }

.squishy-photo-note {
  font-size: 13px;
  font-weight: 700;
  color: rgba(58, 52, 80, 0.45);
}

.squishy-name {
  font-weight: 900;
  font-size: 21px;
  margin: 14px 4px 6px;
  color: var(--ink);
}

.squishy-desc {
  margin: 0 4px 6px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* ── Videos ─────────────────────────────────────────────────── */

.videos {
  background: var(--white);
  padding: 64px 24px 80px;
}

.videos-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.videos-heading { color: var(--pink); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.video-card {
  background: var(--butter-tint);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(226, 115, 158, 0.10);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  display: block;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--butter-pale);
  border: 4px dashed var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.video-placeholder-emoji { font-size: 52px; }

.video-placeholder-note {
  font-weight: 700;
  color: var(--butter-dark);
  text-align: center;
  padding: 0 20px;
  font-size: 15px;
}

.video-title {
  font-weight: 900;
  font-size: 19px;
  margin: 14px 6px 2px;
  color: var(--ink);
}

/* ── How to Get a Squishy ───────────────────────────────────── */

.how {
  background: var(--pink-tint);
  padding: 64px 24px 72px;
}

.how-inner {
  max-width: 760px;
  margin: 0 auto;
}

.how-heading { color: var(--pink-deep); }

.how .section-subline { max-width: 540px; margin-bottom: 36px; }

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: 0 6px 18px rgba(217, 95, 146, 0.10);
  transition: transform 150ms var(--squish-ease);
}

.how-step:hover,
.how-step:focus-visible,
.how-step:active {
  transform: scale(0.97);
}

.how-step-number {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-text { flex: 1; }

.how-step-emoji {
  font-size: 30px;
  flex: none;
}

.how-callout {
  background: var(--butter-tint);
  border: 3px solid var(--butter);
  border-radius: 24px;
  padding: 22px 26px;
  margin-top: 28px;
  text-align: center;
}

.how-callout-title {
  font-weight: 900;
  font-size: 19px;
  color: var(--butter-dark);
  margin-bottom: 8px;
}

.how-callout-body { font-size: 17px; }

.contact-email { font-weight: 900; }

.how-callout-small {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  background: var(--sky);
  color: var(--sky-tint);
  text-align: center;
  padding: 40px 24px 48px;
}

.footer-logo {
  width: 86px;
  height: auto;
  background: var(--white);
  border-radius: 50%;
  padding: 12px;
}

.footer-copyright {
  font-weight: 900;
  font-size: 17px;
  margin-top: 14px;
}

.footer-signoff {
  font-size: 15px;
  opacity: 0.85;
  margin-top: 6px;
}

/* ── Mobile tuning ──────────────────────────────────────────── */

/* No gray tap flash on touch — the squish animation is the feedback */
.nav-link, .cta, .squishy-card, .how-step, .nav-brand {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  /* Compact sticky nav so it doesn't eat the phone screen */
  .nav { padding: 8px 12px; gap: 8px; }
  .nav-logo { width: 42px; height: 41px; }
  .nav-title { font-size: 15px; }
  .nav-links { gap: 2px; }
  .nav-link { font-size: 14px; padding: 7px 10px; }

  /* Slightly tighter section padding on small screens */
  .hero { padding: 40px 20px 0; }
  .about { padding: 32px 20px 56px; }
  .about-grid { gap: 28px; }
  .gallery, .videos { padding: 48px 20px 64px; }
  .how { padding: 48px 20px 56px; }
  .section-subline { margin-bottom: 28px; }
  .how-callout { padding: 20px 18px; }
  .footer { padding: 32px 20px 40px; }

  section { scroll-margin-top: 64px; }
}

/* On the narrowest phones, the logo alone marks the brand —
   the site name is right below it in the hero anyway */
@media (max-width: 520px) {
  .nav-title { display: none; }
}

/* Smallest screens (320px-class): keep all four nav links on one row */
@media (max-width: 340px) {
  .nav { padding: 8px 8px; gap: 4px; }
  .nav-logo { width: 36px; height: 35px; }
  .nav-link { font-size: 13px; padding: 6px 7px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
  .cta, .squishy-card, .how-step { transition: none; }
}
