/* granorco.es — orc-lair dark fantasy theme
   Palette: obsidian #141210, coal #221E1A, amber #E0A33B, blood #A32C2C, bone #EFE6D5, ash #9A938A */

:root {
  --obsidian: #141210;
  --coal: #221E1A;
  --amber: #E0A33B;
  --blood: #A32C2C;
  --bone: #EFE6D5;
  --ash: #9A938A;
}

.lair-body {
  background-color: #141210;
  color: #EFE6D5;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.site-main { flex: 1 0 auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Metamorphous", "Source Sans 3", serif;
  color: #E0A33B;
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }

/* ── Header / nav ───────────────────────────────── */
.lair-header {
  background: #221E1A;
  border-bottom: 3px solid #E0A33B;
}
.lair-header .header-inner { padding: 0; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.brand-ul { list-style: none; margin: 0; padding: 0; }
.site-brand {
  display: inline-block;
  font-family: "Metamorphous", serif;
  font-size: 1.2rem;
  color: #E0A33B;
  text-decoration: none;
  padding: 14px 0;
}
.site-brand:hover { color: #EFE6D5; }
.nav-toggle { color: #EFE6D5; font-weight: 700; cursor: pointer; padding: 12px 0; }
.site-menu { list-style: none; margin: 0; padding: 0; width: 100%; }
@media (min-width: 1024px) { .site-menu { width: auto; } }
.site-menu .nav-item { margin: 0; }
.site-menu .nav-link {
  display: block;
  color: #EFE6D5;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 12px;
  text-decoration: none;
  cursor: pointer;
}
.site-menu .nav-link:hover { color: #E0A33B; background: rgba(163, 44, 44, 0.25); }
.nav-dropdown { position: relative; margin: 0; border: none; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; color: #E0A33B; }
.nav-drop {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #221E1A;
  border: 1px solid #E0A33B;
  min-width: 260px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1024px) { .nav-drop { position: absolute; left: 0; top: 100%; z-index: 60; } }
.nav-drop-link { display: block; padding: 7px 16px; color: #EFE6D5; font-size: 0.9rem; text-decoration: none; }
.nav-drop-link:hover { color: #E0A33B; background: rgba(163, 44, 44, 0.25); }

/* ── Breadcrumbs ────────────────────────────────── */
.breadcrumb-wrap { padding: 16px 0 0; color: #9A938A; font-size: 0.88rem; }
.breadcrumb-wrap .breadcrumb { color: #9A938A; text-decoration: none; }
.breadcrumb-wrap a.breadcrumb:hover { color: #E0A33B; text-decoration: underline; }
.breadcrumb-wrap .is-current { color: #E0A33B; }
.crumb-sep { margin: 0 8px; color: #A32C2C; }

/* ── Content ────────────────────────────────────── */
.page-shell { padding: 24px 0 56px; }
.layout-railed { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) {
  .layout-railed { flex-direction: row; }
  .layout-railed .content-panel { flex: 1; min-width: 0; }
  .layout-railed .rail-col { width: 26%; }
}
.content-panel {
  background: #221E1A;
  border: 1px solid #3a332c;
  border-top: 3px solid #E0A33B;
  border-radius: 6px;
  padding: 30px 34px;
  margin-bottom: 24px;
}
.page-title { margin-top: 0; }

.site-prose { color: #EFE6D5; }
.site-prose a,
.site-block--paragraph a,
.site-list a,
.site-table a,
.card-excerpt a {
  color: #E0A33B;
  text-decoration: underline;
  text-decoration-color: rgba(163, 44, 44, 0.8);
  text-underline-offset: 3px;
}
.site-prose a:hover,
.site-block--paragraph a:hover,
.site-list a:hover,
.site-table a:hover { color: #EFE6D5; text-decoration-color: #E0A33B; }

.site-figure { margin: 24px auto; text-align: center; }
.site-figure img,
.gallery-item img,
.content-main-image {
  max-width: 100%;
  height: auto;
  border: 2px solid #E0A33B;
  border-radius: 4px;
  background: #141210;
}
.site-figure figcaption,
.gallery-item figcaption { font-style: italic; font-size: 0.85rem; color: #9A938A; padding-top: 6px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.site-table { overflow-x: auto; margin: 20px 0; }
.site-table table { width: 100%; border-collapse: collapse; background: #1b1815; color: #EFE6D5; }
.site-table td, .site-table th { padding: 10px 12px; border-bottom: 1px solid rgba(224, 163, 59, 0.3); vertical-align: top; }
.site-table img { max-width: 120px; height: auto; }

blockquote {
  border-left: 4px solid #A32C2C;
  background: rgba(163, 44, 44, 0.12);
  padding: 12px 20px;
  font-style: italic;
  color: #EFE6D5;
}
hr { border: none; border-top: 1px solid #E0A33B; margin: 28px 0; }
.site-list { padding-left: 24px; margin: 16px 0; }
pre, code { background: #1b1815; color: #E0A33B; }

/* ── Cards ──────────────────────────────────────── */
.archive-card {
  background: #1b1815;
  border: 1px solid #3a332c;
  border-left: 4px solid #A32C2C;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 16px 0;
}
.archive-card .card-title { font-size: 1.15rem; margin: 0 0 8px; }
.archive-card .card-title a { color: #E0A33B; text-decoration: none; }
.archive-card .card-title a:hover { color: #EFE6D5; text-decoration: underline; }
.archive-card .card-excerpt { color: #cfc6b6; margin: 0; font-size: 0.95rem; }

.category-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
@media (min-width: 768px) {
  .category-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .category-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .category-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.category-card {
  background: #221E1A;
  border: 1px solid #3a332c;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.category-card .card-media img, .category-card .card-h-media img { width: 100%; height: auto; display: block; }
.category-card .card-h-row { display: flex; }
.category-card .card-h-media { flex: 0 0 36%; }
.category-card .card-h-media img { height: 100%; object-fit: cover; }
.category-card .card-body { padding: 16px 18px; }
.category-card .card-title { font-size: 1.05rem; margin: 0 0 8px; }
.category-card .card-title a { color: #E0A33B; text-decoration: none; }
.category-card .card-title a:hover { color: #EFE6D5; }
.category-card p { color: #cfc6b6; }
.category-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #E0A33B;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid #A32C2C;
  text-decoration: none;
}
.category-card .read-more:hover { color: #EFE6D5; }
.category-card.card-style-minimal { border: none; border-left: 3px solid #A32C2C; border-radius: 0; background: transparent; }

/* ── Rail ───────────────────────────────────────── */
.lair-rail {
  background: #221E1A;
  border: 1px solid #3a332c;
  border-top: 3px solid #A32C2C;
  border-radius: 6px;
  padding: 16px;
}
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-link {
  display: block;
  color: #EFE6D5;
  font-size: 0.92rem;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(224, 163, 59, 0.25);
  text-decoration: none;
}
.rail-link:hover { color: #E0A33B; }

/* ── ToC / meta ─────────────────────────────────── */
.toc-panel {
  background: rgba(224, 163, 59, 0.07);
  border: 1px solid #3a332c;
  border-left: 3px solid #E0A33B;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.toc-panel ul { margin: 8px 0 0; padding-left: 18px; }
.toc-panel a { color: #E0A33B; text-decoration: none; }
.toc-panel a:hover { text-decoration: underline; }
.toc-sticky { position: sticky; top: 16px; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }

.meta-line { color: #9A938A; font-size: 0.85rem; }
.meta-line time { margin-right: 16px; }
.lead {
  font-size: 1.08rem;
  font-style: italic;
  color: #cfc6b6;
  border-left: 3px solid #A32C2C;
  padding-left: 16px;
}
@media (min-width: 1024px) {
  .content-main-image { float: right; max-width: 33%; margin: 0 0 16px 24px; }
}

/* ── Outlinks ───────────────────────────────────── */
.source-outlinks { padding: 8px 0 24px; }
.source-outlinks ul { margin: 0; padding: 0; list-style: none; }
.source-outlinks li { display: inline-block; margin-right: 18px; }
.source-outlinks a { color: #E0A33B; text-decoration: underline; font-size: 0.9rem; }

/* ── Footer ─────────────────────────────────────── */
.lair-footer { background: #221E1A; color: #cfc6b6; padding-top: 28px; border-top: 3px solid #A32C2C; }
.lair-footer .footer-brand {
  font-family: "Metamorphous", serif;
  color: #E0A33B;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.lair-footer .footer-note { color: rgba(207, 198, 182, 0.7); }
.lair-footer .footer-links { list-style: none; margin: 0; padding: 0; }
.lair-footer .footer-links li { padding: 4px 0; }
.lair-footer .footer-links a { color: #cfc6b6; text-decoration: none; }
.lair-footer .footer-links a:hover { color: #E0A33B; }
.lair-footer .footer-copyright {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(207, 198, 182, 0.6);
  font-size: 0.85rem;
  padding: 10px 0;
  margin-top: 16px;
}
.lair-footer .footer-copyright a { color: #E0A33B; text-decoration: none; }
.lair-footer .grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .lair-footer .grid { grid-template-columns: 2fr 1fr; } }

/* ── Print ──────────────────────────────────────── */
@media print {
  .lair-header, .lair-rail, .lair-footer, .breadcrumb-wrap { display: none; }
  .lair-body { background: #fff; color: #000; }
  .content-panel { border: none; background: #fff; padding: 0; }
}
