/* poetryanthologies.com — Dark Literary Theme */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #0f0f17;
  --bg-surface: #1a1a2e;
  --bg-card: #222238;
  --bg-card-hover: #2a2a44;
  --text-primary: #e8e4d9;
  --text-secondary: #b8b4a8;
  --text-muted: #8a8778;
  --accent-gold: #c9a84c;
  --accent-gold-dim: #a68a3a;
  --accent-sage: #7c9473;
  --accent-sage-dim: #5d7356;
  --border: #2e2e48;
  --border-subtle: #252540;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; font-weight: 600; }
h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; margin-top: 2.5rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--accent-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

blockquote {
  border-left: 3px solid var(--accent-gold-dim);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: 0 6px 6px 0;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(26, 26, 46, 0.92);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--accent-gold); }

nav { display: flex; gap: 1.75rem; align-items: center; }
nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent-gold); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .gold { color: var(--accent-gold); }
.hero .tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-style: italic;
}
.hero .subtitle {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* Main content */
main { flex: 1; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Section spacing */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border-subtle); }
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.card:hover {
  border-color: var(--accent-gold-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.15rem; }
.card h3 a { color: var(--text-primary); }
.card h3 a:hover { color: var(--accent-gold); }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0; line-height: 1.6; }
.card-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Anthology entry */
.entry-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.entry-header h1 { margin-bottom: 0.5rem; }
.entry-meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.entry-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* Fact box (direct-answer block for LLMs) */
.fact-box {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.fact-box strong { color: var(--accent-gold); }

/* Tags */
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 1rem 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb span { margin: 0 0.4rem; }

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-text {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent-gold); }

/* Article body */
.article-body h2 { color: var(--text-primary); margin-bottom: 1rem; }
.article-body h3 { color: var(--text-secondary); margin-bottom: 0.75rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; color: var(--text-secondary); }
.article-body li strong { color: var(--text-primary); }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-card);
}
td { color: var(--text-secondary); }

/* FAQ Section (for FAQPage schema) */
.faq-section { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.faq-answer { color: var(--text-secondary); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .container { padding: 0 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 1.5rem; padding: 2rem 1.5rem; }
  .stat-value { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  nav { display: none; }
  .nav-toggle { display: block; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-surface); padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  .hero .tagline { font-size: 1rem; }
  .stats-bar { gap: 1rem; }
  .entry-meta { flex-direction: column; gap: 0.5rem; }
}
