/* Ellen: iron, wax and parchment. The only warm colour is flame. */

@font-face {
  font-family: "Grenze Gotisch";
  src: url("/assets/fonts/grenze-gotisch/grenze-gotisch-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/alegreya-sans/alegreya-sans-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/alegreya-sans/alegreya-sans-latin-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/alegreya-sans/alegreya-sans-latin-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/alegreya-sans/alegreya-sans-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --iron-0: #08090c;
  --iron-1: #111419;
  --iron-2: #1a1e25;
  --iron-3: #282d36;
  --iron-4: #3a414c;
  --steel: #7f8a96;
  --wax: #ddd3b8;
  --wax-dim: #9a937f;
  --ash: #5e5f66;
  --parchment: #cdbf9b;
  --lit: #ffe0a3;
  --flame: #ff9a3c;
  --flame-hot: #ffd27f;
  --flame-dim: #a8561c;
  --cold: #8fcfe6;
  --health: #8a2e35;
  --sheet: #040405;
  --error: #e3898d;

  --hair: rgba(154, 147, 127, 0.22);
  --hair-strong: rgba(154, 147, 127, 0.42);

  --font-head: "Grenze Gotisch", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;

  --fs-xs: clamp(0.8rem, 0.77rem + 0.12vw, 0.875rem);
  --fs-sm: clamp(0.9rem, 0.86rem + 0.16vw, 1rem);
  --fs-body: clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem);
  --fs-lead: clamp(1.15rem, 1.04rem + 0.45vw, 1.4rem);
  --fs-h4: clamp(1.3rem, 1.18rem + 0.5vw, 1.6rem);
  --fs-h3: clamp(1.55rem, 1.32rem + 0.95vw, 2.15rem);
  --fs-h2: clamp(2.15rem, 1.6rem + 2.35vw, 3.6rem);
  --fs-h1: clamp(2.4rem, 1.8rem + 2.6vw, 3.9rem);
  --fs-hook: clamp(1.75rem, 1.3rem + 2.1vw, 3.1rem);

  --gutter: clamp(1rem, 0.5rem + 2.6vw, 3rem);
  --wrap: 76rem;
  --measure: 36rem;
  --section-y: clamp(3.75rem, 2.5rem + 4.5vw, 7rem);
  --header-h: 4.25rem;
  --tear: clamp(1.6rem, 1rem + 2vw, 3rem);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--iron-0);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--iron-0);
  color: var(--wax);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  display: block;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--wax);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.85em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--wax);
  text-decoration: underline;
  text-decoration-color: rgba(221, 211, 184, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--lit);
  text-decoration-color: currentColor;
}

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  letter-spacing: 0;
}

::selection {
  background: rgba(168, 86, 28, 0.55);
  color: #fff4e0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

[tabindex="-1"]:focus {
  outline: none;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: 0.6rem 1rem;
  background: var(--sheet);
  color: var(--flame-hot);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--flame);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0.75rem);
}

/* Hairlines: thin, fading at both ends, never a box. */
.hairline {
  position: relative;
}

.hairline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-strong) 18%, var(--hair-strong) 82%, transparent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 2.875rem;
  padding: 0.55em 1.35em 0.6em;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  background: rgba(8, 9, 12, 0.55);
  color: var(--wax);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  color: var(--lit);
  border-color: rgba(221, 211, 184, 0.7);
  background: rgba(26, 30, 37, 0.7);
}

.btn--flame {
  color: var(--flame-hot);
  border-color: rgba(255, 154, 60, 0.85);
  background: linear-gradient(180deg, rgba(255, 154, 60, 0.16), rgba(168, 86, 28, 0.14));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 22px -6px rgba(255, 154, 60, 0.45);
  text-shadow: 0 1px 0 rgba(20, 8, 0, 0.6);
}

.btn--flame:hover {
  color: #fff1d6;
  border-color: var(--flame-hot);
  background: linear-gradient(180deg, rgba(255, 154, 60, 0.28), rgba(168, 86, 28, 0.24));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 28px -4px rgba(255, 154, 60, 0.6);
}

