/* =============================================================================
   HEY, CUTIE PIE! ♡  —  base.css
   Design tokens, reset, typography and shared building blocks.
   ========================================================================== */

:root {
  /* Palette */
  --cream: #FFF8F0;
  --blush: #F7DDE2;
  --rose: #E98A9D;
  --cherry: #C93E54;
  --plum: #49343D;

  /* Supporting tones derived from the palette */
  --paper: #FFFDF9;
  --cream-deep: #F9EEE2;
  --kraft: #F1E4D3;
  --butter: #F4D48A;
  --butter-soft: #FBEBC0;
  --cherry-deep: #A8303F;
  --rose-soft: #F3B5C1;

  --ink: var(--plum);
  --ink-2: rgba(73, 52, 61, .74);
  --ink-3: rgba(73, 52, 61, .56);
  --line: rgba(73, 52, 61, .12);
  --line-strong: rgba(73, 52, 61, .22);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Shape & depth */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(73, 52, 61, .06), 0 3px 8px -2px rgba(73, 52, 61, .08);
  --shadow-md: 0 1px 2px rgba(73, 52, 61, .05), 0 14px 34px -14px rgba(73, 52, 61, .26);
  --shadow-lg: 0 2px 6px rgba(73, 52, 61, .06), 0 30px 70px -24px rgba(73, 52, 61, .42);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Layout */
  --gutter: 18px;
  --maxw: 1120px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .2 0 0 0 0 .24 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

html.is-locked,
html.is-locked body { overflow: hidden; }

[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--blush); color: var(--plum); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--cherry);
  outline-offset: 3px;
}
[tabindex="-1"]:focus-visible { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.noscript {
  max-width: 420px;
  margin: 30vh auto;
  padding: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* ---------- Icons ---------------------------------------------------------- */
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Layout --------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(84px, 13vw, 150px);
}

/* ---------- Section heading pattern --------------------------------------- */
.section-head {
  position: relative;
  max-width: 660px;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--cherry);
}
.eyebrow-line { width: 30px; height: 1.5px; border-radius: 2px; background: currentColor; opacity: .35; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--cherry);
}

.section-lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.08rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.section-head--center .section-lede { margin-inline: auto; }

.hand-note {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cherry);
  transform: rotate(-3deg);
}
.section-head .hand-note { margin-top: 14px; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  --bg: var(--plum);
  --fg: var(--cream);
  --glow: rgba(73, 52, 61, .55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 24px -12px var(--glow);
  transition: transform .3s var(--ease-spring), box-shadow .3s, background-color .2s, opacity .3s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:active { transform: scale(.96); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 30px -14px var(--glow); }
  .btn:hover:active { transform: translateY(0) scale(.96); }
}
.btn--cherry { --bg: var(--cherry); --fg: #fff; --glow: rgba(201, 62, 84, .7); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--plum);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
@media (hover: hover) {
  .btn--ghost:hover { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn[disabled] { pointer-events: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  color: var(--plum);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .25s var(--ease-spring), background-color .2s;
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) { .icon-btn:hover { background: #fff; transform: scale(1.06); } }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color .2s, text-underline-offset .2s;
}
.link-btn:hover { color: var(--cherry); text-underline-offset: 7px; }

/* ---------- Badges & stickers --------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--cherry-deep);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s ease-in-out infinite;
}
.badge .icon { width: 12px; height: 12px; }

.pill-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill-sticker .icon { width: 13px; height: 13px; color: var(--cherry); }

/* Washi tape strips */
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 26px;
  transform: translateX(-50%) rotate(var(--tape-rot, -4deg));
  background: rgba(233, 138, 157, .55);
  clip-path: polygon(2% 0, 98% 0, 100% 25%, 98% 50%, 100% 75%, 98% 100%, 2% 100%, 0 75%, 2% 50%, 0 25%);
  pointer-events: none;
}
.tape--rose   { background: rgba(233, 138, 157, .55); }
.tape--butter { background: rgba(244, 212, 138, .72); }
.tape--kraft  { background: rgba(205, 178, 146, .6); }
.tape--plum   { background: rgba(73, 52, 61, .22); }
.tape--stripe {
  background: repeating-linear-gradient(45deg, rgba(201, 62, 84, .42) 0 6px, rgba(255, 253, 249, .6) 6px 12px);
}

/* Round rubber stamp */
.round-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 92px;
  height: 92px;
  flex: none;
  padding: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5.5px currentColor;
  color: var(--cherry);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: .9;
}
.round-stamp .icon { width: 18px; height: 18px; }

/* ---------- Decorative doodles -------------------------------------------- */
.doodle {
  position: absolute;
  width: 26px;
  height: auto;
  aspect-ratio: 1;
  fill: currentColor;
  color: var(--rose);
  pointer-events: none;
  animation: bob 6s ease-in-out infinite alternate;
}
.doodle--line { fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ---------- Scroll reveal -------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Shared keyframes ---------------------------------------------- */
@keyframes bob {
  0%   { transform: translateY(-5px) rotate(var(--r, 0deg)); }
  100% { transform: translateY(6px) rotate(calc(var(--r, 0deg) + 7deg)); }
}
@keyframes heartbeat {
  0%, 56%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(.95); }
  42% { transform: scale(1.1); }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); }
  50% { opacity: .5; transform: scale(.82) rotate(calc(var(--r, 0deg) + 18deg)); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(2.4) rotate(-24deg); }
  60% { opacity: 1; transform: scale(.92) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(-12deg); }
}

/* ---------- Reduced motion: keep it calm --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { transform: none; }
}
