/* =====================================================================
   HELLO ONLINE SHOP DESIGN SYSTEM — BASE & FOUNDATIONS
   Tokens, typography, reset, grid/flex utilities, and animations
   ===================================================================== */


:root {
  /* Color Palette */
  --c-bg: #FFFFFF;
  --c-bg-alt: #F6EBE7;
  --c-bg-deep: #F0DFDA;
  --c-surface: #FFFFFF;

  --c-primary: #7B1E34;
  --c-primary-600: #651629;
  --c-primary-50: #F5E4E8;

  --c-accent: #C9506F;
  --c-accent-700: #A93A57;
  --c-accent-100: #F8DDE4;

  --c-text: #2A2226;
  --c-text-muted: #6E6165;
  --c-text-soft: #9A8C90;

  --c-border: #EADBD6;
  --c-border-strong: #D8C3BD;

  --c-footer: #F6EBE7;
  --c-footer-bar: #1B1416;

  --c-star: #E3A33B;
  --c-success: #2F7D5B;
  --c-warning: #B86E00;
  --c-danger: #B3261E;
  --c-info: #2B5C8A;

  /* Typography */
  --f-sans: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-serif: var(--f-sans);
  --f-script: "Dancing Script", cursive;

  --fs-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-h3: 1.25rem;
  --fs-lg: 1.125rem;
  --fs-base: 0.9375rem; /* 15px */
  --fs-sm: 0.8125rem;   /* 13px */
  --fs-xs: 0.6875rem;   /* 11px */
  --fs-script: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);

  --ls-normal: 0;
  --ls-wide: 0.12em;
  --ls-wider: 0.22em;

  /* Spacing Scale (8px baseline) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 80px;
  --sp-11: 96px;

  --section-y: clamp(48px, 6vw, 88px);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --topbar-h: 36px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(43, 18, 26, 0.05);
  --sh-sm: 0 2px 8px rgba(43, 18, 26, 0.06);
  --sh-md: 0 10px 30px -12px rgba(43, 18, 26, 0.16);
  --sh-lg: 0 24px 60px -20px rgba(43, 18, 26, 0.25);
  --sh-focus: 0 0 0 3px rgba(123, 30, 52, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 400ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  touch-action: pan-x pan-y;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-2) var(--ease);
}

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

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

ul, ol {
  list-style: none;
}

/* Headings & Text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
}

.script-tagline {
  font-family: var(--f-script);
  font-size: var(--fs-script);
  color: var(--c-accent-700);
  line-height: 1.1;
  display: inline-block;
}

.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}

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

.container-narrow {
  max-width: 860px;
}

/* Accessibility & Focus */
:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
}

.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;
}

@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;
  }
}
