/* Base : reset + typo + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-mobile) + 12px); }
@media (min-width: 768px) { html { scroll-padding-top: calc(var(--header-h) + 12px); } }
html, body { overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 8%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }
a { color: var(--text); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--text);
}
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p { font-family: var(--ff-body); }
strong { font-weight: 600; }

/* Selection rebrandee */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar fine */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* Placeholder cale palette */
::placeholder { color: var(--text-mute); opacity: 1; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

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