@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #12141c;
  --panel: #171922;
  --ink: #f2efe8;
  --muted: #8b90a0;
  --line: rgba(242, 239, 232, 0.12);
  --coral: #e07a5f;
  --sage: #7dba9a;
  --sky: #5aa6d6;
  --star: #f3e2b3;
  --brass: #c4a574;
  --page: min(72rem, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(196, 165, 116, 0.7);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection {
  background: rgba(224, 122, 95, 0.35);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 20, 28, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.7rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
}

.wordmark-text strong {
  display: block;
  font-family: Syne, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 0.45rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 2.2rem 0 3.2rem;
  min-height: calc(100svh - 4.25rem);
  align-items: center;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: clamp(2.05rem, 6.4vw, 3.55rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 10.5em;
}

.lede {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.rig {
  margin: 0;
  max-width: 16.5rem;
  justify-self: center;
  overflow: hidden;
  background: #12151e;
  border: 1.5px solid rgba(196, 165, 116, 0.55);
  border-radius: 1.35rem;
}

.rig svg {
  display: block;
  width: 100%;
  height: auto;
}

.piece {
  transform-box: fill-box;
  transform-origin: center;
}

.piece-groove {
  animation: groove-slide 9s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
}

.piece-sage {
  animation: fidget-sage 13s ease-in-out infinite;
}

.piece-sky {
  animation: fidget-sky 15s ease-in-out infinite;
}

.piece-coral {
  animation: fidget-coral 12s ease-in-out infinite;
}

.piece-star {
  animation: fidget-star 11s ease-in-out infinite 0.4s;
}

.piece-ring {
  animation: turn-ring 18s ease-in-out infinite;
}

@keyframes groove-slide {
  0%,
  12% {
    transform: translateX(0);
  }
  44%,
  56% {
    transform: translateX(136px);
  }
  88%,
  100% {
    transform: translateX(0);
  }
}

@keyframes fidget-sage {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  35% {
    transform: translate(8px, -6px) rotate(-4deg);
  }
  68% {
    transform: translate(3px, 5px) rotate(3deg);
  }
}

@keyframes fidget-sky {
  0%,
  100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  42% {
    transform: rotate(7deg) translate(-7px, 9px);
  }
  72% {
    transform: rotate(-3deg) translate(4px, -4px);
  }
}

@keyframes fidget-coral {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, 7px) rotate(6deg);
  }
}

@keyframes fidget-star {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  40% {
    transform: translate(-12px, -8px) rotate(-10deg);
  }
  70% {
    transform: translate(-4px, 4px) rotate(4deg);
  }
}

@keyframes turn-ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(48deg);
  }
  70% {
    transform: rotate(-18deg);
  }
}

.band {
  padding: 4.2rem 0;
  border-top: 1px solid var(--line);
}

.band.plain {
  border-top: 0;
  padding-top: 1.4rem;
}

.band h2 {
  margin: 0 0 1rem;
  font-family: Syne, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #c8c4bb;
}

.prose p:last-child {
  margin-bottom: 0;
}

.game {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
}

.game header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.game h3 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: 1.7rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
}

.game p {
  margin: 0;
  color: #c8c4bb;
  max-width: 40rem;
}

.mail {
  font-family: Syne, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
}

.mail:hover {
  color: var(--coral);
}

.note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.site-footer {
  margin-top: auto;
  padding: 2.1rem 0 2.4rem;
  border-top: 1px solid rgba(196, 165, 116, 0.35);
  background: #10121a;
}

.legal {
  margin: 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal p {
  margin: 0;
}

.legal .entity {
  color: var(--ink);
}

.legal a {
  color: var(--ink);
}

.page-head {
  padding: 2.6rem 0 0.4rem;
}

.page-head h1 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.lost {
  padding: 4rem 0 5rem;
}

.lost h1 {
  margin: 0 0 0.8rem;
  font-family: Syne, sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.85fr);
    gap: 3.5rem;
    min-height: 0;
    padding: 2rem 0 3rem;
  }

  .rig {
    justify-self: end;
  }

  .game {
    padding: 1.7rem 1.7rem 1.8rem;
  }
}

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

  .piece {
    animation: none;
  }
}
