/* base.css — reset + typo de base + image papier */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 6px);
}

body {
  min-height: 100dvh;
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 12%, oklch(98% 0.018 80) 0, transparent 45%),
    radial-gradient(circle at 88% 80%, oklch(94% 0.022 80) 0, transparent 55%),
    repeating-linear-gradient(
      45deg,
      oklch(94% 0.014 80) 0px,
      oklch(94% 0.014 80) 1px,
      transparent 1px,
      transparent 6px
    );
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

input, textarea {
  font: inherit;
  color: var(--ink);
}
::placeholder { color: var(--muted); opacity: 1; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { max-width: 64ch; }

/* Skip link accessibilite */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-2) var(--sp-3);
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }
