:root {
  --ink: #090806;
  --ink-soft: #15120f;
  --charcoal: #201b16;
  --parchment: #efe1bf;
  --parchment-soft: #cdbb93;
  --bronze: #b4874a;
  --gold: #e0bd6e;
  --red: #8f2f24;
  --red-bright: #c34f38;
  --teal: #3a9e9d;
  --line: rgba(239, 225, 191, 0.18);
  --panel: rgba(17, 14, 11, 0.72);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, 0.22), var(--ink) 45rem),
    radial-gradient(circle at 82% 28%, rgba(143, 47, 36, 0.2), transparent 28rem),
    linear-gradient(135deg, #070605, #17100d 48%, #0c1515);
  color: var(--parchment);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 5rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(239, 225, 191, 0.14);
  background: rgba(9, 8, 6, 0.68);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 12rem;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(224, 189, 110, 0.52);
  background:
    linear-gradient(135deg, rgba(143, 47, 36, 0.7), rgba(58, 158, 157, 0.22)),
    rgba(21, 18, 15, 0.86);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(9, 8, 6, 0.72);
}

.brand-kicker,
.eyebrow,
.dossier-label,
.panel-topline span,
.dossier-grid span,
.campaign-card span,
.time-node span {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-kicker,
.brand-name {
  display: block;
}

.brand-name {
  margin-top: 0.12rem;
  color: rgba(239, 225, 191, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  color: rgba(239, 225, 191, 0.72);
  font-size: 0.92rem;
}

.site-nav a,
.header-action {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.header-action {
  justify-self: end;
  min-width: 9.5rem;
  padding: 0.76rem 1rem;
  border: 1px solid rgba(224, 189, 110, 0.45);
  color: var(--gold);
  text-align: center;
}

.header-action:hover,
.header-action:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(239, 225, 191, 0.24);
  background: rgba(21, 18, 15, 0.82);
  color: var(--parchment);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 8rem clamp(1rem, 4vw, 4rem) 0;
}

.hero-art,
.hero-art img,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
  filter: saturate(0.95) contrast(1.04);
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.98) 0%, rgba(9, 8, 6, 0.82) 34%, rgba(9, 8, 6, 0.28) 63%, rgba(9, 8, 6, 0.66) 100%),
    linear-gradient(180deg, rgba(9, 8, 6, 0.55), rgba(9, 8, 6, 0.15) 42%, rgba(9, 8, 6, 0.98) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 76rem;
  min-height: calc(100vh - 13rem);
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
  max-width: 44rem;
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.eyebrow {
  margin: 0 0 1rem;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  color: #f5e8c9;
  font-size: clamp(4.3rem, 8.8vw, 9.25rem);
  line-height: 0.84;
}

h1 span {
  display: block;
  max-width: 18ch;
  margin-top: 1.15rem;
  color: var(--gold);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.hero-lede,
.world-copy p,
.codex-copy p {
  color: rgba(239, 225, 191, 0.78);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.72;
}

.hero-lede {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.2rem;
  border: 1px solid rgba(239, 225, 191, 0.22);
  background: rgba(21, 18, 15, 0.72);
  color: var(--parchment);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(195, 79, 56, 0.86);
  background: linear-gradient(135deg, var(--red), #6f231b);
  box-shadow: 0 14px 34px rgba(143, 47, 36, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--red-bright);
  background: linear-gradient(135deg, var(--red-bright), #77251c);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: rgba(224, 189, 110, 0.65);
  background: rgba(180, 135, 74, 0.14);
}

.hero-panel {
  position: relative;
  min-width: 0;
  margin-bottom: clamp(3.5rem, 10vh, 7rem);
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.faction-dossier::before,
.timeline-shell::before {
  position: absolute;
  content: "";
  inset: 0.75rem;
  border: 1px solid rgba(224, 189, 110, 0.13);
  pointer-events: none;
}

.panel-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.panel-topline strong {
  color: rgba(239, 225, 191, 0.76);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 400;
}

.hero-panel h2 {
  margin-bottom: 0.8rem;
  color: #f3dfae;
  font-size: 1.85rem;
  line-height: 1.02;
}

.hero-panel p {
  color: rgba(239, 225, 191, 0.68);
  line-height: 1.62;
}

.breach-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.4rem 0 0;
}

.breach-stats div {
  border-top: 1px solid rgba(239, 225, 191, 0.16);
  padding-top: 0.85rem;
}

.breach-stats dt {
  color: rgba(239, 225, 191, 0.48);
  font-size: 0.76rem;
}

.breach-stats dd {
  margin: 0.2rem 0 0;
  color: #f5e8c9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.era-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 76rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(9, 8, 6, 0.78);
  backdrop-filter: blur(14px);
}

.era-strip span {
  min-height: 4.4rem;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  color: rgba(239, 225, 191, 0.74);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.era-strip span:last-child {
  border-right: 0;
}

.section {
  position: relative;
  scroll-margin-top: 5.6rem;
  padding: clamp(4.2rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
}

.section::before {
  position: absolute;
  top: 0;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(224, 189, 110, 0.42), transparent);
}

.section-heading,
.world-copy,
.radiant-grid,
.faction-layout,
.timeline-shell,
.rules-overview,
.battlefield-demo,
.rules-grid,
.campaign-grid,
.codex-section,
.site-footer {
  max-width: 76rem;
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(16rem, 0.58fr);
  gap: clamp(1.6rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading.compact {
  display: block;
  max-width: 48rem;
  margin-right: auto;
  margin-left: calc((100% - min(76rem, calc(100vw - clamp(2rem, 8vw, 8rem)))) / 2);
}

.section-heading h2 {
  margin-bottom: 0;
  color: #f3dfae;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
}

.world-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 5rem);
}

.radiant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.radiant-band {
  min-height: 10.5rem;
  padding: 1rem;
  border: 1px solid rgba(239, 225, 191, 0.14);
  border-left-width: 3px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(224, 189, 110, 0.06), transparent),
    rgba(21, 18, 15, 0.66);
}

.radiant-band span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.radiant-band strong {
  display: block;
  margin-bottom: 0.7rem;
  color: #f5e8c9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.radiant-band p {
  margin-bottom: 0;
  color: rgba(239, 225, 191, 0.64);
  line-height: 1.55;
}

.radiant-band.gamma {
  border-left-color: #7a5aa6;
}

.radiant-band.alpha {
  border-left-color: #4f8d55;
}

.radiant-band.beta {
  border-left-color: #4b83b7;
}

.radiant-band.delta {
  border-left-color: #b44634;
}

.radiant-band.theta {
  border-left-color: #d7b94e;
}

.radiant-band.omega {
  border-left-color: #4d4a45;
}

.lore-visual {
  position: relative;
  overflow: hidden;
  max-width: 76rem;
  margin: 2rem auto 0;
  border: 1px solid rgba(224, 189, 110, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(180, 135, 74, 0.14), transparent 45%),
    rgba(13, 11, 9, 0.82);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.lore-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 46%, rgba(9, 8, 6, 0.66)),
    linear-gradient(90deg, rgba(9, 8, 6, 0.22), transparent 34%, rgba(9, 8, 6, 0.18));
}

.lore-visual img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
}

.lore-visual figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 1.4rem);
  bottom: clamp(1rem, 3vw, 1.4rem);
  max-width: min(29rem, calc(100% - 2rem));
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(239, 225, 191, 0.18);
  background: rgba(9, 8, 6, 0.74);
  color: rgba(239, 225, 191, 0.78);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.faction-visual,
.gameplay-visual,
.story-visual {
  margin-bottom: 1rem;
}

.world-visual img {
  object-position: 50% 50%;
}

.faction-visual img {
  object-position: 50% 42%;
}

.gameplay-visual img {
  object-position: 50% 50%;
}

.story-visual img {
  object-position: 50% 47%;
}

.faction-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 4vw, 2rem);
}

