/* ---------- Color tokens ---------- */
:root {
  --white: #ffffff; /* text subtle */
  --gray-lighter: #c9cede; /* text subtle */
  --gray-light: #8f949d; /* text subtle */
  --gray: #4b5163; /* text subtle */
  --gray-dark: #3a3e4f; /* strokes / borders */
  --gray-darker: #282c3c; /* surfaces */
  --gray-darkest: #1a1d28; /* page bg */
  --gold-light: #ffc85d; /* hover / glow */
  --gold: #ffb826; /* primary accent */
}

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

html, body {
  height: 100%;
  width: 100%;
}

/* ---------- Fonts ---------- */

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: var(--white);
  background: var(--gray-darker);
  line-height: 1.7;
  b, strong {
    font-weight: 600;
  }
}

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

h1 {
  font-size: 26px;
  margin: 0;
  color: var(--gray-lighter);
}

p, p a {
  margin: 0;
  color: var(--gray-lighter);
  font-size: 16px;
}

p a {
  transition: color ease 300ms;

  &:hover, &:focus {
    color: var(--gold-light);
  }
}

p.lead {
  margin: 0;
  color: var(--gray-lighter);
  font-size: 22px;
}


/* ---------- Layout ---------- */

.wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  position: relative;
}

.card {
  width: 100%;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  justify-items: center;
  text-align: center;
  z-index: 2;
}

/* ---------- Logo area ---------- */
.logo-wrap {
  width: min(70vw, 185px);
  display: grid;
  place-items: center;
  background: transparent;
}

#ez_logo_old .logo-fill {
  fill: none;
  stroke: var(--gold);
  stroke-miterlimit: 10;
  stroke-width: 1px;
}

/* ---------- Text ---------- */
.background-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--gray-darkest);
}

.background-image .caption {
  position: absolute;
  inset: auto auto 0 0;
  padding: 10px;
  text-align: left;
}

.background-image .caption p,
.background-image .caption p a {
  font-size: 12px;
  margin-bottom: 0;
  color: var(--gray-light);
  transition: color ease 300ms;
}

.background-image .caption p a {
  &:hover, &:focus {
    color: var(--gold-light);
  }
}

.background-image .bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease; /* fade duration */
  will-change: opacity;
  mix-blend-mode: luminosity;
}

.background-image .bg-slide.is-active {
  opacity: .1;
}

/* Respect reduced motion: don’t animate, just show the first image */
@media (prefers-reduced-motion: reduce) {
  .background-image .bg-slide {
    transition: none;
  }
}

/* ---------- Footer ---------- */
footer {
  padding: 18px clamp(16px, 3vw, 32px);
  color: var(--gray-lighter);
  border-top: 1px solid var(--gray-darker);
  background: var(--gray-darkest);
  text-align: center;

  p {
    font-size: 12px;
  }
}

.dot {
  margin: 0 .5ch;
  opacity: .7
}

.discord-link {
  display: inline-block;
}

.discord-link svg {
  width: 18px;
  line-height: 1;
  vertical-align: middle;

  path {
    fill: var(--gray-lighter);
    transition: fill ease 300ms;
  }

  &:hover, &:focus {
    path {
      fill: var(--gold-light);
    }
  }
}

/* ---------- Screen Reader Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* prevent line breaks */
  border: 0;
}
