/* =============================================================
   Genzee Jewels — base.css
   CSS custom properties, reset, typography, containers,
   buttons, utilities, animations, and responsive basics.
   ============================================================= */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;900&family=Fraunces:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Core palette */
  --color-ink:       #0A0A0A;
  --color-ink-soft:  #1A1A1A;
  --color-cream:     #F4EFE6;
  --color-paper:     #FAF7F1;
  --color-white:     #FFFFFF;

  /* Brand accents */
  --color-hot:       #FF2D6F;
  --color-hot-deep:  #E11855;
  --color-butter:    #FFE14A;
  --color-mint:      #B8F2C9;
  --color-lilac:     #C9B6FF;
  --color-tangerine: #FF7A3D;

  /* UI signals */
  --color-success:   #0E8A5F;
  --color-danger:    #E11855;
  --color-muted:     #6A6A6A;
  --color-line:      #E6E1D6;
  --color-line-soft: #EFEAE0;

  /* Typography */
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-serif:   'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Font size scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  /* Border radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.08);
  --shadow-pop:  0 10px 30px -6px rgba(255, 45, 111, 0.35);

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Container */
  --container-max: 1440px;
  --container-pad: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index scale */
  --z-sticky-tools:  80;
  --z-filter-drawer: 90;
  --z-nav-dropdown:  99;
  --z-header:        100;
  --z-autocomplete:  120;
  --z-cart-backdrop: 200;
  --z-cart-drawer:   201;
  --z-toast:         9000;
  --z-toast-high:    9100;
}

@media (min-width: 640px) {
  :root { --container-pad: 1.5rem; }
}

@media (min-width: 1024px) {
  :root { --container-pad: 2rem; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 var(--space-4);
}

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

a:hover {
  color: var(--color-hot);
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn:focus-visible {
  outline: 3px solid var(--color-hot);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-hot);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-hot-deep);
  color: var(--color-white);
  box-shadow: var(--shadow-pop);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}

.btn--outline:hover {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-hot);
}

.btn--ghost:hover {
  background-color: rgba(255, 45, 111, 0.08);
}

/* ── Utility classes ──────────────────────────────────────── */
.u-display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; }
.u-serif   { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
.u-mono    { font-family: var(--font-mono); }
.u-caps    { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.u-muted   { color: var(--color-muted); }
.u-hot     { color: var(--color-hot); }

/* ── Screen reader / accessibility ───────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--color-hot);
  color: var(--color-white);
  font-weight: 700;
  border-radius: var(--r-sm);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.pulse-dot {
  animation: pulseDot 1.6s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, var(--color-hot) 0%, #FF5A8F 40%, var(--color-hot) 80%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ── Scrollbar utilities ──────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