.btn--lg {
  min-height: 3.25rem;
  padding-inline: 1.9em;
  font-size: 1.15rem;
}

.btn--sm {
  min-height: 2.375rem;
  padding: 0.45em 1em 0.5em;
  font-size: 0.98rem;
}

.btn--quiet {
  border-color: var(--hair-strong);
  background: transparent;
  font-weight: 500;
}

.btn--danger {
  color: var(--wax);
  border-color: rgba(227, 137, 141, 0.55);
  background: transparent;
  font-weight: 500;
}

.btn--danger:hover {
  color: #ffe9ea;
  border-color: var(--error);
  background: rgba(138, 46, 53, 0.22);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--ash);
  border-color: rgba(94, 95, 102, 0.45);
  background: rgba(8, 9, 12, 0.4);
  box-shadow: none;
  text-shadow: none;
}

.btn.is-busy {
  cursor: progress;
}

.btn.is-busy::after {
  content: "";
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link-quiet {
  color: var(--wax);
  font-weight: 500;
  text-decoration-color: rgba(221, 211, 184, 0.35);
}

.link-arrow::after {
  content: "\2193";
  display: inline-block;
  margin-left: 0.4em;
  color: var(--wax-dim);
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateY(2px);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid transparent;
}

.site-header--over {
  position: absolute;
  inset: 0 0 auto 0;
}

.site-header--solid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair) 15%, var(--hair) 85%, transparent);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--wax);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--lit);
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 640;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: translateY(-1px);
}

.site-nav {
  display: none;
  margin-left: clamp(0.5rem, 2vw, 2rem);
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.9rem);
  list-style: none;
}

.site-nav a,
.header-link {
  display: inline-block;
  padding-block: 0.4rem;
  color: rgba(221, 211, 184, 0.86);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
}

.site-nav a::after,
.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--flame);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.header-link:hover {
  color: var(--lit);
}

.site-nav a:hover::after,
.header-link:hover::after,
.header-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.4rem);
}

.header-link--wide {
  display: none;
}

/* The small-screen menu: details, so it works without JavaScript. */
.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.375rem;
  padding: 0.35rem 0.25rem 0.35rem 0.5rem;
  color: var(--wax);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu__icon {
  width: 1.15rem;
  height: 0.7rem;
  position: relative;
  display: inline-block;
}

.menu__icon::before,
.menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu__icon::before {
  top: 0;
}

.menu__icon::after {
  top: calc(100% - 1px);
}

.menu[open] .menu__icon::before {
  top: 50%;
  transform: rotate(45deg);
}

.menu[open] .menu__icon::after {
  top: 50%;
  transform: rotate(-45deg);
}

.menu__panel {
  position: absolute;
  right: calc(var(--gutter) * -1);
  top: calc(100% + 0.6rem);
  width: min(20rem, 100vw);
  padding: 0.75rem var(--gutter) 1.25rem;
  background: rgba(4, 4, 5, 0.97);
  border-top: 1px solid var(--hair);
}

.menu__panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--tear) * -0.6);
  height: calc(var(--tear) * 0.6);
  background: rgba(4, 4, 5, 0.97);
  -webkit-mask: url("/assets/img/torn-bottom.svg") 0 0 / 100% 100% no-repeat;
  mask: url("/assets/img/torn-bottom.svg") 0 0 / 100% 100% no-repeat;
}

.menu__panel ul {
  list-style: none;
}

.menu__panel li + li {
  border-top: 1px solid var(--hair);
}

.menu__panel a {
  display: block;
  padding: 0.75rem 0;
  color: var(--wax);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}

.menu__panel a:hover {
  color: var(--lit);
}

@media (min-width: 40em) {
  .header-link--wide {
    display: inline-block;
  }
}

@media (min-width: 62em) {
  .site-nav {
    display: block;
  }

  .menu {
    display: none;
  }
}

