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

:root {
  color-scheme: light dark;
  --text: #333333;
  --background: #ffffff;
  --shadow-near: rgb(0 0 0 / 0.35);
  --shadow-far: rgb(0 0 0 / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --background: #121212;
    --shadow-near: rgb(0 0 0 / 0.8);
    --shadow-far: rgb(0 0 0 / 0.6);
  }
}

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

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--background);
}

main {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  min-height: 100vh; /* fallback for older browsers */
  min-height: 100svh; /* excludes mobile browser toolbars */
  padding: 1rem;
  text-align: center;
}

h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2rem, 1rem + 6vw, 6rem);
  font-weight: 200;
  text-shadow:
    0.02em 0.02em 0.04em var(--shadow-near),
    0.04em 0.06em 0.15em var(--shadow-far);
}

p {
  margin: 0;
  font-size: clamp(1rem, 0.75rem + 1vw, 1.5rem);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}
