﻿/*
  The Beauty of the Unfinished — Dark Theme Add-on
  Works with /assets/base.css for shared navigation & footer
  Author: Emily Foster Studio
  Date: 2026-01-01
*/

/* ────────────────────────────────
   Base dark theme variables & canvas
──────────────────────────────── */
body.dark {
  --bg: #141210;
  --ink: #eae6e0;
  --muted: #b8b4ae;
  --line: rgba(255,255,255,0.15);

  font-family: 'Georgia', serif;
  background-color: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
  transition: background-color 2s ease, color 1s ease;
}

/* ────────────────────────────────
   Typography
──────────────────────────────── */
body.dark h1,
body.dark h2,
body.dark h3 {
  font-weight: 300;
  text-align: center;
  letter-spacing: 2px;
  color: #f5f2ec;
  margin: 40px 0;
  opacity: 0;
  animation: fadeInText 3s ease forwards;
}

body.dark p {
  line-height: 1.8;
  font-size: 1.1em;
  margin: 25px 0;
  text-align: justify;
  color: #e6e0d9;
  opacity: 0;
  animation: fadeInText 3s ease forwards;
  animation-delay: 0.5s;
}

body.dark em {
  color: #d8cbb8;
  font-style: italic;
}

/* ────────────────────────────────
   Layout
──────────────────────────────── */
body.dark .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ────────────────────────────────
   Imagery
──────────────────────────────── */
body.dark .image-block {
  text-align: center;
  margin: 60px 0;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

body.dark .image-block img {
  width: 100%;
  max-width: 850px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255,255,255,0.08);
  transition: transform 2s ease, box-shadow 2s ease;
}

body.dark .image-block img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(255,255,255,0.15);
}

/* ────────────────────────────────
   Audio
──────────────────────────────── */
body.dark .audio-section {
  text-align: center;
  margin-top: 50px;
}

body.dark audio {
  width: 300px;
  filter: invert(100%) brightness(90%);
  opacity: 0.9;
}

/* ────────────────────────────────
   Animations
──────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────
   Navigation & Footer (Dark Overrides)
──────────────────────────────── */
body.dark .site-nav a {
  background: rgba(255,255,255,0.12);
  color: #f0ece8;
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
body.dark .site-nav a:hover {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 8px 26px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Footer */
body.dark .site-footer {
  background: var(--bg);
  color: #b8b4ae;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

body.dark .site-footer .footer-line {
  opacity: 0.7;
  color: #d8cbb8;
}

body.dark .site-footer a {
  color: #d8cbb8;
  border-bottom: 1px dotted rgba(255,255,255,0.3);
}

body.dark .site-footer a:hover {
  color: #f5f2ec;
  border-bottom-style: solid;
}

/* ────────────────────────────────
   Link & Pager Harmonisation
──────────────────────────────── */
body.dark a,
body.dark .pager a {
  color: #d8cbb8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.3);
}

body.dark a:hover,
body.dark .pager a:hover {
  color: #f5f2ec;
  border-bottom-style: solid;
}

/* ────────────────────────────────
   Alignment
──────────────────────────────── */
body.dark .container p { text-align: justify; }

body.dark .site-nav,
body.dark .pager,
body.dark .site-footer {
  text-align: center;
}

body.dark .site-footer p,
body.dark nav.pager a {
  text-align: center;
}

/* ────────────────────────────────
   Responsive
──────────────────────────────── */
@media (max-width: 768px) {
  body.dark .container { padding: 40px 15px; }
  body.dark p { font-size: 1em; }
  body.dark h1 { font-size: 1.5em; }
}
