/* =========================================================
   Murder Mystery Games — "Noir Mystery" theme
   ========================================================= */

:root {
  --ink:        #14100f;
  --ink-2:      #1d1815;
  --panel:      #221b18;
  --panel-2:    #2a211d;
  --paper:      #f4ecdf;
  --paper-dim:  #cfc3ac;
  --blood:      #8b1e2f;
  --blood-2:    #6c1523;
  --gold:       #c9a24b;
  --gold-2:     #e6c876;
  --line:       rgba(201, 162, 75, 0.25);
  --shadow:     0 12px 32px rgba(0,0,0,0.45);
  --radius:     4px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  background-image:
    radial-gradient(ellipse at top, rgba(139,30,47,0.10), transparent 55%),
    repeating-linear-gradient(rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--paper);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-2); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; color: var(--paper); }
p.lede { font-size: 1.25rem; color: var(--paper-dim); }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold);
  color: var(--ink); padding: 10px 16px; z-index: 200; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top announcement bar ---------- */
.topbar { background: var(--blood-2); border-bottom: 1px solid rgba(0,0,0,0.3); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 24px; font-family: var(--font-body); font-size: 0.95rem;
}
.topbar__text { color: #f4ded8; }
.topbar__cta { color: var(--gold-2); font-weight: 600; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--gold); display: inline-flex; }
.brand__text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: #ffffff; text-decoration: none; letter-spacing: 0.01em;
}
.brand:hover .brand__text { text-decoration: none; color: #ffffff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); display: block; }

.primary-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-end; }
.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav > ul > li > a,
.dropdown-toggle {
  display: inline-block; padding: 10px 12px; color: var(--paper-dim);
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.primary-nav > ul > li > a:hover,
.dropdown-toggle:hover,
.primary-nav a.is-active { color: var(--gold-2); }
.caret { font-size: 0.7em; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); list-style: none; margin: 6px 0 0; padding: 8px;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 8px 10px; color: var(--paper-dim); border-radius: 3px; font-size: 0.98rem;
}
.dropdown a:hover, .dropdown a.is-active { background: var(--panel-2); color: var(--gold-2); text-decoration: none; }

.nav-cta { margin-left: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1c0c; }
.btn--gold:hover { background: var(--gold-2); color: #2a1c0c; filter: brightness(1.05); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold-2); }
.btn--outline:hover { background: rgba(201,162,75,0.1); }
.btn--small { padding: 8px 14px; font-size: 0.92rem; }
.btn--large { padding: 16px 30px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 20% 0%, rgba(139,30,47,0.18), transparent 60%);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__kicker {
  display: inline-block; font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; color: var(--gold); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 20px; margin-bottom: 16px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Layout helpers ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin: 0 0 32px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { color: var(--gold-2); }
.card--link { display: block; color: inherit; }
.card--link:hover { border-color: var(--gold); text-decoration: none; }

/* ---------- Related / topic cards ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 8px; }
.related-card {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: inherit;
}
.related-card:hover { border-color: var(--gold); text-decoration: none; }
.related-card h4 { color: var(--gold-2); margin: 0 0 8px; font-size: 1.1rem; }
.related-card p { font-size: 0.98rem; color: var(--paper-dim); margin-bottom: 10px; }
.related-card__link { font-size: 0.92rem; color: var(--gold); font-weight: 700; }

/* ---------- CTA box ---------- */
.cta-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  background: linear-gradient(135deg, var(--blood-2), #4a0f18);
  border: 1px solid rgba(201,162,75,0.35); border-radius: var(--radius);
  padding: 28px 30px; margin: 40px 0; box-shadow: var(--shadow);
}
.cta-box__icon { color: var(--gold-2); }
.cta-box h3 { margin-bottom: 6px; }
.cta-box p { margin: 0; color: #f0dcd8; }

/* ---------- Pre-footer banner ---------- */
.pre-footer { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pre-footer__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 40px 24px;
}
.pre-footer__icon { font-size: 2.6rem; }
.pre-footer h2 { margin-bottom: 6px; }
.pre-footer p { margin: 0; color: var(--paper-dim); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); padding-top: 48px; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-bottom: 32px;
}
.footer-col h5 { color: var(--gold); font-family: var(--font-mono); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: var(--paper-dim); font-size: 0.98rem; }
.footer-col a:hover { color: var(--gold-2); }
.footer-col--brand p { color: var(--paper-dim); font-size: 0.96rem; }
.footer-partner a { color: var(--gold-2); font-weight: 600; }
.brand--footer { margin-bottom: 10px; }
.site-footer__bottom {
  border-top: 1px solid var(--line); padding: 18px 24px 28px; display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--paper-dim);
}
.site-footer__disclaimer { max-width: 560px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; font-size: 0.9rem; color: var(--paper-dim); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.breadcrumbs a { color: var(--paper-dim); }
.breadcrumbs a:hover { color: var(--gold-2); }

/* ---------- Image placeholder slots ---------- */
.img-slot {
  margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
}
.img-slot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
.img-slot figcaption { padding: 10px 14px; font-size: 0.88rem; color: var(--paper-dim); font-family: var(--font-mono); }
.img-slot--square img { aspect-ratio: 1 / 1; }
.img-slot--wide img { aspect-ratio: 21 / 9; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
th { color: var(--gold-2); font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- FAQ accordion ---------- */
details.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; padding: 4px 20px;
}
details.faq-item summary {
  cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700;
  color: var(--paper); list-style: none; position: relative;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; position: absolute; right: 0; color: var(--gold); font-size: 1.3rem; }
details.faq-item[open] summary::after { content: '\2212'; }
details.faq-item p { padding-bottom: 16px; color: var(--paper-dim); }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--line); margin: 30px 0 30px 8px; padding-left: 28px; }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blood); border: 2px solid var(--gold);
}
.timeline-item .year { font-family: var(--font-mono); color: var(--gold); font-size: 0.9rem; }

/* ---------- Recipe cards ---------- */
.recipe-card { border-left: 3px solid var(--blood); padding-left: 18px; margin-bottom: 34px; }
.recipe-card__meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); margin-bottom: 8px; }

/* ---------- Pull quote ---------- */
blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--paper-dim);
}

/* ---------- Tag pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.pill {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gold); border: 1px solid var(--line); padding: 5px 10px; border-radius: 20px;
}

/* ---------- Contact form ---------- */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; color: var(--paper-dim); }
.form-field input, .form-field textarea, .form-field select {
  background: var(--panel); border: 1px solid var(--line); color: var(--paper);
  padding: 12px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 1.05rem;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: 0.85rem; color: var(--paper-dim); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.alert--success { background: rgba(120,180,120,0.15); border: 1px solid rgba(120,180,120,0.4); color: #cdeecd; }
.alert--error { background: rgba(139,30,47,0.25); border: 1px solid var(--blood); color: #f4cfd4; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid--3, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
  .cta-box, .pre-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-box__icon { justify-self: center; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 10px 20px 20px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .has-dropdown .dropdown { display: block; position: static; box-shadow: none; border: none; background: none; padding-left: 12px; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .topbar__inner { flex-direction: column; gap: 4px; text-align: center; }
  .grid--2, .grid--3, .grid--4, .related-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
