:root {
  --bg: #050506;
  --bg-soft: #09090b;
  --panel: rgba(10, 10, 12, 0.86);
  --panel-dark: #08080a;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --paper: #f2f0ea;
  --muted: rgba(242, 240, 234, 0.72);
  --dim: rgba(242, 240, 234, 0.5);
  --accent-red: #d73535;
  --accent-red-dim: rgba(215, 53, 53, 0.25);
  --accent-purple: #8a4dff;
  --accent-blue: #7d98d9;
  --hero-art-image: url("assets/hero-portrait.jpg");
  --featured-image: url("assets/featured-audio.jpg");
  --about-emblem-image: url("assets/about-emblem.jpg");
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 48% 0%, rgba(120, 135, 170, 0.16), transparent 30rem),
    radial-gradient(circle at 18% 19%, rgba(215, 53, 53, 0.12), transparent 22rem),
    linear-gradient(180deg, #030304 0%, #050506 44%, #070708 100%);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0 55%, transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 57%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 16%, transparent 78%, rgba(255,255,255,0.02));
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: #08080a;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 34px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 3.8rem 0 5.15rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 260px;
  background: linear-gradient(180deg, transparent, var(--bg) 84%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 47% 13%, rgba(255,255,235,0.18), transparent 4.4rem),
    radial-gradient(circle at 74% 31%, rgba(125, 152, 217, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.75) 37%, rgba(0,0,0,0.36) 64%, rgba(0,0,0,0.86) 100%),
    linear-gradient(135deg, #080a0f 0%, #0a0b10 45%, #030304 100%);
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 14%, rgba(255,255,245,0.68) 0 2.4rem, rgba(255,255,245,0.22) 2.45rem 3rem, transparent 3.1rem),
    radial-gradient(circle at 18% 26%, rgba(215, 53, 53, 0.14), transparent 12rem),
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.82) 100%);
  opacity: 0.75;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 30%, transparent 68%, rgba(0,0,0,0.52)),
    linear-gradient(180deg, rgba(5,5,6,0.04) 0%, rgba(5,5,6,0.28) 72%, #050506 100%);
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: min(66vw, 790px);
  height: 610px;
  background-image:
    linear-gradient(90deg, rgba(5,5,6,0) 0%, rgba(5,5,6,0.03) 33%, rgba(5,5,6,0.28) 100%),
    var(--hero-art-image);
  background-size: cover;
  background-position: center top;
  filter: saturate(0.9) contrast(1.04);
  opacity: 0.97;
  mask-image: linear-gradient(90deg, transparent 0%, black 16%, black 100%);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(5,5,6,0.88) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.35) 0%, transparent 28%, rgba(0,0,0,0.24) 100%);
}

.hero-castle {
  position: absolute;
  left: 0;
  top: 38px;
  width: min(34vw, 420px);
  height: 420px;
  opacity: 0.45;
  filter: blur(0.25px);
}

.hero-castle::before,
.hero-castle::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 0 38px rgba(0,0,0,0.85);
}

.hero-castle::before {
  left: 12%;
  width: 70%;
  height: 54%;
  clip-path: polygon(
    0 100%, 0 62%, 6% 62%, 6% 40%, 10% 40%, 10% 24%, 13% 2%, 16% 24%, 16% 100%,
    25% 100%, 25% 42%, 30% 42%, 30% 18%, 34% 0, 38% 18%, 38% 100%,
    49% 100%, 49% 56%, 56% 56%, 56% 30%, 60% 8%, 64% 30%, 64% 100%,
    78% 100%, 78% 50%, 84% 50%, 84% 25%, 88% 3%, 92% 25%, 92% 100%, 100% 100%
  );
}

.hero-castle::after {
  left: 4%;
  bottom: -18px;
  width: 98%;
  height: 28%;
  clip-path: polygon(0 100%, 4% 42%, 18% 36%, 32% 52%, 48% 32%, 63% 44%, 82% 26%, 100% 44%, 100% 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(560px, 100%);
  padding-top: 1.15rem;
  text-align: center;
}

h1,
h2,
h3,
.hero-tagline,
.featured-copy p,
.about-copy p,
.link-card span,
.footer a,
.copyright {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 0.97;
}

h1 {
  display: grid;
  color: #f4f1e8;
  font-size: clamp(5.6rem, 10.4vw, 9.45rem);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.3),
    0 0 18px rgba(255,255,255,0.10),
    0 21px 48px rgba(0,0,0,0.9);
}

