:root {
  /* heroic pulp: warm amber, parchment and rust */
  --bg: #140e0a;
  --bg-2: #1c140e;
  --card: #221811;
  --line: #3d2c1e;
  --text: #f1e6d0;
  --muted: #b8a58a;
  --blood: #c0561d;      /* rust orange (accent) */
  --blood-dim: #7e3714;
  --gold: #e7ae4f;       /* amber */
  --mist: rgba(231, 174, 79, .06);
  --head: "Cinzel", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -10%, #3a2413 0%, transparent 60%);
  color: var(--text);
  font: 400 1.18rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-color: rgba(231, 174, 79, .35); text-underline-offset: 3px; }
a:hover { color: #f6cd80; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .03em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: .2em 0 .4em; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(20, 14, 10, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--head); font-size: 1rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.top nav { display: flex; gap: 1.3rem; margin-left: auto; flex-wrap: wrap; }
.top nav a { font-family: var(--head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav a[aria-current] { border-bottom: 1px solid var(--blood); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.2rem; padding: .2rem .6rem; border-radius: 4px; }

/* hero */
.hero { position: relative; text-align: center; }
.hero-art { position: relative; max-width: 1920px; margin: 0 auto; }
.hero-bg { width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,14,10,.6) 80%, var(--bg) 100%), linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 0 1rem 3rem; margin-top: -3.5vw; }
.hero-title { font-size: clamp(2rem, 6vw, 4rem); margin: 0; text-shadow: 0 3px 24px #000; }
.tagline { font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--text); max-width: 34ch; margin: 1rem auto 1.6rem; text-shadow: 0 2px 12px #000; }
.btn { display: inline-block; font-family: var(--head); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; padding: .8rem 1.6rem; color: var(--text); text-decoration: none; background: var(--blood-dim); border: 1px solid var(--blood); border-radius: 2px; transition: background .2s; }
.btn:hover { background: var(--blood); color: #fff; }

/* layout */
main { min-height: 70vh; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.05em; }
.wrap.prose { font-size: 1.24rem; }
.lede { color: var(--muted); font-style: italic; margin-top: -.4rem; }
.center { text-align: center; }
.section-title {
  font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 1rem; margin: 2.2rem 0 1.2rem;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.kicker { font-family: var(--head); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.kicker a { color: var(--muted); }
.now { border-left: 2px solid var(--blood); padding-left: 1.2rem; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--blood-dim); color: var(--text); }
.card[hidden] { display: none; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; filter: saturate(.85); }
.portrait.blank, .blank { display: grid; place-items: center; background: linear-gradient(135deg, #2a1d13, #160f0a); color: #6b5238; font-family: var(--head); font-size: 2.2rem; }
.card-body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.card-name { font-family: var(--head); font-size: 1rem; }
.card-sub { font-size: .98rem; color: var(--muted); line-height: 1.35; }
.badge { font-family: var(--head); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; padding: .15rem .45rem; border-radius: 2px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.dead, .badge.failed { color: #e6a3a3; border-color: var(--blood-dim); }
.badge.active { color: var(--gold); border-color: rgba(231,174,79,.4); }
.badge.done { color: #9fc2a0; border-color: #3c5a3e; }

/* latest + chronicle list */
.latest, .entry {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.4rem; align-items: center;
  text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: border-color .2s;
}
.latest:hover, .entry:hover { border-color: var(--blood-dim); color: var(--text); }
.latest-img, .entry-img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: 50% 20%; }
.latest-body, .entry-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.4rem 1.2rem 0; }
.latest-title { font-family: var(--head); font-size: 1.7rem; line-height: 1.2; }
.entry-title { font-family: var(--head); font-size: 1.25rem; }
.latest-hook, .entry-hook { color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 1rem; }
.entry { grid-template-columns: 220px 1fr; }

/* session page */
.banner { width: auto; max-width: 100%; height: auto; max-height: 75vh; margin-left: auto !important; margin-right: auto !important; border-radius: 4px; margin: 1rem 0 1.8rem; border: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
blockquote { margin: 0; padding: 1.1rem 1.3rem; background: var(--card); border-left: 3px solid var(--blood); border-radius: 2px; }
blockquote p { margin: 0 0 .5rem; font-style: italic; font-size: 1.2rem; }
cite { font-family: var(--head); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pager a { font-family: var(--head); font-size: .85rem; text-decoration: none; }

/* character page */
.detail { display: grid; grid-template-columns: 340px 1fr; gap: 2.4rem; align-items: start; }
.detail-img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.role { color: var(--gold); font-style: italic; margin-top: -.6rem; }
.meta { color: var(--muted); font-size: 1rem; }

/* lore */
.quest, .lore-item { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.quest p:last-child, .lore-item p:last-child { margin-bottom: 0; }
.quest.done, .quest.failed { opacity: .72; }
.lore-item { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; }
.lore-img { width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: 3px; font-size: 1.4rem; }

.filter { width: 100%; max-width: 380px; margin: 0 0 1.4rem; padding: .6rem .9rem; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }
.filter:focus { outline: 1px solid var(--blood); }

footer { border-top: 1px solid var(--line); padding: 2rem clamp(1rem, 4vw, 2.5rem); text-align: center; color: var(--muted); font-size: 1rem; }
footer p { margin: .2rem 0; }
.fine { font-size: .85rem; opacity: .7; }

/* phones */
@media (max-width: 760px) {
  .menu { display: block; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; gap: .8rem; padding: .6rem 0; }
  .nav-open .top nav { display: flex; }
  .latest, .entry, .detail { grid-template-columns: 1fr; }
  .latest-body, .entry-body { padding: 0 1.1rem 1.1rem; }
  .detail-img { max-width: 360px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.big { grid-template-columns: repeat(2, 1fr); }
  .lore-item { grid-template-columns: 64px 1fr; }
  .lore-img { width: 64px; height: 64px; }
}

html { background: var(--bg); }
body { background-attachment: fixed; }

.btn { display: inline-flex; align-items: center; gap: .5rem; }
.btn.ghost { background: rgba(20,14,10,.55); border-color: rgba(241,230,208,.35); }
.btn.ghost:hover { background: rgba(20,14,10,.8); border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.btn-row.left { justify-content: flex-start; margin: 0 0 1.6rem; }
.entry-tags { display: flex; gap: .4rem; margin-top: .3rem; }
.entry-tags span { font-family: var(--head); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(231,174,79,.35); padding: .12rem .45rem; border-radius: 2px; }

.pods { display: grid; gap: .7rem; margin-top: 1.2rem; }
.pod { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; background: var(--card); border: 1px solid rgba(231,174,79,.25); border-radius: 8px; }
.pod-num { font-family: Cinzel, serif; color: var(--gold); min-width: 3.5rem; }
.pod-body { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.pod-title { font-size: 1.1rem; }
.pod-meta { font-size: .85rem; opacity: .75; }
.pod-act { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pod .soon { opacity: .55; font-style: italic; font-size: .9rem; }
@media (max-width: 640px) { .pod { flex-wrap: wrap; } .pod-act { width: 100%; } }

.latest-actions { margin-top: 1rem; align-items: center; }
.latest-actions .soon { opacity: .55; font-style: italic; font-size: .95rem; padding: 0 .4rem; }

/* embedded players */
.players { display: grid; grid-template-columns: 1fr minmax(0, 315px); gap: 1.2rem; align-items: start; margin: 1rem 0 1.4rem; }
.players iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.player-short iframe { aspect-ratio: 9 / 16; height: auto; max-height: 560px; }
.pod-wrap { display: grid; gap: .5rem; }
.inline-player:empty { display: none; }
.inline-player { display: flex; justify-content: center; }
.inline-player .pod-frame { width: 100%; border: 0; border-radius: 12px; }
.inline-player .short-frame { width: min(315px, 100%); aspect-ratio: 9 / 16; border: 0; border-radius: 12px; }
.latest-actions + .inline-player { margin-top: 1rem; }
@media (max-width: 720px) { .players { grid-template-columns: 1fr; } .player-short { max-width: 315px; margin: 0 auto; width: 100%; } }

/* burning logo (copied from Mourningfall, retinted to the Rusted Fist gold) */
.fire-logo { position: fixed; top: 76px; right: 14px; width: 120px; aspect-ratio: 1; z-index: 30; pointer-events: none; }
.fire-embers { position: absolute; left: -30%; top: -80%; width: 160%; height: 180%; pointer-events: none; }
.fire-glow { position: absolute; inset: -28%; background: radial-gradient(circle at 50% 56%, rgba(255,185,60,.5) 0%, rgba(215,105,25,.24) 34%, transparent 66%); mix-blend-mode: screen; animation: fireglow 2.6s ease-in-out infinite alternate; }
.fire-flick { position: absolute; inset: 0; display: block; animation: fireflick 1.3s ease-in-out infinite alternate; }
.fire-img { width: 100%; height: 100%; display: block; filter: url(#flame); }
.fire-tongue { position: absolute; left: 50%; top: 10%; width: 20%; height: 28%; transform-origin: 50% 100%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 82%, rgba(255,235,150,.9), rgba(255,160,40,.45) 46%, transparent 72%); filter: blur(5px); mix-blend-mode: screen; animation: firetongue .8s ease-in-out infinite alternate; }
@keyframes fireglow { 0% { opacity: .55; transform: scale(.94); } 50% { opacity: .95; transform: scale(1.04); } 100% { opacity: .7; transform: scale(.98); } }
@keyframes fireflick { 0% { filter: brightness(1) saturate(1); } 30% { filter: brightness(1.14) saturate(1.2); } 60% { filter: brightness(.96) saturate(1.05); } 100% { filter: brightness(1.2) saturate(1.25); } }
@keyframes firetongue { 0% { transform: translateX(-50%) scale(1,1); opacity: .7; } 50% { transform: translateX(-50%) scale(.82,1.28); opacity: .98; } 100% { transform: translateX(-50%) scale(1.1,.92); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .fire-glow, .fire-flick, .fire-tongue { animation: none; } .fire-img { filter: none; } .fire-embers { display: none; } }
