@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a0705;
  --bg2: #120c08;
  --stone: #1b130e;
  --stone2: #251a12;
  --line: #3a2a1c;
  --text: #f2e7d1;
  --muted: #b6a78c;
  --ember: #ff6a1a;
  --ember2: #ffa23a;
  --gold: #e3b653;
  --gold2: #b88a2a;
  --titan: #5fb7c9;
  --ok: #6fdc8c;
  --err: #ff6b6b;
  --serif: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: clip;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 600px at 50% -15%, rgba(255, 106, 26, 0.2), transparent 62%),
    radial-gradient(700px 500px at 100% 40%, rgba(95, 183, 201, 0.055), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(10, 7, 5, 0.93), rgba(10, 7, 5, 0.97)),
    url("/assets/art/lands-below-map.webp") center / cover no-repeat;
  content: "";
  opacity: 0.09;
  pointer-events: none;
}

a {
  color: var(--ember2);
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(255, 106, 26, 0.45);
  color: #fff6df;
}

#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 7, 5, 0.88);
  backdrop-filter: blur(10px);
}

header .wrap {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.3rem;
  max-width: 300px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand > span {
  color: var(--ember);
}

.brand small {
  width: 100%;
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

nav a {
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  border-color: rgba(227, 182, 83, 0.16);
  background: rgba(227, 182, 83, 0.07);
  color: var(--gold);
}

nav a.cta {
  border-color: var(--gold2);
  color: var(--gold);
}

nav a.cta:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1006;
}

nav a:focus-visible,
.brand:focus-visible,
.burger:focus-visible {
  outline: 2px solid var(--ember2);
  outline-offset: 3px;
}

.burger {
  display: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 9.5rem;
  text-align: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(10, 7, 5, 0.18), rgba(10, 7, 5, 0.76) 68%, rgba(10, 7, 5, 0.97)),
    linear-gradient(180deg, rgba(10, 7, 5, 0.45), transparent 35%, rgba(10, 7, 5, 0.55));
}

.hero::after {
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: -2;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.24), transparent 65%);
  content: "";
  pointer-events: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--gold2);
  border-radius: 2px;
  background: rgba(227, 182, 83, 0.06);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.3rem;
  background: linear-gradient(180deg, #fff2cf 0%, var(--gold) 42%, var(--ember) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 106, 26, 0.32));
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: #d1c1aa;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.8;
}

.actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ember2), var(--ember) 60%, #c24a08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset, 0 6px 22px rgba(255, 106, 26, 0.28);
  color: #1a0b02;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn:focus-visible,
.copy-button:focus-visible,
.os-tabs button:focus-visible {
  outline: 2px solid var(--ember2);
  outline-offset: 3px;
}

.btn.ghost {
  background: rgba(10, 7, 5, 0.42);
  box-shadow: none;
  color: var(--gold);
}

.btn.ghost:hover {
  background: rgba(227, 182, 83, 0.1);
}

.btn[aria-disabled="true"] {
  transform: none;
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.5;
}

.btn:disabled {
  transform: none;
  cursor: wait;
  opacity: 0.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 2.2rem auto 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(227, 182, 83, 0.24);
  list-style: none;
}

.hero-meta li {
  display: grid;
  min-width: 150px;
  gap: 0.15rem;
  padding: 0 1.4rem;
  border-left: 1px solid var(--line);
}

.hero-meta li:first-child {
  border-left: 0;
}

.hero-meta span {
  color: #8f7f6c;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-meta strong {
  color: #d8c8b1;
  font-size: 0.74rem;
  font-weight: 650;
}

.mountains {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 170px;
  pointer-events: none;
}

section {
  padding: 3.8rem 0;
}

h2 {
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

h2::after {
  display: block;
  width: 70px;
  height: 2px;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--ember), transparent);
  content: "";
}

.section-kicker {
  margin-bottom: 0.8rem;
  color: var(--ember2);
  font-family: var(--serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sub {
  margin: 0.9rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--stone2), var(--stone));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ember), transparent);
  content: "";
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold2);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.card.titan::before {
  background: linear-gradient(180deg, var(--titan), transparent);
}

.card .ic {
  margin-bottom: 0.9rem;
  font-size: 1.8rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

.card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
}

.panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, var(--stone2), var(--stone));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.chronicle-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 7, 5, 0.97), rgba(10, 7, 5, 0.78)),
    url("/assets/art/lands-below-map.webp") center / cover;
}

.banner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  color: var(--ember2);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.stat span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signup-callout {
  position: relative;
  overflow: hidden;
}

.signup-art {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
}

.signup-art::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.17), transparent 64%);
  content: "";
}

.signup-art img {
  position: relative;
  width: 150px;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.6));
}

.signup-art span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #8e7962;
  font-family: var(--serif);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.7rem 0 2.8rem;
  text-align: center;
  isolation: isolate;
}

