/* ==========================================================================
   Our Bunny — base.css
   Design tokens, reset, typography, theme switching, utilities.
   Palette sampled directly from the brand logo.
   ========================================================================== */

:root {
  /* --- brand colours (updated) ------------------------------------------ */
  --cream:      #FFF8F3;      /* warm cream — main surface */
  --cream-2:    #FDF1EA;
  --beige:      #EADDD1;
  --blush:      #F2C4C9;      /* soft rose */
  --blush-soft: #FCE9E8;
  --coral:      #D98C8C;      /* dusty rose — primary CTA */
  --coral-deep: #C67A7A;
  --sky:        #A9C4D4;      /* muted powder blue — tiny accent only */
  --sky-soft:   #E6EFF4;
  --blue:       #7C9CB0;      /* muted blue, used for focus rings */
  --sage:       #A4B494;      /* sage green — secondary CTA */
  --sage-soft:  #E8EEE2;
  --peach:      #E4C9AC;      /* warm highlight */
  --peach-soft: #F7E9DA;
  --ink:        #4A3B33;      /* warm charcoal brown — body text */
  --ink-soft:   #7A6355;
  --muted:      #A28E80;
  --line:       #EFE0D6;
  --white:      #FFFFFF;
  --sale:       #C4706B;
  --success:    #7FA06B;

  /* --- surfaces --------------------------------------------------------- */
  --bg:         var(--cream);
  --bg-alt:     #FDF3EE;
  --surface:    #FFFFFF;
  --surface-2:  #FFFBF7;
  --text:       var(--ink);
  --text-soft:  var(--ink-soft);
  --border:     var(--line);

  /* --- type ------------------------------------------------------------- */
  --font-display: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-body:    'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-util:    'Quicksand', 'Nunito', system-ui, sans-serif;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .15vw, 1.02rem);
  --step-1:  clamp(1.12rem, 1.05rem + .35vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.25rem + .7vw, 1.8rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.6vw, 4rem);

  /* --- shape & depth ---------------------------------------------------- */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-xs: 0 2px 6px rgba(74, 46, 30, .06);
  --shadow-sm: 0 6px 18px rgba(74, 46, 30, .07);
  --shadow-md: 0 14px 34px rgba(74, 46, 30, .10);
  --shadow-lg: 0 26px 60px rgba(74, 46, 30, .14);
  --shadow-coral: 0 12px 26px rgba(217, 140, 140, .28);

  /* --- rhythm ----------------------------------------------------------- */
  --gap: 1.25rem;
  --pad-section: clamp(3rem, 6vw, 6rem);
  --wrap: 1280px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --t-fast: .18s var(--ease);
  --t: .32s var(--ease);
  --t-slow: .6s var(--ease);
}

/* --- dark mode (adjusted for new palette) ------------------------------- */
html[data-theme="dark"] {
  --bg:        #2B1E16;
  --bg-alt:    #33251C;
  --surface:   #3D2D22;
  --surface-2: #4A372A;
  --text:      #F7EEE5;
  --text-soft: #D4C0B0;
  --muted:     #B0957A;
  --border:    #5C483A;
  --cream:     #2B1E16;
  --cream-2:   #3D2D22;
  --beige:     #5C483A;
  --blush-soft:#4A2A2E;
  --sky-soft:  #1A3A3F;
  --sage-soft: #2A3D2A;
  --peach-soft:#4A372A;
  --blue:      #9CBACC;
  --shadow-sm: 0 6px 18px rgba(0,0,0,.3);
  --shadow-md: 0 14px 34px rgba(0,0,0,.38);
  --shadow-lg: 0 26px 60px rgba(0,0,0,.48);
}

/* --- boys mode — blue accent, everything else (light/dark) stays as-is --
   Layered on top of light OR dark, so "Boys + Dark" and "Boys + Light" both
   work: only the accent/CTA colours shift, not the surface colours. -------- */

/* --- girls mode — lavender accent -------------------------------------- */

/* --- the "All" shortcut pill in the header ------------------------------- */
.all-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-util);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  border: 1px solid transparent;
  transition: background var(--t-fast), transform var(--t-fast);
}
.all-pill:hover, .all-pill:focus-visible { background: var(--coral-deep); transform: translateY(-1px); color: var(--white); }

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

img, svg, video, picture { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { color: var(--text-soft); }

.eyebrow {
  font-family: var(--font-util);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 13px);
}
.lede { font-size: var(--step-1); color: var(--text-soft); max-width: 60ch; }
.script {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--coral);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
.section { padding-block: var(--pad-section); }
.section-tint { background: var(--bg-alt); }
.stack > * + * { margin-top: 1rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-head p { margin-top: .5rem; max-width: 52ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* --- stitched seam (brand signature) ------------------------------------ */
.stitch-rule {
  height: 2px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--peach) 0 12px, transparent 12px 24px);
  opacity: .55;
}
.stitched {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stitched::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(201, 169, 141, .55);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
  transition: border-color var(--t);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.wrap-flex { flex-wrap: wrap; }
.full { width: 100%; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 999;
  background: var(--coral);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- icons ------------------------------------------------------------- */
.ico {
  width: 22px; height: 22px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 17px; height: 17px; }
.ico-lg { width: 28px; height: 28px; }

/* --- scrollbar --------------------------------------------------------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 99px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--peach); }
::selection { background: var(--blush); color: var(--ink); }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.9); }
  70%  { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  30%      { transform: translateY(-18px) scaleY(1.06); }
  60%      { transform: translateY(0) scaleY(.94); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stitch-run { to { background-position: 120px 0; } }

.reveal { opacity: 0; }
.reveal.in { animation: fade-up .7s var(--ease) forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; }
}