/* ========================================================================
   THE BEAUTY OF RELIGION — Global Stylesheet
   Timothy Ivanov · HRT 3M1 · Culminating Performance Task
   ======================================================================== */

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* — Type System (no Inter / Arial / Roboto) — */
:root {
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Spectral", "Georgia", serif;
  --font-accent: "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

/* — Default colour tokens (each religion overrides) — */
:root {
  --ink: #1a1a1a;
  --paper: #f6f1e6;
  --rule: rgba(26, 26, 26, 0.18);
  --muted: rgba(26, 26, 26, 0.62);
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

/* — Editorial Navigation (shared across pages) — */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-nav .brand {
  font-weight: 600;
  font-style: italic;
  font-size: 1.05rem;
}
.site-nav .brand a { display: flex; align-items: center; gap: 0.6rem; }
.site-nav .brand .ornament {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
}
.site-nav .brand .ornament::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: currentColor;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-body);
  font-weight: 500;
}
.site-nav ul a {
  position: relative;
  padding-bottom: 4px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.site-nav ul a:hover, .site-nav ul a.active { color: var(--ink); }
.site-nav ul a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
}

@media (max-width: 760px) {
  .site-nav { padding: 0.9rem 1.1rem; flex-wrap: wrap; gap: 0.5rem; }
  .site-nav ul { width: 100%; gap: 0.85rem; font-size: 0.66rem; flex-wrap: wrap; }
}

/* — Footer — */
.site-foot {
  margin-top: 6rem;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-foot .colophon { font-style: italic; }
.site-foot .pageno {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* — Reusable typographic elements — */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.rule { height: 1px; background: var(--rule); border: none; margin: 2rem 0; }
.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.35rem 0.55rem -0.1rem 0;
  font-style: italic;
}

/* — Animation primitives — */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* — Print styles (in case Timothy submits a printed copy) — */
@media print {
  .site-nav { position: static; border-bottom: 1px solid #000; }
  .reveal { opacity: 1; transform: none; }
}
