@font-face {
  font-family: "BrandFont";
  src: url("../assets/fonts/TWKEverett-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #ffffff;
  --text-size: clamp(10px, 0.84vw, 13px);
  --gutter: calc(var(--text-size) * 0.75);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "BrandFont", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-transform: uppercase;
  letter-spacing: 0;
}

.background-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-image: var(--bg-image, none);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 120ms linear;
}

.background-layer.is-ready {
  opacity: 1;
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.bottom-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.col {
  grid-column: span 4;
  min-height: 1px;
}

p,
a {
  margin: 0;
  font-size: var(--text-size);
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.spacer {
  margin-top: 1.1em;
}

.keep-case {
  text-transform: none;
}

.blink {
  animation: blink 1.4s steps(1, end) infinite;
}

.mobile-info-toggle,
.mobile-info-panel,
.mobile-coming-soon {
  display: none;
}

.mobile-gap {
  margin-top: 0.85em;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --text-size: clamp(13px, 3.8vw, 16px);
  }

  body {
    overflow: auto;
    background-attachment: scroll;
  }

  .layout {
    min-height: 100%;
    justify-content: flex-start;
  }

  .top-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .top-row .col {
    grid-column: span 12;
  }

  .top-row .col:first-child p {
    font-size: var(--text-size);
  }

  .top-row .col:not(:first-child),
  .bottom-row {
    display: none;
  }

  .mobile-info-toggle {
    display: block;
    position: fixed;
    left: var(--gutter);
    bottom: var(--gutter);
    z-index: 3;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0;
    text-align: left;
    text-transform: uppercase;
    font: inherit;
    font-size: var(--text-size);
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
  }

  .mobile-coming-soon {
    display: block;
    position: fixed;
    right: var(--gutter);
    bottom: var(--gutter);
    z-index: 3;
    font-size: var(--text-size);
    line-height: 1.2;
    text-align: right;
    pointer-events: none;
    margin: 0;
  }

  .mobile-info-panel {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(var(--gutter) + 42px);
    z-index: 3;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: 52svh;
    overflow: auto;
  }

  .mobile-info-panel p,
  .mobile-info-panel a {
    font-size: var(--text-size);
  }

  .mobile-info-panel.is-open {
    display: block;
  }
}