/* ---------- Eyebrows, torn banner ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wax-dim);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-right: 0.8rem;
  vertical-align: middle;
  background: var(--flame);
  opacity: 0.85;
  transform: translateY(-1px);
}

.banner {
  display: inline-block;
  position: relative;
  padding: 0.5em 2.6em 0.55em 1.1em;
  margin-left: -1.1em;
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: -0.25em -0.6em -0.3em 0;
  z-index: -1;
  background: url("/assets/img/torn-banner.svg") center / 100% 100% no-repeat;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(38rem, 100svh, 62rem);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
}

.hero + .section {
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.hero__media img {
  object-fit: cover;
  object-position: 36% 46%;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--tear) + 1px) no-repeat,
    url("/assets/img/torn-bottom.svg") bottom / 100% var(--tear) no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--tear) + 1px) no-repeat,
    url("/assets/img/torn-bottom.svg") bottom / 100% var(--tear) no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.78) 0, rgba(8, 9, 12, 0) 9rem),
    linear-gradient(0deg, rgba(8, 9, 12, 0.96) 0, rgba(8, 9, 12, 0.78) 28%, rgba(8, 9, 12, 0.1) 62%, rgba(8, 9, 12, 0) 100%);
}

.hero__inner {
  position: relative;
}

.hero__copy {
  max-width: 40rem;
}

.hero__logo {
  margin: 0 0 0.35rem -0.4rem;
  width: clamp(15rem, 9rem + 22vw, 26rem);
  line-height: 0;
}

.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
}

.hero__hook {
  font-family: var(--font-head);
  font-size: var(--fs-hook);
  font-weight: 560;
  line-height: 1.08;
  color: var(--wax);
  text-wrap: balance;
}

.hero__hook.banner {
  padding-right: 3.2em;
}

.hero__lede {
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: rgba(221, 211, 184, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.4rem;
  font-size: var(--fs-sm);
  color: var(--wax-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

@media (min-width: 48em) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 9, 12, 0.7) 0, rgba(8, 9, 12, 0) 8rem),
      linear-gradient(90deg, rgba(8, 9, 12, 0.9) 0, rgba(8, 9, 12, 0.72) 30%, rgba(8, 9, 12, 0.12) 62%, rgba(8, 9, 12, 0) 100%),
      linear-gradient(0deg, rgba(8, 9, 12, 0.9) 0, rgba(8, 9, 12, 0) 38%);
  }

  .hero__media img {
    object-position: 50% 46%;
  }
}

/* A few embers drifting up the hero; transforms and opacity only. */
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.embers span {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--flame-hot);
  box-shadow: 0 0 6px 1px rgba(255, 154, 60, 0.75);
  opacity: 0;
  will-change: transform, opacity;
  animation: ember 14s linear infinite;
}

.embers span:nth-child(1) { left: 41%; animation-duration: 13s; animation-delay: -2s; }
.embers span:nth-child(2) { left: 47%; animation-duration: 17s; animation-delay: -9s; width: 2px; height: 2px; }
.embers span:nth-child(3) { left: 53%; animation-duration: 15s; animation-delay: -5s; }
.embers span:nth-child(4) { left: 58%; animation-duration: 19s; animation-delay: -13s; width: 2px; height: 2px; }
.embers span:nth-child(5) { left: 36%; animation-duration: 16s; animation-delay: -7s; width: 2px; height: 2px; }
.embers span:nth-child(6) { left: 63%; animation-duration: 14s; animation-delay: -11s; }
.embers span:nth-child(7) { left: 50%; animation-duration: 21s; animation-delay: -16s; width: 2px; height: 2px; }
.embers span:nth-child(8) { left: 70%; animation-duration: 18s; animation-delay: -4s; width: 2px; height: 2px; }

@keyframes ember {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  45% {
    transform: translate3d(1.6rem, -34vh, 0);
    opacity: 0.7;
  }
  75% {
    transform: translate3d(-1rem, -56vh, 0);
    opacity: 0.35;
  }
  100% {
    transform: translate3d(0.8rem, -78vh, 0);
    opacity: 0;
  }
}

