/* ============================================================
   Magnet Mindset — Base Styles
   Reset + typography + global defaults.
   Depends on: tokens.css
   ============================================================ */


/* ----------------------------------------------------------
   1. Modern CSS reset
---------------------------------------------------------- */

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

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

body {
  background-color: var(--color-black);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

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


/* ----------------------------------------------------------
   2. Typography — headings
---------------------------------------------------------- */

/* Hero H1 — gold, Playfair Display */
h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-gold);
  letter-spacing: -0.01em;
}

/* Section H2 — champagne, Playfair Display */
h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-champagne);
  letter-spacing: -0.01em;
}

/* Sub H3 — champagne, Playfair Display */
h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-champagne);
}

h4,
.h4 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-champagne);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Product / premium label headlines — Cinzel */
.h-product {
  font-family: var(--font-product);
  font-weight: 600;
  color: var(--color-text-gold);
  letter-spacing: 0.04em;
}


/* ----------------------------------------------------------
   3. Typography — body & text utilities
---------------------------------------------------------- */

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--color-text-primary);
  max-width: var(--max-width-text);
}

/* Pull quote — Antic Didone italic, gold */
.quote,
blockquote {
  font-family: var(--font-quote);
  font-size: var(--text-quote);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-gold);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
}

/* Caption / label — Montserrat uppercase */
.label,
.caption {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-gold);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-gold {
  color: var(--color-text-gold);
}

.text-champagne {
  color: var(--color-champagne);
}

.text-center {
  text-align: center;
}


/* ----------------------------------------------------------
   4. Layout helpers
---------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--max-width-text);
}

section {
  padding-block: var(--space-xxl);
}

/* Sapphire section background */
.section--sapphire {
  background-color: var(--color-sapphire);
}

/* Charcoal section background */
.section--charcoal {
  background-color: var(--color-charcoal);
}


/* ----------------------------------------------------------
   5. Links
---------------------------------------------------------- */

a:hover {
  color: var(--color-gold);
  transition: color var(--transition-fast);
}


/* ----------------------------------------------------------
   6. Images with overlay
---------------------------------------------------------- */

.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark-50);
  pointer-events: none;
}


/* ----------------------------------------------------------
   7. Screen-reader utility
---------------------------------------------------------- */

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


/* ----------------------------------------------------------
   8. Responsive — mobile overrides
   (mobile-first audience: Instagram / Facebook)
---------------------------------------------------------- */

@media (max-width: 768px) {

  section {
    padding-block: var(--space-xl);
  }

  .container {
    padding-inline: var(--space-sm);
  }

  h1,
  .h1 {
    letter-spacing: -0.005em;
  }

  blockquote,
  .quote {
    padding-left: var(--space-sm);
  }

}
