/* ============================================
   Base Styles — Reset + Typography + Globals
   ============================================ */

/* Custom Fonts */
@font-face {
  font-family: 'Classic Dolly';
  src: url('../fonts/Classic_Dolly.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'iciel Pony';
  src: url('../fonts/iciel-Pony-oxj8jv.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Barbie-style logo: pink stroke behind, white face in front ---- */
.cuppy-logo-stack {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: 'iciel Pony', cursive;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  font-style: normal;
}

.cuppy-logo-stack::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #ffb6d1;
  paint-order: stroke fill;
  -webkit-text-stroke: 8px #ffb6d1;
  pointer-events: none;
  font-style: normal;
}

.cuppy-logo-stack__face {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-style: normal;
}

/* ---- Barbie-style hero headline: thicker stroke + soft halo ---- */
.cuppy-hero-stack {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: 'iciel Pony', cursive;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-style: normal;
}

.cuppy-hero-stack::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #ffb6d1;
  paint-order: stroke fill;
  -webkit-text-stroke: 18px #ffb6d1;
  text-shadow:
    0 0 1px #ffb6d1,
    0 0 2px #ffb6d1,
    0 0 3px #ffb6d1;
  pointer-events: none;
  font-style: normal;
}

.cuppy-hero-stack__face {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-style: normal;
}

/* Modern Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
}

h2 {
  font-size: clamp(1.5rem, 4vw, var(--fs-2xl));
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Mobile typography adjustments ---- */
@media (max-width: 480px) {
  h1, h2 {
    -webkit-text-stroke: 4px #ffb6d1;
  }

  h2 {
    font-size: clamp(1.25rem, 4vw, var(--fs-2xl));
  }

  .cuppy-logo-stack {
    font-size: 28px;
  }

  .cuppy-logo-stack::before {
    -webkit-text-stroke: 6px #ffb6d1;
  }
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
