/* ============================================================
   GhostJam.US — Stylesheet
   Palette: deep ink bg, warm off-white text, amber accent,
            static-grey mid-tones
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0e0d0c;
  --bg-raised:    #161412;
  --bg-card:      #1c1a17;
  --border:       rgba(255,255,255,0.08);
  --text:         #e8e2d9;
  --text-muted:   rgba(232,226,217,0.55);
  --accent:       #d4842a;
  --accent-dim:   rgba(212,132,42,0.18);
  --accent-glow:  rgba(212,132,42,0.08);
  --white:        #ffffff;
  --radius:       6px;
  --nav-h:        60px;
  --max-w:        960px;
  --max-w-narrow: 720px;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14,13,12,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 1.5rem;
}

/* Subtle static/noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.4;
}

/* Amber vignette from bottom-left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,132,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-logo-wrap {
  flex-shrink: 0;
  display: none;
}

.hero-logo-wrap img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(212,132,42,0.35);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 580px;
}

.hero-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .hero-inner { flex-direction: column; gap: 1.5rem; }
  .hero-logo-wrap img { width: 110px; height: 110px; }
}

/* ── Section shared ───────────────────────────────────────── */
.section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ── Features / Services grid ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  border-color: rgba(212,132,42,0.3);
  background: var(--bg-raised);
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.cta-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-body {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.cta-email {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-email a {
  color: var(--accent);
  font-weight: 700;
}

/* ── Social links ─────────────────────────────────────────── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent);
  border-color: rgba(212,132,42,0.4);
  background: var(--accent-glow);
  opacity: 1;
}

.social-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); opacity: 1; }

/* ── Inner pages ──────────────────────────────────────────── */
.inner-page {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.inner-page h1 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-intro {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ── About sections ───────────────────────────────────────── */
.about-section { margin-bottom: 2.5rem; }

.about-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.about-section p {
  color: var(--text-muted);
  line-height: 1.8;
  white-space: pre-line;
}

/* ── Contact page ─────────────────────────────────────────── */
.contact-block { margin-bottom: 2rem; }

.contact-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.contact-block p, .contact-block a {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Events page ──────────────────────────────────────────── */
.events-page { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.events-page h1 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.events-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.events-subscribe a { font-weight: 700; text-underline-offset: 3px; text-decoration: underline; }

.calendar-embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.calendar-embed iframe { display: block; width: 100%; height: 650px; border: 0; }

.calendar-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.calendar-placeholder p + p { margin-top: 0.5rem; }

@media (max-width: 600px) { .calendar-embed iframe { height: 480px; } }

/* ── Media page ───────────────────────────────────────────── */
.media-page { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.media-page h1 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.media-feed { display: flex; flex-direction: column; gap: 0; }

.media-item {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.media-item:last-child { border-bottom: 1px solid var(--border); }

.media-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.media-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.media-type-badge.video { border-color: rgba(212,132,42,0.4); color: var(--accent); }
.media-type-badge.audio { border-color: rgba(100,160,220,0.4); color: #64a0dc; }

.media-date { font-size: 0.82rem; color: var(--text-muted); }
.media-location { font-size: 0.82rem; color: var(--text-muted); }
.media-location::before { content: '📍 '; }

.media-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.media-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

.media-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Utility ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
