/* Kaidoku patrons landing page */
:root {
  color-scheme: dark;
  --ink: #f7f0e4;
  --muted: #c7c2d5;
  --night: #090a1a;
  --panel: rgba(16, 15, 37, 0.78);
  --panel-strong: rgba(22, 18, 47, 0.92);
  --line: rgba(221, 208, 238, 0.2);
  --gold: #f0bd57;
  --gold-light: #ffe3a3;
  --violet: #7d5ac9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 26, 0.3) 0%,
      rgba(7, 8, 26, 0.46) 48%,
      rgba(7, 8, 26, 0.7) 82%,
      rgba(7, 8, 26, 0.82) 100%
    ),
    url("assets/kaidoku-patrons-background.webp") center top / cover no-repeat;
  content: "";
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(128, 95, 190, 0.16), transparent 36rem),
    linear-gradient(90deg, rgba(7, 7, 20, 0.2), transparent 38%, rgba(7, 7, 20, 0.18));
  pointer-events: none;
  content: "";
}

a {
  color: inherit;
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: flex;
  padding: clamp(5rem, 11vh, 7rem) 0 2.5rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 1000px;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.94;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.04;
}

.video-frame {
  width: min(880px, 100%);
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(221, 208, 238, 0.3);
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  background: #050611;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:not([aria-disabled="true"]):hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: #ffd986;
  color: #21150a;
  background: var(--gold);
  box-shadow: 0 10px 28px rgba(240, 189, 87, 0.2);
}

.button-primary:not([aria-disabled="true"]):hover {
  background: #ffd270;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
}

.benefits {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.benefits-heading {
  margin: 0 0 2.25rem;
  text-align: left;
}

.benefits-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

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

.benefit-list li {
  position: relative;
  display: grid;
  min-height: 108px;
  padding: 1.35rem 1.6rem;
  grid-template-columns: 1.5rem minmax(250px, 0.85fr) 1.15fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(221, 208, 238, 0.2);
  border-radius: 0.8rem;
  background: rgba(13, 12, 34, 0.54);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  text-align: left;
}

.benefit-list li::before {
  display: block;
  margin: 0;
  color: var(--gold);
  content: "✦";
  font-size: 0.72rem;
}

.benefit-list h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.benefit-list p {
  display: block;
  min-height: 3rem;
  margin: 0;
  padding-left: 2rem;
  align-content: center;
  border-left: 1px solid rgba(240, 189, 87, 0.28);
  color: #d8d3e2;
  font-size: 0.94rem;
  line-height: 1.55;
}

.easter-egg-trigger {
  margin: 0 0 0 0.3em;
  padding: 0;
  border: 0;
  color: #ead6a5;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.easter-egg-trigger span {
  border-bottom: 1px dotted rgba(240, 189, 87, 0.7);
}

.easter-egg-trigger::after {
  display: inline-block;
  margin-left: 0.25em;
  color: var(--gold);
  content: "✦";
  font-size: 0.65em;
  opacity: 0;
  transform: translateY(-0.2em);
  transition: opacity 140ms ease;
}

.easter-egg-trigger:hover,
.easter-egg-trigger:focus-visible {
  color: var(--gold);
}

.easter-egg-trigger:hover::after,
.easter-egg-trigger:focus-visible::after {
  opacity: 1;
}

.easter-egg-modal {
  position: fixed;
  inset: 0;
  width: min(340px, calc(100% - 2rem));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(240, 189, 87, 0.5);
  border-radius: 0.8rem;
  background: #0d0c22;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.easter-egg-modal::backdrop {
  background: rgba(5, 5, 16, 0.78);
  backdrop-filter: blur(5px);
}

.easter-egg-modal img {
  display: block;
  width: 100%;
  border-radius: inherit;
}

.modal-close {
  position: absolute;
  z-index: 1;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(9, 10, 27, 0.68);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(9, 10, 27, 0.88);
}

.support-cta {
  display: flex;
  width: min(880px, 100%);
  margin-inline: auto;
  align-items: center;
  flex-direction: column;
}

.support-cta .button {
  min-width: min(100%, 280px);
}

.support-aside {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

footer {
  display: flex;
  margin-top: clamp(6rem, 12vw, 10rem);
  padding: 1.5rem 0 2.25rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #aaa5ba;
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body::before {
    background:
      linear-gradient(
        180deg,
        rgba(7, 8, 26, 0.28) 0%,
        rgba(7, 8, 26, 0.46) 46%,
        rgba(7, 8, 26, 0.72) 82%,
        rgba(7, 8, 26, 0.84) 100%
      ),
      url("assets/kaidoku-patrons-mobile-background.webp") center top / cover
        no-repeat;
  }

  main,
  footer {
    width: min(100% - 28px, 560px);
  }

  .hero {
    padding: 4.5rem 0 2rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.75rem);
  }

  .video-frame {
    border-radius: 0.7rem;
  }

  .benefits {
    padding-bottom: 3rem;
  }

  .benefit-list {
    gap: 0.75rem;
  }

  .benefit-list li {
    display: grid;
    min-height: 0;
    padding: 1.25rem;
    grid-template-columns: 1.25rem 1fr;
    gap: 0.35rem 0.7rem;
  }

  .benefit-list p {
    grid-column: 2;
    min-height: 0;
    padding: 0;
    border-left: 0;
  }

  footer {
    gap: 0.8rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
