/* Hauntings of Ohio — shared styles */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --white: #fff;
  --grey-1: #bdbdbd;
  --grey-2: #7a7a7a;
  --grey-3: #2a2a2a;

  --head: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* foggy forest backdrop */
.fog {
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.8)),
    url("images/fog.jpg") center / cover no-repeat;
}
a { color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  margin: 0 0 1.25rem;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; max-width: 38rem; }
.muted { color: var(--grey-1); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--black); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--black);
  border-bottom: 1px solid var(--grey-3);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 2.9rem; width: auto; }
.brand .brand-word { height: 2.2rem; }
@media (max-width: 400px) { .brand img { height: 2.4rem; } .brand .brand-word { height: 1.8rem; } }

.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a {
  font-size: .95rem; font-weight: 600;
  text-decoration: none; color: var(--grey-1);
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }

.menu-btn {
  display: none;
  background: none; border: 1px solid var(--grey-2); color: var(--white);
  font: 600 .9rem var(--text); padding: .4rem .8rem; cursor: pointer;
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--grey-3);
    padding: .5rem var(--pad) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--grey-3); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 .95rem var(--text);
  padding: .85rem 1.6rem;
  border: 1px solid var(--white);
  background: var(--white); color: var(--black);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn.outline { background: transparent; color: var(--white); }
.btn.outline:hover { background: var(--white); color: var(--black); }

/* ---------- Photos (any photo becomes B&W) ---------- */
.bw { filter: grayscale(1) contrast(1.1); }

/* ---------- Home hero ---------- */
.hero { background: var(--black); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-banner { position: relative; }
.hero-banner img {
  width: 100%;
  height: min(calc(100vw * 630 / 1702), 78svh);
  object-fit: cover;
  object-position: center 40%;
}
.hero-banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(to top, var(--black), transparent);
}
@media (max-width: 700px) {
  .hero-banner img { height: 68vw; }
}
.hero-text { text-align: center; margin-top: clamp(-4.5rem, -5vw, -1.5rem); position: relative; z-index: 1; }
.hero-word { margin: 0 0 1.25rem; line-height: 0; }
.hero-word img { width: min(100%, 52rem); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 28px rgba(0,0,0,.85)); }
.hero-text p { margin: 0 auto 2rem; color: var(--grey-1); font-size: 1.15rem; }
.hero-text .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--grey-3); }
.section.light { background: var(--white); color: var(--black); border-top: 0; }
.section.light a { color: var(--black); }
.section.light .muted { color: #444; }
.section.light .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.section.light .btn:hover { background: var(--white); color: var(--black); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Watch */
.video {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--ink); border: 1px solid var(--grey-3);
  margin-bottom: 1.5rem;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* poster shown until a video ID is set */
.video-poster { position: absolute; inset: 0; display: block; overflow: hidden; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.video-poster:hover img { transform: scale(1.03); }
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--white); display: grid; place-items: center;
}
.play::before { content: ""; margin-left: .35rem; border-style: solid; border-width: .9rem 0 .9rem 1.5rem; border-color: transparent transparent transparent var(--black); }
.play-label { position: absolute; z-index: 1; left: 1rem; bottom: .8rem; font-weight: 700; font-size: .95rem; }
.video-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--grey-2); text-align: center; padding: 1rem;
}
.socials { list-style: none; margin: 0; padding: 0; }
.socials li { border-top: 1px solid var(--grey-3); }
.socials li:last-child { border-bottom: 1px solid var(--grey-3); }
.socials a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; text-decoration: none;
}
.socials a:hover .socials-name { text-decoration: underline; text-underline-offset: .2em; }
.socials-name { font-family: var(--head); font-size: 1.9rem; text-transform: uppercase; line-height: 1; min-width: 0; }
.socials-count { color: var(--grey-1); font-size: .95rem; text-align: right; }
.socials-count b { display: block; font-family: var(--head); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--white); }
.socials-count.handle { align-self: center; }
@media (max-width: 420px) { .socials-count.handle { font-size: .85rem; } }

/* About */
.about-mark { width: min(100%, 20rem); height: auto; margin: 0 auto; }
.about-facts {
  margin: 1.75rem auto 0; text-align: center;
  font-weight: 600; line-height: 1.5; color: #444;
}
@media (max-width: 860px) {
  .about-mark { width: 9rem; margin: 0; }
  .about-facts { margin-left: 0; text-align: left; }
}

