:root {
  --bg: #070606;
  --card: rgba(18, 13, 12, 0.88);
  --card-strong: rgba(25, 16, 15, 0.94);
  --ink: #f1e7d6;
  --muted: #b7a998;
  --bone: #e6d6bd;
  --red: #7f1d1d;
  --red-soft: #b23b36;
  --line: rgba(230, 214, 189, 0.22);
  --shadow: rgba(0, 0, 0, 0.62);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(127, 29, 29, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(105, 80, 55, 0.16), transparent 30rem),
    linear-gradient(180deg, #050404 0%, #100b0a 48%, #060505 100%);
  font-family: "Crimson Text", Georgia, serif;
  font-size: 19px;
  line-height: 1.62;
}

/* A little atmosphere over the whole page. Kept separate so it can be killed fast if it ever feels too busy. */
.page-mist {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 42%, rgba(0, 0, 0, 0.54)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 7px);
  opacity: 0.55;
  z-index: -1;
}

.site-hero {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px;
}

.hero-art {
  display: block;
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid rgba(230, 214, 189, 0.24);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.74);
}

.hero-copy {
  width: min(780px, calc(100% - 48px));
  margin: -36px auto 0;
  position: relative;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 10, 9, 0.94), rgba(8, 6, 6, 0.96));
  text-align: center;
  box-shadow: 0 20px 60px var(--shadow);
}

.eyebrow,
h1,
h2,
h3,
.filter,
.hero-button,
.character-card a,
.status {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.07em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.tagline {
  max-width: 620px;
  margin: 18px auto 24px;
  color: var(--bone);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-style: italic;
}

.hero-button,
.character-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(230, 214, 189, 0.3);
  color: var(--ink);
  background: rgba(127, 29, 29, 0.28);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-button:hover,
.character-card a:hover,
.filter:hover {
  border-color: rgba(178, 59, 54, 0.72);
  background: rgba(127, 29, 29, 0.44);
}

.archive-shell {
  width: min(var(--max), calc(100% - 28px));
  margin: 24px auto 0;
  padding-bottom: 58px;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 18px 52px var(--shadow);
  backdrop-filter: blur(4px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding: clamp(20px, 4vw, 36px);
}

.archive-mark {
  width: 100%;
  border: 1px solid rgba(230, 214, 189, 0.18);
}

h2 {
  margin: 0 0 14px;
  color: #f8ead7;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
  text-transform: lowercase;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.selector,
.notes {
  margin-top: 20px;
  padding: clamp(20px, 4vw, 36px);
}

.section-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  cursor: pointer;
  border: 1px solid rgba(230, 214, 189, 0.22);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  padding: 8px 12px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.filter.is-active {
  color: var(--ink);
  border-color: rgba(178, 59, 54, 0.66);
  background: rgba(127, 29, 29, 0.35);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.character-card {
  padding: 18px;
  border: 1px solid rgba(230, 214, 189, 0.20);
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.72)),
    var(--card-strong);
}

.status {
  margin: 0 0 10px;
  color: var(--red-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.character-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.6rem;
}

.meta {
  color: var(--muted);
  font-size: 0.96rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}

.tag-list span {
  border: 1px solid rgba(230, 214, 189, 0.16);
  padding: 3px 8px;
  color: var(--bone);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

@media (max-width: 760px) {
  body {
    font-size: 18px;
  }

  .site-hero {
    padding: 10px;
  }

  .hero-art {
    min-height: 230px;
  }

  .hero-copy {
    width: calc(100% - 20px);
    margin-top: -18px;
  }

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

  .archive-mark {
    max-width: 240px;
  }
}
