/* ─────────────────────────────────────────
   Tangy TD Guide — Shared Stylesheet
   Covers: tokens, reset, nav, footer, base typography
   Page-specific styles live in each page's <style> block
───────────────────────────────────────── */

/* ── DESIGN TOKENS ── */
:root {
  --bg: #0d0a06;
  --bg2: #141008;
  --bg3: #1c1610;
  --card: #1a1409;
  --border: #3a2e1a;
  --border2: #4d3f22;
  --gold: #c9a227;
  --gold2: #e8c547;
  --gold-dim: #7a6018;
  --amber: #d4691e;
  --green: #4a8c3f;
  --green2: #6ab85e;
  --purple: #7c4fa0;
  --purple2: #a066cc;
  --blue: #2e6e9e;
  --blue2: #4d9fd4;
  --red: #9e2e2e;
  --red2: #d44d4d;
  --text: #e8dfc8;
  --text2: #b0a488;
  --text3: #7a6e58;
  --font-display: 'Cinzel Decorative', serif;
  --font-body: 'Crimson Pro', serif;
  --font-mono: 'Space Mono', monospace;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── BASE TYPOGRAPHY ── */
p { margin-bottom: 1.1rem; color: var(--text2); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--gold-dim); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 6, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--gold);
  text-decoration: none;
}

/* Nav with links (hub pages) */
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold2); }
.nav-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  background: var(--green);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: .06em;
}

/* Breadcrumb (article/detail pages) */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text3);
  display: flex;
  gap: .5rem;
  align-items: center;
}
.breadcrumb a { color: var(--gold-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text3); }

/* ── SIDEBAR (shared across article pages) ── */
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-link {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text2);
  padding: .3rem 0;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--gold2); }
.sidebar-link.active { color: var(--gold); }
.steam-btn {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  background: var(--border2);
  color: var(--text);
  padding: .5rem 1rem;
  text-align: center;
  letter-spacing: .04em;
  transition: background .2s;
}
.steam-btn:hover { background: var(--gold-dim); color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text3);
  letter-spacing: .04em;
}
footer a { color: var(--gold-dim); }
footer a:hover { color: var(--gold); }