.red-rule,
.small-rule {
  position: relative;
  display: grid;
  place-items: center;
  height: 18px;
}

.red-rule {
  width: 235px;
  margin: 1.08rem auto 1.25rem;
}

.small-rule {
  width: 150px;
  margin-top: 0.6rem;
}

.red-rule::before,
.red-rule::after,
.small-rule::before,
.small-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  width: 43%;
  background: linear-gradient(90deg, transparent, var(--accent-red));
}

.red-rule::before,
.small-rule::before {
  left: 0;
}

.red-rule::after,
.small-rule::after {
  right: 0;
  transform: scaleX(-1);
}

.red-rule span,
.small-rule span {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(215,53,53,0.84);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(215,53,53,0.45);
}

.red-rule span::before,
.small-rule span::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent-red);
  border-radius: 50%;
}

.hero-tagline {
  width: min(460px, 100%);
  margin: 0 auto 2rem;
  color: rgba(242, 240, 234, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
  text-shadow: 0 12px 25px rgba(0,0,0,0.88);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(var(--max), calc(100vw - 96px));
  margin-top: 2.3rem;
}

.action-button,
.listen-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 58px;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(9, 9, 12, 0.68);
  color: var(--paper);
  box-shadow: 0 14px 35px rgba(0,0,0,0.34);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.action-button::before,
.listen-button::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 48%);
  transition: opacity 180ms ease;
}

.action-button:hover,
.action-button:focus-visible,
.listen-button:hover,
.listen-button:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.featured-image:hover,
.featured-image:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.action-button:hover::before,
.action-button:focus-visible::before,
.listen-button:hover::before,
.listen-button:focus-visible::before,
.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 1;
}

.action-button i,
.listen-button i {
  font-size: 1.35rem;
  line-height: 1;
}

.action-button.youtube,
.action-button.support,
.listen-button {
  border-color: rgba(215, 53, 53, 0.62);
}

.action-button.youtube i,
.action-button.support i,
.listen-button i,
.footer-contact i {
  color: var(--accent-red);
}

.action-button.twitch {
  border-color: rgba(138, 77, 255, 0.64);
}

.action-button.twitch i {
  color: var(--accent-purple);
}

.action-button.discord {
  border-color: rgba(125, 152, 217, 0.62);
}

.action-button.discord i {
  color: var(--accent-blue);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2.25rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(242,240,234,0.78);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

.panel,
.about-panel,
.links-panel,
.footer-grid {
  border: 1px solid rgba(255,255,255,0.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(7,7,8,0.86);
  box-shadow: 0 24px 80px rgba(0,0,0,0.48);
}

.featured-panel {
  position: relative;
  margin-top: -0.3rem;
  padding: clamp(1.6rem, 3vw, 2.8rem) clamp(1.4rem, 3vw, 3rem) clamp(1.8rem, 3vw, 3rem);
}

.featured-panel::before,
.about-panel::before,
.links-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(215,53,53,0.075), transparent 24rem);
}

.section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 1.42rem;
}

.section-title.align-left {
  display: grid;
  justify-items: start;
}

.section-title.align-center {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-title h2 {
  color: var(--paper);
  font-size: clamp(1.42rem, 3vw, 2.05rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.featured-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.1rem);
}

.featured-image {
  display: block;
  min-height: 282px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  background-image: var(--featured-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 17px 42px rgba(0,0,0,0.38);
  transition: transform 180ms ease, border-color 180ms ease;
}

.featured-image:hover,
.featured-image:focus-visible {
  border-color: rgba(215,53,53,0.5);
}

.content-type {
  margin: 0 0 0.8rem;
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.featured-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.1vw, 3.32rem);
  line-height: 1.08;
}

.featured-copy p:not(.content-type) {
  margin: 0 0 1.45rem;
  max-width: 520px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.52;
}

.listen-button {
  min-height: 48px;
  width: fit-content;
  padding: 0.78rem 1.05rem;
  color: var(--accent-red);
}

.about-panel {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.1rem);
  margin-top: 1rem;
  padding: clamp(1.5rem, 3.6vw, 2.8rem) clamp(1.4rem, 4vw, 4.2rem);
  background:
    radial-gradient(circle at 13% 50%, rgba(215,53,53,0.15), transparent 16rem),
    linear-gradient(90deg, rgba(25,8,10,0.9), rgba(8,8,10,0.9));
}

