@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f1eee6;
  --ink: #24242a;
  --blue: #2050bb;
  --green: #469b49;
  --orange: #e98030;
  --yellow: #e1b43d;
  --line: 3px solid var(--ink);
  --pad: clamp(1rem, 3.2vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
section,
footer {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

p {
  max-width: 65ch;
  line-height: 1.55;
  text-wrap: pretty;
}

.section-blurb {
  width: 100%;
  max-width: 540px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border: var(--line);
  background: var(--yellow);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad);
}

.wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark img {
  display: block;
  width: 3rem;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: transparent;
  background: var(--orange);
  color: var(--paper);
  outline: none;
}

.menu-toggle {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.0475em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 10.5rem);
  line-height: 0.78;
}

h1 span {
  color: var(--blue);
}

h2 {
  line-height: 0.86;
}

h3 {
  line-height: 0.9;
}

.hero {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 7.2rem var(--pad) 4.5rem;
  overflow: hidden;
  background: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 2.8vw, 3.5rem);
  align-items: center;
}

.hero-intro {
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span:last-child {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  align-self: start;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label span:first-child {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.52rem;
}

.games {
  position: relative;
  display: grid;
  min-height: 500px;
  grid-template-columns: 20% 80%;
  align-items: center;
  padding: 3.5rem var(--pad);
  overflow: hidden;
  background: var(--blue);
  color: var(--paper);
}

.games-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.games-copy h2,
.about-copy h2,
.contact-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.7rem, 7.2vw, 7.5rem);
}

.games-copy p {
  margin-bottom: 0;
}

.about {
  padding: 3.5rem var(--pad);
  background: var(--green);
  color: var(--paper);
}

.about-copy {
  margin: 2.75rem 0 3.5rem 20%;
}

.about-copy h2 {
  margin-bottom: 0;
}

.about-copy p {
  margin: 1.75rem 0 0;
}

.contact {
  display: grid;
  min-height: 440px;
  grid-template-columns: 20% 80%;
  padding: 3.5rem var(--pad);
  background: var(--yellow);
  color: var(--ink);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
  max-width: 900px;
}

.contact-copy > h2,
.contact-copy > p,
.contact-copy > a {
  margin: 0;
}

.email-link {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55em;
  padding: 0;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 600;
  text-decoration: none;
}

.email-link span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.email-link span:last-child {
  flex: 0 0 auto;
  transition: transform 100ms ease;
}

.email-link:hover span:last-child {
  transform: translate(3px, -3px);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.6rem var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
}

footer a {
  text-decoration: none;
}

.footer-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.footer-name img {
  display: block;
  width: 2.5rem;
  height: auto;
  filter: invert(1);
}

footer p {
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: 610px;
  }

  .games {
    grid-template-columns: 20% 80%;
  }

  .about-copy {
    margin-left: 10%;
  }
}

@media (max-width: 700px) {
  .site-header {
    right: 0;
    left: 0;
    width: auto;
    max-width: 100%;
    padding: 1rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 22;
    display: block;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 100px;
    background: var(--paper);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 7.5rem 1rem 4.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 6rem);
    line-height: 0.8;
  }

  .hero-intro {
    margin: 1.8rem 0 0;
  }

  .hero-copy {
    display: block;
  }

  .scroll-cue {
    position: static;
    width: fit-content;
    margin-top: 1.5rem;
  }

  .games,
  .contact {
    display: block;
    min-height: auto;
    padding: 2.75rem 1rem;
  }

  .games-copy,
  .contact-copy {
    margin-top: 3rem;
  }

  .games-copy h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(3.6rem, 17vw, 5.7rem);
  }

  .about {
    padding: 2.75rem 1rem;
  }

  .about-copy {
    display: block;
    margin: 3rem 0;
  }

  .about-copy p {
    margin-top: 1.8rem;
  }

  .contact {
    min-height: 470px;
  }

  .email-link {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .wordmark {
    gap: 0.45rem;
    font-size: 0.75rem;
  }

  .wordmark img {
    width: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
