/*
Theme Name: Devil's Hideout
Theme URI: https://devilshideout.com
Author: Devil's Hideout
Description: Retro archive theme for Devil's Hideout WordPress migration.
Version: 0.3.7
Text Domain: devils-hideout
*/

:root {
  --black: #130b16;
  --deep: #1c0d18;
  --wine: #341421;
  --blue: #42b8bf;
  --navy: #101927;
  --paper: #fff0d0;
  --muted: #e7c997;
  --gold: #f7b937;
  --red: #e4473f;
  --green: #66b38d;
  --line: rgba(255, 217, 143, .24);
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 8px 8px, rgba(247,185,55,.18) 1.7px, transparent 2px) 0 0 / 32px 32px,
    linear-gradient(115deg, #260a1b 0%, #1b1121 42%, #101927 100%);
  letter-spacing: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0; }
.wrap.narrow { width: min(960px, calc(100% - 36px)); }
.eyebrow { margin: 0 0 14px; color: var(--blue); font: 900 12px/1.2 Arial, sans-serif; letter-spacing: 0; text-transform: uppercase; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(19, 11, 22, .9);
  font: 900 14px/1 Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(0,0,0,.5);
}
.button.primary, button[type="submit"] { background: linear-gradient(#f15b4d, #b52735); color: #fff7df; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 3vw, 46px);
  background: linear-gradient(90deg, #250715, #121827);
  border-bottom: 4px solid rgba(247,185,55,.62);
  box-shadow: 0 10px 0 rgba(0,0,0,.28);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 260px; color: var(--paper); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 42%, #1b1118 44% 100%);
  color: #160c14;
  font: 900 14px/1 Arial, sans-serif;
}
.brand strong { display: block; color: var(--gold); font-size: 22px; line-height: 1; }
.brand small { display: block; max-width: 250px; margin-top: 4px; color: var(--paper); font: 700 12px/1.25 Arial, sans-serif; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px 20px; font: 900 12px/1 Arial, sans-serif; text-transform: uppercase; }
.site-nav a { color: var(--paper); text-decoration: none; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 82vh;
  display: block;
  padding: clamp(56px, 8vw, 120px) clamp(22px, 4vw, 70px);
  overflow: hidden;
  border-bottom: 5px solid #0d0b10;
  background:
    radial-gradient(circle at 24% 30%, rgba(255,240,208,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 22%, rgba(255,217,143,.52), transparent 130px),
    radial-gradient(circle at 32% 68%, rgba(66,184,191,.36), transparent 190px),
    linear-gradient(115deg, rgba(165,31,46,.88), rgba(35,15,44,.86) 44%, rgba(12,43,52,.9)),
    repeating-radial-gradient(circle at 80% 50%, rgba(255,217,143,.11) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 64px);
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
}
.hero-art::before {
  width: 95vw;
  height: 10px;
  left: -15vw;
  top: 22%;
  background: rgba(255,240,208,.5);
  transform: rotate(18deg);
  filter: blur(2px);
  box-shadow: 0 0 24px rgba(255,240,208,.45);
}
.hero-art::after {
  inset: 20% 58% 18% 6%;
  border: 4px solid #130b16;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 42%, #e4473f 43% 46%, transparent 47%),
    radial-gradient(circle at 35% 30%, #ffd98f 0 7px, transparent 8px),
    radial-gradient(circle at 68% 62%, #42b8bf 0 7px, transparent 8px),
    repeating-linear-gradient(0deg, rgba(19,11,22,.18) 0 1px, transparent 1px 14px),
    #f1c56f;
  box-shadow: 9px 9px 0 rgba(0,0,0,.38);
  transform: rotate(4deg);
}
.map-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(112deg, transparent 43%, rgba(255,217,143,.45) 44%, transparent 45%),
    linear-gradient(18deg, transparent 54%, rgba(66,184,191,.38) 55%, transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(255,240,208,.07) 72px 74px);
}
.hero-content { position: relative; z-index: 2; width: min(48rem, 48vw); max-width: none; }
.hero h1 {
  margin: 0 0 24px;
  color: var(--paper);
  font-size: clamp(70px, 9vw, 150px);
  line-height: .82;
  text-shadow: 4px 4px #5a1222;
}
.tagline { max-width: 680px; color: #ffe4a8; font: 900 22px/1.55 Arial, sans-serif; }
.hero-search label { display: block; margin: 28px 0 8px; color: #ffd98f; font: 800 13px Arial, sans-serif; }
.hero-search div { display: flex; gap: 10px; }
.hero-search input, .newsletter input, .filters input, .submit-form input, .submit-form textarea, .tool-panel input {
  width: 100%;
  min-height: 48px;
  border: 3px solid #130b16;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff0d0;
  color: #341421;
  font: 16px Arial, sans-serif;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.hero-carousel {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 7vw, 96px);
  top: 21%;
  width: min(42vw, 752px);
  transform: rotate(3deg);
}
.crt-screen {
  position: relative;
  aspect-ratio: 1.22 / 1;
  border: 6px solid #130b16;
  border-radius: 18px;
  overflow: hidden;
  background: #15171d;
  box-shadow: 10px 10px 0 rgba(0,0,0,.42), inset 0 0 48px rgba(66,184,191,.32);
}
.crt-screen::before,
.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.crt-screen::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.22), transparent 16px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.13) 0 2px, transparent 2px 6px);
  mix-blend-mode: screen;
}
.crt-screen::after {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px);
  border-radius: 12px;
  box-shadow: inset 0 0 64px rgba(0,0,0,.82), inset 0 0 0 2px rgba(255,240,208,.08);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease; text-decoration: none; color: var(--paper); }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.08) brightness(.76); }
