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

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

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* TEX-4 Grille fine */
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}

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

figure { margin: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; }

[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-2); }

em { font-style: italic; }

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

.eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section {
  padding: 48px 0;
}
@media (min-width: 768px) {
  .section { padding: 88px 0; }
}

.section--tight { padding: 32px 0; }
@media (min-width: 768px) { .section--tight { padding: 56px 0; } }

.section--dark {
  background: var(--ink-deep);
  color: var(--text-on-dark);
}
.section--dark :where(h1, h2, h3, h4, h5, p, li, span, a, small, strong) {
  color: var(--text-on-dark);
}
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section--dark .eyebrow::before { background: var(--accent-on-dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 2000;
}
.skip-link:focus { top: 0; }
