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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (max-width: 768px) { html { scroll-padding-top: var(--header-h-mobile); } }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* texture TEX-3 — points discrets ton accent dilue */
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.01em;
}

p { color: var(--text-2); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

ul, ol { list-style: none; }

[hidden] { display: none !important; }

/* Micro-details */
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 65%, var(--text)); border-radius: 8px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::placeholder { color: var(--text-mute); opacity: .85; }