.hero-slide-copy {
  position: absolute;
  z-index: 4;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  background: rgba(43, 16, 29, .88);
  border-top: 1px solid rgba(255,217,143,.3);
}
.hero-slide-copy span, .hero-slide-copy em { display: block; color: var(--blue); font: 900 12px Arial, sans-serif; text-transform: uppercase; font-style: normal; }
.hero-slide-copy strong { display: block; margin: 8px 0; color: var(--gold); font-size: clamp(22px, 3vw, 36px); line-height: 1; }
.hero-carousel-controls {
  position: absolute;
  z-index: 5;
  right: 16px;
  top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 3px solid #130b16;
  border-radius: 999px;
  background: rgba(36,19,29,.88);
  font: 900 15px Arial, sans-serif;
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
}
.hero-carousel-controls button { width: 38px; min-height: 38px; height: 38px; padding: 0; border: 3px solid #130b16; border-radius: 50%; color: #130b16; background: var(--gold); box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.hero-carousel-controls span { min-width: 64px; color: var(--paper); text-align: center; text-shadow: 2px 2px 0 #130b16; }

.start-here, .tools-preview, .category-strip {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 18px;
}
.start-here { grid-template-columns: 1.5fr repeat(3, 1fr); }
.start-here > div, .start-here a, .category-strip a, .tool-tile, .newsletter, .tool-panel, .filters, .article-side {
  display: block;
  padding: 22px;
  color: var(--paper);
  text-decoration: none;
  border: 4px solid #130b16;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,240,208,.05), transparent),
    #24131d;
  box-shadow: var(--shadow);
}
.start-here strong { display: block; color: var(--gold); font-size: 34px; }
.start-here h2, .section-grid h2, .page-head h1 { margin: 0 0 14px; color: var(--paper); font-size: clamp(36px, 5vw, 72px); line-height: .95; }
.start-here p, .section-grid p, .page-head p, .tool-tile p, .newsletter p, .filters, .article-side { color: var(--muted); line-height: 1.6; }

.section-grid {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 36px;
  align-items: start;
}
.feature-grid, .cards.three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cards.list { display: grid; gap: 16px; }
.category-strip { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.category-strip strong, .category-strip span { display: block; }
.category-strip span { margin-top: 8px; color: var(--muted); }

.dh-card {
  background:
    linear-gradient(180deg, rgba(255,240,208,.05), transparent),
    #24131d;
  border: 4px solid #130b16;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dh-card:nth-child(3n + 1) { background: linear-gradient(180deg, rgba(255,217,143,.12), transparent), #351d22; }
.dh-card:nth-child(3n + 2) { background: linear-gradient(180deg, rgba(66,184,191,.16), transparent), #162734; }
.dh-card-image { display: block; aspect-ratio: 16/9; background: #0f1921; overflow: hidden; }
.dh-card-image img { width: 100%; height: 100%; object-fit: cover; }
.dh-card-body { padding: 22px; }
.dh-card h2 { margin: 0 0 12px; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.05; }
.dh-card p { color: #ffe0a6; line-height: 1.58; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font: 900 11px Arial, sans-serif; text-transform: uppercase; }
.dh-meta span { border: 1px solid rgba(255,217,143,.4); border-radius: 999px; padding: 7px 10px; color: var(--paper); background: rgba(19,11,22,.45); }
.dh-meta .status { background: var(--gold); color: #190e16; border-color: #130b16; }

.page-head {
  padding: 72px 0 42px;
  background: linear-gradient(105deg, rgba(228,71,63,.24), rgba(66,184,191,.12));
  border-bottom: 3px solid rgba(247,185,55,.32);
}
.page-head h1 { max-width: 980px; color: #ffd98f; text-shadow: 3px 3px #551222; }
.page-head p { max-width: 780px; font-size: 20px; }

.article-wrap { max-width: 1280px; }
.article-page > header { max-width: 980px; margin: 0 auto 26px; padding-top: 28px; }
.article-page h1 {
  margin: 0 0 18px;
  color: var(--paper);
  max-width: 22ch;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.06;
  text-shadow: 3px 3px #551222;
}
.article-page > header > p { max-width: 820px; color: #ffe4a8; font: 900 18px/1.55 Arial, sans-serif; }
.feature-image { max-width: 980px; margin: 0 auto 42px; overflow: hidden; background: #130b16; border: 5px solid #130b16; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-image img { width: 100%; max-height: 540px; object-fit: cover; }
.feature-image figcaption { padding: 12px 16px; color: var(--muted); font: 800 13px Arial, sans-serif; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; align-items: start; }
.prose { max-width: 850px; }
.prose p, .prose li, .prose dd { color: #ffe0a6; font-size: 19px; line-height: 1.75; }
.prose h2 { margin-top: 42px; color: var(--blue); font: 900 24px/1.1 Arial, sans-serif; }
.prose a { color: var(--gold); }
.dh-case-notes {
  margin: 32px 0;
  padding: 18px;
  border: 4px solid #130b16;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(66,184,191,.12), transparent),
    #172734;
  box-shadow: var(--shadow);
}
.dh-case-notes dt { color: var(--blue); margin-top: 22px; font: 900 16px Arial, sans-serif; }
.dh-case-notes dd { margin: 6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.case-file { display: grid; gap: 8px; margin: 0; }
.case-file dt { color: var(--gold); font: 900 16px Arial, sans-serif; }
.case-file dd { margin: 0 0 8px; color: #d5cab9; }
.sources-block {
  margin: 28px 0 0;
  padding: 18px;
  border: 4px solid #130b16;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,217,143,.1), transparent),
    #24131d;
  box-shadow: var(--shadow);
}
.sources-block h2 { margin: 0 0 14px; color: var(--gold); font: 900 22px Arial, sans-serif; }
.sources-block ul { display: grid; gap: 12px; margin: 0; padding-left: 18px; }
.sources-block li { color: #ffe0a6; }
.sources-block a { color: var(--gold); font-weight: 900; }
.sources-block span { display: block; color: var(--muted); font: 800 13px Arial, sans-serif; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list a { padding: 9px 11px; border: 3px solid #130b16; border-radius: var(--radius); background: #351d22; box-shadow: 3px 3px 0 rgba(0,0,0,.32); text-decoration: none; }
.related { display: block; margin-top: 12px; padding: 14px; background: #351d22; border: 3px solid #130b16; border-radius: var(--radius); box-shadow: 3px 3px 0 rgba(0,0,0,.32); text-decoration: none; }
.related span { display: block; margin-top: 6px; color: var(--muted); font: 800 12px Arial, sans-serif; }
.article-side h2 { margin: 18px 0 10px; color: var(--gold); font: 900 22px Arial, sans-serif; }

.archive-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.archive-controls {
  display: grid;
  gap: 18px;
  padding: 22px 0 0;
}
.archive-search {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 4px solid #130b16;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,240,208,.05), transparent),
    #24131d;
  box-shadow: var(--shadow);
}
.archive-search label { display: grid; gap: 6px; flex: 1; color: var(--gold); font: 900 16px Arial, sans-serif; }
.archive-search input { width: 100%; }
.filters { position: sticky; top: 110px; }
.archive-rail h2 { margin: 22px 0 8px; color: var(--gold); font-size: 22px; }
.filter-link { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,217,143,.18); text-decoration: none; }
.filter-link span { color: var(--blue); font: 900 12px Arial, sans-serif; }
.filter-link.is-active { color: var(--gold); }
.result-bar { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 16px; color: var(--paper); font: 900 14px Arial, sans-serif; text-transform: uppercase; }
.result-bar span { color: var(--muted); }
.pagination { padding: 26px 0 0; }
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 3px solid #130b16;
  border-radius: var(--radius);
  background: #351d22;
  box-shadow: 3px 3px 0 rgba(0,0,0,.32);
  text-decoration: none;
}
.pagination .current {
  background: var(--gold);
  color: #130b16;
  font-weight: 900;
}

.map-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.map-canvas {
  position: relative;
  min-height: 680px;
  background:
    radial-gradient(circle at 20% 30%, rgba(228,71,63,.2), transparent 112px),
    linear-gradient(90deg, rgba(19,11,22,.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(19,11,22,.28) 1px, transparent 1px),
    #e9ba68;
  background-size: auto, 42px 42px, 42px 42px, auto;
  border: 5px solid #130b16;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(228,71,63,.35); transform: translate(-50%, -50%); }
.map-pin span { position: absolute; inset: 8px; border-radius: 50%; background: var(--red); border: 4px solid #130b16; }
.map-item { display: block; margin-bottom: 12px; padding: 16px; background: #24131d; border: 4px solid #130b16; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.map-item span { display: block; margin-top: 8px; color: var(--muted); }
.trail-grid, .glossary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}
.trail-card, .glossary article {
  display: block;
  min-height: 190px;
  padding: 24px;
  color: var(--muted);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(89, 35, 38, .82), rgba(23, 11, 25, .94)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 4px);
  border: 2px solid rgba(255,216,130,.22);
  box-shadow: 8px 8px 0 #08060b;
}
.trail-card h2, .glossary h2 {
  margin: 8px 0 12px;
  color: var(--paper);
  font-size: 30px;
  line-height: 1;
  text-shadow: 2px 2px #120811;
}
.trail-card:hover { transform: translate(-2px, -2px); border-color: var(--gold); }
.timeline { display: grid; gap: 18px; }
.timeline article { padding: 22px; border: 4px solid #130b16; border-left: 12px solid var(--red); border-radius: var(--radius); background: #24131d; box-shadow: 6px 6px 0 rgba(0,0,0,.3); }
.timeline time { color: var(--blue); font: 900 13px Arial, sans-serif; text-transform: uppercase; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.tool-panel label, .submit-form label { display: block; margin: 12px 0; color: var(--muted); font: 800 13px Arial, sans-serif; }
.submit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.submit-form label:has(textarea), .submit-form .check, .submit-form button { grid-column: 1 / -1; }
.newsletter { min-height: 100%; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 3vw, 46px);
  background: repeating-linear-gradient(90deg, #100912 0 18px, #1e101b 18px 36px);
  border-top: 4px solid rgba(247,185,55,.38);
}
.site-footer strong { display: block; color: var(--gold); font-size: 26px; }
.site-footer p { color: var(--muted); max-width: 520px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; }

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; justify-content: flex-start; }
  .site-nav.is-open { display: flex; }
  .hero, .section-grid, .article-grid, .archive-layout, .map-shell, .start-here, .trail-grid, .glossary { grid-template-columns: 1fr; }
  .archive-search { flex-direction: column; align-items: stretch; }
  .hero { min-height: auto; display: block; padding-bottom: 48px; }
  .hero-content { width: min(100%, 46rem); }
  .hero-art::after { inset: 14% 8% auto 8%; height: 46%; opacity: .65; }
  .hero-carousel { position: relative; right: auto; top: auto; width: min(100%, 42rem); margin-top: 34px; transform: rotate(1.5deg); }
  .feature-grid, .cards.three { grid-template-columns: 1fr; }
  .filters { position: static; }
  .submit-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 58px; }
  .hero { padding-top: 72px; }
  .hero-art::after { display: none; }
  .hero-search div { flex-direction: column; }
  .hero-carousel { transform: none; }
  .hero-carousel-controls { right: 10px; top: 10px; transform: scale(.9); transform-origin: top right; }
  .hero-slide-copy { left: 10px; right: 10px; bottom: 10px; }
  .article-page h1, .page-head h1 { font-size: 42px; }
  .map-canvas { min-height: 420px; }
}
