@font-face {
  font-family: "Red Hat Display";
  src: url("./assets/RedHatDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("./assets/RedHatDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #08111b;
  --ink: #f6f3ec;
  --muted: #c3d1de;
  --gold: #ffca4b;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(0deg, var(--base), transparent 32%),
    linear-gradient(90deg, #08111bf7 5%, #08111be8 29%, #08111b94 62%, #08111b35),
    url("./assets/stadium-office.webp") center right / cover no-repeat,
    var(--base);
  color: var(--ink);
  font: 400 1rem/1.5 "Red Hat Display", system-ui, sans-serif;
}

.wrap { width: min(100% - 5rem, 76rem); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid #c3d1de32;
}

.wordmark { display: block; width: clamp(11rem, 22vw, 17rem); height: auto; }
.languages { position: relative; }

.languages summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.65rem;
  padding-inline: .75rem;
  border: 1px solid #8197aa;
  border-radius: .35rem;
  background: #0d1925;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.languages summary::-webkit-details-marker { display: none; }

.chevron {
  width: .42rem;
  height: .42rem;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-.12rem) rotate(45deg);
}

.languages ul {
  position: absolute;
  z-index: 1;
  inset: calc(100% + .45rem) 0 auto auto;
  width: max-content;
  margin: 0;
  padding: .25rem;
  border: 1px solid #8197aa;
  border-radius: .4rem;
  background: #0d1925;
  list-style: none;
}

.languages a {
  display: block;
  padding: .48rem .65rem;
  border-radius: .2rem;
  color: var(--ink);
  text-decoration: none;
}

.languages a:hover, .languages [aria-current] { background: #243849; }
.languages [aria-current] { color: var(--gold); }

.stage {
  display: grid;
  flex: 1;
  align-items: center;
  padding-block: clamp(3rem, 10vw, 7.5rem);
}

.message { max-width: 49rem; }

.message::before {
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-bottom: 1.4rem;
  background: var(--gold);
  content: "";
}

.message h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7.1vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

.message h1 span { display: block; color: var(--gold); }

.message p {
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.steam {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 3rem;
  padding: .6rem 1.05rem;
  border-radius: .35rem;
  background: var(--gold);
  color: var(--base);
  font-weight: 700;
  text-decoration: none;
}

.steam:hover { background: #ffdc7a; }

.footer {
  padding-block: 1rem 1.4rem;
  border-top: 1px solid #c3d1de32;
  color: var(--muted);
  font-size: .88rem;
}

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

@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .top { padding-block: 1.15rem; }
  body {
    background:
      linear-gradient(0deg, var(--base) 0%, #08111be0 46%, #08111b5c 100%),
      url("./assets/stadium-office.webp") 63% top / cover no-repeat,
      var(--base);
  }
}