.page-hero h1 {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.05;
  text-transform: uppercase;
}

.page-hero p:not(.section-kicker) {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
}

.page-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-hero-art img {
  position: absolute;
  top: -3rem;
  right: 4%;
  width: 260px;
  max-height: 420px;
  object-fit: contain;
  opacity: 0.34;
  filter: drop-shadow(0 0 30px rgba(155, 81, 203, 0.2));
}

.download-hero {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 106, 26, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(37, 26, 18, 0.68), rgba(10, 7, 5, 0.2));
}

.timeline-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 7, 5, 0.97), rgba(10, 7, 5, 0.76)),
    url("/assets/art/lands-below-map.webp") center / cover;
}

.register-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(95, 183, 201, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(37, 26, 18, 0.58), rgba(10, 7, 5, 0.2));
}

.timeline-count {
  width: fit-content;
  margin: 1.4rem auto 0 !important;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(10, 7, 5, 0.55);
  color: var(--muted) !important;
  font-size: 0.74rem !important;
}

.timeline-count strong {
  color: var(--gold);
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.os-tabs button {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--stone);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.os-tabs button:hover {
  color: var(--text);
}

.os-tabs button.on {
  border-color: var(--gold2);
  background: rgba(227, 182, 83, 0.08);
  color: var(--gold);
}

.dl-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 1.4rem;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-title-row h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.panel-title-row h2::after {
  display: none;
}

.status-badge {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(111, 220, 140, 0.4);
  border-radius: 999px;
  background: rgba(111, 220, 140, 0.06);
  color: var(--ok);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.planned {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.download-panel .sub {
  margin-bottom: 1.2rem;
}

.meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.meta td {
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}

.meta td:first-child {
  width: 24%;
  color: var(--muted);
}

.meta code {
  color: var(--ember2);
  font-size: 0.64rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.download-actions {
  justify-content: flex-start;
  margin-top: 1.4rem;
}

.copy-button {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.copy-button:hover {
  border-color: var(--gold2);
  background: rgba(227, 182, 83, 0.06);
  color: var(--gold);
}

.notice {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--gold2);
  border-radius: 5px;
  background: rgba(227, 182, 83, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
}

.notice.warning {
  border-color: rgba(255, 106, 26, 0.35);
  background: rgba(255, 106, 26, 0.04);
}

.perks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  list-style: none;
}

.perks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.perks li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  content: "◆";
  font-size: 0.55rem;
}

.steps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  padding-left: 3.2rem;
  color: var(--muted);
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--gold2);
  border-radius: 50%;
  background: var(--stone);
  color: var(--gold);
  content: counter(steps);
  font-family: var(--serif);
  font-size: 0.78rem;
}

.steps b {
  color: var(--text);
}

.steps code {
  padding: 0.1rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ember2);
  font-size: 0.8rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.pill.done {
  border-color: rgba(111, 220, 140, 0.55);
  color: var(--ok);
}

.pill.now {
  border-color: rgba(255, 106, 26, 0.55);
  color: var(--ember2);
}

.pill.ctx {
  border-color: rgba(95, 183, 201, 0.55);
  color: var(--titan);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold2), var(--line) 70%, transparent);
  content: "";
}

.tl {
  position: relative;
  padding: 0 0 2rem 4rem;
}

.tl::before {
  position: absolute;
  top: 0.35rem;
  left: 11px;
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  content: "";
}

.tl.done::before {
  border-color: var(--ok);
  background: var(--ok);
}

.tl.now::before {
  border-color: var(--ember);
  background: var(--ember);
  box-shadow: 0 0 0 6px rgba(255, 106, 26, 0.16), 0 0 18px rgba(255, 106, 26, 0.75);
}

.tl.ctx::before {
  border-color: var(--titan);
  background: var(--titan);
}

