@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #0b0e14;
  --raised: #12161f;
  --text: #f4f7fc;
  --muted: #7a8499;
  --secondary: #b4bdce;
  --line: #2a3348;
  --accent: #3d8bff;
  --accent-hover: #5a9dff;
  --byr: #4c9aef;
  --stash: #f13624;
  --logicdmx: #20d4c4;
  --phase: #b06eff;
  --font: InterVariable, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

body {
  position: relative;
  isolation: isolate;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
.btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 4;
  padding: 8px 12px;
  background: var(--raised);
  color: var(--text);
}

.skip:focus {
  top: 12px;
}

.plot {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(61, 139, 255, 0.045) 0,
      rgba(61, 139, 255, 0.045) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(61, 139, 255, 0.045) 0,
      rgba(61, 139, 255, 0.045) 1px,
      transparent 1px,
      transparent 48px
    );
}

.nav,
main,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.mark {
  color: var(--accent);
  flex: none;
}

.nav nav {
  display: flex;
  gap: 20px;
}

.nav nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}

.nav nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  min-height: calc(100dvh - 64px);
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
  max-width: 14ch;
}

.lede {
  margin: 18px 0 0;
  max-width: 38ch;
  color: var(--secondary);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition-property: background-color, color, border-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent);
  color: #061018;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #061018;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--secondary);
}

.hero-frame {
  position: relative;
  margin: 0;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid rgba(61, 139, 255, 0.85);
  color: #d7e6ff;
  background: rgba(11, 14, 20, 0.72);
  transform: rotate(-6deg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.stamp strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.fleet {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 88px;
}

.fleet h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.fleet > p {
  margin: 10px 0 28px;
  max-width: 58ch;
  color: var(--secondary);
  text-wrap: pretty;
}

.fleet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.fleet-list a {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  grid-template-areas:
    "chip name meta"
    "chip host host"
    "chip blurb blurb";
  column-gap: 12px;
  row-gap: 4px;
  padding: 20px 12px 20px 4px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  min-height: 40px;
  transition-property: background-color;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fleet-list a:hover {
  background: rgba(61, 139, 255, 0.06);
  color: inherit;
}

.chip {
  grid-area: chip;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--accent);
}

.chip[data-product="byr"] {
  background: var(--byr);
}
.chip[data-product="stash"] {
  background: var(--stash);
}
.chip[data-product="logicdmx"] {
  background: var(--logicdmx);
}
.chip[data-product="phase"] {
  background: var(--phase);
}

.fleet-name {
  grid-area: name;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.fleet-meta {
  grid-area: meta;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  align-self: center;
}

.fleet-host {
  grid-area: host;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.fleet-blurb {
  grid-area: blurb;
  color: var(--secondary);
  font-size: 14px;
  max-width: 48ch;
}

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 13px;
}

.foot p {
  margin: 0 0 8px;
}

.foot a {
  color: var(--secondary);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

.sep {
  color: var(--line);
}

@media (max-width: 767px) {
  .nav nav {
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 20px;
    min-height: unset;
  }

  h1 {
    max-width: none;
  }

  .fleet-list {
    grid-template-columns: 1fr;
  }

  .stamp {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .fleet-list a {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-frame {
    animation: enter 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-frame {
    animation-delay: 90ms;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
