/* Haunted Cape Fear — site styles */
:root {
  --bg: #0a0d13;
  --bg-2: #10151f;
  --panel: #131a26;
  --ink: #d9d2bf;
  --ink-dim: #9a937f;
  --gold: #c9a15a;
  --gold-bright: #e6c580;
  --spectral: #8fb8ac;
  --line: #2a3244;
  --shadow: rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Crimson Text", "Georgia", "Times New Roman", serif;
  font-size: 1.13rem;
  line-height: 1.75;
}

h1, h2, h3, h4, .brand, .card h3 {
  font-family: "IM Fell English", "Playfair Display", "Georgia", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

a { color: var(--spectral); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* ---- Nav ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 19, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.navwrap {
  max-width: 1080px; margin: 0 auto; padding: 0.7rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.brand { font-size: 1.35rem; color: var(--gold-bright); }
.brand .flame { color: var(--spectral); }
nav.main { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.98rem; }
nav.main a { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; }
nav.main a:hover, nav.main a.active { color: var(--gold-bright); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, #1a2334 0%, var(--bg) 65%);
  text-align: center;
}
.hero .art { width: 100%; max-height: 520px; display: block; margin: 0 auto; opacity: 0.9; }
.hero-inner { max-width: 820px; margin: 0 auto; padding: 3.2rem 1.4rem 3.6rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); text-shadow: 0 4px 30px var(--shadow); }
.hero p.tag {
  margin-top: 1rem; color: var(--ink-dim); font-style: italic; font-size: 1.2rem;
}
.rule {
  width: 130px; height: 1px; margin: 1.4rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---- Cards ---- */
.cards {
  max-width: 1080px; margin: 0 auto; padding: 3rem 1.2rem 4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card img, .card svg { width: 100%; height: 190px; object-fit: cover; display: block; }
.card .body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card h3 { font-size: 1.45rem; }
.card p { color: var(--ink-dim); font-size: 1rem; flex: 1; }
.card .go { color: var(--spectral); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.card.featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .card.featured { flex-direction: row; }
  .card.featured img { width: 52%; height: auto; }
  .card.featured .body { justify-content: center; }
  .card.featured h3 { font-size: 2rem; }
}
.badge {
  display: inline-block; align-self: flex-start; border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.18rem 0.6rem; border-radius: 2px;
}

/* ---- Article pages ---- */
.page-hero {
  position: relative; border-bottom: 1px solid var(--line); text-align: center;
  background: radial-gradient(ellipse at 50% 130%, #1a2334 0%, var(--bg) 70%);
  padding: 3.4rem 1.4rem 2.6rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.page-hero .kicker {
  color: var(--spectral); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; margin-bottom: 0.9rem;
}
.page-hero p.sub { color: var(--ink-dim); font-style: italic; margin-top: 0.8rem; }

article.story { max-width: 760px; margin: 0 auto; padding: 3rem 1.3rem 4rem; }
article.story p { margin-bottom: 1.35rem; }
article.story h2 { font-size: 1.75rem; margin: 2.4rem 0 1rem; }
article.story blockquote {
  margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 2px solid var(--gold);
  background: var(--panel); font-style: italic; color: var(--ink);
}
article.story blockquote cite { display: block; margin-top: 0.6rem; color: var(--ink-dim); font-size: 0.9rem; font-style: normal; }

figure { margin: 2.4rem 0; text-align: center; }
figure img {
  max-width: 100%; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 14px 40px var(--shadow);
}
figure.artifact img { transform: rotate(-0.6deg); }
figure figcaption { margin-top: 0.8rem; color: var(--ink-dim); font-size: 0.92rem; font-style: italic; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }

.float-portrait { float: right; width: 250px; margin: 0.4rem 0 1.2rem 1.6rem; }
@media (max-width: 640px) { .float-portrait { float: none; width: 100%; margin: 1.6rem 0; } }

/* Signal callout */
.signal {
  margin: 2.6rem 0; padding: 1.6rem 1.8rem; border: 1px solid var(--gold); border-radius: 4px;
  background: linear-gradient(180deg, rgba(201, 161, 90, 0.07), transparent);
}
.signal h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }
.signal .flashes { font-size: 1.5rem; letter-spacing: 0.35em; color: var(--gold-bright); }

/* Timeline */
.timeline { list-style: none; margin: 2rem 0; border-left: 1px solid var(--line); padding-left: 1.6rem; }
.timeline li { margin-bottom: 1.5rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -1.98rem; top: 0.55rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px rgba(230, 197, 128, 0.7);
}
.timeline .yr { color: var(--gold-bright); font-family: "IM Fell English", Georgia, serif; font-size: 1.2rem; margin-right: 0.5rem; }
.timeline p { color: var(--ink-dim); font-size: 1rem; margin: 0.15rem 0 0; }

/* Site listing (Wilmington page) */
.site-entry { margin: 2.6rem 0; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.site-entry:last-child { border-bottom: none; }
.site-entry h2 { margin-top: 0; }
.site-entry .where { color: var(--spectral); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }

/* Sources */
.sources { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-dim); }
.sources h3 { font-size: 1.1rem; margin-bottom: 0.7rem; color: var(--ink-dim); }
.sources ul { list-style: none; }
.sources li { margin-bottom: 0.35rem; }

/* Next-story nav */
.next-story {
  max-width: 760px; margin: 0 auto 4rem; padding: 0 1.3rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.next-story a {
  flex: 1; min-width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1rem 1.3rem; color: var(--ink);
}
.next-story a:hover { border-color: var(--gold); }
.next-story .lbl { display: block; color: var(--spectral); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.25rem; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 2.6rem 1.4rem 3rem; text-align: center; color: var(--ink-dim); font-size: 0.95rem;
}
footer.site .brand { font-size: 1.15rem; display: block; margin-bottom: 0.6rem; }
footer.site nav { margin: 0.9rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: 0.85rem; }
footer.site .fine { font-size: 0.8rem; opacity: 0.75; max-width: 640px; margin: 0 auto; }

/* Sighting form */
.sighting-form { margin-top: 2rem; }
.sighting-form .field { margin-bottom: 1.4rem; }
.sighting-form label { display: block; margin-bottom: 0.4rem; color: var(--gold-bright); font-family: "IM Fell English", Georgia, serif; font-size: 1.05rem; }
.sighting-form input[type="text"],
.sighting-form input[type="email"],
.sighting-form input[type="date"],
.sighting-form select,
.sighting-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px; font-family: inherit; font-size: 1rem;
}
.sighting-form input:focus, .sighting-form select:focus, .sighting-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.sighting-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .sighting-form .two-col { grid-template-columns: 1fr; } }
.sighting-form .checkline label { display: flex; align-items: center; gap: 0.6rem; font-family: inherit; color: var(--ink); font-size: 1rem; }
.sighting-form .checkline input { accent-color: var(--gold); width: 1.05rem; height: 1.05rem; }
.sighting-form button {
  padding: 0.85rem 2.2rem; background: transparent; color: var(--gold-bright);
  border: 1px solid var(--gold); border-radius: 3px; font-family: "IM Fell English", Georgia, serif;
  font-size: 1.15rem; letter-spacing: 0.06em; cursor: pointer; transition: background 0.25s, color 0.25s;
}
.sighting-form button:hover { background: var(--gold); color: var(--bg); }
.hidden-field { display: none; }

/* Fog animation on heroes */
.fogband {
  position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(143, 184, 172, 0.05) 40%, rgba(10, 13, 19, 0.9));
}
