@charset "utf-8";

section.home-hero {
  position: relative;
  min-height: min(78vh, 640px);
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: #2a1f16;
  background-image: url("/assets/graphics/pages/home/find-dirt-track-races.jpg");
  background-position: center center;
  background-size: cover;
  color: var(--color-default-light);
  display: flex;
  align-items: flex-end;
  animation: home-hero-fade 0.9s ease-out;
}

section.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 31, 22, 0.25) 0%, rgba(42, 31, 22, 0.55) 45%, rgba(42, 31, 22, 0.88) 100%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 1.25rem 2rem;
  max-width: var(--website-max-width);
  margin: 0 auto;
}

.home-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 0.75rem;
  text-transform: lowercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  animation: home-rise 0.8s ease-out 0.1s both;
}

.home-hero__content > h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 18ch;
  animation: home-rise 0.8s ease-out 0.2s both;
}

.home-hero__lede {
  font-size: 1.1rem;
  line-height: 1.45;
  max-width: 36rem;
  margin: 0 0 1.25rem;
  color: rgba(224, 220, 216, 0.92);
  animation: home-rise 0.8s ease-out 0.3s both;
}

.home-hero__actions {
  margin: 0;
  animation: home-rise 0.8s ease-out 0.4s both;
}

.home-hero__cta {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-default-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.2rem;
  border-radius: 0.35rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-hero__cta:hover {
  background-color: #ffb84d;
  text-shadow: none;
  transform: translateY(-1px);
}

.home-explore {
  background-color: var(--color-default-light);
}

.home-explore__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.home-explore__list > li > a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(81, 62, 45, 0.2);
  text-decoration: none;
  color: var(--color-default-dark);
  transition: color 0.2s ease;
}

.home-explore__list > li > a:hover {
  color: #8a4b00;
  text-shadow: none;
}

.home-explore__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.home-explore__meta {
  font-size: 0.95rem;
  opacity: 0.8;
}

section.home-about {
  background-image: url("/assets/graphics/pages/home/about.jpg");
  background-position: center center;
  background-size: cover;
  color: var(--color-default-light);
}

section.home-about > div {
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

section.home-about h2 {
  font-family: var(--font-display);
  color: var(--color-default-light);
  letter-spacing: 0.02em;
}

section.home-about p:not(:last-child) {
  padding-bottom: 0.75em;
}

@keyframes home-hero-fade {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .home-hero__content {
    padding: 3.5rem 1.5rem 2.75rem;
  }

  .home-explore__list {
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.home-hero,
  .home-hero__brand,
  .home-hero__content > h1,
  .home-hero__lede,
  .home-hero__actions {
    animation: none;
  }
}