.embers.is-paused span {
  animation-play-state: paused;
}

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

  .btn.is-busy::after {
    animation-duration: 2.4s;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--iron {
  background: var(--iron-1);
  margin-block: var(--tear);
}

.section--iron::before,
.section--iron::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--tear);
  background: var(--iron-1);
  pointer-events: none;
}

.section--iron::before {
  top: calc(var(--tear) * -1 + 1px);
  -webkit-mask: url("/assets/img/torn-top.svg") 0 0 / 100% 100% no-repeat;
  mask: url("/assets/img/torn-top.svg") 0 0 / 100% 100% no-repeat;
}

.section--iron::after {
  bottom: calc(var(--tear) * -1 + 1px);
  -webkit-mask: url("/assets/img/torn-bottom.svg") 0 0 / 100% 100% no-repeat;
  mask: url("/assets/img/torn-bottom.svg") 0 0 / 100% 100% no-repeat;
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section__head h2 {
  margin-top: 1rem;
  font-size: var(--fs-h2);
}

.section__intro {
  margin-top: 1.25rem;
  max-width: var(--measure);
  font-size: var(--fs-lead);
  color: rgba(221, 211, 184, 0.9);
}

figure {
  margin: 0;
}

figcaption,
.caption {
  margin-top: 0.85rem;
  max-width: 40rem;
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.45;
  color: var(--wax-dim);
}

.shot img {
  width: 100%;
  height: auto;
  background: var(--iron-2);
}

.torn-foot img {
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 1.25rem + 1px) no-repeat,
    url("/assets/img/torn-bottom.svg") bottom / 100% 1.25rem no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 1.25rem + 1px) no-repeat,
    url("/assets/img/torn-bottom.svg") bottom / 100% 1.25rem no-repeat;
}

/* ---------- The world ---------- */

.regions {
  list-style: none;
}

.region {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.region:first-child {
  padding-top: 0;
}

.region:last-child {
  padding-bottom: 0;
}

.region:first-child::before {
  display: none;
}

.region__levels {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wax-dim);
}

.region h3 {
  margin-top: 0.6rem;
  font-size: var(--fs-h3);
}

.region__text p:not(.region__levels) {
  margin-top: 1rem;
  max-width: var(--measure);
}

@media (min-width: 56em) {
  .region {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .region:nth-child(even) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .region:nth-child(even) .region__media {
    order: 2;
  }
}

/* ---------- Fights ---------- */

.fight-shot {
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.rules-block {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 5rem);
  align-items: start;
}

.rules-block + .rules-block {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 7rem);
}

.rules-block h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1.5rem;
}

.rules {
  margin: 0;
}

.rule {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: 1.3rem;
}

.rule dt {
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 560;
  line-height: 1.1;
  color: var(--wax);
}

.rule dd {
  margin: 0;
  color: rgba(221, 211, 184, 0.92);
}

.concept {
  max-width: 15rem;
  margin-inline: auto;
}

@media (min-width: 40em) {
  .concept {
    max-width: 20rem;
  }
}

