/* wowbrennt.de – one page, no build step, no script. */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-latin-400.woff2?v=1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --coal: #14100d;
  --char: #1c1713;
  --line: #33291f;
  --line-soft: #2a221b;
  --ink: #efe6da;
  --ink-2: #bcae9f;
  --ink-3: #978879;
  --ember: #ff6b1f;
  --ember-hot: #ffa15c;
  --ember-deep: #b8400b;
  --blurple: #5865f2;

  --font-display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --wordmark: clamp(4.25rem, 19vw, 6rem);

  /* Where the tavern light sits in the square hero painting (0 to 1), for the candle glow. */
  --portal-x: 0.42;
  --portal-y: 0.34;
  --portal-size: 0.36;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--coal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img,
svg {
  display: block;
}

a {
  color: var(--ember-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffc08f;
}

:focus-visible {
  outline: 3px solid var(--ember-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--coal);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--coal);
}

/* ---------- Hero (left half on wide screens, first block on phones) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--coal);
}

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 78svh;
  overflow: hidden;
  container-type: size;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* Darkens the lower edge of the painting so the wordmark reads on it. */
.hero__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(
    180deg,
    rgba(20, 16, 13, 0) 0%,
    rgba(20, 16, 13, 0.62) 45%,
    rgba(20, 16, 13, 0.92) 78%,
    var(--coal) 100%
  );
  pointer-events: none;
}

.hero__glow {
  --shown: max(100cqw, 100cqh);
  position: absolute;
  left: calc(50% + var(--shown) * (var(--portal-x) - 0.5));
  top: calc(var(--shown) * var(--portal-y));
  width: calc(var(--shown) * var(--portal-size));
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 222, 160, 0.55) 0%,
    rgba(255, 170, 90, 0.26) 48%,
    rgba(255, 150, 60, 0) 72%
  );
  mix-blend-mode: screen;
  opacity: 0.3;
  transform: translate(-50%, -50%);
  animation: portal-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes portal-pulse {
  0%,
  100% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__embers span {
  position: absolute;
  bottom: 24%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffc873;
  box-shadow: 0 0 6px 2px rgba(255, 107, 31, 0.75);
  opacity: 0;
  animation: ember-rise 10s linear infinite;
}

@keyframes ember-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
  }
  8% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 24px), -64vh, 0) scale(0.35);
  }
}

.hero__embers span:nth-child(1) { left: 6%; --drift: 34px; animation-duration: 11s; animation-delay: -2s; }
.hero__embers span:nth-child(2) { left: 14%; --drift: -18px; animation-duration: 8.5s; animation-delay: -6s; width: 3px; height: 3px; }
.hero__embers span:nth-child(3) { left: 22%; --drift: 46px; animation-duration: 13s; animation-delay: -9s; }
.hero__embers span:nth-child(4) { left: 30%; --drift: -30px; animation-duration: 9.5s; animation-delay: -1s; width: 2px; height: 2px; }
.hero__embers span:nth-child(5) { left: 38%; --drift: 22px; animation-duration: 12s; animation-delay: -4.5s; width: 3px; height: 3px; }
.hero__embers span:nth-child(6) { left: 46%; --drift: -40px; animation-duration: 10s; animation-delay: -7.5s; }
.hero__embers span:nth-child(7) { left: 54%; --drift: 28px; animation-duration: 8s; animation-delay: -3s; width: 2px; height: 2px; }
.hero__embers span:nth-child(8) { left: 62%; --drift: -24px; animation-duration: 12.5s; animation-delay: -10s; }
.hero__embers span:nth-child(9) { left: 70%; --drift: 38px; animation-duration: 9s; animation-delay: -5.5s; width: 3px; height: 3px; }
.hero__embers span:nth-child(10) { left: 78%; --drift: -34px; animation-duration: 11.5s; animation-delay: -0.5s; }
.hero__embers span:nth-child(11) { left: 86%; --drift: 20px; animation-duration: 10.5s; animation-delay: -8s; width: 2px; height: 2px; }
.hero__embers span:nth-child(12) { left: 93%; --drift: -44px; animation-duration: 13.5s; animation-delay: -4s; width: 3px; height: 3px; }
.hero__embers span:nth-child(13) { left: 34%; --drift: 52px; animation-duration: 14s; animation-delay: -11s; width: 2px; height: 2px; }
.hero__embers span:nth-child(14) { left: 66%; --drift: -52px; animation-duration: 14.5s; animation-delay: -12.5s; }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4.75rem;
  padding: 0 1.25rem 2.5rem;
  text-align: center;
}

.wordmark {
  padding-bottom: 0.04em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--wordmark);
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: #f9d878;
  background: linear-gradient(180deg, #fff6d2 8%, #f9d878 36%, #e8a734 60%, #a85f12 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #5a2a06) drop-shadow(0 0 22px rgba(255, 107, 31, 0.55));
}

