:root {
  --bg0: #0b1624;
  --bg1: #1f3a58;
  --ivory: #f7f4ee;
  --gold: #d7c4a0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 18%, rgb(215 196 160 / 10%), transparent 34%),
    linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 100%);
}

button {
  font: inherit;
}

.page {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

.page::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 82% 76%, rgb(247 244 238 / 5%), transparent 38%);
  content: "";
  pointer-events: none;
}

.site-header {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3.5rem);
  right: clamp(1.5rem, 4vw, 3.5rem);
  left: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1.2vw, 1rem);
}

.langs button {
  padding: 0.25rem 0 0.35rem;
  color: rgb(247 244 238 / 58%);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.langs button:hover,
.langs button:focus-visible {
  color: var(--ivory);
}

.langs button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.35rem;
}

.langs button[aria-current="true"] {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.hero {
  width: min(100%, 58rem);
  margin: auto;
  text-align: center;
  animation: hero-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  display: block;
  width: clamp(5.5rem, 12vw, 8.5rem);
  height: auto;
  margin: 0 auto clamp(1.25rem, 3vh, 2rem);
  filter: drop-shadow(0 0.5rem 1.25rem rgb(0 0 0 / 35%));
}

.brand {
  margin: 0;
  padding-left: 0.28em;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.25rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.28em;
}

.rule {
  width: clamp(3.5rem, 7vw, 5rem);
  height: 1px;
  margin: clamp(2rem, 5vh, 3.5rem) auto;
  background: var(--gold);
  opacity: 0.8;
}

.tagline {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
}

.description {
  width: min(100%, 44rem);
  margin: clamp(1.6rem, 4vh, 2.5rem) auto 0;
  padding-top: clamp(1.4rem, 3vh, 2rem);
  color: rgb(247 244 238 / 72%);
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
  border-top: 1px solid rgb(215 196 160 / 35%);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 1.25rem;
  }

  .site-header {
    top: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
  }

  .langs {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .brand-mark {
    width: clamp(4.5rem, 22vw, 6rem);
    margin-bottom: 1rem;
  }

  .brand {
    font-size: clamp(3rem, 17vw, 4.75rem);
    letter-spacing: 0.2em;
  }

  .description {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }

  .langs button {
    transition: none;
  }
}