.concept img {
  width: 100%;
  height: auto;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.concept figcaption {
  text-align: center;
  margin-inline: auto;
}

@media (min-width: 40em) {
  .rule {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .rule dt {
    padding-top: 0.1rem;
  }
}

@media (min-width: 60em) {
  .rules-block {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .rules-block--flip {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .rules-block--flip .concept {
    order: 2;
  }

  .concept {
    position: sticky;
    top: 2rem;
    max-width: none;
  }
}

/* ---------- Together ---------- */

.gallery {
  display: grid;
  gap: 2rem 1.5rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  list-style: none;
}

@media (min-width: 46em) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery li:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .gallery {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }

  .gallery li:first-child {
    grid-column: auto;
    grid-row: span 2;
  }
}

.features {
  list-style: none;
  max-width: 62rem;
}

.feature {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: 1.6rem;
}

.feature h3 {
  font-size: var(--fs-h4);
}

.feature p {
  max-width: 40rem;
  color: rgba(221, 211, 184, 0.92);
}

@media (min-width: 46em) {
  .feature {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
}

/* ---------- Playtest, wishlist ---------- */

.playtest-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
  max-width: 62rem;
}

.playtest-cta p {
  flex: 1 1 16rem;
  max-width: var(--measure);
  color: var(--wax-dim);
  font-size: var(--fs-sm);
}

.wishlist__body {
  max-width: 30rem;
}

.wishlist__done h3 {
  font-size: var(--fs-h3);
}

.wishlist__done p {
  margin-top: 0.75rem;
}

.wishlist__done:focus {
  outline: none;
}

.field__optional {
  color: var(--ash);
  font-weight: 400;
}

/* A field people never see; whatever fills it in is not a person. */
.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--wax);
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--flame);
}

.check + .field__error {
  margin-top: -0.9rem;
}

/* ---------- Download (on the key art) ---------- */

.download {
  position: relative;
  isolation: isolate;
  padding-top: clamp(9rem, 6rem + 14vw, 20rem);
  padding-bottom: var(--section-y);
}

.download__art {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(20rem, 12rem + 24vw, 36rem);
  z-index: -1;
}

.download__art img,
.download__art::after {
  position: absolute;
  inset: 0;
  -webkit-mask: url("/assets/img/torn-top.svg") top / 100% var(--tear) no-repeat,
    linear-gradient(180deg, #000 0, #000 55%, transparent 100%) bottom / 100% calc(100% - var(--tear) + 1px) no-repeat;
  mask: url("/assets/img/torn-top.svg") top / 100% var(--tear) no-repeat,
    linear-gradient(180deg, #000 0, #000 55%, transparent 100%) bottom / 100% calc(100% - var(--tear) + 1px) no-repeat;
}

.download__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}

.download__art::after {
  content: "";
  background: linear-gradient(90deg, rgba(8, 9, 12, 0.72) 0, rgba(8, 9, 12, 0.15) 60%, rgba(8, 9, 12, 0) 100%);
}

.platforms {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 62rem;
}

.platform {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.4rem;
}

.platform h3 {
  font-size: var(--fs-h3);
}

.platform__note {
  color: var(--wax-dim);
  font-size: var(--fs-sm);
}

.platform__action {
  margin-top: 0.6rem;
}

.platform__action .muted {
  color: var(--wax-dim);
  font-style: italic;
}

@media (min-width: 52em) {
  .platforms:not(.platforms--compact) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2.5rem;
  }

  .platforms:not(.platforms--compact) .platform {
    padding-block: 1.6rem 0;
  }
}

.platforms--compact .platform {
  padding-block: 1rem;
}

.platforms--compact .platform h3 {
  font-size: var(--fs-h4);
}

@media (min-width: 40em) {
  .platforms--compact .platform {
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.25rem 1.25rem;
  }

  .platforms--compact .platform__action {
    margin-top: 0;
    text-align: right;
  }
}

.download__status {
  margin-top: 2.25rem;
  max-width: var(--measure);
}

.download__status .btn {
  margin-top: 1.1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: auto;
  padding-block: 3.5rem 2.5rem;
  color: var(--wax-dim);
  font-size: var(--fs-sm);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-strong) 15%, var(--hair-strong) 85%, transparent);
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer .brand__name {
  font-size: 1.6rem;
}

.site-footer__free {
  margin-top: 0.75rem;
  color: var(--wax);
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.site-footer a {
  color: var(--wax);
  text-decoration-color: rgba(221, 211, 184, 0.3);
}

.site-footer__legal {
  margin-top: 0.25rem;
  color: var(--wax-dim);
}

@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--wax-dim);
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-bottom: 1px solid rgba(154, 147, 127, 0.55);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.32);
  color: var(--wax);
  caret-color: var(--flame);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field input::placeholder {
  color: rgba(154, 147, 127, 0.6);
}

