/* =========================================
   GLOBAL THEME  |  Muggs of Data Science
========================================= */
:root {
  --gold: #d4af37;
  --gold-light: #ffe58f;
  --gold-deep: #c89b3c;
  --parchment: #efe8d1;
  --deep-green: #0a1e12;
  --mid-green: #153b26;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 12px;
}

.watermark {
  position: fixed;
  inset: 0;
  background: url('../assets/kells/book_of_kells_1.jpg') center/cover no-repeat;
  opacity: 0.22;                /* slightly darker overlay */
  mix-blend-mode: multiply;
  filter:
    brightness(0.28)             /* darker overall */
    contrast(1.45)               /* keeps definition */
    sepia(0.35)                  /* enriches warmth */
    hue-rotate(60deg)            /* shifts toward deep emerald */
    saturate(1.6);               /* boosts color depth */
  z-index: 0;
  pointer-events: none;
}



/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  text-align: left;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: radial-gradient(circle at center, #0c2e1a 0%, #144126 80%);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

/* Make sure all text is fully opaque & unaffected by watermark */
body, h1, h2, h3, p, a, .btn, footer, .nav-card, .site-footer, summary, details {
  position: relative;
  z-index: 2;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  text-shadow:
    0 0 10px rgba(255,215,100,0.75),
    0 0 25px rgba(200,155,60,0.45),
    0 0 40px rgba(160,110,30,0.35);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
}

/* --- Main Title: Black core, radiant gold glow --- */
h1 {
  color: #000;
  text-shadow:
    0 0 10px rgba(255,215,100,0.9),
    0 0 25px rgba(255,215,100,0.6),
    0 0 45px rgba(200,155,60,0.5),
    0 0 60px rgba(160,110,30,0.35);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

/* --- Section Headings: Warm metallic gold --- */
h2 {
  color: var(--gold);
  text-shadow:
    0 0 8px rgba(255,220,100,0.4),
    0 0 16px rgba(200,155,60,0.25);
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-top: 2rem;
}

/* --- Subsection Titles: Black with subtle golden halo --- */
h3 {
  color: #000;
  text-shadow:
    0 0 6px rgba(255,215,100,0.6),
    0 0 12px rgba(200,155,60,0.4);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-top: 1.5rem;
}

/* --- Paragraphs: readable warm gold tone --- */
p {
  max-width: 800px;
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  color: var(--gold-light);
}



/* ---------- Nav Grid + Cards ---------- */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
}

@media (max-width: 700px) {
  .nav-grid { grid-template-columns: 1fr; }
}

.nav-card {
  display: block;
  text-decoration: none;
  color: var(--gold-light);
  background: rgba(12, 32, 20, 1);
  border: 1px solid rgba(212,175,55,0.6);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow:
    0 0 12px rgba(0,0,0,0.6),
    inset 0 0 12px rgba(212,175,55,0.25);
  transition: all 0.25s ease;
  backdrop-filter: blur(3px);
}

.nav-card:hover {
  background: rgba(20, 50, 32, 0.97);
  transform: translateY(-4px);
  box-shadow:
    0 0 16px rgba(212,175,55,0.45),
    inset 0 0 14px rgba(212,175,55,0.35);
}

.nav-card h3 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.nav-card p {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.nav-card .arrow {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--gold);
}
.nav-card:hover .arrow { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: var(--deep-green);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

.btn:hover {
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 1rem;
  color: var(--gold-light);
  margin-top: 4rem;
  border-top: 1px solid rgba(212,175,55,0.5);
  background: rgba(10, 30, 18, 0.98);
  box-shadow:
    0 -2px 8px rgba(0,0,0,0.4),
    inset 0 1px 6px rgba(212,175,55,0.25);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 2;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.95;
}

/* ---------- Lecture Page Sections ---------- */
details {
  background: rgba(20, 50, 32, 0.95); /* deep green tone */
  border: 1px solid rgba(200,155,60,0.4);
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 850px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

summary {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--gold);
  cursor: pointer;
  outline: none;
  text-align: left;
}

details[open] summary {
  color: var(--gold-light);
  text-shadow: 0 0 6px rgba(255,180,60,0.5);
}

ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

li {
  margin: 0.6rem 0;
  font-size: 1.05rem;
  color: var(--gold-light);
}

/* ---------- Links & Return Buttons ---------- */
a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.return-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem auto 0 auto;
  text-align: center;
}

.return-button a {
  display: inline-block;
  background: rgba(200,155,60,0.8);
  color: var(--gold-light);
  border: 1px solid rgba(200,155,60,0.4);
  border-radius: 8px;
  padding: 0.8rem 1.8rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}

.return-button a:hover {
  background: rgba(200,155,60,0.8);
  color: #fff6c0;
  transform: translateY(-2px);
  text-decoration: none;
}
/* =========================================
   VISUAL BALANCE OVERRIDES
   (Darker watermark, more solid nav-cards)
========================================= */

/* Deep emerald version */
.watermark {
  opacity: 0.25;
  mix-blend-mode: multiply;
  filter:
    brightness(0.45)        /* darker overall */
    contrast(1.5)           /* keeps details visible */
    sepia(0.35)             /* warms the tone slightly */
    hue-rotate(55deg)       /* shifts toward deep emerald green */
    saturate(1.8);          /* boosts richness */
}




/* Make nav cards more solid and richer in tone */
.nav-card {
  background: rgba(8, 20, 12, 0.98); /* darker, almost opaque */
  backdrop-filter: blur(4px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.7),
    inset 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Slightly darker hover for better focus */
.nav-card:hover {
  background: rgba(12, 35, 22, 0.99);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.75),
    inset 0 0 12px rgba(212, 175, 55, 0.35);
}
