:root {
  --ink: #f0e6d2;
  --bone: #e8d8b9;
  --ash: #9f9a91;
  --mist: #c7c2b6;
  --charcoal: #151414;
  --night: #242027;
  --stone: #37343a;
  --blood: #8f2020;
  --ember: #d1742f;
  --gold: #b9954a;
  --green: #5e7564;
  --line: #090807;
  --muted: #b9afa0;
  --shadow: 9px 9px 0 rgba(9, 8, 7, 0.58);
  --small-shadow: 4px 4px 0 rgba(9, 8, 7, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(143, 32, 32, 0.28), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(209, 116, 47, 0.18), transparent 23%),
    linear-gradient(135deg, #151414 0%, #242027 30%, #3d332a 30.1%, #171512 63%, #332125 63.1%, #151414 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(240, 230, 210, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(240, 230, 210, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.8));
}

body::after {
  position: fixed;
  z-index: -2;
  right: -7vw;
  bottom: -9vw;
  content: "";
  width: 39vw;
  aspect-ratio: 1;
  border: 2px solid rgba(232, 216, 185, 0.16);
  border-radius: 50%;
  background: rgba(143, 32, 32, 0.14);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 1rem auto 0;
  padding: 0.82rem 0.92rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 32, 39, 0.88);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
  color: var(--bone);
  font-weight: 950;
}

.brand-lantern {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 8px 8px 12px 12px;
  background:
    radial-gradient(circle at 50% 62%, var(--ember) 0 10px, transparent 11px),
    linear-gradient(90deg, var(--stone) 0 30%, var(--gold) 30% 70%, var(--stone) 70%);
  box-shadow: 3px 3px 0 rgba(9, 8, 7, 0.6);
}

.brand-lantern::before {
  position: absolute;
  top: -10px;
  left: 50%;
  content: "";
  width: 18px;
  height: 14px;
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a,
.button,
.filter-button,
.contact-row a,
.hunt-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  box-shadow: var(--small-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.site-nav a {
  padding: 0.62rem 0.84rem;
  background: rgba(21, 20, 20, 0.9);
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.contact-row a:hover,
.contact-row a:focus-visible,
.hunt-card a:hover,
.hunt-card a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(9, 8, 7, 0.7);
  outline: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--gold);
  box-shadow: var(--small-shadow);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--line);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(2rem, 6vw, 5rem) 0 2rem;
}

.hero-copy,
.hunter-card,
.profile-strip,
.section-block {
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(232, 216, 185, 0.06) 0 1px, transparent 1px),
    linear-gradient(rgba(232, 216, 185, 0.06) 0 1px, transparent 1px),
    rgba(36, 32, 39, 0.96);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  padding: clamp(1.1rem, 4vw, 2.1rem);
}

.hero-copy::before,
.section-block::before {
  position: absolute;
  content: "";
  width: 118px;
  height: 24px;
  border: 2px solid rgba(9, 8, 7, 0.7);
  border-radius: 4px;
  background: rgba(143, 32, 32, 0.72);
  transform: rotate(-2deg);
}

.hero-copy::before {
  top: -13px;
  left: clamp(1rem, 4vw, 2rem);
}

.eyebrow,
.section-heading p,
.hunt-type,
.card-label,
.covenant-grid p {
  margin: 0;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  color: var(--bone);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(209, 116, 47, 0.22), 5px 5px 0 var(--line);
}

.hero-lede {
  max-width: 70ch;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.68;
}

.rune-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.rune-row span {
  display: grid;
  gap: 0.18rem;
  min-height: 58px;
  padding: 0.55rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 20, 20, 0.9);
  color: var(--bone);
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(9, 8, 7, 0.64);
}

