/* Paranormal Dwarf Investigations — site styles
   Palette pulled from the badge: black field, oxidized olive, bone, brass. */

:root {
  --ink: #000000;
  --field: #0f120c;
  --panel: #171b13;
  --panel-2: #1e2419;
  --line: #2d3527;
  --line-2: #3d4836;
  --bone: #d9cfb4;
  --bone-dim: #a59d86;
  --bone-faint: #6f6a5b;
  --brass: #b79a5c;
  --brass-bright: #d8bb78;
  --moss: #5e7a4c;
  --rust: #b0532c;

  --display: "Black Ops One", "Impact", "Arial Black", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: var(--brass-bright); text-decoration-color: rgba(216,187,120,.4); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  margin: 0 0 .4em;
  color: var(--bone);
  text-wrap: balance;
}
h3 { font-family: var(--body); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; color: var(--bone); }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-size: 1.2rem; color: var(--bone-dim); }
.muted { color: var(--bone-dim); }
.small { font-size: .92rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* --- gauge ticks: the one decorative device, used as section rules --- */
.ticks {
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px) 0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--brass) 0 1px, transparent 1px 60px) 0 100% / 100% 12px no-repeat;
  opacity: .9;
}

/* --- header --- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.brand span { font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: .02em; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .08em; color: var(--brass); margin-top: 3px; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--bone-dim); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 10px 12px; border-radius: var(--r);
}
.nav a:hover { color: var(--bone); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--brass-bright); box-shadow: inset 0 -2px 0 var(--brass); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--bone);
  font: inherit; padding: 8px 12px; border-radius: var(--r); cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: var(--r); border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brass); color: #16130a; border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); color: #16130a; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- hero --- */
