/* base.css — reset, styles des éléments HTML nus, conteneur de mise en page.
   Mobile-first. Aucune media query : voir base.desktop.css pour les surcharges. */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol{ margin: 0; }
ul, ol{ padding: 0; list-style: none; }

body{
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg{ display: block; max-width: 100%; }

a{ color: inherit; text-decoration: none; }

button{
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select{ font: inherit; color: inherit; }

h1, h2, h3, h4{
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-ink);
}
h1{ font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2{ font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3{ font-size: var(--fs-h3); }
h4{ font-size: var(--fs-h4); font-family: var(--font-sans); font-weight: 600; }

p{ max-width: 62ch; }

:focus-visible{
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

::selection{ background: var(--color-accent-soft); color: var(--color-ink); }

.container{
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Rythme vertical générique entre les grandes sections des pages (pas un composant :
   simple espacement de mise en page, au même titre que .container). */
.section{ padding-block: var(--space-8); }
.section--muted{ background: var(--color-gray-100); }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus{ top: var(--space-4); }

main{ display: block; }

hr{
  border: 0;
  border-top: var(--border-hairline);
  margin: 0;
}
