@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-variable-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-regular-v1.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  color: #fff;
  background: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: rgba(255, 255, 255, 0.56);
  --quiet: rgba(255, 255, 255, 0.4);
}

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

html {
  min-width: 20rem;
  min-height: 100%;
  background: #000;
  scrollbar-gutter: stable;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background: #000;
}

@supports (min-height: 100svh) {
  body {
    min-height: 100svh;
  }
}

a {
  color: inherit;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.home-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

@supports (min-height: 100svh) {
  .home-page {
    min-height: 100svh;
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 0 0 auto;
  width: min(100%, 80rem);
  margin-inline: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left));
}

.site-wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  transition: opacity 160ms ease-out, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.site-wordmark:active {
  transform: scale(0.97);
}

.home-main {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  place-items: center;
  padding: clamp(3rem, 8vh, 7rem) max(1.5rem, env(safe-area-inset-right)) clamp(3rem, 8vh, 7rem) max(1.5rem, env(safe-area-inset-left));
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 72rem);
}

.hero-lockup h1 {
  margin: 0;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.25rem, 7.5vw, 7.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.store-links {
  display: flex;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
}

.store-link {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.75rem;
  opacity: 0.4;
  transition: opacity 160ms ease-out, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.store-link img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.store-link img.store-icon-android {
  width: 1.75rem;
  height: 1.75rem;
}

.store-link:focus-visible {
  opacity: 1;
}

.store-link:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .store-link:hover {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .store-link {
    opacity: 1;
    transition-duration: 80ms;
  }

  .store-link:active {
    opacity: 0.68;
  }
}

.site-footer {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(100%, 80rem);
  margin-inline: auto;
  padding: 1.5rem max(1.5rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  font-size: 0.8125rem;
  line-height: 1.3;
}

.site-copyright {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease-out;
}

.footer-links a[aria-current="page"] {
  color: #fff;
}

.language-control {
  flex: 0 0 auto;
}

.language-toggle {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease-out, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}

.language-toggle:focus-visible {
  border-radius: 0.375rem;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.language-toggle:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover,
  .language-toggle:hover {
    color: #fff;
  }
}

.legal-page {
  display: flex;
  flex-direction: column;
}

.legal-main {
  width: min(100%, 52rem);
  flex: 1;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7rem) 1.5rem clamp(5rem, 10vh, 7rem);
}

.legal-main > h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: normal;
  font-size: clamp(2.625rem, 7vw, 4rem);
  font-weight: 600;
  font-stretch: normal;
  line-height: 1;
  letter-spacing: normal;
  hyphens: manual;
}

.legal-section {
  max-width: 42.5rem;
  margin-top: clamp(3.5rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: normal;
}

.legal-basis {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-group {
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
}

.contact-group address,
.contact-group p,
.legal-facts {
  font-size: 1rem;
  line-height: 1.65;
}

.contact-details address {
  font-style: normal;
}

.contact-details p {
  margin: 1rem 0 0;
}

.contact-label,
.legal-facts dt {
  color: var(--muted);
}

.legal-facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.legal-facts div {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.8fr) minmax(0, 1fr);
  gap: 1rem;
}

.legal-facts dt,
.legal-facts dd {
  margin: 0;
}

.error-page .legal-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
}

.error-code {
  margin: 0 0 1rem;
  color: var(--quiet);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.back-link {
  align-self: flex-start;
  margin-top: 2rem;
  color: var(--muted);
}

@media (max-width: 36rem) {
  .site-footer {
    justify-content: center;
    gap: 0.625rem 1rem;
    padding-top: 1rem;
    font-size: 0.75rem;
  }

  .site-copyright {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    gap: 0.625rem 1rem;
  }

  .contact-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .legal-facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-height: 31rem) {
  .home-main {
    padding-block: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
