/* Mouthbows to Cyberskins — Buffy Sainte-Marie Fan Tribute */
/* Design: Gothic folk — deep crimson/gold modernized with editorial finesse */

:root {
  --crimson-900: #1a0101;
  --crimson-800: #2e0303;
  --crimson-700: #4a0606;
  --crimson-600: #6b0a0a;
  --crimson-500: #8B1010;
  --gold-400: #c9a227;
  --gold-300: #d4af37;
  --gold-200: #e8d27a;
  --gold-100: #f5e9a8;
  --silver-300: #b8bcc4;
  --silver-200: #d0d4dc;
  --silver-100: #e8eaf0;
  --teal-500: #0d7377;
  --teal-400: #14919b;
  --white: #fafaf8;
  --text-body: #e8e4d8;
  --text-muted: #b8b0a0;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--crimson-900);
  color: var(--text-body);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--teal-400);
  text-decoration: underline;
  text-decoration-color: rgba(20,145,155,0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--gold-300);
  text-decoration-color: rgba(212,175,55,0.6);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-300);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: var(--gold-200);
  margin: 2.25rem 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212,175,55,0.25);
}

h3 {
  font-size: 1.15rem;
  color: var(--silver-200);
  margin: 1.5rem 0 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

ul, ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  max-width: 68ch;
}

li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 3px solid var(--gold-400);
  padding: 0.75rem 1.5rem;
  margin: 1.75rem 0;
  background: rgba(201,162,39,0.06);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--gold-100);
  max-width: 72ch;
}
blockquote p { margin-bottom: 0; }
blockquote em { font-style: normal; color: var(--silver-200); font-size: 0.88em; }

/* Navigation */
.site-nav {
  background: var(--crimson-800);
  border-bottom: 1px solid rgba(201,162,39,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95rem;
  color: var(--gold-300);
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--gold-200); text-decoration: none; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-200);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-300);
  border-bottom-color: var(--gold-400);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-300);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 3px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--crimson-700) 0%, var(--crimson-900) 60%);
  padding: 4rem 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,16,16,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  margin-bottom: 2rem;
  border: 1px solid rgba(201,162,39,0.2);
}

.hero-text { max-width: 800px; }

.hero-eyebrow {
  display: inline-block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero-lead {
  font-size: 1.15rem;
  color: var(--silver-200);
  max-width: 65ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 3px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold-400);
  color: var(--crimson-900);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--gold-300);
  color: var(--crimson-900);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--silver-200);
  border: 1px solid rgba(200,196,188,0.35);
}
.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  text-decoration: none;
}

/* Separator */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.35), transparent);
  margin: 2.5rem 0;
}

/* Page layout */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-wrap--narrow {
  max-width: 820px;
}

/* Content section decorative rule */
.content-section { margin-bottom: 3rem; }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}

thead th {
  background: var(--crimson-700);
  color: var(--gold-300);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(201,162,39,0.3);
}

tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-body);
  vertical-align: top;
}

tbody tr:hover td { background: rgba(255,255,255,0.03); }
tbody td em { color: var(--gold-100); font-style: italic; }

/* Image within content */
.content-img {
  width: 100%;
  border-radius: 4px;
  margin: 2rem 0;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(201,162,39,0.15);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-grid figure {
  margin: 0;
  background: var(--crimson-800);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--silver-300);
  font-style: italic;
}

/* Featured quote pull */
.pull-quote {
  background: linear-gradient(135deg, rgba(74,6,6,0.6), rgba(26,1,1,0.8));
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--gold-400);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.pull-quote p {
  font-size: 1.15rem;
  color: var(--gold-100);
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.65;
  max-width: none;
}
.pull-quote cite {
  display: block;
  font-size: 0.85rem;
  color: var(--silver-300);
  font-style: normal;
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.04em;
}

/* Decorative section cards (for TOC etc.) */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.link-card {
  background: var(--crimson-800);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text-body);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: block;
}
.link-card:hover {
  border-color: var(--gold-400);
  background: rgba(139,16,16,0.4);
  text-decoration: none;
  transform: translateY(-2px);
}
.link-card h3 {
  color: var(--gold-200);
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.link-card p { font-size: 0.88rem; color: var(--silver-300); margin: 0; max-width: none; }

/* Footer */
.site-footer {
  background: var(--crimson-900);
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.88rem; color: var(--silver-300); }
.footer-col ul a:hover { color: var(--gold-300); }

.footer-about p {
  font-size: 0.88rem;
  color: var(--silver-300);
  max-width: none;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.not-found-inner { max-width: 540px; }
.not-found .error-code {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 5rem;
  color: var(--gold-400);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; width: 100%; padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; padding: 0.75rem 1.5rem; }
  .hero { padding: 2.5rem 1.25rem; }
  table { font-size: 0.82rem; }
  thead th, tbody td { padding: 0.5rem 0.6rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.6rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
