:root {
  color-scheme: dark;
  --ink: #0c0f10;
  --night: #111414;
  --charcoal: #171a1b;
  --iron: #252928;
  --ash: #b9b0a2;
  --bone: #e5dac5;
  --dim: #81786a;
  --gold: #b9914b;
  --gold-bright: #e2c46f;
  --blood: #762820;
  --verdigris: #547060;
  --specter: #6f8f98;
  --line: rgba(229, 218, 197, .14);
  --line-strong: rgba(185, 145, 75, .34);
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
  --gutter: clamp(1.1rem, 4vw, 5rem);
  --wide: min(100% - (var(--gutter) * 2), 1540px);
  --content: min(100% - (var(--gutter) * 2), 1240px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(185, 145, 75, .035) 1px, transparent 1px),
    linear-gradient(rgba(229, 218, 197, .022) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(111, 143, 152, .12), transparent 28rem),
    radial-gradient(circle at 10% 26%, rgba(118, 40, 32, .12), transparent 26rem),
    linear-gradient(180deg, #090c0d 0%, #101313 52%, #0b0e0e 100%);
  background-size: 88px 88px, 88px 88px, auto, auto, auto;
  color: var(--bone);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .42)),
    radial-gradient(circle at 50% -8%, rgba(185, 145, 75, .08), transparent 34rem);
}

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 30;
  background: var(--bone);
  color: var(--ink);
  padding: .65rem .9rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  color: #f0e4ca;
  font-size: clamp(4.2rem, 8.3vw, 9.6rem);
  line-height: .82;
  text-wrap: balance;
}

h2 {
  color: #eadcc0;
  font-size: clamp(2.4rem, 4.8vw, 5.6rem);
  line-height: .9;
  text-wrap: balance;
}

h3 {
  color: #eadcc0;
  font-size: clamp(1.2rem, 1.4vw, 1.6rem);
  line-height: 1.08;
}

p {
  color: var(--ash);
  line-height: 1.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding: .8rem var(--gutter);
  background: rgba(12, 15, 16, .78);
  border-bottom: 1px solid rgba(229, 218, 197, .1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #f0e4ca;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

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

.site-nav a {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .75rem;
  color: var(--ash);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bone);
}

.site-nav .nav-action {
  margin-left: .35rem;
  color: #161107;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border: 1px solid rgba(255, 255, 255, .18);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: rgba(229, 218, 197, .04);
  color: var(--bone);
}

.nav-toggle span {
  display: block;
  width: 1.22rem;
  height: 2px;
  margin: .25rem auto;
  background: currentColor;
}

.button {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.08rem;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.button.primary {
  color: #171107;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 18px 40px rgba(185, 145, 75, .18);
}

.button.secondary {
  background: rgba(229, 218, 197, .045);
}

.section-label,
.status-line {
  margin-bottom: .85rem;
  color: var(--gold-bright);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-section {
  width: 100%;
  min-height: calc(100svh - 4.6rem);
  display: grid;
  grid-template-columns: minmax(21rem, .68fr) minmax(0, 1.32fr);
  grid-template-rows: 1fr auto;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 6.2rem) var(--gutter) clamp(1.4rem, 3vw, 2.4rem);
  overflow: clip;
}

.hero-copy {
  max-width: 44rem;
  position: relative;
  z-index: 2;
}

.hero-deck {
  max-width: 40rem;
  margin-bottom: 0;
  color: #cfc4b2;
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  line-height: 1.58;
}

.hero-actions,
.press-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.45rem;
}

.hero-art {
  position: relative;
  width: min(100%, 78rem);
  margin: 0 calc(var(--gutter) * -1) 0 auto;
  overflow: hidden;
  border: 1px solid rgba(229, 218, 197, .14);
  background: #090c0d;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 15, 16, .42), transparent 36%),
    linear-gradient(180deg, transparent 62%, rgba(12, 15, 16, .2));
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(76svh, 58rem);
  object-fit: cover;
  object-position: center center;
}

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 70rem);
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-proof span {
  min-height: 4.15rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(13, 16, 16, .84);
  color: #d8cdb8;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-proof img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(4.7rem, 8vw, 8rem) 0;
  border-top: 1px solid rgba(229, 218, 197, .12);
}

.section-heading,
.section-copy {
  max-width: 48rem;
}

