/* Girl's Boutique — Base
   Font import, reset, base elements, utilities.
   Load order: tokens.css -> base.css -> components.css -> layout.css -> home.css */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700;800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

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

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

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

/* ---- Base elements ---- */
body {
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

p {
  max-width: 70ch;
}

a {
  color: var(--c-pink);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

::selection {
  background: var(--c-pink);
  color: var(--c-ink);
}

/* The [hidden] attribute must always win over component display rules
   (e.g. .empty-state uses display:flex, which would otherwise override it). */
[hidden] {
  display: none !important;
}

/* ---- Accessibility: always-visible keyboard focus ---- */
:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}

/* ---- Layout utilities ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--edge-gap); /* the fluid breathing frame (matches the dev guides) */
}

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

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

/* ---- Print (PDF export for client) ---- */
@page {
  margin: 0;
}

@media print {
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  /* Show entrance animations in their final state */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .marquee__track { animation: none !important; }
  /* Sticky nav becomes static so it prints once at the top */
  .nav {
    position: static !important;
    backdrop-filter: none !important;
  }
  /* Avoid splitting elements across page breaks */
  .card,
  .brand-card,
  .hero,
  .section__head {
    break-inside: avoid;
  }
}
