/* =========================================================================
   The Uprising — main.css
   Direction: modern luxury, deep near-black base, engraved bronze/gold
   accent, oversized Cinzel Decorative display type, rune-hairline motif,
   faint aurora gradient texture. One memorable detail: the crossed-axes
   badge watermark and the hairline "rune tick" divider used throughout.
   ========================================================================= */

:root {
  --ink:        #f3ead9;   /* warm parchment text on dark */
  --ink-soft:   #b9ac93;   /* secondary text */
  --paper:      #0a0806;   /* near-black page background */
  --paper-2:    #120f0a;   /* alt section background */
  --line:       #2a2115;   /* hairlines / borders */
  --accent:     #d8b26a;   /* gold */
  --accent-2:   #a97d2e;   /* bronze */
  --accent-ink: #0a0806;   /* text on accent */

  --display: "Cinzel Decorative", Georgia, "Times New Roman", serif;
  --display-2: "Cinzel", Georgia, serif;
  --body:    "EB Garamond", Georgia, "Times New Roman", serif;

  --s-1: 0.5rem;  --s-2: 0.75rem; --s-3: 1rem;   --s-4: 1.5rem;
  --s-5: 2.5rem;  --s-6: 4rem;    --s-7: 6rem;    --s-8: 9rem;

  --wrap: 1180px;
  --radius: 2px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(43, 74, 58, 0.28), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(84, 60, 20, 0.22), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display-2); font-weight: 600; line-height: 1.12; letter-spacing: 0.01em; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.05; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { max-width: 64ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-4); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: var(--s-2) var(--s-3);
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--display-2); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-mark { border-radius: 50%; }
.site-nav { display: flex; gap: var(--s-5); }
.site-nav a { font-family: var(--display-2); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.18s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--accent); transition: 0.2s; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--s-4); transform: translateY(-130%);
    transition: transform 0.28s ease; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
}

.rune-divider {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  color: var(--accent-2);
}
.rune-divider::before, .rune-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line); max-width: 120px;
}
.rune-divider span { font-family: var(--display-2); letter-spacing: 0.3em; font-size: 0.75rem; text-transform: uppercase; }

.section { padding-block: var(--s-7); position: relative; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.eyebrow { font-family: var(--display-2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); }
.lead { font-family: var(--body); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--ink-soft); }

.hero {
  padding-block: clamp(var(--s-7), 14vw, 10rem);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 1000px 460px at 50% 0%, rgba(216, 178, 106, 0.09), transparent 60%);
}
.hero .badge-hero { width: 96px; height: 96px; margin: 0 auto var(--s-4); }
.hero h1 { margin-block: var(--s-3) var(--s-4); max-width: 18ch; margin-inline: auto; }
.hero .lead { max-width: 46ch; margin-inline: auto; }

.btn {
  display: inline-block; font-family: var(--display-2); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95em 2em; border-radius: var(--radius); border: 1px solid var(--accent);
  transition: transform 0.15s, background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 12px 30px -10px rgba(216,178,106,0.35); }
.btn--ghost { color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-ink); }

.grid { display: grid; gap: var(--s-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.card h3 { margin-bottom: var(--s-2); font-family: var(--display-2); }
.card p { color: var(--ink-soft); font-size: 1rem; }

.saga-card { overflow: hidden; padding: 0; }
.saga-card img { aspect-ratio: 4 / 5; object-fit: cover; }
.saga-card .saga-body { padding: var(--s-4); }
.saga-card .saga-tag { font-family: var(--display-2); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.saga-card h3 { margin-top: var(--s-1); }
.saga-card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: var(--s-1); }

.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-5); font-family: var(--display-2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.site-footer { background: var(--paper-2); color: var(--ink); padding-block: var(--s-6) var(--s-4); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-5); align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.footer-mark { opacity: 0.9; }
.footer-name { font-family: var(--display-2); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-tagline { font-family: var(--body); font-style: italic; color: var(--accent-2); margin-top: var(--s-1); }
.footer-nav { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-nav a, .footer-contact a { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.18s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-social { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-legal { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.footer-legal p { color: var(--ink-soft); font-size: 0.85rem; opacity: 0.7; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; gap: var(--s-4); } }
