/* ==========================================================================
   MAGNETIE — Base / Reset (Function A: Core System)
   Global resets and base element styling only. No component or page rules.
   ========================================================================== */

/* ---------- Local brand fonts (Asset/Fonts/Fonts) ---------- */

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-LightItalic_2.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-Italic_2.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beautique Display';
  src: url('../assets/fonts/BeautiqueDisplay-BlackItalic_2.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Avelia';
  src: url('../assets/fonts/Avelia.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

/* White page canvas (main content + footer read as one surface). Column
   flex keeps the global footer at the viewport bottom on short pages
   (empty cart, loading states) without min-height spacer blocks. */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#mainContent {
  flex: 1 0 auto;
}

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

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

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

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

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  /* 400 (Regular) — matches Beautique Display's actual weight files; the
     family has no 600 cut, and letting the browser fall back would resolve
     to 900 (Black), far heavier than intended for headlines. */
  font-weight: 400;
  line-height: var(--lh-tight);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- Shared layout primitives ---------- */

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

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

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

@media (max-width: 768px) {
  :root {
    --container-pad: 1.25rem;
    /* Mobile header: 84px was sized for the desktop logo; 68px keeps the
       row balanced around the larger mobile logo (nav.css) and the 36px
       icons. The mobile menu / search flyout read this same token. */
    --header-height: 68px;
  }
}
