/* ════════════════════════════════════════════════════════
   Base — Reset, Typography, Layout
   ════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Onest', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.25;
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: #fff;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--px);
}

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

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Unbounded', cursive;
  line-height: 1.1;
  letter-spacing: -.035em;
}

/* Unified em highlight */
em {
  font-style: normal;
  background: linear-gradient(135deg, var(--amber-deep), var(--amber), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
