@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --ink: #eff3f3;
  --muted: #a5afb3;
  --line: rgba(214, 229, 230, 0.18);
  --background: #0d1418;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

main {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 4rem);
}

main::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.26;
  background-image: url("assets/avalon-logo.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15) brightness(0.3);
  transform: scale(1.08);
}

main::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 12, 15, 0.92), rgba(9, 16, 19, 0.55)),
    linear-gradient(0deg, rgba(7, 12, 15, 0.86), transparent 55%);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.ambient-one {
  top: -28rem;
  right: -20rem;
  background: radial-gradient(circle, rgba(94, 141, 143, 0.2), transparent 68%);
}

.ambient-two {
  bottom: -31rem;
  left: -18rem;
  background: radial-gradient(circle, rgba(100, 116, 106, 0.17), transparent 68%);
}

.hero {
  display: grid;
  width: min(100%, 70rem);
  grid-template-columns: minmax(12rem, 0.75fr) minmax(18rem, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(1rem, 5vw, 5rem);
  align-items: center;
  margin: auto;
}

.eyebrow {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0 0 clamp(1rem, 4vh, 3rem);
  color: var(--muted);
  font: 500 0.66rem/1.4 "DM Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo {
  width: min(100%, 25rem);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.45));
}

.copy { max-width: 30rem; }

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.copy p {
  max-width: 28rem;
  margin: 1.65rem 0 0;
  color: #c3cacc;
  font-size: clamp(0.9rem, 1.25vw, 1.03rem);
  line-height: 1.75;
}

footer {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  align-self: end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 0.62rem/1.5 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bac8c6;
}

@media (max-width: 650px) {
  main { padding: 1.5rem; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 1.75rem;
  }

  .eyebrow { margin-bottom: 0; }
  .logo { width: min(60vw, 16rem); }
  .copy { align-self: start; }
  .copy p { margin-top: 1.2rem; }
  footer { font-size: 0.55rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .logo { animation: arrive 900ms cubic-bezier(.2,.8,.2,1) both; }
  .copy { animation: arrive 900ms 120ms cubic-bezier(.2,.8,.2,1) both; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(0.85rem); }
  to { opacity: 1; transform: translateY(0); }
}
