/* ============================================================
   SILICON VATICAN — BASE
   Variables, reset, typography, shared components
   ============================================================ */

:root {
  --ink:            #0A0805;
  --parchment:      #F2E8D5;
  --gold:           #C4A44A;
  --gold-dim:       #8A7030;
  --gold-bright:    #E8C96A;
  --crimson:        #7A1515;
  --crimson-bright: #A01E1E;
  --rule:           1px solid rgba(196,164,74,0.3);
  --rule2:          2px double rgba(196,164,74,0.45);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196,164,74,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(122,21,21,0.07) 0%, transparent 50%);
}

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

/* ── LAYOUT WRAPPER ── */
.w {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── TYPOGRAPHY TOKENS ── */
.kicker {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.kicker::after {
  content: '';
  height: 1px;
  background: rgba(196,164,74,.35);
  width: 50px;
}

.headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.08;
  color: var(--parchment);
}

.deck {
  font-style: italic;
  color: rgba(242,232,213,.7);
  line-height: 1.5;
  border-left: 3px solid var(--gold-dim);
  padding-left: .9rem;
}

.byline {
  font-family: 'Inconsolata', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}
.byline a:hover { color: var(--gold); }

.body-text {
  font-size: .97rem;
  line-height: 1.78;
  color: rgba(242,232,213,.82);
}
.body-text p { margin-bottom: .9em; }
.body-text p:first-child::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 4em;
  font-weight: 700;
  float: left;
  line-height: .82;
  margin: .05em .08em 0 0;
  color: var(--gold);
}

/* ── SHARED STORY ELEMENTS ── */
.pull-quote {
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(196,164,74,.3);
  padding: 1rem 0;
  margin: 1.25rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.35;
}

.heresy-box {
  background: rgba(122,21,21,.12);
  border-left: 3px solid var(--crimson-bright);
  padding: .7rem 1rem;
  margin: 1rem 0;
}
.heresy-label {
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--crimson-bright);
  margin-bottom: .25rem;
  text-transform: uppercase;
}
.heresy-box p {
  font-size: .88rem;
  color: rgba(242,232,213,.75);
  line-height: 1.55;
}

/* ── SKELETON LOADER ── */
.skel {
  height: 1em;
  background: linear-gradient(
    90deg,
    rgba(196,164,74,.08),
    rgba(196,164,74,.18),
    rgba(196,164,74,.08)
  );
  background-size: 200% 100%;
  animation: shim 1.8s ease infinite;
  border-radius: 2px;
  margin: .3rem 0;
}
@keyframes shim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── UP / DOWN COLOURS ── */
.up { color: #5a9a5a; }
.dn { color: var(--crimson-bright); }

/* ── BACK LINK ── */
.back-link {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--gold-dim);
  cursor: pointer;
  text-transform: uppercase;
  transition: color .2s;
}
.back-link:hover { color: var(--gold); }
