/* WellerVision Dispatches & Film Archive — matching threshold aesthetic */
:root {
  --bg: #08060a;
  --surface: rgba(18, 13, 21, 0.82);
  --surface-border: rgba(216, 181, 124, 0.22);
  --ink: #f6f0e6;
  --ink-soft: rgba(246, 240, 230, 0.86);
  --ink-dim: rgba(246, 240, 230, 0.62);
  --brass: #d8b57c;
  --brass-soft: rgba(216, 181, 124, 0.32);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 18% 8%, rgba(118, 36, 69, 0.24) 0%, transparent 72%),
    radial-gradient(ellipse 65% 45% at 84% 12%, rgba(28, 56, 98, 0.24) 0%, transparent 72%),
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(164, 86, 42, 0.11) 0%, transparent 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  line-height: 1.72;
}

a { color: var(--brass); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: #f3dcb0; }

.top-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(20px, 4vw, 44px);
  background: rgba(8, 6, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 181, 124, 0.14);
}
.nav-link {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 240, 230, 0.78);
}
.nav-link:hover { color: var(--brass); }
.nav-right { display: flex; align-items: center; gap: 20px; }

.page-wrap {
  width: min(92vw, 760px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 74px) 0 88px;
}
.page-wrap.wide {
  width: min(92vw, 960px);
}

.eyebrow {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.eyebrow-sep { opacity: 0.45; }

.article-title, .archive-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}
.article-excerpt, .archive-intro {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.9vw, 21px);
  font-style: italic;
  line-height: 1.54;
  color: var(--ink-soft);
  margin-bottom: 28px;
  text-wrap: pretty;
}

.feature-figure {
  margin: 0 0 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(216, 181, 124, 0.18);
  background: #050406;
}
.feature-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  margin: 0 auto;
}
.feature-figure figcaption {
  padding: 10px 14px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Article prose */
.article-body {
  font-size: clamp(17.5px, 1.45vw, 19px);
  color: var(--ink-soft);
  line-height: 1.76;
}
.article-body > * + * { margin-top: 1.25em; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
  margin-top: 1.9em;
  margin-bottom: 0.45em;
}
.article-body h2 { font-size: clamp(28px, 3vw, 36px); }
.article-body h3 { font-size: clamp(23px, 2.4vw, 28px); }
.article-body p { text-wrap: pretty; }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-body a { text-decoration: underline; text-decoration-color: rgba(216, 181, 124, 0.45); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--brass); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 0.45em; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 14px 20px;
  border-left: 2px solid var(--brass);
  background: rgba(216, 181, 124, 0.05);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink);
}
.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 181, 124, 0.34), transparent);
  margin: 2.4em 0;
}

/* Ghost cards */
.kg-card { margin: 2em 0; }
.kg-image-card img, .article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(216, 181, 124, 0.16);
  margin: 0 auto;
}
figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-dim);
}

.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.kg-gallery-row { display: flex; gap: 10px; align-items: stretch; }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.kg-embed-card {
  display: flex; flex-direction: column; align-items: center;
}
.kg-embed-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid rgba(216, 181, 124, 0.18);
  border-radius: 6px;
  background: #050406;
}

.kg-video-card video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  border-radius: 6px;
  border: 1px solid rgba(216, 181, 124, 0.18);
  background: #050406;
}
.kg-video-overlay, .kg-video-player-container { display: none !important; }

.kg-audio-card {
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
}
.kg-audio-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
}
.kg-audio-card audio { width: 100%; display: block; }

.kg-file-card-container {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none !important;
}
.kg-file-card-title { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.kg-file-card-caption, .kg-file-card-metadata { font-size: 13.5px; color: var(--ink-dim); margin-top: 3px; }
.kg-file-card-icon svg { width: 22px; height: 22px; stroke: var(--brass); }

/* Post bottom nav */
.post-footer {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(216, 181, 124, 0.18);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.post-nav-card {
  padding: 16px 18px;
  border: 1px solid rgba(216, 181, 124, 0.18);
  border-radius: 8px;
  background: rgba(18, 13, 21, 0.56);
  display: flex; flex-direction: column; gap: 6px;
}
.post-nav-card:hover { border-color: rgba(216, 181, 124, 0.52); background: rgba(26, 18, 30, 0.72); }
.post-nav-card.next { text-align: right; }
.post-nav-dir {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
}
.post-nav-title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}

/* Archive grid */
.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.archive-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(216, 181, 124, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18, 13, 21, 0.68);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.archive-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 181, 124, 0.54);
}
.archive-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #0d0910;
}
.archive-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.archive-date {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.archive-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.archive-card-excerpt {
  font-size: 15.5px;
  line-height: 1.54;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-foot {
  width: min(92vw, 960px);
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid rgba(216, 181, 124, 0.12);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font: 400 11px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .archive-list, .post-footer { grid-template-columns: 1fr; }
  .post-nav-card.next { text-align: left; }
  .kg-gallery-row { flex-direction: column; }
}