.tl .date {
  margin-bottom: 0.35rem;
  color: var(--ember2);
  font-family: var(--serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl .box {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--stone2), var(--stone));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.tl.now .box {
  border-color: rgba(255, 106, 26, 0.34);
}

.tl.ctx .box {
  border-color: rgba(95, 183, 201, 0.2);
}

.tl h3 {
  margin-bottom: 0.7rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.timeline-empty {
  margin-left: 4rem;
  padding: 2rem;
  border: 1px dashed var(--gold2);
  border-radius: 6px;
  background: var(--stone);
  text-align: center;
}

.timeline-empty > span {
  color: var(--ember2);
  font-size: 1.8rem;
}

.timeline-empty h2 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.15rem;
}

.timeline-empty p {
  color: var(--muted);
  font-size: 0.84rem;
}

.markdown-body {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 1.5rem 0 0.65rem;
  color: #e4d4bb;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
}

.markdown-body h1 { font-size: 1.25rem; }
.markdown-body h2 { font-size: 1.08rem; }
.markdown-body h3 { font-size: 0.96rem; }
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 { font-size: 0.88rem; }

.markdown-body p {
  margin-bottom: 0.9rem;
}

.markdown-body strong {
  color: #eadcc5;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.markdown-body li {
  margin-bottom: 0.3rem;
}

.markdown-body li::marker {
  color: var(--ember2);
}

.markdown-body a {
  color: var(--ember2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body code {
  padding: 0.12rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.25);
  color: #efbd85;
  font-size: 0.78rem;
}

.markdown-body pre {
  margin: 1rem 0;
  padding: 0.9rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a0705;
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.markdown-body blockquote {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--ember);
  background: rgba(255, 106, 26, 0.045);
  color: #c8b59b;
}

.markdown-body blockquote p {
  margin-bottom: 0;
}

.markdown-body hr {
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

.registration-grid {
  align-items: start;
}

.signup-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.signup-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 19, 14, 0.98), rgba(27, 19, 14, 0.82)),
    url("/assets/art/titan-portrait.webp") right top / cover no-repeat;
  content: "";
  opacity: 0.72;
}

.demo-notice {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 106, 26, 0.28);
  border-left: 3px solid var(--ember);
  border-radius: 3px;
  background: rgba(255, 106, 26, 0.045);
}

.demo-notice strong {
  color: var(--ember2);
  font-size: 0.76rem;
}

.demo-notice p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.counter {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.counter b {
  color: var(--ember2);
  font-family: var(--serif);
  font-size: 1rem;
}

form {
  display: grid;
  gap: 0.95rem;
}

form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #0d0906;
  color: var(--text);
  font-size: 0.88rem;
}

input::placeholder {
  color: #6c5d4d;
}

input:focus,
select:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.16);
}

input:user-invalid {
  border-color: rgba(255, 107, 107, 0.65);
}

select option {
  background: #17100b;
  color: var(--text);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.check input {
  flex: 0 0 auto;
  margin-top: 0.25rem;
  accent-color: var(--ember);
}

#msg {
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

#msg.ok {
  color: var(--ok);
}

#msg.err {
  color: var(--err);
}

.form-footnote,
.noscript-message {
  color: #786958;
  font-size: 0.62rem;
  text-align: center;
}

.noscript-message {
  color: var(--ember2);
}

details {
  margin-bottom: 0.7rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--stone);
}

summary {
  color: #ddc9aa;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 700;
}

details p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

details a {
  color: var(--ember2);
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

footer p {
  max-width: 780px;
  margin: 0 auto 0.45rem;
}

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
  max-width: min(420px, calc(100% - 2.4rem));
  padding: 0.8rem 1rem;
  border: 1px solid var(--gold2);
  border-left: 3px solid var(--ember);
  border-radius: 4px;
  background: #21170f;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  color: #eadcc5;
  font-size: 0.76rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-box {
    grid-template-columns: 1fr;
  }

  .banner-stats {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 780px) {
  header .wrap {
    position: relative;
    min-height: 66px;
  }

  .burger {
    display: block;
  }

  nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 0.7rem;
    border-bottom: 1px solid var(--line);
    background: rgba(18, 12, 8, 0.98);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem;
    text-align: center;
  }

  .hero {
    padding: 5.5rem 0 8rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .hero-bg img {
    object-position: 58% center;
  }

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

  .signup-art {
    min-height: 210px;
  }

  .signup-art img {
    width: 120px;
    max-height: 230px;
  }

  .page-hero-art {
    opacity: 0.55;
  }

  .page-hero-art img {
    right: -3rem;
    width: 210px;
  }

  .registration-grid {
    gap: 1.4rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.43rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 690px;
    padding-top: 4.5rem;
  }

  .hero p {
    font-size: 0.92rem;
  }

  .hero-meta {
    display: grid;
    width: min(100%, 340px);
    gap: 0;
  }

  .hero-meta li {
    min-width: 0;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .hero-meta li:first-child {
    border-top: 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

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

  .panel {
    padding: 1.3rem;
  }

  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-actions .btn,
  .download-actions .copy-button {
    width: 100%;
  }

  .meta td:first-child {
    width: 34%;
  }

  .page-hero {
    padding: 3.6rem 0 2rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .page-hero-art {
    display: none;
  }

  .legend {
    justify-content: flex-start;
  }

  .timeline::before {
    left: 9px;
  }

  .tl {
    padding: 0 0 1.5rem 2.4rem;
  }

  .tl::before {
    left: 0;
    width: 20px;
    height: 20px;
  }

  .tl .box {
    padding: 1rem;
  }

  .tl h3 {
    font-size: 0.94rem;
  }

  .pill {
    margin-top: 0.35rem;
    margin-left: 0;
  }

  .timeline-empty {
    margin-left: 2.4rem;
  }

  .toast {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