.field input:hover {
  border-bottom-color: rgba(221, 211, 184, 0.6);
}

.field input:focus {
  border-bottom-color: var(--flame);
  box-shadow: 0 1px 0 0 var(--flame);
  background: rgba(0, 0, 0, 0.45);
}

.field input:focus-visible {
  outline: 2px solid rgba(255, 154, 60, 0.9);
  outline-offset: 2px;
}

.field input[aria-invalid="true"] {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}

.field input:disabled {
  color: var(--ash);
  border-bottom-color: rgba(94, 95, 102, 0.4);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--wax);
  -webkit-box-shadow: 0 0 0 100px #0c0d10 inset;
  caret-color: var(--flame);
}

.field__hint,
.field__error {
  margin: 0;
}

.field__hint {
  font-size: var(--fs-sm);
  color: var(--wax-dim);
  line-height: 1.4;
}

.field__error {
  display: flex;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--error);
  line-height: 1.4;
}

.field__error::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45em;
  background: var(--error);
  transform: rotate(45deg);
}

.form-alert {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--wax);
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 2px solid var(--error);
  background: linear-gradient(90deg, rgba(138, 46, 53, 0.22), rgba(138, 46, 53, 0));
}

.form-alert:empty {
  display: none;
}

.form-alert.is-ok {
  border-left-color: var(--flame);
  background: linear-gradient(90deg, rgba(168, 86, 28, 0.2), rgba(168, 86, 28, 0));
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.notice {
  position: relative;
  padding: 1rem 0 1rem 1.1rem;
  color: var(--wax);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.notice::before,
.notice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--hair-strong), var(--hair-strong) 70%, transparent);
}

.notice::before {
  top: 0;
}

.notice::after {
  bottom: 0;
}

.notice--mark {
  padding-left: 1.6rem;
}

.notice--mark > .notice__mark {
  position: absolute;
  left: 0.15rem;
  top: 1.45rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--steel);
  transform: rotate(45deg);
}

.muted {
  color: var(--wax-dim);
}

.small {
  font-size: var(--fs-sm);
}

/* ---------- Auth pages ---------- */

.auth {
  display: grid;
  min-height: calc(100vh - var(--header-h));
}

.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) var(--gutter);
}

.auth__box {
  width: 100%;
  max-width: 27rem;
}

.auth__box h1 {
  font-size: var(--fs-h1);
}

.auth__lede {
  margin-top: 0.9rem;
  margin-bottom: 2.2rem;
  color: rgba(221, 211, 184, 0.88);
}

.auth__after {
  margin-top: 2rem;
  padding-top: 1.4rem;
  font-size: var(--fs-sm);
  color: var(--wax-dim);
}

.auth__art {
  display: none;
  position: relative;
}

.auth__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 22%, #000 100%);
  mask: linear-gradient(90deg, transparent 0, #000 22%, #000 100%);
}

.auth__art figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  margin: 0;
  max-width: 18rem;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

@media (min-width: 60em) {
  .auth {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .auth__main {
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-right: var(--gutter);
  }

  .auth__art {
    display: block;
  }
}

.state {
  display: grid;
  gap: 1rem;
}

.state h2 {
  margin-top: 1.25rem;
  font-size: var(--fs-h3);
}

.state .auth__lede {
  margin-bottom: 0.5rem;
}

/* ---------- Account ---------- */

.account-head {
  padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.account-head h1 {
  margin-top: 0.9rem;
  font-size: var(--fs-h1);
  overflow-wrap: anywhere;
}

.account-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 0.9rem;
  color: var(--wax-dim);
  font-size: var(--fs-sm);
}

.panel {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.panel__grid {
  display: grid;
  gap: 1.25rem 3rem;
}

.panel h2 {
  font-size: var(--fs-h3);
}

.panel__desc {
  margin-top: 0.6rem;
  color: var(--wax-dim);
  font-size: var(--fs-sm);
  max-width: 22rem;
}

.panel__body {
  max-width: 34rem;
}

.panel__body > * + * {
  margin-top: 1.25rem;
}

.kv {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
}

.kv__value {
  font-size: 1.15rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wax-dim);
}

.tag::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  transform: rotate(45deg);
  background: var(--ash);
}

