/* =========================================================
   base.css — reset léger, typo globale, a11y
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--meal-font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--meal-text-primary);
  background:
    radial-gradient(1000px 620px at 18% 8%, rgba(214, 229, 255, 0.75), transparent 62%),
    radial-gradient(1100px 760px at 85% 88%, rgba(255, 218, 172, 0.62), transparent 64%),
    linear-gradient(180deg,
      var(--meal-bg-top) 0%,
      var(--meal-bg-mid) 46%,
      var(--meal-bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--meal-text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 700;
}

h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
}

p {
  color: var(--meal-text-secondary);
}

a {
  color: var(--meal-accent);
  text-decoration: none;
  transition: color var(--meal-dur-short) var(--meal-ease);
}

a:hover { color: var(--meal-accent-strong); }

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

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

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

ul, ol {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  height: 1px;
  background: var(--meal-stroke-soft);
  margin: 0;
}

/* Focus states visibles — a11y */
:focus-visible {
  outline: 2px solid var(--meal-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(10, 132, 255, 0.18);
  color: var(--meal-text-primary);
}

/* Tap target mobile */
button, a {
  min-height: auto;
}