.hero__tagline {
  max-width: 34rem;
  margin-top: 0.5rem;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.375rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.875rem 0.75rem 1.625rem;
  border-radius: 8px;
  background: var(--blurple);
  box-shadow: 0 10px 32px rgba(88, 101, 242, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.discord-button:hover {
  background: #6875f5;
  box-shadow: 0 14px 38px rgba(88, 101, 242, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.discord-button:active {
  background: #4752c4;
  transform: translateY(0);
}

.discord-button:focus-visible {
  outline-color: #fff;
  border-radius: 8px;
}

.discord-button svg {
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  fill: currentColor;
}

.hero__hint {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- Content (right half on wide screens) ---------- */

.content {
  position: relative;
  background: linear-gradient(180deg, var(--char) 0, var(--coal) 56rem);
}

.content__inner {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  max-width: calc(38.75rem + 2 * var(--pad));
  padding: clamp(2.75rem, 8vw, 5.5rem) var(--pad) 3.5rem;
}

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 1.45vw, 2.25rem);
  line-height: 1.26;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.lead__text {
  margin-top: 1.25rem;
  color: var(--ink-2);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.facts dt {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}

.facts dd {
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.facts .is-hot dd {
  color: var(--ember-hot);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.75rem);
  line-height: 1.28;
}

.rules {
  margin-top: 1.25rem;
}

.rule {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--line-soft);
}

.rule:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.rule dt {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 600;
  line-height: 1.55;
}

.rule dd {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-2);
}

.flame {
  flex: none;
  width: 1rem;
  height: 1.625rem;
  fill: var(--ember);
}

.rhythm {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.rhythm::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ember-hot) 0%, var(--ember) 45%, var(--ember-deep) 100%);
  box-shadow: 0 0 10px 1px rgba(255, 107, 31, 0.55);
}

.rhythm p {
  margin-top: 0.625rem;
  color: var(--ink-2);
}

.activities,
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.activities li {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: 0.875rem;
}

.activities svg {
  width: 1.375rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--ember-hot);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activities svg.is-quest {
  stroke-width: 2.6;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.activities p,
.features p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.features h3 {
  font-size: 1rem;
  line-height: 1.5;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.25rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ember);
}

.addon__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.5625rem;
  border: 1px solid var(--ember-deep);
  border-radius: 4px;
  background: #2a170c;
  color: var(--ember-hot);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
}

.addon__intro {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

.addon__preview {
  margin-top: 1.5rem;
}

.addon__preview img {
  width: 100%;
  height: auto;
  border: 1px solid #3b2f25;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 28px 60px -30px rgba(255, 107, 31, 0.45);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.features {
  margin-top: 1.75rem;
}

.chatlink > p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

.chatlink strong {
  font-weight: 600;
  color: var(--ink);
}

.mirror {
  margin-top: 1.5rem;
}

.mirror__rows {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #1b1612;
}

.mirror__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.125rem 1rem;
  align-items: baseline;
  padding: 0.75rem 1rem 0.75rem 0.875rem;
  border-left: 2px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.mirror__row + .mirror__row {
  border-top: 1px solid var(--line-soft);
}

.mirror__row--game {
  border-left-color: #5bdb6b;
  color: #7ee08a;
}

.mirror__row--discord {
  border-left-color: var(--blurple);
}

.mirror__where {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.mirror__row b {
  margin-right: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.chatlink h3 {
  margin-top: 1.75rem;
}

.steps--small {
  gap: 0.625rem;
  margin-top: 0.75rem;
  font-size: 1rem;
}

.steps--small li::before {
  font-size: 1.375rem;
}

.chatlink .chatlink__source {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.footer a {
  font-weight: 600;
  font-size: 0.875rem;
}

/* ---------- Not found ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, var(--char), var(--coal));
  text-align: center;
}

.notfound p {
  color: var(--ink-2);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 34rem) {
  .rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .rule dd {
    padding-left: 1.625rem;
  }

  .activities,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .content__inner {
    gap: 3.5rem;
  }

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

/* One column: keep the text block centred under the hero. */
@media (max-width: 56.24rem) {
  .content__inner {
    margin-inline: auto;
  }
}

/* ---------- Two halves ---------- */

@media (min-width: 56.25rem) {
  :root {
    --wordmark: clamp(4.5rem, 7.2vw, 8.25rem);
    --hero-foot: 150px;
  }

  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .hero {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }

  .hero__art {
    position: absolute;
    inset: 0 0 var(--hero-foot);
    aspect-ratio: auto;
    max-height: none;
  }

  .hero__content {
    position: absolute;
    inset: auto 0 0;
    margin-top: 0;
    padding: 0 2.5rem 2rem;
  }

  /* The ember seam between the halves. */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 3;
    width: 1px;
    background: linear-gradient(
      180deg,
      rgba(255, 107, 31, 0) 0%,
      rgba(255, 107, 31, 0.85) 30%,
      var(--ember-hot) 62%,
      rgba(255, 107, 31, 0.25) 88%,
      rgba(255, 107, 31, 0) 100%
    );
    box-shadow: 0 0 18px 2px rgba(255, 107, 31, 0.4);
  }

  .content {
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: inset 28px 0 44px -34px rgba(255, 107, 31, 0.3);
  }
}

/* The right half is narrower than a phone in landscape here: one column again. */
@media (min-width: 56.25rem) and (max-width: 68rem) {
  .rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .rule dd {
    padding-left: 1.625rem;
  }

  .activities,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 56.25rem) and (max-height: 40rem) {
  :root {
    --wordmark: 4.25rem;
    --hero-foot: 120px;
  }

  .hero__tagline {
    margin-top: 0.25rem;
  }

  .discord-button {
    min-height: 3rem;
    margin-top: 0.875rem;
  }
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__embers {
    display: none;
  }

  .hero__glow {
    animation: none;
  }

  .discord-button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .wordmark {
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
}