.rune-row strong {
  color: var(--ember);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.hero-actions,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.contact-row a {
  padding: 0.78rem 1rem;
}

.button.primary {
  background: var(--blood);
}

.button.secondary {
  background: var(--gold);
  color: var(--line);
}

.oath-panel {
  position: relative;
  min-height: 535px;
}

.grave-map {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 0;
  width: min(370px, 78%);
  height: 300px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(232, 216, 185, 0.08) 0 1px, transparent 1px),
    linear-gradient(rgba(232, 216, 185, 0.08) 0 1px, transparent 1px),
    linear-gradient(135deg, rgba(21, 20, 20, 0.88), rgba(55, 52, 58, 0.78));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.grave-map::before {
  position: absolute;
  inset: 48px 42px;
  content: "";
  border-top: 4px dashed rgba(232, 216, 185, 0.34);
  border-right: 4px dashed rgba(232, 216, 185, 0.34);
  border-radius: 8px;
  transform: skewY(-8deg);
}

.sigil {
  position: absolute;
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  background: var(--bone);
  box-shadow: 3px 3px 0 rgba(9, 8, 7, 0.6);
}

.sigil.self {
  left: 56px;
  bottom: 48px;
  border-radius: 50%;
  background: var(--gold);
}

.sigil.ember {
  right: 86px;
  top: 46px;
  background: var(--ember);
  transform: rotate(45deg);
}

.sigil.mark {
  right: 58px;
  bottom: 58px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blood);
}

.bloodline {
  position: absolute;
  left: 78px;
  bottom: 78px;
  width: 188px;
  border-top: 5px dashed rgba(143, 32, 32, 0.62);
  transform: rotate(-24deg);
}

.hunter-card {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1.3rem;
  width: min(410px, calc(100% - 2rem));
  padding: 1.35rem;
  transform: rotate(2deg);
}

.eclipse-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  aspect-ratio: 1;
  margin: 0.8rem auto 1rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--charcoal) 0 26%, transparent 27%),
    conic-gradient(from 20deg, var(--blood), var(--ember), var(--gold), var(--mist), var(--stone), var(--blood));
  box-shadow: inset 0 0 0 12px rgba(232, 216, 185, 0.16), 5px 5px 0 rgba(9, 8, 7, 0.58);
}

.eclipse-ring::before,
.eclipse-ring::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(232, 216, 185, 0.28);
  border-radius: 50%;
}

.eclipse-ring::before {
  inset: 16px;
}

.eclipse-ring::after {
  inset: 34px;
}

.eclipse-ring span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bone);
  color: var(--line);
  font-size: 2rem;
  font-weight: 950;
}

.hunter-card h2 {
  margin-bottom: 1rem;
  color: var(--bone);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1;
  text-align: center;
}

.hunter-card dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.hunter-card dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 2px solid rgba(232, 216, 185, 0.18);
  border-radius: 8px;
  background: rgba(21, 20, 20, 0.8);
}

.hunter-card dt {
  color: var(--ember);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hunter-card dd {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.profile-strip,
.section-block {
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
}

.profile-strip {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.profile-strip p {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  font-weight: 820;
  line-height: 1.55;
  text-align: center;
}

.section-block {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.section-block::before {
  top: -13px;
  right: clamp(1rem, 5vw, 4rem);
  background: rgba(185, 149, 74, 0.72);
  transform: rotate(3deg);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-button {
  padding: 0.58rem 0.9rem;
  background: rgba(21, 20, 20, 0.92);
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--blood);
}

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

.hunt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(232, 216, 185, 0.06) 0 1px, transparent 1px),
    rgba(21, 20, 20, 0.92);
  background-size: 18px 18px;
  box-shadow: var(--small-shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hunt-card:nth-child(2n) {
  background:
    linear-gradient(90deg, rgba(143, 32, 32, 0.12) 0 1px, transparent 1px),
    rgba(32, 27, 27, 0.94);
  background-size: 18px 18px;
}

.hunt-card:nth-child(3n) {
  background:
    linear-gradient(90deg, rgba(185, 149, 74, 0.1) 0 1px, transparent 1px),
    rgba(28, 29, 28, 0.94);
  background-size: 18px 18px;
}

.hunt-card.is-hidden {
  display: none;
}

.hunt-card:hover {
  transform: translateY(-4px);
}

.hunt-rank {
  position: absolute;
  top: -14px;
  right: 16px;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 0.45rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--blood);
  color: var(--bone);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 3px 3px 0 rgba(9, 8, 7, 0.58);
}

.hunt-card h3 {
  margin: 0.35rem 0 0.7rem;
  color: var(--bone);
  font-size: 1.45rem;
  line-height: 1.05;
}

.hunt-card p:not(.hunt-type) {
  color: var(--muted);
  line-height: 1.58;
}

.hunt-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: auto 0 1rem;
  list-style: none;
}

.hunt-card li {
  padding: 0.36rem 0.52rem;
  border: 2px solid rgba(232, 216, 185, 0.18);
  border-radius: 8px;
  background: rgba(185, 149, 74, 0.26);
  color: var(--bone);
  font-size: 0.78rem;
  font-weight: 850;
}

.hunt-card a {
  align-self: flex-start;
  padding: 0.62rem 0.72rem;
  background: var(--gold);
  color: var(--line);
}

.relic-section,
.covenant-section {
  background:
    linear-gradient(rgba(36, 32, 39, 0.9), rgba(36, 32, 39, 0.9)),
    linear-gradient(135deg, var(--blood), var(--gold), var(--green));
}

.relic-grid article,
.covenant-grid article {
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 20, 20, 0.92);
  box-shadow: var(--small-shadow);
}

.relic {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 0.85rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(9, 8, 7, 0.58);
}

.relic.blade {
  background:
    linear-gradient(45deg, transparent 0 40%, var(--mist) 40% 53%, transparent 53%),
    var(--stone);
}

.relic.shield {
  border-radius: 8px 8px 18px 18px;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(232, 216, 185, 0.45) 42% 55%, transparent 55%),
    linear-gradient(90deg, var(--blood) 0 50%, var(--gold) 50%);
}

