@font-face {
  font-family: "Rajdhani";
  src: url("/static/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/static/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/static/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/static/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/static/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #04090d;
  --panel: rgba(7, 24, 32, 0.88);
  --live: #5ce0ff;
  --test: #ffbd4d;
  --ink: #e0f2ff;
  --dim: #8fb0c2;
  --faint: #5c7887;
  --danger: #ff6157;
  --line: rgba(92, 224, 255, 0.34);
  --line-faint: rgba(92, 224, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--live);
}

a:focus-visible,
.download:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 4px;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(90deg, rgba(4, 9, 13, 0.96) 0%, rgba(4, 9, 13, 0.78) 34%, rgba(4, 9, 13, 0.08) 62%, rgba(4, 9, 13, 0) 100%),
    linear-gradient(0deg, rgba(4, 9, 13, 0.9) 0%, rgba(4, 9, 13, 0) 30%),
    url("/static/hero.jpg") center right / cover no-repeat,
    var(--void);
}

.stage.quiet {
  background:
    linear-gradient(0deg, rgba(4, 9, 13, 0.82), rgba(4, 9, 13, 0.82)),
    url("/static/hero.jpg") center right / cover no-repeat,
    var(--void);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(16px, 5vw, 64px);
}

.top img {
  height: 34px;
  width: auto;
  display: block;
}

.top a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 500;
}

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

.copy {
  align-self: center;
  max-width: 560px;
  padding: 0 clamp(16px, 5vw, 64px);
}

.title {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  margin: 18px 0 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--live);
}

.copy p {
  margin: 16px 0 0;
  color: var(--dim);
  max-width: 46ch;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 14px 28px 13px;
  background: var(--live);
  color: #03141b;
  border-radius: 3px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.download:hover {
  background: #8aeaff;
}

.download.off {
  background: transparent;
  color: var(--faint);
  border: 1px solid var(--line-faint);
  pointer-events: none;
}

.meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--faint);
}

.track {
  position: relative;
  height: 2px;
  margin: 0 clamp(16px, 5vw, 64px) 26px;
  background: var(--line-faint);
}

.track::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, var(--live), rgba(92, 224, 255, 0));
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 64px) 26px;
  font-size: 14px;
  color: var(--faint);
}

.card {
  align-self: center;
  justify-self: center;
  width: min(520px, calc(100% - 32px));
  padding: 34px 36px 30px;
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-left: 3px solid var(--live);
  border-radius: 4px;
}

.card.warn {
  border-left-color: var(--test);
}

.card.bad {
  border-left-color: var(--danger);
}

.card h1 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
}

.card p {
  margin: 12px 0 0;
  color: var(--dim);
}

@media (max-width: 640px) {
  .stage {
    background:
      linear-gradient(0deg, rgba(4, 9, 13, 0.97) 0%, rgba(4, 9, 13, 0.86) 55%, rgba(4, 9, 13, 0.3) 100%),
      url("/static/hero.jpg") 62% center / cover no-repeat,
      var(--void);
  }

  .copy {
    align-self: end;
    padding-bottom: 28px;
  }

  .foot {
    flex-direction: column;
    gap: 4px;
  }
}
