/* True Crime Discovery — site stylesheet */
:root {
  --bg: #0a0a0c;
  --bg-2: #121216;
  --surface: #17171c;
  --line: #26262d;
  --ink: #e9e3d8;
  --ink-soft: #b9b2a6;
  --muted: #7f7a72;
  --blood: #8a0f1c;
  --blood-bright: #c0182a;
  --blood-dark: #4a0710;
  --font-head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --maxw: 1160px;
  --measure: 68ch;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--blood-bright); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--blood-bright); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blood); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* grain + vignette */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(10,10,12,.92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand b { color: var(--blood-bright); font-weight: 500; }
.brand .drop { width: 14px; height: 18px; flex: none; }
nav.menu { display: flex; gap: 22px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; }
nav.menu a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.menu a:hover, nav.menu a[aria-current] { color: #fff; border-color: var(--blood-bright); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 42px; height: 42px; border-radius: 6px; font-size: 20px; cursor: pointer; }
@media (max-width: 760px) {
  nav.menu { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 18px 14px; }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-block; }
}

/* blood drip band under the header */
.drip { position: relative; height: 0; z-index: 19; pointer-events: none; }
.drip svg { position: absolute; top: -1px; left: 0; width: 100%; height: 92px; display: block; }
.drip .d { animation: dripFall 9s ease-in infinite; transform-origin: top; }
.drip .d2 { animation-delay: 3s; animation-duration: 11s; }
.drip .d3 { animation-delay: 6s; animation-duration: 13s; }
@keyframes dripFall {
  0%   { transform: translateY(0) scaleY(1); opacity: 1; }
  70%  { transform: translateY(0) scaleY(1.9); opacity: 1; }
  100% { transform: translateY(260px) scaleY(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .drip .d { animation: none; } }

/* hero */
.hero { padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 90px); position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(138,15,28,.28), transparent 70%),
    linear-gradient(180deg, #0a0a0c 0%, #0e0d10 60%, #0a0a0c 100%); }
.hero .wrap { max-width: 900px; text-align: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--blood-bright); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-soft); max-width: 44ch; margin: 0 auto 1.6em; }
.hero .cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; padding: 14px 26px; border-radius: 3px; text-decoration: none; border: 1px solid var(--blood-bright); color: #fff; background: var(--blood); transition: background .2s; }
.btn:hover { background: var(--blood-bright); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-soft); }
.hero .pool { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); width: min(900px, 120vw); height: 120px; background: radial-gradient(ellipse at center, rgba(120,8,20,.45), transparent 65%); filter: blur(18px); pointer-events: none; }

/* sections */
section { padding: clamp(44px, 7vw, 84px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; text-decoration: none; color: var(--blood-bright); white-space: nowrap; }

/* case cards */
.cases { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--blood); }
.card .thumb { aspect-ratio: 16/10; background: #0d0d10; position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.1); }
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,.9)); }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); }
.card .meta span { white-space: nowrap; }
.card .meta .tag { color: var(--blood-bright); }
.card h3 { margin: 0; font-size: 1.3rem; text-transform: uppercase; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .src { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--muted); }
.card .src b { color: var(--ink-soft); font-weight: 600; }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.card.feature .thumb { aspect-ratio: auto; min-height: 280px; }
.card.feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
@media (max-width: 760px) { .card.feature { grid-template-columns: 1fr; } .card.feature .thumb { aspect-ratio: 16/10; min-height: 0; } }

/* standards strip */
.standards { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.standards .grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.standards .item { border-left: 3px solid var(--blood); padding-left: 16px; min-width: 0; }
.standards .item h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .08em; margin-bottom: .3em; }
.standards .item p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* article */
.article-hero { padding: clamp(110px, 16vw, 160px) 0 clamp(28px, 4vw, 48px); background: radial-gradient(55% 60% at 50% 0%, rgba(138,15,28,.22), transparent 70%); }
.article-hero .wrap { max-width: 860px; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.article-hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--muted); margin-top: 14px; }
.byline .tag { color: var(--blood-bright); }
.article-hero figure { margin: 28px 0 0; }
.article-hero figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.article-hero img { border-radius: 6px; width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: grayscale(.3) contrast(1.08); }
.article { padding: 0 0 clamp(44px, 7vw, 84px); }
.article .wrap { max-width: 860px; }
.article .prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1.8em 0 .5em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blood-bright); color: var(--ink-soft); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .facts { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; margin: 1.6em 0; font-size: .98rem; }
.prose .facts h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blood-bright); margin-bottom: .6em; }
.prose .facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.prose .facts dt { color: var(--muted); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; padding-top: 4px; }
.prose .facts dd { margin: 0; }
@media (max-width: 520px) { .prose .facts dl { grid-template-columns: 1fr; gap: 2px; } .prose .facts dd { margin-bottom: 8px; } }
.sources { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; max-width: var(--measure); }
.sources h2 { font-size: 1rem; letter-spacing: .2em; margin-bottom: .8em; }
.sources ol { padding-left: 1.3em; font-size: .95rem; color: var(--ink-soft); }
.sources li { margin-bottom: .6em; overflow-wrap: anywhere; }
.sources .kind { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--blood-bright); margin-left: 6px; }
.note { font-size: .92rem; color: var(--muted); border: 1px dashed var(--line); padding: 12px 16px; border-radius: 6px; margin: 1.6em 0; }
.more { border-top: 1px solid var(--line); }

/* generic page */
.page { padding: clamp(110px, 16vw, 160px) 0 clamp(44px, 7vw, 84px); }
.page .wrap { max-width: 860px; }
.page .prose { max-width: var(--measure); }

/* footer */
footer { border-top: 1px solid var(--line); background: #070708; padding: 40px 0 28px; color: var(--muted); font-size: .9rem; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
footer h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8em; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 700px) { footer .cols { grid-template-columns: 1fr; } }
