@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/rajdhani-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/rajdhani-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #0c1115;
  --cream: #d6c3a5;
  --cream-muted: #8a8172;
  --rust: #a23725;
  --orange: #d86a11;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--cream);
  font-family: "Rajdhani", "Arial Narrow", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything, including the logo, so the opaque logo's
   slightly noisy edge blends into the page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: url("/noise.svg") repeat;
  background-size: 200px 200px;
  opacity: 0.08;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(640px, 100%);
  margin: 0;
  line-height: 0;
}

.logo--small {
  width: min(400px, 100%);
}

/* The logo PNG is opaque with a textured background; fade its outer edges so
   no rectangle shows against the page. The artwork sits well inside the fade. */
.logo img {
  display: block;
  width: 100%;
  height: auto;
  mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  mask-composite: intersect;
}

.title {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* Button flanked by striped "wings" echoing the logo's orange chevrons. */
.cta {
  --stripe: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--rust);
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s, border-color 0.15s;
}

.cta::before,
.cta::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 0.875rem;
  background: repeating-linear-gradient(to bottom, var(--stripe) 0 2px, transparent 2px 5px);
}

.cta::before {
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.cta::after {
  clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%);
}

.cta:hover,
.cta:focus-visible {
  --stripe: var(--cream);
  background: var(--rust);
  border-color: var(--orange);
}

.cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.footer {
  padding: 1.5rem 1rem;
  color: var(--cream-muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 360px) {
  .cta {
    gap: 0.5rem;
    padding-inline: 0.75rem;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }

  .cta::before,
  .cta::after {
    width: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
