:root {
  --bg: #fcfdff;
  --ink: #101726;
  --muted: #42536d;
  --line: rgba(16, 23, 38, 0.16);
  --blue: #2058d3;
  --red: #d42740;
  --gold: #d7a941;
  --shadow: 0 22px 60px rgba(16, 23, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top, rgba(32, 88, 211, 0.08), transparent 36rem),
    radial-gradient(circle at bottom, rgba(212, 39, 64, 0.06), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(16, 23, 38, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 38, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

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

.page-shell {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.top-strip,
.link-nav,
.site-footer {
  text-align: center;
}

.top-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.96rem;
}

.top-motto {
  margin: 0;
  color: var(--red);
  font-weight: 500;
}

.totem {
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.totem:last-child {
  text-align: right;
}

.totem:first-child {
  text-align: left;
}

.link-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.link-nav a:not(:last-child)::after,
.footer-links a:not(:last-child)::after {
  content: " |";
  color: var(--ink);
  margin-left: 0.45rem;
}

.hero {
  text-align: center;
  padding: 1.4rem 0 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 500;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.4rem);
  line-height: 0.9;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.subtitle {
  margin: clamp(1.25rem, 2vw, 2rem) 0 0;
  color: var(--red);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 700;
}

.micro-manifest {
  margin: 0.7rem 0 0;
  color: var(--red);
  font-weight: 500;
  text-transform: uppercase;
}

.ascii-face {
  margin: 0.45rem 0 0;
  font-size: 2rem;
}

.oracle-box {
  width: min(100%, 760px);
  margin: 1rem auto 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed rgba(212, 39, 64, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--red);
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-badges span,
.stamp-cloud span {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(16, 23, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(16, 23, 38, 0.04);
}

.section-block {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.section-lead {
  width: min(100%, 940px);
  margin: 0.75rem auto 0;
  font-size: 1.1rem;
  line-height: 1.75;
  text-align: center;
  color: var(--muted);
}

.hero-gallery {
  display: grid;
  gap: 1rem;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.reverse-layout {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
}

.art-card {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(16, 23, 38, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.wide-art {
  padding: 1rem;
}

.feature-art,
.art-card img,
.throne-image {
  width: 100%;
  border: 1px solid rgba(16, 23, 38, 0.1);
}

figcaption {
  margin-top: 0.8rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.manifesto h2,
.proclamation h3,
.sigils h2 {
  text-align: center;
}

.victory-list,
.bullet-columns {
  width: min(100%, 980px);
  margin: 1rem auto 0;
  padding-left: 1.25rem;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.75;
}

.bullet-columns {
  columns: 2;
  column-gap: 1.5rem;
}

.bullet-columns li,
.victory-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.quote-ribbon {
  width: min(100%, 980px);
  margin: 1.1rem auto 0;
  padding: 0.95rem 1.05rem;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.counter-title {
  margin-bottom: 1.25rem;
  text-align: center;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  justify-content: center;
  gap: 0.85rem 1.2rem;
  width: min(100%, 900px);
  margin: 0 auto;
}

.counter-item {
  padding: 0.2rem 0.6rem;
  text-align: center;
  min-width: 0;
}

.value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  min-width: 3ch;
}

.label {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.counter-copy,
.proclamation p {
  margin: 1rem auto 0;
  width: min(100%, 900px);
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.decree-grid,
.game-grid,
.wonder-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

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

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

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

.decree-card,
.game-card,
.wonder-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(16, 23, 38, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 26px rgba(16, 23, 38, 0.05);
}

.game-card h3 {
  margin-bottom: 0.35rem;
}

.game-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.arsenal-list {
  margin-top: 1rem;
}

.sigils {
  text-align: center;
}

.sigils-copy {
  margin: 0.7rem 0 1rem;
  color: var(--red);
  font-weight: 500;
}

.sigil-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.sigil-row + .sigil-row {
  margin-top: 0.9rem;
}

.real-deck {
  width: 240px;
  filter: drop-shadow(0 10px 18px rgba(16, 23, 38, 0.14));
}

.real-deck:nth-child(2n) {
  transform: rotate(-4deg);
}

.real-deck:nth-child(3n) {
  transform: rotate(4deg);
}

.real-deck:nth-child(5n) {
  transform: rotate(-7deg);
}

.stamp-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tiny-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.chant {
  margin: 1rem 0 0;
}

.finale {
  text-align: center;
}

.throne-card {
  width: min(100%, 860px);
  margin: 0 auto;
}

.throne-image {
  border-radius: 2px;
}

.site-footer {
  padding: 1.6rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.35rem 0;
}

@media (max-width: 980px) {
  .split-layout,
  .reverse-layout {
    grid-template-columns: 1fr;
  }

  .art-grid,
  .decree-grid,
  .game-grid,
  .wonder-list {
    grid-template-columns: 1fr;
  }

  .bullet-columns {
    columns: 1;
  }
}

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 980px);
    padding-top: 0.8rem;
  }

  .top-strip {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .totem:first-child,
  .totem:last-child {
    text-align: center;
  }

  .hero {
    padding-inline: 0.25rem;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .oracle-box {
    font-size: 0.95rem;
  }

  .hero-badges,
  .stamp-cloud {
    gap: 0.45rem;
  }

  .victory-list,
  .bullet-columns {
    font-size: 1rem;
  }

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

  .real-deck {
    width: 176px;
  }
}