.hero { background: var(--ink); padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--field)); z-index: 1; pointer-events: none; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(to top, transparent, var(--ink)); z-index: 1; pointer-events: none; }
.hero .wrap > div:last-child { position: relative; z-index: 2; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(240px, 470px) 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero-visual { position: relative; width: 100%; aspect-ratio: 1; }
.hero-art { position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.hero-art img, .hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art canvas { opacity: 0; transition: opacity 1.5s ease; }
.hero-art.live canvas { opacity: 1; }
.hero h1 { margin-bottom: .35em; }
.hero p.lede { max-width: 54ch; margin-bottom: 1.6em; }
.hero-est { color: var(--brass); font-weight: 600; letter-spacing: .06em; font-size: .9rem; margin: 0 0 14px; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { width: min(330px, 84vw); margin-inline: auto; }
  .hero { text-align: left; }
}

/* --- page hero (interior pages) --- */
.page-head { background: var(--ink); padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-head p.lede { margin-bottom: 0; }

/* --- sections --- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* --- cards: only where content is a set of like items --- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 22px 20px;
}
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: 0; color: var(--bone-dim); }
.card .meta { color: var(--brass); font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.card .meta span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; background: var(--line-2); margin-right: 10px; vertical-align: -1px; }

/* service list: a definition-style list, not cards */
.svc { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.svc-row h3 { margin: 0; }
.svc-row p { margin-bottom: .5em; }
.svc-row p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .svc-row { grid-template-columns: 1fr; gap: 8px; } }

/* --- media embeds --- */
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.embed:not(.filled) { aspect-ratio: auto; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-note { padding: 18px 20px; color: var(--bone-dim); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rust); margin-right: 8px; vertical-align: 1px; }

/* --- evidence --- */
.ev-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ev-filters button {
  font: 500 .92rem var(--body); color: var(--bone-dim); background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.ev-filters button[aria-pressed="true"] { color: #16130a; background: var(--brass); border-color: var(--brass); }
.ev-item audio { width: 100%; margin-top: 12px; }
.ev-item img { border-radius: var(--r); border: 1px solid var(--line); margin-top: 12px; }
.ev-item .embed { margin-top: 12px; }
.ev-empty { color: var(--bone-dim); padding: 30px 0; }

/* --- forms --- */
form { display: grid; gap: 16px; max-width: 620px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--bone-dim); }
input, select, textarea {
  font: 400 1rem var(--body); color: var(--bone); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; }
textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-status { min-height: 1.4em; color: var(--bone-dim); }
.form-status.ok { color: var(--brass-bright); }
.form-status.err { color: #e08a66; }
.hp { position: absolute; left: -9999px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.calendly-slot { min-height: 700px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.calendly-slot:not(.filled) { min-height: 0; }
.calendly-slot .embed-note { padding: 28px 22px; }

/* --- callout (what to expect) --- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 700px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1;
  color: var(--brass); border-right: 1px solid var(--line-2); padding-right: 10px; padding-top: 2px;
}
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--bone-dim); }

/* --- footer --- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--bone-dim); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--bone-dim); text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer .brand-line { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--bone); margin-bottom: 6px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Paranormal Vortex schedule --- */
.sched-month { font-size: 1rem; color: var(--brass); letter-spacing: .04em; margin: 28px 0 8px; }
.sched-month:first-child { margin-top: 0; }
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sched-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.sched-date { display: grid; line-height: 1.15; }
.sched-dow { font-size: .8rem; color: var(--bone-faint); font-weight: 500; }
.sched-day { font-family: var(--display); font-size: 1.15rem; color: var(--bone); }
.sched-guest { display: grid; gap: 2px; }
.sched-guest strong { font-weight: 600; font-size: 1.05rem; }
.sched-note { color: var(--bone-dim); font-size: .92rem; }
.sched-next { color: var(--rust); font-size: .82rem; font-weight: 600; letter-spacing: .03em; }
.sched-time { text-align: right; display: grid; gap: 2px; font-weight: 600; white-space: nowrap; }
.sched-local { font-weight: 400; font-size: .88rem; color: var(--bone-dim); }
.sched-row.next { background: linear-gradient(90deg, rgba(176,83,44,.12), transparent 70%); }
.sched-row.off .sched-guest strong, .sched-row.off .sched-time { color: var(--bone-faint); font-weight: 500; }
@media (max-width: 560px) {
  .sched-row { grid-template-columns: 70px 1fr; row-gap: 6px; }
  .sched-time { grid-column: 2; text-align: left; }
}
.vortex-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 24px; }
.vortex-head p { margin: 0; }
@media (max-width: 700px) { .vortex-head { grid-template-columns: 1fr; } }

/* --- countdown to the next show --- */
.sched-countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 10px; }
.cd-lead { color: var(--bone-dim); font-size: .9rem; margin-right: 2px; }
.cd-unit { display: inline-flex; align-items: baseline; gap: 5px; }
.cd-num { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; min-width: 1.4ch; text-align: right; }
.cd-lbl { font-size: .8rem; color: var(--bone-faint); }
.sched-watch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #16130a; background: var(--brass); padding: 9px 16px; border-radius: var(--r); text-decoration: none; }
.sched-watch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.sched-watch:hover { background: var(--brass-bright); color: #16130a; }

/* --- next live stream card (Media page) --- */
.live-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.live-show { color: var(--rust); font-weight: 600; font-size: .9rem; letter-spacing: .03em; margin: 0 0 6px; }
.live-guest { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; margin: 0 0 10px; }
.live-when { font-weight: 600; margin: 4px 0 0; }
.live-countdown { margin: 16px 0 22px; }
.live-countdown .cd-num { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.live-poster img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; height: auto; }
.live-note { margin-top: 12px; }
@media (max-width: 760px) { .live-card { grid-template-columns: 1fr; } }

/* --- guests and collaborators --- */
.collab-feature { border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; margin-bottom: 30px; max-width: 640px; }
.collab-feature p { margin: 0; }
.collab-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line); }
.collab { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.collab-name { font-size: 1.05rem; margin: 0 0 2px; }
.collab-name a { color: var(--bone); text-decoration-color: var(--brass); }
.collab-name a:hover { color: var(--brass-bright); }
.collab-note { margin: 0; color: var(--bone-dim); font-size: .9rem; }
.collab-when { margin: 2px 0 0; color: var(--bone-faint); font-size: .85rem; }