.relic.moon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 42%, var(--charcoal) 0 18px, transparent 19px),
    var(--mist);
}

.relic.lantern {
  background:
    radial-gradient(circle at 50% 58%, var(--ember) 0 10px, transparent 11px),
    linear-gradient(90deg, var(--stone) 0 30%, var(--gold) 30% 70%, var(--stone) 70%);
}

.relic-grid h3,
.covenant-grid h3 {
  margin-bottom: 0.55rem;
  color: var(--bone);
  font-size: 1.25rem;
}

.relic-grid p,
.covenant-grid span,
.timeline p,
.contact-section > p {
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 2px solid rgba(232, 216, 185, 0.18);
  border-radius: 8px;
  background: rgba(21, 20, 20, 0.92);
}

.timeline span {
  display: inline-flex;
  justify-content: center;
  padding: 0.5rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--blood);
  color: var(--bone);
  font-weight: 950;
}

.timeline p {
  margin: 0;
}

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

.contact-section > p {
  max-width: 780px;
  margin-bottom: 1.1rem;
}

.contact-row a {
  background: rgba(21, 20, 20, 0.92);
}

.contact-row a:nth-child(1) {
  background: var(--blood);
}

.contact-row a:nth-child(2) {
  background: var(--ember);
  color: var(--line);
}

.contact-row a:nth-child(3) {
  background: var(--gold);
  color: var(--line);
}

.contact-row a:nth-child(4) {
  background: var(--green);
}

.contact-row a:nth-child(5) {
  background: var(--stone);
}

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

  .hero-copy {
    grid-column: 1 / -1;
  }

  .oath-panel {
    grid-column: 1 / -1;
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  body::after {
    display: none;
  }

  .site-header,
  main {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    flex-wrap: wrap;
    margin-top: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-width: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.2rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 20vw, 5.2rem);
  }

  .rune-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oath-panel {
    min-height: 560px;
  }

  .grave-map {
    top: 0;
    left: 0;
    width: calc(100% - 2rem);
  }

  .hunter-card {
    right: 0;
    bottom: 0;
    width: calc(100% - 0.3rem);
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-bottom: 0.4rem;
  }

  .hunt-grid,
  .relic-grid,
  .covenant-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-row a,
  .button {
    flex: 1 1 140px;
  }
}

@media (max-width: 430px) {
  .hero-copy,
  .section-block,
  .profile-strip {
    padding: 1rem;
  }

  .brand {
    gap: 0.45rem;
    font-size: 0.95rem;
  }

  .oath-panel {
    min-height: 600px;
  }

  .hunter-card dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .filter-button {
    flex: 1 1 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