.tag--ok {
  color: var(--wax);
}

.tag--ok::before {
  background: var(--flame);
}

.codes {
  list-style: none;
  max-width: 24rem;
  margin-bottom: 1.25rem;
}

.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding-block: 0.5rem;
}

.code__text {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  user-select: all;
}

.code--used .code__text {
  color: var(--ash);
  text-decoration: line-through;
}

.inline-form {
  display: grid;
  gap: 1rem;
}

.inline-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.inline-form__row .field {
  flex: 1 1 14rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 56em) {
  .panel__grid {
    grid-template-columns: 17rem minmax(0, 1fr);
  }
}

/* Heroes per realm */

.realm-heroes + .realm-heroes {
  margin-top: 2.75rem;
}

.realm-heroes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  padding-bottom: 0.9rem;
}

.realm-heroes__head h3 {
  font-size: var(--fs-h4);
}

.heroes {
  list-style: none;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding-block: 1rem;
}

.hero-row__name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero-row__title {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--wax-dim);
}

.hero-row__level {
  justify-self: end;
  align-self: start;
  font-weight: 700;
  white-space: nowrap;
}

.hero-row__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  margin: 0.35rem 0 0;
  font-size: var(--fs-sm);
}

.hero-row__facts div {
  display: flex;
  gap: 0.4rem;
}

.hero-row__facts dt {
  color: var(--wax-dim);
}

.hero-row__facts dd {
  margin: 0;
  color: var(--wax);
}

.heroes__empty {
  padding-block: 1rem;
  color: var(--wax-dim);
  font-style: italic;
}

@media (min-width: 62em) {
  .hero-row {
    grid-template-columns: minmax(10rem, 1.5fr) 5rem minmax(0, 4.5fr);
    align-items: baseline;
  }

  .hero-row__level {
    justify-self: start;
  }

  .hero-row__facts {
    grid-column: auto;
    margin: 0;
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 0.8fr 1fr;
    gap: 0.25rem 1.25rem;
  }

  .hero-row__facts div {
    display: grid;
    gap: 0;
  }

  .hero-row__facts dt {
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* ---------- Long-form text (privacy, terms) ---------- */

.doc {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y);
}

.doc__head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.doc__head h1 {
  margin-top: 0.9rem;
  font-size: var(--fs-h1);
}

.prose {
  max-width: 42rem;
  line-height: 1.65;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.4em;
  font-size: var(--fs-h3);
}

.prose h3 {
  margin-top: 1.9em;
  font-size: var(--fs-h4);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose ul li::marker {
  color: var(--flame-dim);
}

.prose ol li::marker {
  color: var(--wax-dim);
  font-weight: 700;
}

.prose strong {
  font-weight: 700;
  color: var(--lit);
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--hair-strong);
  color: var(--wax-dim);
  font-style: italic;
}

.prose hr {
  border: 0;
  height: 1px;
  margin-block: 2.5em;
  background: linear-gradient(90deg, transparent, var(--hair-strong) 20%, var(--hair-strong) 80%, transparent);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--hair);
}

.prose th {
  color: var(--wax-dim);
  font-weight: 500;
}

.stub {
  color: var(--wax-dim);
  font-style: italic;
}

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

.lost {
  display: grid;
  align-content: center;
  min-height: 60vh;
  padding-block: var(--section-y);
}

.lost h1 {
  margin-top: 0.9rem;
  font-size: var(--fs-h1);
}

.lost p:not(.eyebrow) {
  margin-top: 1.1rem;
  max-width: var(--measure);
}

.lost .button-row {
  margin-top: 2rem;
}

@media print {
  .site-header,
  .site-footer,
  .embers {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