.faction-list {
  display: grid;
  gap: 0.65rem;
}

.faction-tab {
  display: grid;
  gap: 0.4rem;
  min-height: 6.4rem;
  padding: 1.1rem;
  border: 1px solid rgba(239, 225, 191, 0.14);
  border-radius: 8px;
  background: rgba(21, 18, 15, 0.58);
  color: var(--parchment);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.faction-tab:focus {
  outline: none;
}

.faction-tab span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.faction-tab small {
  color: rgba(239, 225, 191, 0.58);
  line-height: 1.4;
}

.faction-tab:hover,
.faction-tab:focus-visible {
  border-color: rgba(224, 189, 110, 0.48);
}

.faction-tab:focus-visible {
  outline: 2px solid rgba(58, 158, 157, 0.65);
  outline-offset: 3px;
}

.faction-tab.is-active {
  border-color: rgba(195, 79, 56, 0.84);
  background:
    linear-gradient(135deg, rgba(143, 47, 36, 0.34), transparent 55%),
    rgba(21, 18, 15, 0.78);
  transform: translateX(0.35rem);
}

.faction-dossier,
.timeline-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(180, 135, 74, 0.13), transparent 42%),
    rgba(13, 11, 9, 0.78);
  box-shadow: var(--shadow);
}

.faction-dossier {
  min-height: 24rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.faction-dossier h3,
.era-detail h3 {
  max-width: 13ch;
  margin: 0.8rem 0 1rem;
  color: #f5e8c9;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.92;
}

.faction-dossier p,
.era-detail p,
.campaign-card p {
  color: rgba(239, 225, 191, 0.68);
  line-height: 1.68;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}

.dossier-grid div {
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid rgba(239, 225, 191, 0.13);
  border-radius: 8px;
  background: rgba(9, 8, 6, 0.42);
}

.dossier-grid strong {
  display: block;
  margin-top: 0.85rem;
  color: rgba(239, 225, 191, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.timeline-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 22rem;
}

.time-node {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.35rem;
  border: 0;
  border-right: 1px solid rgba(239, 225, 191, 0.12);
  background:
    linear-gradient(180deg, rgba(224, 189, 110, 0.04), rgba(9, 8, 6, 0.34)),
    transparent;
  color: rgba(239, 225, 191, 0.72);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.time-node:hover,
.time-node:focus-visible,
.time-node.is-active {
  background:
    linear-gradient(180deg, rgba(58, 158, 157, 0.2), rgba(143, 47, 36, 0.22)),
    rgba(13, 11, 9, 0.46);
  color: #f5e8c9;
}

.era-detail {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-left: 1px solid rgba(224, 189, 110, 0.18);
  background: rgba(9, 8, 6, 0.35);
}

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

.rules-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.rules-panel,
.rules-card {
  border: 1px solid rgba(239, 225, 191, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(224, 189, 110, 0.08), transparent),
    rgba(21, 18, 15, 0.72);
}

.rules-panel {
  min-height: 20rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.rules-panel-primary {
  background:
    linear-gradient(135deg, rgba(143, 47, 36, 0.24), transparent 45%),
    rgba(21, 18, 15, 0.78);
}

.rules-panel span,
.rules-card span {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-panel h3,
.rules-card h3 {
  margin: 0.8rem 0 0.9rem;
  color: #f3dfae;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 0.98;
}

.rules-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.04;
}

.rules-panel p,
.rules-card p {
  color: rgba(239, 225, 191, 0.68);
  line-height: 1.66;
}

.rule-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.4rem 0 0;
}

.rule-stats div {
  min-height: 5.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(239, 225, 191, 0.13);
  border-radius: 8px;
  background: rgba(9, 8, 6, 0.42);
}

.rule-stats dt {
  color: rgba(239, 225, 191, 0.48);
  font-size: 0.76rem;
}

.rule-stats dd {
  margin: 0.35rem 0 0;
  color: #f5e8c9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.battlefield-demo {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.6fr) minmax(8rem, 0.7fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.position-row,
.position-track {
  min-height: 5.8rem;
  border: 1px solid rgba(224, 189, 110, 0.2);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.76);
}

.position-row {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 0.9rem;
}

.position-row span {
  color: rgba(239, 225, 191, 0.54);
  font-size: 0.82rem;
}

.position-row strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.position-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.position-track span {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(239, 225, 191, 0.12);
  color: #f5e8c9;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.2rem;
}

.position-track span:last-child {
  border-right: 0;
}

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

.rules-card {
  min-height: 15rem;
  padding: 1rem;
}

.mode-grid .campaign-card {
  min-height: 16rem;
}

.campaign-card {
  min-height: 18rem;
  padding: 1.3rem;
  border: 1px solid rgba(239, 225, 191, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(224, 189, 110, 0.08), transparent),
    rgba(21, 18, 15, 0.72);
}

.campaign-card h3 {
  margin: 1.2rem 0 1rem;
  color: #f3dfae;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.codex-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(19rem, 0.8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  border: 1px solid rgba(224, 189, 110, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 47, 36, 0.22), transparent 48%),
    rgba(13, 11, 9, 0.82);
  box-shadow: var(--shadow);
}

.codex-copy h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: #f5e8c9;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.codex-form {
  display: grid;
  gap: 0.9rem;
}

.codex-form label {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

input {
  min-width: 0;
  min-height: 3.1rem;
  border: 1px solid rgba(239, 225, 191, 0.2);
  border-radius: 0;
  background: rgba(9, 8, 6, 0.68);
  color: var(--parchment);
  padding: 0.85rem 1rem;
}

input:focus {
  border-color: rgba(58, 158, 157, 0.88);
  outline: 2px solid rgba(58, 158, 157, 0.24);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.5rem;
  color: rgba(239, 225, 191, 0.58);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  color: rgba(239, 225, 191, 0.58);
  font-size: 0.92rem;
}

.site-footer span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(224, 189, 110, 0.42);
  text-underline-offset: 0.22em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f5e8c9;
  text-decoration-color: currentColor;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-action {
    display: grid;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .site-header.is-open .site-nav {
    gap: 0;
    border: 1px solid rgba(239, 225, 191, 0.14);
    background: rgba(13, 11, 9, 0.9);
  }

  .site-header.is-open .site-nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(239, 225, 191, 0.12);
  }

  .site-header.is-open .header-action {
    margin-top: -1.3rem;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .hero-grid,
  .faction-layout,
  .timeline-shell,
  .rules-overview,
  .battlefield-demo,
  .codex-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-grid {
    align-items: center;
    min-height: auto;
  }

  .hero-panel {
    max-width: 33rem;
  }

  .era-strip,
  .world-copy,
  .radiant-grid,
  .rules-grid,
  .campaign-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading.compact {
    margin-left: auto;
  }

  .timeline-track {
    min-height: auto;
  }

  .time-node {
    min-height: 10rem;
  }

  .era-detail {
    border-top: 1px solid rgba(224, 189, 110, 0.18);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: 4.3rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 7rem 1.15rem 0;
  }

  .hero-art img {
    object-position: 66% 50%;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(9, 8, 6, 0.97), rgba(9, 8, 6, 0.68)),
      linear-gradient(180deg, rgba(9, 8, 6, 0.42), rgba(9, 8, 6, 0.98) 82%);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.25rem, 14vw, 4.4rem);
    line-height: 0.9;
    overflow-wrap: break-word;
  }

  h1 span {
    max-width: 14ch;
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-bottom: 2rem;
  }

  .hero-grid,
  .hero-panel,
  .hero-lede,
  .section-heading,
  .world-copy,
  .lore-visual,
  .faction-layout,
  .timeline-shell,
  .rules-overview,
  .battlefield-demo,
  .rules-grid,
  .codex-section {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-panel {
    padding: 1.1rem;
  }

  .hero-panel h2 {
    font-size: 1.5rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .panel-topline {
    display: grid;
  }

  .panel-topline strong {
    overflow-wrap: anywhere;
  }

  .breach-stats,
  .dossier-grid,
  .radiant-grid,
  .rule-stats,
  .rules-grid,
  .timeline-track,
  .campaign-grid,
  .era-strip,
  .world-copy,
  .input-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .era-strip span {
    min-height: 3rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .lore-visual img {
    aspect-ratio: 4 / 3;
  }

  .lore-visual figcaption {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: rgba(9, 8, 6, 0.88);
  }

  .faction-tab.is-active {
    transform: none;
  }

  .faction-dossier h3,
  .era-detail h3 {
    font-size: 2.5rem;
  }

  .time-node {
    min-height: 6.8rem;
    border-right: 0;
    border-bottom: 1px solid rgba(239, 225, 191, 0.12);
  }

  .codex-section {
    padding: 1.2rem;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
