/* ==========================================================================
   Токены, шрифты, база. Значения — из Figma, артборд 1440×1024.
   --u — один пиксель макета; растёт и сжимается с окном, поэтому композиция
   секций сохраняется на любом экране без медиа-запросов.
   ========================================================================== */
@font-face { font-family: "Cormorant Infant"; src: url("../assets/fonts/CormorantInfant-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Cormorant Infant"; src: url("../assets/fonts/CormorantInfant-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Infant"; src: url("../assets/fonts/CormorantInfant-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Euclid Flex"; src: url("../assets/fonts/EuclidFlex-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Euclid Flex"; src: url("../assets/fonts/EuclidFlex-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --milk: #f4f0e7;
  --ink: #362013;
  --wine: #3f1521;
  --sand: #c4a882;
  --chocolate: #3a2419;

  --serif: "Cormorant Infant", serif;
  --sans: "Euclid Flex", sans-serif;

  --svh: 100vh;
  --u: min(calc(100vw / 1440), calc(var(--svh) / 1024));
  --m: min(calc(100vw / 390), 1.6px);      /* стековая раскладка */

  --hold: 360px;                           /* фиксация экрана: 3 коротких скролла по 120 px */
  --bleed: calc(var(--svh) * .024);        /* запас изображения под параллакс */
}
@supports (height: 100svh) { :root { --svh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--milk); }
html.is-loading, html.is-loading body { overflow: hidden; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: clip;
}
img, svg { display: block; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }

.vh-probe { position: fixed; top: 0; left: -1px; width: 1px; height: var(--svh); visibility: hidden; pointer-events: none; }

/* Общая типографика — Figma: Cormorant Infant Medium, верхний регистр */
.title {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
}
.body {
  font-size: calc(19 * var(--u));
  line-height: calc(30 * var(--u));
  text-align: center;
}
