:root {
  color-scheme: dark;
  --ink: #0a0807;
  --stone: #141110;
  --stone-2: #1d1916;
  --line: #70592f;
  --line-dim: #2f281b;
  --gold: #d6be8c;
  --gold-hi: #fff4dc;
  --text: #cfc6b8;
  --muted: #a0968a;
  --blood: #d8574a;
  --flame: #f0893a;
  --magic: #8f98f0;
  --rare: #e0c24e;
  --display: "Cinzel", Georgia, serif;
  --wordmark: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Spectral", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--gold); margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--stone-2); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; }

/* top bar */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(10, 8, 7, .84);
  border-bottom: 1px solid var(--line-dim);
  backdrop-filter: blur(6px);
}
.brand { font: 700 1rem/1 var(--display); color: var(--gold); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.top nav { display: flex; gap: 24px; }
.top nav a { font: 500 .9rem/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: .05em; white-space: nowrap; padding: 8px 0; }
.top nav a:hover { color: var(--gold-hi); }

/* hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 120px 0 72px;
  background: var(--ink) url("../images/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(10, 8, 7, .35) 42%, rgba(10, 8, 7, .62) 100%),
    linear-gradient(to right, rgba(10, 8, 7, .9), rgba(10, 8, 7, .2) 70%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { width: min(1160px, 100%); margin: 0 auto; padding: 0 16px; }
.eyebrow { font: 700 1rem/1 var(--display); letter-spacing: .4em; color: var(--blood); margin-bottom: 14px; }
h1 {
  font-family: var(--wordmark);
  font-size: clamp(2.6rem, 8.6vw, 6.6rem);
  line-height: 1.02;
  color: var(--gold-hi);
  text-shadow: 0 0 34px rgba(240, 120, 40, .45), 0 2px 2px #000;
}
h1 span { display: block; color: var(--flame); }
.tagline { font: 700 clamp(1.2rem, 2.6vw, 1.7rem)/1.3 var(--display); color: var(--gold); margin-top: 22px; }
.hero-copy { max-width: 34em; margin-top: 12px; font-size: 1.2rem; color: #e4dccf; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 14px 28px;
  font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-hi);
  background: linear-gradient(#5c1712, #34100d);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px #1a0c09, inset 0 0 0 4px #6b2c1e;
}
.btn:hover { background: linear-gradient(#7c2018, #481510); }
.status { font: 500 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* the three pillars */
.pitch { border-block: 1px solid var(--line-dim); background: var(--stone); }
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 44px; }
.pitch-grid > div { padding: 0 28px; border-left: 1px solid var(--line-dim); }
.pitch-grid > div:first-child { padding-left: 0; border-left: 0; }
.pitch-grid > div:last-child { padding-right: 0; }
.pitch h2 { font-size: 1.3rem; margin-bottom: 10px; }

.section { padding: 84px 0; }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-head p { margin-top: 10px; color: var(--muted); }

/* the tiers, opened one at a time as on character select */
.tier-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 26px; }
.tier-tabs[hidden] { display: none; }
.tier-tab {
  display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
  padding: 14px; min-height: 118px;
  color: var(--text); font-family: var(--body);
  background: var(--stone);
  border: 1px solid var(--line-dim);
  border-left: 3px solid var(--line-dim);
}
.tier-tab:hover { border-color: var(--line); }
.tier-tab[aria-pressed="true"] { background: var(--stone-2); border-color: var(--line); border-left-color: var(--flame); }
.tier-num { font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--magic); }
.tier-name { font: 700 1rem/1.25 var(--display); color: var(--gold); }
.tier-count { margin-top: auto; font-size: .92rem; color: var(--muted); }
.tier-panel + .tier-panel { margin-top: 40px; }
.tier-tabs:not([hidden]) ~ .tier-panel + .tier-panel { margin-top: 0; }
.tier-panel[hidden] { display: none; }
.tier-heading { font-size: 1.35rem; margin-bottom: 18px; }

.damned-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.damned {
  display: grid; grid-template-columns: 136px 1fr; gap: 18px;
  padding: 18px;
  background: var(--stone);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px var(--stone), inset 0 0 0 5px var(--line-dim);
}
.damned-art {
  align-self: start; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 62%, rgba(240, 120, 40, .3), transparent 66%);
}
.damned-art img { width: 100%; height: 100%; object-fit: contain; }
.damned h4 { font-size: 1.25rem; }
.damned-title { font-size: 1rem; color: var(--muted); font-style: italic; }
.damned-lore { margin-top: 10px; font-size: 1.02rem; line-height: 1.5; }
.objective { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-dim); font-size: 1rem; line-height: 1.45; color: var(--rare); }
.objective span { display: block; font: 700 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.needs { margin-top: 8px; font-size: .95rem; color: var(--blood); }

/* the waypoint list */
.route { background: var(--stone); border-block: 1px solid var(--line-dim); }
.zones { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dim); }
.zone {
  display: grid; grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1fr) 60px;
  gap: 16px; align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-dim);
}
.zone:hover { background: var(--stone-2); }
.zone-num { font: 700 1rem/1 var(--display); color: var(--muted); }
.zone-name { font: 700 1.08rem/1.25 var(--display); color: var(--gold); }
.zone-name small { display: block; margin-top: 3px; font: 400 .95rem/1.3 var(--body); color: var(--muted); }
.zone-boss { color: var(--blood); }
.zone-heat { text-align: right; font: 700 .95rem/1 var(--display); color: var(--flame); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot { display: block; text-decoration: none; background: var(--stone); border: 1px solid var(--line-dim); }
.shot:hover { border-color: var(--line); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot span { display: block; padding: 10px 12px; font-size: 1rem; line-height: 1.3; color: var(--text); }

.viewer { width: min(1400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; background: var(--ink); color: var(--text); border: 1px solid var(--line); }
.viewer::backdrop { background: rgba(0, 0, 0, .85); }
.viewer img { width: 100%; }
.viewer p { padding: 10px 14px; }
.viewer-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; color: var(--gold-hi); background: rgba(10, 8, 7, .8); border: 1px solid var(--line); cursor: pointer; }

.foot { padding: 40px 0; border-top: 1px solid var(--line-dim); background: #070605; font-size: .95rem; color: var(--muted); }
.foot-name { font: 700 1rem/1.3 var(--display); color: var(--gold); margin-bottom: 8px; }
.foot p:last-child { max-width: 48em; }

.lost { min-height: 100svh; display: grid; place-content: center; gap: 16px; padding: 16px; text-align: center; }
.lost h1 { font-size: clamp(2.2rem, 7vw, 4rem); }

@media (max-width: 960px) {
  .tier-tabs { grid-template-columns: 1fr; }
  .tier-tab { min-height: 0; display: grid; grid-template-columns: 62px 1fr; column-gap: 12px; align-items: center; }
  .tier-count { grid-column: 2; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .top { padding: 10px 16px; }
  .brand { font-size: .82rem; }
  .top nav { gap: 14px; }
  .top nav a { font-size: .78rem; }
  .pitch-grid { grid-template-columns: 1fr; gap: 26px; }
  .pitch-grid > div, .pitch-grid > div:first-child { padding: 0; border: 0; }
  .section { padding: 60px 0; }
  .damned-grid { grid-template-columns: 1fr; }
  .damned { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; }
  .zone { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; }
  .zone-boss { grid-column: 2; grid-row: 2; }
  .zone-heat { grid-column: 3; grid-row: 1; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand { display: none; }
  .top { justify-content: center; }
  .top nav { gap: 22px; }
  .top nav a { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers { display: none; }
}
