:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --text-main: #dbe2e5;
  --text-faint: rgba(219, 226, 229, 0.5);
  --rule: rgba(255, 255, 255, 0.12);
  --shell-pad-x: clamp(1rem, 3vw, 2.75rem);
  --shell-pad-top: clamp(1.1rem, 3vw, 2rem);
  --shell-pad-bottom: clamp(1rem, 2.6vw, 1.6rem);
  --footer-line-offset: 1.05rem;
  --footer-reserve: clamp(5.2rem, 11vw, 7.1rem);
  --wordmark-b-space: -4px;
  --wordmark-a-space: -32px;
  --wordmark: "Syne", "Arial Black", sans-serif;
  --body: "Jost", "Helvetica Neue", sans-serif;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body::selection {
  background: rgba(219, 226, 229, 0.12);
}

#contours {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  padding:
    calc(var(--shell-pad-top) + env(safe-area-inset-top, 0px))
    var(--shell-pad-x)
    calc(var(--shell-pad-bottom) + env(safe-area-inset-bottom, 0px));
}

.hero-stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding-bottom: calc(var(--footer-reserve) + var(--shell-pad-bottom));
}

.hero {
  width: min(100%, 56rem);
  display: grid;
  justify-items: center;
  text-align: center;
}

.wordmark {
  margin: 0;
  width: max-content;
  max-width: 100%;
  font-family: var(--wordmark);
  font-size: clamp(3.9rem, 12vw, 8.5rem);
  line-height: 0.78;
  font-weight: 800;
  letter-spacing: -0.112em;
  text-transform: uppercase;
  color: var(--text-main);
  transform: translateX(-0.03em);
}

.wordmark > span {
  display: inline-block;
}

.wordmark-b {
  margin-right: var(--wordmark-b-space);
}

.wordmark-a {
  margin-right: var(--wordmark-a-space);
}

.colophon {
  position: absolute;
  left: var(--shell-pad-x);
  right: var(--shell-pad-x);
  bottom: calc(var(--shell-pad-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.colophon::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--footer-line-offset));
  right: -100vmax;
  bottom: calc(-1 * (var(--shell-pad-bottom) + env(safe-area-inset-bottom, 0px)));
  left: -100vmax;
  background: var(--bg);
  z-index: -1;
}

.colophon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--footer-line-offset));
  height: 1px;
  background: var(--rule);
}

.colophon-line {
  margin: 0;
  color: var(--text-faint);
  font-size: clamp(0.72rem, 0.82vw, 0.82rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.colophon-line:first-child {
  max-width: 46rem;
}

.colophon-line:last-child {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 900px) {
  :root {
    --footer-reserve: 6.4rem;
    --wordmark-b-space: -4px;
    --wordmark-a-space: -28px;
  }

  .wordmark {
    font-size: clamp(3.3rem, 13.4vw, 6.8rem);
  }
}

@media (max-width: 720px) {
  :root {
    --shell-pad-x: 1rem;
    --shell-pad-top: 1rem;
    --shell-pad-bottom: 0.95rem;
    --footer-line-offset: 0.92rem;
    --footer-reserve: 5.9rem;
    --wordmark-b-space: -3px;
    --wordmark-a-space: -22px;
  }

  .hero-stage {
    padding-bottom: calc(var(--footer-reserve) + 0.35rem);
  }

  .wordmark {
    font-size: clamp(2.85rem, 14vw, 5.25rem);
    letter-spacing: -0.102em;
    transform: translateX(-0.022em);
  }

  .colophon {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .colophon-line {
    font-size: 0.72rem;
    line-height: 1.44;
  }

  .colophon-line:first-child {
    max-width: min(22rem, 100%);
  }

  .colophon-line:last-child {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  :root {
    --footer-reserve: 5.5rem;
    --wordmark-b-space: -2px;
    --wordmark-a-space: -17px;
  }

  .hero-stage {
    padding-bottom: calc(var(--footer-reserve) + 0.2rem);
  }

  .wordmark {
    font-size: clamp(2.55rem, 13.8vw, 4.35rem);
    letter-spacing: -0.096em;
    transform: translateX(-0.015em);
  }

  .colophon-line {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .colophon {
    gap: 0.78rem;
  }
}

@media (max-width: 375px) {
  :root {
    --shell-pad-x: 0.9rem;
    --footer-reserve: 5.15rem;
    --wordmark-b-space: -2px;
    --wordmark-a-space: -14px;
  }

  .wordmark {
    font-size: clamp(2.35rem, 13.2vw, 3.9rem);
    transform: translateX(-0.01em);
  }

  .colophon-line {
    font-size: 0.64rem;
    line-height: 1.42;
  }

  .colophon-line:first-child {
    max-width: 19.5rem;
  }

  .colophon {
    gap: 0.82rem;
  }
}

@media (max-width: 320px) {
  :root {
    --shell-pad-x: 0.82rem;
    --footer-line-offset: 0.8rem;
    --footer-reserve: 4.75rem;
    --wordmark-b-space: -1px;
    --wordmark-a-space: -11px;
  }

  .hero-stage {
    padding-bottom: calc(var(--footer-reserve) + 0.1rem);
  }

  .wordmark {
    font-size: 2.12rem;
    letter-spacing: -0.092em;
    transform: translateX(-0.008em);
  }

  .colophon-line {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .colophon {
    gap: 0.74rem;
  }
}

@media (max-height: 620px) and (max-width: 430px) {
  :root {
    --footer-reserve: 4.8rem;
    --wordmark-b-space: -1px;
    --wordmark-a-space: -12px;
  }

  .hero-stage {
    align-items: center;
    padding-top: 0.15rem;
  }

  .wordmark {
    font-size: clamp(2.25rem, 12.8vw, 3.75rem);
  }
}
