/* ==========================================================================
   Fonts
   ========================================================================== */

/* Montserrat 7.222 static, the version the Figma design is set in (the current variable 9.0 has other
   Cyrillic widths). One file per style keeps kerning between Cyrillic letters and punctuation. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/montserrat-300.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-400.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-500.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-600.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/caveat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") 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;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --color-dark: #23252a;
  --color-sand: #ccb796;
  --color-beige: #e1dbd3;
  --color-olive: #5f6650;
  --color-milk: #f5f4f2;
  --color-grey: #e4e4e4;
  --color-white: #fff;
  --color-online: #2fdbc3;
  --color-free: #c5da6e;
  --color-booked: #406b97;
  --color-sold: #9c0000;

  --font-base: "Montserrat", "Arial", sans-serif;
  --font-accent: "Caveat", cursive;

  --tracking: 0.02em;
  --tracking-wide: 0.23em;

  --section-space: 16.4rem;
  --gutter: 2rem;
  --transition: 0.3s ease;
}

/* 1rem = 10px from 1920px, exactly as in the design. Narrower desktops (down to 1280px) scale proportionally
   to the width next to a classic scrollbar (--scrollbar is measured in <head>), so the page is not squeezed.
   Below 1280px 1rem stays 10px and sections switch to their tablet/mobile layouts. */
html {
  font-size: 10px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1280px) and (max-width: 1919.98px) {
  html {
    font-size: calc((100vw - var(--scrollbar, 0px)) / 192);
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

/* Tracking is relative to each element's own font size, as in Figma */
*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: var(--tracking);
}

body {
  margin: 0;
  min-width: 32rem;
  font-family: var(--font-base);
  font-size: max(2rem, 15px);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
  overflow-x: clip;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

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

button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

em {
  font-style: normal;
}

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

/* ==========================================================================
   Helpers
   ========================================================================== */

.container {
  position: relative;
  width: 100%;
  max-width: 192rem;
  margin-inline: auto;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
