:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --title-font: "Bebas Neue", "Impact", "Arial Black", sans-serif;
  --body-font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;600&display=swap");

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
}

body {
  display: grid;
  place-items: center;
}

#optionsButton {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.stage {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: min(3vw, 40px);
  padding: min(4vh, 40px) min(4vw, 48px);
  align-items: center;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(12px, 1.1vw, 18px);
  color: var(--muted);
}

#projectName {
  font-family: var(--title-font);
  font-size: clamp(48px, 6vw, 140px);
  letter-spacing: 0.05em;
  line-height: 0.95;
  margin: 8px 0 10px;
}

.meta {
  font-size: clamp(14px, 1.4vw, 24px);
  color: var(--muted);
}

.left {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: min(2vh, 18px);
  min-width: 0;
}

.links {
  display: flex;
  gap: min(1.2vw, 12px);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: min(2.2vh, 26px);
}

.cta {
  display: inline-block;
  padding: clamp(10px, 1.2vw, 16px) clamp(16px, 1.8vw, 24px);
  border: 2px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(12px, 1.05vw, 17px);
}

.landing-qr {
  display: grid;
  justify-items: center;
  gap: min(1.8vh, 16px);
}

.right {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.landing-qr-cta {
  font-family: var(--title-font);
  font-size: clamp(26px, 2.6vw, 52px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-qr canvas {
  width: min(40vw, 62vh);
  height: min(40vw, 62vh);
  background: #fff;
  padding: clamp(10px, 1vw, 16px);
}

.landing-qr-link {
  font-size: clamp(12px, 1vw, 16px);
  color: var(--muted);
  max-width: min(38vw, 620px);
  overflow-wrap: anywhere;
  text-align: center;
}

.landing-qr-note {
  display: none;
  font-size: clamp(12px, 0.95vw, 15px);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.qr-blurred .landing-qr canvas,
.qr-blurred .landing-qr-link {
  filter: blur(16px);
}

.qr-blurred .landing-qr-note {
  display: block;
}

.cta.secondary {
  border-color: #444;
  color: #cfcfcf;
}

.cta:hover {
  background: #111;
}

@media (max-width: 1100px) {
  body {
    place-items: stretch;
  }

  .stage {
    width: 100%;
    height: auto;
    min-height: 100%;
    grid-template-columns: 1fr;
    padding: 56px 20px 20px;
    gap: 20px;
  }

  .left {
    justify-items: center;
    text-align: center;
  }

  .links {
    justify-content: center;
  }

  .landing-qr canvas {
    width: min(70vw, 420px);
    height: min(70vw, 420px);
  }

  .landing-qr-link {
    max-width: min(92vw, 680px);
  }
}
