@font-face {
  font-family: 'Montserrat';
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/montserrat-cyrillic.woff2?v=520cd39b) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/montserrat-latin.woff2?v=a5ec5492) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/montserrat-arrows.woff2?v=319ffb6c) format('woff2');
  unicode-range: U+2190-2193;
}
@font-face {
  font-family: 'Montserrat';
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/noto-symbols-star.woff2?v=715af553) format('woff2');
  unicode-range: U+2726;
}
@font-face {
  font-family: 'Prata';
  font-display: swap;
  src: url(assets/fonts/prata-cyrillic.woff2?v=dfcdd6d6) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-display: swap;
  src: url(assets/fonts/prata-latin.woff2?v=a91597d6) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marck Script';
  font-display: swap;
  src: url(assets/fonts/marck-script-cyrillic.woff2?v=28a4e0e7) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Marck Script';
  font-display: swap;
  src: url(assets/fonts/marck-script-latin.woff2?v=6e2c7d44) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Claiming dark support stops forced-dark (Chrome, Samsung Internet); all colors are explicit, so it stays light */
  color-scheme: light dark;
  --zd: 1;
  --zm: 1;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color: #190b09;
  background: #fcf7f4;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.modal-open { overflow: hidden; }

@media (prefers-color-scheme: dark) {
  html { scrollbar-color: #d8b7b3 #fcf7f4; }
}

body {
  margin: 0;
  color: #190b09;
  background: #fcf7f4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; font-weight: 400; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, dialog { outline: none; -webkit-tap-highlight-color: transparent; }

.v-desktop { display: none; }
@media (min-width: 1024px) {
  .v-desktop { display: block; }
  .v-mobile { display: none; }
}

/* Font metrics (em) for the cap-height trim fallback below */
.ff-m { font-family: 'Montserrat', sans-serif; --asc: .968; --desc: .251; --cap: .7; }
.ff-p { font-family: 'Prata', serif; --asc: .993; --desc: .362; --cap: .8; }
.ff-s { font-family: 'Marck Script', cursive; }

/* Optical left alignment: a line starting with span.oa-* is shifted by its first glyph's side bearing (em) */
.ff-p .oa-k { margin-left: -.04em; }
.ff-p .oa-d { margin-left: .045em; }
.ff-p .oa-s { margin-left: -.054em; }
.ff-m .oa-p { margin-left: -.105em; }
.ff-m .oa-m,
.ff-m .oa-r { margin-left: -.118em; }
.ff-m .oa-s { margin-left: -.058em; }
.ff-m .oa-c { margin-left: -.05em; }

/* Figma "vertical trim: cap height to baseline". Elements using it set --fs and --lh. */
.trim { text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .trim {
    --half-leading: calc((var(--lh) - var(--fs) * (var(--asc) + var(--desc))) / 2);
    margin-top: calc(-1 * (var(--half-leading) + var(--fs) * (var(--asc) - var(--cap))));
    margin-bottom: calc(-1 * (var(--half-leading) + var(--fs) * var(--desc)));
  }
}