.split-section {
  width: var(--wide);
  display: grid;
  grid-template-columns: minmax(19rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.map-panel,
.legacy-art {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(229, 218, 197, .05), rgba(229, 218, 197, .015)),
    rgba(13, 16, 16, .66);
  box-shadow: var(--shadow);
}

.map-panel::before,
.legacy-art::before,
.press-card::before {
  content: "";
  position: absolute;
  inset: .65rem;
  pointer-events: none;
  border: 1px solid rgba(229, 218, 197, .1);
}

.map-panel img,
.legacy-art img {
  width: 100%;
  aspect-ratio: 11 / 7;
  object-fit: cover;
  padding: clamp(.45rem, .9vw, .75rem);
}

.faction-section {
  width: var(--wide);
}

.faction-section .section-heading {
  margin-bottom: 2rem;
}

.faction-media {
  margin: 0 0 1rem;
  border: 1px solid var(--line-strong);
  background: #090c0d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faction-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center center;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faction-card {
  min-height: 18rem;
  padding: clamp(1.15rem, 2vw, 1.7rem);
  background:
    linear-gradient(180deg, rgba(229, 218, 197, .05), transparent 40%),
    #111515;
}

.faction-card .sigil {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  border: 1px solid currentColor;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
}

.faction-card p {
  margin-bottom: 0;
}

.faction-card.ember {
  border-top: 4px solid var(--gold);
}

.faction-card.verdant {
  border-top: 4px solid var(--verdigris);
}

.faction-card.spectral {
  border-top: 4px solid var(--specter);
}

.faction-card.blood {
  border-top: 4px solid var(--blood);
}

.systems-section {
  width: var(--wide);
  display: grid;
  grid-template-columns: minmax(17rem, .55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.systems-intro {
  position: sticky;
  top: 6.25rem;
}

.systems-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.systems-ledger article {
  min-height: 17rem;
  padding: clamp(1.15rem, 2.2vw, 2rem);
  background:
    linear-gradient(90deg, rgba(84, 112, 96, .12), transparent 55%),
    #111515;
}

.systems-ledger span {
  display: block;
  margin-bottom: 1rem;
  color: var(--specter);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.legacy-section {
  width: var(--wide);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, .95fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.legacy-list {
  display: grid;
  gap: .75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.legacy-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ash);
  line-height: 1.6;
}

.legacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65rem;
  width: .45rem;
  height: .45rem;
  background: var(--gold);
}

.relic-section {
  width: var(--wide);
}

.relic-section .section-heading {
  margin-bottom: 2rem;
}

.relic-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr);
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line);
  box-shadow: var(--shadow);
}

.relic-feature > img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
}

.relic-feature > div {
  display: grid;
  align-content: end;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background:
    linear-gradient(180deg, rgba(84, 112, 96, .12), transparent 52%),
    #111515;
}

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

.relic-grid article {
  min-height: 24rem;
  display: grid;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.55rem);
  background:
    linear-gradient(180deg, rgba(185, 145, 75, .1), transparent 38%),
    rgba(12, 15, 16, .82);
  border: 1px solid var(--line);
}

.relic-grid img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: contain;
  margin-bottom: 1.2rem;
  background: #090c0d;
  border: 1px solid rgba(229, 218, 197, .08);
}

.store-section {
  width: var(--wide);
  display: grid;
  grid-template-columns: minmax(19rem, .6fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.store-copy {
  max-width: 36rem;
}

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

.store-hero {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.store-rack article {
  min-height: 20rem;
  padding: clamp(1rem, 2vw, 1.55rem);
  background:
    linear-gradient(180deg, rgba(84, 112, 96, .12), transparent 45%),
    #111515;
  border: 1px solid var(--line);
}

.store-rack article > img {
  width: 3.2rem;
  height: 3.2rem;
}

.store-rack button {
  width: 100%;
  min-height: 2.85rem;
  margin-top: .7rem;
  border: 1px solid rgba(229, 218, 197, .16);
  background: rgba(229, 218, 197, .04);
  color: var(--dim);
  font-weight: 900;
  cursor: not-allowed;
}

.store-note {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gold-bright);
  font-weight: 900;
}

.press-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  background:
    linear-gradient(120deg, rgba(185, 145, 75, .08), transparent 44%),
    #111515;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.short-description {
  max-width: 58rem;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.press-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  background: var(--line);
}

.press-card dl div {
  padding: 1rem;
  background: rgba(9, 12, 13, .78);
}

.press-card dt {
  color: var(--dim);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.press-card dd {
  margin: .4rem 0 0;
  color: var(--bone);
  line-height: 1.48;
}

.follow-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.follow-section > div {
  max-width: 48rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .86rem;
}

.site-footer p {
  margin: 0;
  color: var(--dim);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--ash);
  text-decoration: none;
}

.legal-page {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.5rem, 7vw, 4.2rem);
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
  line-height: 1.1;
}

.legal-page p,
.legal-page li {
  color: var(--ash);
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .hero-section,
  .split-section,
  .systems-section,
  .legacy-section,
  .store-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    grid-template-rows: auto;
  }

  .hero-art {
    width: 100%;
    margin: 0;
  }

  .hero-art img {
    max-height: none;
  }

  .systems-intro {
    position: static;
  }

  .faction-grid,
  .relic-feature,
  .relic-grid,
  .store-rack,
  .press-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  :root {
    --gutter: clamp(1rem, 5vw, 1.35rem);
  }

  body {
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .site-header {
    min-height: 4.1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem var(--gutter) 1rem;
    background: rgba(12, 15, 16, .98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    min-height: 3rem;
  }

  .site-nav .nav-action {
    margin-left: 0;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 2.4rem;
    gap: 1.8rem;
  }

  .hero-art {
    order: 2;
    height: clamp(14rem, 62vw, 20rem);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111515;
  }

  .hero-proof {
    order: 3;
  }

  .hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
  }

  .faction-media img,
  .store-hero {
    aspect-ratio: 1.25 / 1;
  }

  .hero-actions,
  .press-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof,
  .faction-grid,
  .systems-ledger,
  .relic-feature,
  .relic-grid,
  .store-rack,
  .press-card dl {
    grid-template-columns: 1fr;
  }

  .faction-card,
  .systems-ledger article,
  .relic-grid article,
  .store-rack article {
    min-height: auto;
  }

  .follow-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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