@font-face {
  font-family: "Old Standard TT";
  src: url("/assets/fonts/OldStandard-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background-color: #080e1c;
  color: #eee9df;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 100% 0%, #20324d 0%, #080e1c 76%);
}

main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem;
  place-items: center;
}

h1 {
  margin: 0;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

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

.language-switch {
  position: fixed;
  z-index: 1;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  margin: 0;
  padding: 0.5rem 0.35rem;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.8;
}

.language-switch:hover {
  opacity: 1;
}

.language-switch:has(input:focus-visible) {
  outline: 1px solid currentColor;
  outline-offset: 0.15rem;
}

.heading-ru,
.language-switch__ru {
  display: none;
}

body:has(#language-ru:checked) .heading-en,
body:has(#language-ru:checked) .language-switch__en {
  display: none;
}

body:has(#language-ru:checked) .heading-ru,
body:has(#language-ru:checked) .language-switch__ru {
  display: inline;
}
