/* ═══════════════════════════════════════════════════════════════════════════
   MAGIC WAR LEGENDS — Informational Pages Stylesheet  (css/info.css)
   Shared by about/, media/ and press/.
   Kept separate from style.css so these pages can never affect the playable.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --color-primary:   #7B2FBE;
  --color-secondary: #F5A623;
  --color-dark:      #0d0d1a;
  --color-panel:     #15152a;
  --color-text:      #d4d4e8;
  --color-heading:   #ffffff;
  --color-muted:     #a4a4c0;
  --color-link:      #ffc766;
  --color-border:    rgba(123, 47, 190, 0.35);
  --font-main:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display:    Georgia, 'Times New Roman', serif;
  --page-width:      960px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;  /* Keeps anchored headings clear of the sticky header */
}

body {
  background: var(--color-dark);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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

/* ── Header ──────────────────────────────────────────────────────────────── */
.info-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}

.info-header__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
}

.info-header__brand {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.info-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
  font-size: 0.92rem;
}

.info-nav a {
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 0;
}

.info-nav a:hover {
  color: var(--color-heading);
  text-decoration: underline;
}

.info-nav a[aria-current="page"] {
  color: var(--color-link);
}

.info-nav .info-nav__play {
  color: var(--color-link);
  font-weight: 700;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.info-main {
  flex: 1;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 16px 56px;
}

.info-section {
  padding-top: 40px;
}

.info-section > * + * {
  margin-top: 14px;
}

.info-subsection {
  margin-top: 28px;
}

.info-subsection > * + * {
  margin-top: 10px;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3 {
  color: var(--color-heading);
  font-family: var(--font-display);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: 1.15rem;
}

.info-eyebrow {
  color: var(--color-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-tagline {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.info-note {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* ── Page hero ───────────────────────────────────────────────────────────── */
.info-hero {
  padding-top: 36px;
  display: grid;
  gap: 16px;
}

.info-hero__text > * + * {
  margin-top: 12px;
}

.info-hero__art {
  display: none;
}

@media (min-width: 800px) {
  .info-hero {
    grid-template-columns: 1fr 304px;
    align-items: center;
    gap: 32px;
  }

  .info-hero__art {
    display: block;
  }
}

/* ── Store links ─────────────────────────────────────────────────────────── */
.store-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.store-links a {
  display: block;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--color-secondary);
  color: #1a1206;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.store-links a:hover {
  filter: brightness(1.1);
}

@media (min-width: 640px) {
  .store-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ── Fact table & lists ──────────────────────────────────────────────────── */
.info-table-wrap {
  overflow-x: auto;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-panel);
}

.fact-table th,
.fact-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.fact-table th {
  width: 34%;
  color: var(--color-heading);
  font-weight: 600;
}

.info-section ol,
.info-subsection ul,
.info-section > ul {
  padding-left: 24px;
}

.info-section li + li,
.info-subsection li + li {
  margin-top: 8px;
}

/* ── On-page links ───────────────────────────────────────────────────────── */
.page-index {
  margin-top: 28px;
  padding: 12px 16px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.92rem;
}

.page-index ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

/* ── Media ───────────────────────────────────────────────────────────────── */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.shot-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.shot {
  max-width: 526px;     /* Native width of the supplied screenshots */
}

.shot img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.shot figcaption {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.info-footer {
  border-top: 1px solid var(--color-border);
  padding: 18px 16px 22px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.info-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 6px;
}

.info-footer a {
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