/* ParaSocial */
.app-box { background: var(--white); color: var(--black); padding: clamp(1.75rem, 5vw, 3.5rem); }
.app-box .muted { color: #444; }
.app-box select { background: var(--white); color: var(--black); }
.app-box .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.app-box .btn:hover { background: var(--white); color: var(--black); }
.app-mark { width: 4.5rem; height: auto; margin-bottom: 1.25rem; }

/* ---------- Forms ---------- */
form { display: grid; gap: 1.1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: .6rem 0;
}
select { background: var(--black); color: var(--white); }
.section.light select { background: var(--white); color: var(--black); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-width: 2px; }
textarea { min-height: 8rem; resize: vertical; border: 1px solid currentColor; padding: .75rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .3rem; flex: none; accent-color: currentColor; }
.status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.status.error { font-weight: 700; }
.done { border: 1px solid currentColor; padding: 1.5rem; }
.done h3 { margin-bottom: .5rem; }
.inline { display: flex; gap: .6rem; align-items: end; }
.inline > div { flex: 1; }
@media (max-width: 480px) { .inline { flex-direction: column; align-items: stretch; } }

/* ---------- Shop ---------- */
.page-band { margin-bottom: 3rem; }
.page-head { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-head .muted { color: #ddd; }
.page-head h1 { font-size: clamp(2.4rem, 11vw, 7rem); line-height: .9; margin-bottom: 1rem; }
/* a single long word cannot wrap, so it gets a size that still fits a narrow phone */
.page-head h1.long { font-size: clamp(1.9rem, 9vw, 7rem); }

/* The Spreadshop brings its own styling, so it sits on a white panel and is
   given our body font (embedded shops inherit no fonts of their own). */
.shop-panel { background: var(--white); color: var(--black); padding: clamp(1.5rem, 4vw, 3rem) 0; }
.shop-embed { font-family: var(--text); min-height: 26rem; }
.shop-embed a { color: var(--black); }
.shop-loading { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.shop-loading p { max-width: none; }
.shop-loading .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.shop-loading .btn:hover { background: var(--white); color: var(--black); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--grey-3); padding: 2.5rem 0; font-size: .9rem; color: var(--grey-1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.site-footer nav { margin-left: auto; }
.footer-mark img { height: 2rem; width: auto; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--grey-1); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0; display: flex; align-items: center; gap: .75rem; }
.footer-word { height: 1.5rem; width: auto; }

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }
[id] { scroll-margin-top: 5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.text-link { font-weight: 700; text-underline-offset: .25em; }
.empty { padding: clamp(3rem, 8vw, 5rem) 0; }

/* ---------- Investigation cards ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 3rem 1.75rem; }
.case { min-width: 0; }
.case a { display: block; height: 100%; color: inherit; text-decoration: none; }
.case-img-wrap { aspect-ratio: 3 / 2; overflow: hidden; background: #111; margin-bottom: 1.1rem; }
.case-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case a:hover .case-img { transform: scale(1.04); }
.case-date { margin: 0 0 .5rem; font-size: .85rem; color: var(--grey-1); }
.case h3 { font-size: 1.8rem; line-height: 1.02; margin-bottom: .5rem; }
.case a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.case-where { margin: 0 0 1rem; font-size: .95rem; color: var(--grey-1); }
.case-summary { color: var(--grey-1); }
.case-more { font-weight: 700; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }

.case.feature { margin-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.case.feature a { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem 3rem; align-items: center; }
.case.feature .case-img-wrap { aspect-ratio: 4 / 3; margin: 0; }
.case.feature h3 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); line-height: .95; margin-bottom: .8rem; }
@media (max-width: 760px) { .case.feature a { grid-template-columns: 1fr; } }

.draft {
  display: inline-block; vertical-align: middle; margin-left: .35rem;
  background: var(--white); color: var(--black);
  font-size: .75rem; font-weight: 700; padding: .05rem .45rem;
}

/* ---------- Single write-up ---------- */
.post-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.post-head h1 { font-size: clamp(2.1rem, 8vw, 6rem); line-height: .92; max-width: 16ch; margin-bottom: 1.25rem; }
.back { display: inline-block; margin-bottom: 2.25rem; font-weight: 600; font-size: .95rem; color: #ddd; }
.post-summary { font-size: 1.25rem; color: #ddd; max-width: 40rem; }
.post-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; margin: 2rem 0 0; }
.post-facts dt { font-size: .8rem; color: var(--grey-1); }
.post-facts dd { margin: 0; font-weight: 600; }
.post-cover { width: 100%; max-height: 72vh; object-fit: cover; margin-top: clamp(2rem, 5vw, 3.5rem); }

.prose { max-width: 42rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; font-size: 1.15rem; line-height: 1.8; }
.prose p { max-width: none; margin-bottom: 1.4em; }
.prose h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 3.25rem 0 1rem; }
.prose h3 { margin: 2.25rem 0 .75rem; }
.prose blockquote {
  margin: 2.75rem 0; padding-left: 1.5rem; border-left: 3px solid var(--white);
  font-family: var(--head); text-transform: uppercase;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.12;
}
.prose ul { margin: 0 0 1.4em; padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 2.75rem 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: .6rem; font-size: .9rem; color: var(--grey-1); }
.prose .video { margin: 2.75rem 0; }
.prose a { text-underline-offset: .2em; }

.post-end { padding-top: clamp(4rem, 9vw, 6rem); padding-bottom: clamp(4rem, 9vw, 6rem); }
.post-cta { max-width: 42rem; margin: 0 auto clamp(4rem, 9vw, 6rem); background: var(--white); color: var(--black); padding: clamp(1.75rem, 5vw, 3rem); }
.post-cta a.btn { background: var(--black); color: var(--white); border-color: var(--black); }
.post-cta a.btn:hover { background: var(--white); color: var(--black); }
.more-head { margin-bottom: 2rem; }
.post-head .draft { margin-left: 0; }
