/* underworlds.hells.site — The Keeper's Archive */
/* Dark candlelit aesthetic: 19th-century occult press meets museum plaques */

:root {
  --void: #090909;
  --void-light: #111111;
  --parchment: #d4c8a8;
  --parchment-dim: #a89a78;
  --amber: #b8943e;
  --amber-dim: #8a7a52;
  --gold: #c9a84c;
  --gold-muted: #8a7a52;
  --shadow: rgba(0, 0, 0, 0.6);
  --glow: rgba(184, 148, 62, 0.08);
}

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

body {
  font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  background-color: var(--void);
  color: var(--parchment);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--amber);
}

h1 {
  font-size: 2.8em;
  margin-bottom: 0.3em;
  line-height: 1.15;
}

h2 {
  font-size: 1.7em;
  margin-top: 2em;
  margin-bottom: 0.6em;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 0.3em;
}

h3 {
  font-size: 1.3em;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  font-style: italic;
  color: var(--parchment);
}

p {
  margin-bottom: 1.1em;
  text-align: justify;
  hyphens: auto;
}

a {
  color: var(--gold-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber);
}

em {
  font-style: italic;
}

strong {
  color: var(--parchment);
  font-weight: 600;
}

::selection {
  background: var(--amber);
  color: var(--void);
}

/* Layout */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2em;
}

header {
  text-align: center;
  padding: 3em 0 2em;
  border-bottom: 1px solid var(--amber-dim);
  margin-bottom: 2em;
}

header h1 {
  font-size: 3.2em;
  letter-spacing: 0.05em;
  margin-bottom: 0.2em;
  color: var(--amber);
}

header .subtitle {
  font-style: italic;
  color: var(--parchment-dim);
  font-size: 1.1em;
}

header .tradition-tag {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--void);
  padding: 0.25em 0.8em;
  font-size: 0.75em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1em;
  font-family: 'Cormorant Garamond', serif;
}

/* Navigation */

nav {
  background: var(--void-light);
  padding: 0.8em 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--amber-dim);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

nav li {
  margin: 0 1.2em;
}

nav a {
  color: var(--parchment-dim);
  border-bottom: none;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
}

nav a:hover {
  color: var(--amber);
}

/* Main content */

main {
  min-height: 60vh;
}

/* Placeholder text */

.placeholder {
  color: var(--parchment-dim);
  font-style: italic;
  text-align: center;
  padding: 2em 0;
}

/* Sources section */

section.sources {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--amber-dim);
}

section.sources h2 {
  font-size: 1.3em;
  border-bottom: none;
}

section.sources ul {
  list-style: none;
  padding-left: 0;
}

section.sources li {
  margin-bottom: 0.5em;
  padding-left: 1.5em;
  position: relative;
  color: var(--parchment-dim);
}

section.sources li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--amber-dim);
}

/* Footer */

footer {
  text-align: center;
  padding: 2em;
  margin-top: 3em;
  border-top: 1px solid var(--amber-dim);
  font-size: 0.85em;
  color: var(--parchment-dim);
}

footer a {
  color: var(--gold-muted);
}

footer a:hover {
  color: var(--amber);
}

/* Hero image */

.hero-image {
  width: 100%;
  max-width: 600px;
  margin: 1.5em auto;
  display: block;
  border: 1px solid var(--amber-dim);
  opacity: 0.9;
}

/* Comparison tables */

table.comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

table.comparison th,
table.comparison td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid rgba(138, 122, 82, 0.3);
}

table.comparison th {
  background: var(--void-light);
  color: var(--amber);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

table.comparison td {
  color: var(--parchment);
}

table.comparison tr:hover td {
  background: rgba(184, 148, 62, 0.05);
}

/* Entry cards on index */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5em;
  margin: 2em 0;
}

.entry-card {
  border: 1px solid var(--amber-dim);
  padding: 1.5em;
  background: var(--void-light);
  transition: border-color 0.2s ease;
}

.entry-card:hover {
  border-color: var(--amber);
}

.entry-card h3 {
  margin-top: 0;
  font-style: normal;
  color: var(--amber);
}

.entry-card .tradition {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--parchment-dim);
  margin-bottom: 0.5em;
  font-family: 'Cormorant Garamond', serif;
}

/* Decorative elements */

.divider {
  text-align: center;
  margin: 2.5em 0;
  color: var(--amber-dim);
  font-size: 1.2em;
  letter-spacing: 0.3em;
}

/* Blockquote styling */

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 2px solid var(--amber-dim);
  color: var(--parchment-dim);
  font-style: italic;
}

/* Responsive */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 1em;
  }

  header h1 {
    font-size: 2.2em;
  }

  nav li {
    margin: 0 0.6em;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */

@media print {
  nav {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  h1, h2, h3, h4 {
    color: black;
  }

  a {
    color: black;
  }
}
