:root {
  color-scheme: dark;
  --ink: #f0c28d;
  --ink-muted: rgba(240, 194, 141, 0.82);
  --edge: rgba(240, 194, 141, 0.16);
  --void: #020813;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
}

body {
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: var(--void);
}

.image-layer,
.shade-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.image-layer {
  background-image: url("/assets/protoron-background-tall.png");
  background-position: 50% 50%;
  background-size: cover;
  transform: scale(1.01);
  animation: settle 1800ms ease-out both;
}

.shade-layer {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 7, 15, 0.88) 0%, rgba(1, 7, 15, 0.46) 34%, rgba(1, 7, 15, 0.08) 66%),
    linear-gradient(180deg, rgba(1, 7, 15, 0.76) 0%, rgba(1, 7, 15, 0.08) 36%, rgba(1, 7, 15, 0.36) 100%);
}

.site-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(100% - 48px, 1240px);
  height: 74px;
  margin: 0 auto;
  border-top: 2px solid rgba(14, 154, 255, 0.95);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  font-size: clamp(0.78rem, 0.74rem + 0.18vw, 0.92rem);
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffe3bd;
}

.nav-link:active {
  transform: translateY(1px);
}

.nav-link:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.hero-copy {
  align-self: end;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 0 0 clamp(72px, 15vh, 170px);
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 900ms 260ms ease-out forwards;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.62);
}

.hero-copy p {
  width: min(100%, 34rem);
  margin: 14px 0 0 0.36rem;
  color: var(--ink-muted);
  font-size: clamp(0.9rem, 0.78rem + 0.38vw, 1.18rem);
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.01);
  }
}

@media (max-width: 720px) {
  .image-layer {
    background-position: 58% 50%;
  }

  .shade-layer {
    background:
      linear-gradient(90deg, rgba(1, 7, 15, 0.86) 0%, rgba(1, 7, 15, 0.26) 62%, rgba(1, 7, 15, 0.08) 100%),
      linear-gradient(180deg, rgba(1, 7, 15, 0.72) 0%, rgba(1, 7, 15, 0.04) 42%, rgba(1, 7, 15, 0.62) 100%);
  }

  .site-nav {
    width: min(100% - 28px, 1240px);
    height: 66px;
  }

  .nav-group {
    gap: 18px;
  }

  .hero-copy {
    width: min(100% - 28px, 1240px);
    padding-bottom: max(54px, 11vh);
  }

  .hero-copy h1 {
    font-size: clamp(3.7rem, 18vw, 6.6rem);
  }
}

@media (max-width: 460px) {
  .site-nav {
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    gap: 2px;
    height: 92px;
  }

  .nav-link-left {
    min-height: 28px;
  }

  .nav-group {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero-copy p {
    margin-left: 0.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
