/* ───────────────────────────────────────────────────────────────────
   Arcane Ages — shared site style.
   An illuminated grimoire rendered for screen: gilded inscriptional
   titles and parchment prose on deep indigo ink.
   ─────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink:        #0c0b14;  /* deep indigo-black night */
  --ink-raised: #15131f;  /* lifted panels */
  --parchment:  #dad0be;  /* body text */
  --muted:      #8f8678;  /* secondary text */
  --gilt:       #c7a24b;  /* aged gold — titles, links */
  --gilt-bright:#e3c072;  /* hover gold */
  --verdigris:  #7fa06a;  /* muted arcane green — secondary accent */
  --rule:       #272437;  /* hairlines */
  --maxw:       760px;    /* prose column */
  --maxw-wide:  980px;    /* header + image pages */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

/* faint arcane texture: a barely-there radial glow, no images */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(199,162,75,0.06), transparent 60%),
    radial-gradient(900px 600px at 90% 110%, rgba(127,160,106,0.05), transparent 60%);
}

/* ── Header / global nav ─────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(10, 9, 18, 0.6);
}
.site-header__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 22px 24px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.site-header__mark { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__mark img { display: block; height: 52px; width: auto; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-left: auto;
  font-family: 'Marcellus', serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--gilt-bright); }
.site-nav a[aria-current="page"] {
  color: var(--gilt);
  border-bottom-color: var(--gilt);
}

/* ── Main column ─────────────────────────────────────────────────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 72px; }
main.wide { max-width: var(--maxw-wide); }

h1, h2, h3 { font-family: 'Marcellus', serif; font-weight: 400; line-height: 1.2; }

h1 {
  color: var(--gilt);
  font-size: 2.6rem;
  margin: 0 0 .1em;
  letter-spacing: 0.01em;
}
/* gilt hairline under the page title */
.page-title { margin-bottom: 1.6rem; }
.page-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: .9rem;
  background: linear-gradient(90deg, var(--gilt), rgba(199,162,75,0.15) 60%, transparent);
}
.page-title .kicker {
  display: block;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .5rem;
  letter-spacing: 0;
}

h2 { color: var(--verdigris); font-size: 1.5rem; margin: 2.2rem 0 .5rem; }
h3 { color: var(--parchment); font-size: 1.2rem; margin: 1.8rem 0 .4rem; }

p { margin: 0 0 1.1rem; }
strong { color: #efe7d6; }

a { color: var(--gilt); text-decoration: none; border-bottom: 1px solid rgba(199,162,75,0.35); }
a:hover { color: var(--gilt-bright); border-bottom-color: var(--gilt-bright); }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin: 0 0 .45rem; }

hr { border: 0; height: 1px; background: var(--rule); margin: 2.4rem 0; }

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

/* Preformatted blocks: syntax lines, aligned tables from the old help */
pre {
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .9rem 1rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--parchment);
}

/* Data tables: races, classes, clans, rosters */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .96rem; }
caption { color: var(--muted); font-style: italic; margin-bottom: .5rem; text-align: left; }
th, td { border: 1px solid var(--rule); padding: .5rem .7rem; text-align: left; vertical-align: top; }
th { font-family: 'Marcellus', serif; font-weight: 400; color: var(--gilt); background: rgba(199,162,75,0.05); }
tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* Definition lists */
dl { margin: 1.4rem 0; }
dt { font-family: 'Marcellus', serif; color: var(--verdigris); margin-top: 1rem; }
dd { margin: .2rem 0 0; padding-left: 1.1rem; }

blockquote {
  margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 2px solid var(--gilt);
  color: var(--muted); font-style: italic;
}

/* An index of sub-pages: a quiet list, not a card grid */
.entries { list-style: none; padding: 0; margin: 1.5rem 0; }
.entries li { margin: 0 0 1.4rem; padding: 0; }
.entries a { font-family: 'Marcellus', serif; font-size: 1.25rem; border: 0; }
.entries .desc { display: block; color: var(--muted); font-size: 0.98rem; margin-top: .15rem; }

/* "back to index" link at the foot of a content page */
.back { margin-top: 2.4rem; font-family: 'Marcellus', serif; }
.back a { border: 0; }

/* The connect line — the one call to action that matters */
.connect {
  display: inline-block;
  margin: .4rem 0 0;
  padding: .5rem .95rem;
  border: 1px solid var(--gilt);
  color: var(--gilt);
  font-family: 'Marcellus', serif;
  letter-spacing: .03em;
  border-radius: 2px;
  background: rgba(199,162,75,0.04);
}
.connect:hover { color: var(--gilt-bright); border-color: var(--gilt-bright); }
code, .mono { font-family: 'Spectral', serif; color: var(--gilt); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gilt); }
.site-footer .realm { font-family: 'Marcellus', serif; color: var(--parchment); }

/* ── Landing hero ────────────────────────────────────────────────── */
.hero { text-align: center; padding: 40px 0 8px; }
.hero img { width: min(460px, 86vw); height: auto; }
.hero .tagline {
  font-family: 'Marcellus', serif;
  color: var(--parchment);
  font-size: 1.3rem;
  margin: 1.1rem 0 1.4rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header__inner { padding: 16px 18px 10px; }
  .site-nav { margin-left: 0; width: 100%; gap: 2px 16px; }
  main { padding: 40px 18px 56px; }
  h1 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
