@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/rajdhani-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/rajdhani-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/rajdhani-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
}

:root {
  --red: #b11e2e;
  --gold: #c9a227;
  --black: #090204;
  --white: #f4e6c8;
  --ink: var(--white);
  --muted: #c9b48a;
  --accent: var(--gold);
  --veil: rgba(18, 4, 6, 0.42);
  --box: rgba(28, 8, 10, 0.62);
  --line: var(--gold);
  --font: "Rajdhani", system-ui, sans-serif;
  --sans: "Rajdhani", system-ui, sans-serif;
}

html[data-theme="lord"] {
  --black: #111111;
  --white: #f2f2f2;
  --ink: var(--white);
  --muted: #b0b0b0;
  --accent: var(--white);
  --veil: rgba(0, 0, 0, 0.42);
  --box: rgba(12, 12, 12, 0.78);
  --line: #e8e8e8;
  --font: "Cormorant Garamond", Georgia, serif;
  --sans: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background: var(--black);
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.bg-li { opacity: 0; }

.bg-veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
}

.portrait {
  position: absolute;
  bottom: 0;
  width: 38vw;
  height: 92vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  transform: scale(0.902);
  opacity: 0.35;
  filter: grayscale(1);
}

.portrait-nf {
  left: 0;
  transform-origin: bottom left;
  background-image: var(--nf-portrait);
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0);
}

.portrait-li {
  right: 0;
  transform-origin: bottom right;
  background-image: var(--li-portrait);
}

.chrome, .scroll { position: relative; z-index: 1; }
.chrome {
  text-align: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.5rem;
}

.type-stack {
  display: grid;
  justify-items: center;
  align-items: center;
}
.box .type-stack { justify-items: start; }
.type-nf,
.type-li {
  grid-area: 1 / 1;
}
.type-nf {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.06em;
}
.type-li {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.02em;
  opacity: 0;
}
.kicker .type-nf { letter-spacing: 0.18em; }
.kicker .type-li { letter-spacing: 0.12em; }
.box p .type-nf { letter-spacing: 0.02em; }
.box p .type-li { letter-spacing: 0; }
.box h1 .type-li,
.box h2 .type-li { font-style: italic; }

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.style-switch {
  position: relative;
  display: flex;
  width: 100%;
  isolation: isolate;
  border: 1px solid var(--line);
  transition: border-color 1s ease;
}
.style-switch .thumb {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--line);
  transform: translateX(0%);
}
html[data-theme="nightfire"] .style-switch .thumb {
  background: var(--gold);
}
.style-switch button {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  font-weight: 600;
  cursor: pointer;
  padding: 0.8em 0.4em;
  transition: color 1s ease;
}
html[data-theme="nightfire"] #btn-nf {
  color: var(--black);
}
html[data-theme="lord"] #btn-li {
  color: var(--black);
}

.scroll {
  max-width: 42rem;
  margin: 2rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  gap: 1.25rem;
}

.box {
  background: var(--box);
  border: 1px solid var(--line);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(6px);
}

.box h1, .box h2 {
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.box-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.75rem;
  overflow: hidden;
  background: var(--black);
}
.box-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.social {
  --lift: 0px;
  flex: 1 1 5rem;
  max-width: 6.6rem;
  min-width: 4.6rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.68rem, 1.05vw, 0.86rem);
  border-radius: 0.9rem;
  transform: translateY(var(--lift));
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.social:nth-child(even) { --lift: 0.65rem; }
.social:hover,
.social:focus-visible {
  --lift: -0.28rem;
  transform: translateY(var(--lift)) scale(1.07);
  outline: none;
  z-index: 2;
}
.social svg {
  width: 42%;
  height: 42%;
  display: block;
}
.social .label {
  line-height: 1;
}
.social-x {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
}
.social-x:hover,
.social-x:focus-visible { box-shadow: inset 0 0 0 1px #fff, 0 10px 22px rgba(0, 0, 0, 0.45); }
.social-youtube { background: #ff0000; color: #fff; }
.social-youtube:hover,
.social-youtube:focus-visible { box-shadow: 0 10px 22px rgba(255, 0, 0, 0.45); }
.social-twitch { background: #9146ff; color: #fff; }
.social-twitch:hover,
.social-twitch:focus-visible { box-shadow: 0 10px 22px rgba(145, 70, 255, 0.5); }
.social-kick { background: #53fc18; color: #111; }
.social-kick:hover,
.social-kick:focus-visible { box-shadow: 0 10px 22px rgba(83, 252, 24, 0.4); }
.social-rumble { background: #85c742; color: #111; }
.social-rumble:hover,
.social-rumble:focus-visible { box-shadow: 0 10px 22px rgba(133, 199, 66, 0.4); }

@media (max-width: 520px) {
  .social:nth-child(even) { --lift: 0px; }
}

.carousel { margin-top: 0.85rem; }
.carousel-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.2rem;
}
.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
  background: transparent;
  border: 0;
}
.carousel-slide {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 18%;
  width: 64%;
  display: flex;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background: var(--black);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel-nav {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  background: var(--box);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 5;
}
.carousel-nav:focus-visible { outline: 1px solid var(--gold); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0.35rem;
}
.carousel-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
}
.carousel-dots button.is-on { background: var(--gold); }
.carousel-caption {
  text-align: center;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.carousel-caption .type-stack { justify-items: center; }

.box p { margin: 0; color: var(--muted); line-height: 1.5; }
.box a:not(.social) { color: var(--accent); }
.site-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 1.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-foot p { margin: 0; }
.site-foot .type-stack { justify-items: center; }

code { font-size: 0.85em; color: var(--ink); }

@media (max-width: 720px) {
  .portrait-nf,
  .portrait-li {
    left: 0;
    right: 0;
    width: 100%;
    transform-origin: bottom center;
  }
  .scroll { margin-top: 1rem; }
}