.about-emblem {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(180px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: var(--about-emblem-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 45px rgba(215,53,53,0.16);
}

.about-copy {
  position: relative;
  z-index: 1;
}

.about-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  line-height: 1.55;
}

.links-panel {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1.4rem, 3vw, 2.35rem) clamp(1rem, 2vw, 1.6rem) clamp(1.5rem, 3vw, 2.2rem);
}

.link-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1rem);
}

.link-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 160px;
  align-content: center;
  justify-items: center;
  gap: 0.42rem;
  padding: 1.05rem 0.82rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.07), transparent 64%),
    rgba(255,255,255,0.026);
  text-align: center;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card::after {
  content: "";
  position: absolute;
  left: 29%;
  right: 29%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  opacity: 0.9;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(215,53,53,0.46);
  background: rgba(255,255,255,0.045);
}

.link-card i {
  font-size: 2.9rem;
  line-height: 1;
}

.link-card.youtube i { color: #ff3434; }
.link-card.twitch i { color: var(--accent-purple); }
.link-card.tiktok i { color: #f7f4ef; text-shadow: -2px 0 #19d4e8, 2px 0 #ff4269; }
.link-card.patreon i { color: #ff5969; }
.link-card.merch i { color: #f4f1e8; }

.link-card strong {
  margin-top: 0.45rem;
  color: var(--paper);
  font-size: 0.88rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.link-card span {
  max-width: 150px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.32;
}

.footer {
  padding: 1rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.6vw, 1.8rem) clamp(1.1rem, 3vw, 2rem);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-contact-right {
  justify-content: flex-end;
  text-align: right;
}

.footer-contact i {
  font-size: 1.62rem;
}

.footer-contact strong {
  display: block;
  margin-bottom: 0.18rem;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact a {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--paper);
  outline: none;
}

.footer-sigil {
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(215,53,53,0.42);
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(135deg, rgba(215,53,53,0.19), rgba(0,0,0,0.15));
  color: var(--paper);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  font-weight: 600;
  box-shadow: inset 0 0 22px rgba(215,53,53,0.09), 0 0 35px rgba(215,53,53,0.12);
}

.copyright {
  margin: 1rem 0 0;
  color: var(--dim);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.is-placeholder {
  cursor: not-allowed;
}

@media (max-width: 1020px) {
  .hero {
    min-height: 620px;
  }

  .hero-art {
    width: 72vw;
    opacity: 0.72;
  }

  .hero-copy {
    text-align: left;
  }

  .red-rule {
    margin-inline: 0;
  }

  .hero-tagline {
    margin-inline: 0;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(640px, calc(100vw - 42px));
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 320px;
  }

  .about-panel {
    grid-template-columns: 190px 1fr;
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    min-height: auto;
    padding: 20rem 0 4rem;
  }

  .hero-art {
    top: 0;
    right: -10%;
    width: 114vw;
    height: 385px;
    opacity: 0.9;
    mask-image: linear-gradient(180deg, black 0%, black 58%, transparent 100%);
  }

  .hero-scene {
    background:
      radial-gradient(circle at 64% 11%, rgba(255,255,235,0.17), transparent 4.4rem),
      linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.76) 47%, #050506 87%),
      linear-gradient(135deg, #080a0f 0%, #030304 100%);
  }

  .hero-scene::before,
  .hero-castle {
    display: none;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: clamp(4.1rem, 18vw, 6.2rem);
  }

  .red-rule,
  .hero-tagline {
    margin-inline: auto;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 1.5rem;
  }

  .action-button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .featured-panel,
  .about-panel,
  .links-panel,
  .footer-grid {
    border-left: 1px solid rgba(255,255,255,0.075);
    border-right: 1px solid rgba(255,255,255,0.075);
  }

  .featured-image {
    min-height: 220px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-title.align-left {
    justify-items: center;
    text-align: center;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-sigil {
    order: -1;
  }

  .footer-contact,
  .footer-contact-right {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-top: 17.5rem;
  }

  .hero-art {
    height: 330px;
    right: -18%;
  }

  .action-button,
  .listen-button {
    min-height: 54px;
    font-size: 0.74rem;
  }

  .featured-panel,
  .about-panel,
  .links-panel {
    padding-inline: 1rem;
  }

  .featured-image {
    min-height: 190px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 128px;
  }
}

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