:root {
  color-scheme: dark;
  --gold: #f4a91b;
  --gold-hot: #ffd56a;
  --gold-pale: #fff1ba;
  --cream: #fff2d1;
  --red: #b50904;
  --red-hot: #ff3a16;
  --blue: #234f8f;
  --wood: #140804;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(192, 78, 4, 0.28), transparent 32rem),
    #020100;
  color: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.hero {
  position: relative;
  width: min(100%, calc(100svh * 0.563), 943px);
  min-height: 100svh;
  overflow: hidden;
  background: #090301;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: image-set(
    url("./assets/cowboy-bg.webp") type("image/webp"),
    url("./assets/cowboy-bg.png") type("image/png")
  );
  background-position: center;
  background-size: cover;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: -3;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(255, 172, 38, 0.16), transparent 29%),
    radial-gradient(ellipse at 50% 74%, rgba(255, 112, 0, 0.24), transparent 25%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.68));
}

.hero::after {
  z-index: 6;
  background: radial-gradient(ellipse at 50% 53%, transparent 0 56%, rgba(0, 0, 0, 0.38) 100%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  padding: clamp(0.9rem, 3.2svh, 2.6rem) clamp(0.75rem, 4vw, 2.25rem) 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-lockup {
  position: relative;
  z-index: 4;
  display: block;
  width: min(96%, 51rem);
  margin: clamp(3rem, 8svh, 5.9rem) auto 0;
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1.1rem rgba(255, 127, 6, 0.36));
}

.top-stars {
  display: grid;
  width: min(46vw, 16.5rem);
  height: clamp(1.25rem, 3.6svh, 2.3rem);
  grid-template-columns: 1fr repeat(3, auto) 1fr;
  align-items: center;
  gap: clamp(0.38rem, 1.4vw, 0.65rem);
  margin-bottom: clamp(0.05rem, 0.6svh, 0.28rem);
}

.top-stars span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 191, 61, 0.95), transparent);
}

.top-stars i {
  width: clamp(0.66rem, 2.7vw, 1.1rem);
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 94%, 50% 71%, 20% 94%, 32% 56%, 2% 35%, 39% 35%);
  background: linear-gradient(180deg, #fff4bd, #ffc22b 45%, #8b4300 100%);
  filter: drop-shadow(0 0 0.38rem rgba(255, 174, 28, 0.9));
}

.brand {
  display: block;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 18.2vw, 10.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.82;
  background: linear-gradient(180deg, #fff8cf 0%, #ffd65d 29%, #a64d02 66%, #fff0ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.043em, 5px) #ffefb4;
  text-shadow:
    0 0.03em 0 #692800,
    0 0.085em 0 #160500,
    0 0 0.13em rgba(255, 232, 141, 0.95),
    0 0 0.34em rgba(255, 133, 6, 0.82);
}

.subtitle {
  display: grid;
  width: min(100%, 39rem);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.5rem, 2.1vw, 1rem);
  margin-top: clamp(0.55rem, 1.25svh, 0.95rem);
}

.subtitle span {
  height: 0.18rem;
  background:
    linear-gradient(90deg, transparent, #15498f 25%, #faf3e2 50%, #c60c10 76%, transparent),
    linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 0.72rem rgba(255, 155, 10, 0.74);
}

.subtitle p {
  margin: 0;
  color: #fff4dc;
  font-size: clamp(1.34rem, 5.85vw, 3rem);
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 0.1em 0 rgba(0, 0, 0, 0.98),
    0 0 0.55em rgba(255, 174, 45, 0.58);
  white-space: nowrap;
}

#page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.arch-glow {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: clamp(7.7rem, 18svh, 12.2rem);
  width: min(68vw, 38rem);
  aspect-ratio: 1.35;
  border-radius: 50% 50% 8% 8%;
  box-shadow:
    0 0 1.7rem rgba(255, 176, 44, 0.34),
    inset 0 -1.8rem 2.4rem rgba(255, 124, 0, 0.16);
  transform: translateX(50%);
  pointer-events: none;
}

.character {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: clamp(10rem, 22svh, 14.2rem);
  display: block;
  width: min(39vw, 21rem);
  max-width: 43%;
  height: auto;
  filter: drop-shadow(0 1.2rem 1.15rem rgba(0, 0, 0, 0.78));
  transform: translateX(50%);
}

.cta {
  position: absolute;
  z-index: 7;
  right: clamp(1rem, 8.5%, 5rem);
  bottom: clamp(1rem, 3.3svh, 2.7rem);
  left: clamp(1rem, 8.5%, 5rem);
  display: inline-flex;
  min-height: clamp(4.6rem, 10.2svh, 7.4rem);
  align-items: center;
  justify-content: center;
  border: clamp(0.13rem, 0.4vw, 0.24rem) solid #ffbd4d;
  border-radius: clamp(1rem, 3vw, 1.65rem);
  background:
    linear-gradient(180deg, rgba(255, 65, 30, 0.8), transparent 30%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 235, 148, 0.34), transparent 58%),
    linear-gradient(180deg, #dc180a 0%, #810400 48%, #290000 100%);
  box-shadow:
    inset 0 0 0 0.18rem rgba(255, 40, 18, 0.84),
    inset 0 0 1.7rem rgba(255, 190, 54, 0.38),
    0 0 0.5rem rgba(255, 240, 164, 0.95),
    0 0 1.8rem rgba(255, 82, 0, 0.9),
    0 1rem 2rem rgba(0, 0, 0, 0.82);
  color: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(2.75rem, 10.8vw, 5.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0.05em 0 #793100,
    0 0.08em 0 #120000,
    0 0 0.36em rgba(255, 227, 134, 0.46);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.cta span {
  transform: translateY(-0.08em);
}

.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 0.2rem solid #fff;
  outline-offset: 0.35rem;
}

@media (max-width: 560px) {
  .hero {
    width: 100%;
  }

  .hero-copy {
    padding-top: clamp(0.85rem, 2.55svh, 1.55rem);
  }

  .brand {
    font-size: clamp(3.85rem, 18.8vw, 5.25rem);
  }

  .subtitle {
    margin-top: 0.48rem;
  }

  .subtitle p {
    font-size: clamp(1.28rem, 6.1vw, 1.78rem);
  }

  .character {
    bottom: clamp(8.6rem, 20svh, 10.8rem);
    width: min(44vw, 14.8rem);
    max-width: 46%;
  }

  .arch-glow {
    bottom: clamp(6.5rem, 15.5svh, 8.6rem);
    width: min(77vw, 26rem);
  }

  .cta {
    right: 1rem;
    bottom: clamp(0.85rem, 2.3svh, 1.25rem);
    left: 1rem;
    min-height: clamp(4.25rem, 9svh, 5rem);
    border-radius: 1rem;
    font-size: clamp(2.45rem, 10.8vw, 3.35rem);
  }
}

@media (max-height: 730px) {
  .top-stars {
    height: 1.15rem;
    margin-bottom: 0;
  }

  .brand {
    font-size: clamp(3.35rem, 13.4svh, 7rem);
  }

  .subtitle p {
    font-size: clamp(1.15rem, 4.1svh, 2rem);
  }

  .character {
    bottom: clamp(7.7rem, 18svh, 9.8rem);
    width: min(31svh, 17.5rem);
  }

  .cta {
    min-height: clamp(3.9rem, 8.8svh, 5.1rem);
    font-size: clamp(2.1rem, 7.1svh, 3.5rem);
  }
}
