@font-face {
  font-family: "Geist";
  src: local("Arial");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #080808;
  --surface: #0e0e0e;
  --foreground: #f1f1ed;
  --muted: #767672;
  --line: #2a2a28;
  --hover-line: #545451;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--background);
  background-size: 64px 64px;
  color: var(--foreground);
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 64px) 28px;
}

.brand {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.brand__logo {
  display: block;
  width: clamp(240px, 30vw, 426px);
  height: auto;
}

.boards {
  display: flex;
  width: min(100%, 980px);
  flex-direction: column;
  align-self: center;
  justify-self: center;
  border-top: 1px solid var(--line);
}

.board {
  position: relative;
  display: grid;
  min-height: clamp(92px, 10vw, 132px);
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  padding-inline: clamp(20px, 2.25vw, 32px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    color 420ms var(--ease),
    background-color 420ms var(--ease),
    border-color 420ms var(--ease);
}

.board__index,
.board__status,
.footer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board__label {
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.board__status {
  transition: opacity 260ms ease;
}

.board__soon {
  display: none;
  color: var(--foreground);
  letter-spacing: -0.04em;
}

.board--disabled {
  color: #555552;
  cursor: not-allowed;
  user-select: none;
}

.board--disabled:hover {
  color: var(--foreground);
  border-color: var(--hover-line);
}

.board--disabled:hover .board__default,
.board--disabled:hover .board__status {
  display: none;
}

.board--disabled:hover .board__soon {
  display: inline;
}

.board--active {
  overflow: hidden;
}

.board--active::before {
  position: absolute;
  inset: 0;
  background: var(--foreground);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 480ms var(--ease);
  z-index: 0;
}

.board--active > * {
  position: relative;
  z-index: 1;
}

.board--active:hover,
.board--active:focus-visible {
  color: var(--background);
}

.board--active:hover::before,
.board--active:focus-visible::before {
  transform: scaleY(1);
}

.board--active:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.board--active:active {
  transform: translateY(1px);
}

.board__arrow {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300;
  transition: transform 420ms var(--ease);
}

.board--active:hover .board__arrow,
.board--active:focus-visible .board__arrow {
  transform: translate(5px, -5px);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .shell {
    padding: 22px 18px 20px;
  }

  .brand {
    min-height: 72px;
  }

  .brand__logo {
    width: min(100%, 310px);
  }

  .board {
    min-height: 94px;
    grid-template-columns: 36px 1fr auto;
    padding-inline: 16px;
  }

  .board__label {
    font-size: clamp(29px, 10vw, 44px);
  }

  .board__status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
