/*
 * ╔══════════════════════════════════════════════════════╗
 * ║  SEMENTES DE FÉ — BASE STYLES                        ║
 * ║  02-base.css                                          ║
 * ║                                                       ║
 * ║  Resets, body, typography defaults.                   ║
 * ║  No component classes here — only element selectors.  ║
 * ╚══════════════════════════════════════════════════════╝
 */

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

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

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── GRAIN TEXTURE OVERLAY ─── */
/* Subtle noise layer gives the page organic warmth — avoids the sterile "AI clean" feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ─── IMAGES ─── */
img, video, svg {
  display: block;
  max-width: 100%;
}

/* ─── LINKS ─── */
a {
  color: inherit;
  text-decoration: none;
}

/* ─── BUTTONS ─── */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── LISTS ─── */
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY DEFAULTS ─── */

/* Display type: used for h1, h2 in hero and section titles */
.t-display {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* Body type: readable, functional */
.t-body {
  font-family: var(--font-body);
  line-height: var(--leading-relaxed);
}

/* Label: caps, small, spaced */
.t-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* Accent: Caveat handwritten — use sparingly, emotional moments only */
.t-accent {
  font-family: var(--font-accent);
  line-height: var(--leading-snug);
}

/* ─── SELECTION COLOR ─── */
::selection {
  background-color: var(--clr-gold-200);
  color: var(--color-text);
}
