/* ============================================================
   Rachael Fischer — Comedy site
   Dark comedy-club aesthetic · warm spotlight accents
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #111113;
  --bg-3:      #17171a;
  --panel:     #1b1b1f;
  --line:      rgba(255, 255, 255, 0.08);
  --text:      #f4f1ea;
  --muted:     #a7a29a;
  --muted-2:   #797571;

  --amber:     #e8b24c;
  --amber-2:   #f5c66b;
  --amber-deep:#c9893a;
  --glow:      rgba(232, 178, 76, 0.35);

  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-serif:   "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--amber);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}

.section-lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  max-width: 46ch;
  margin: 0 auto;
}

.section-head.center { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center .section-lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--amber-2), var(--amber-deep));
  color: #1a1206;
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px var(--glow); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-2); }

.btn-outline {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber-2);
  margin-top: 0.6rem;
}
.btn-outline:hover { background: var(--amber); color: #1a1206; }

.btn-block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.05rem;
}

.brand { display: flex; align-items: baseline; gap: 0.55rem; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--amber);
  text-transform: uppercase;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--amber);
  transition: width 0.3s var(--ease);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover:not(.nav-cta)::after { width: 100%; }

.nav-cta {
  color: var(--amber-2) !important;
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
}
.nav-cta:hover { background: var(--amber); color: #1a1206 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  background:
    radial-gradient(1200px 700px at 72% 8%, rgba(232,178,76,0.10), transparent 60%),
    linear-gradient(180deg, #0c0c0e 0%, var(--bg) 60%, #0b0b0d 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -25%; right: -8%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(232,178,76,0.18), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.2rem, 13vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin: 0.4rem 0 1.2rem;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffdf7 0%, #efe6d2 55%, #cdbf9f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 60px rgba(0,0,0,0.5);
}
.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--muted);
  margin: 0 0 2.2rem;
  max-width: 30ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-portrait { position: relative; }
.portrait-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  aspect-ratio: 4 / 5;
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,0.55) 100%);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex; justify-content: center;
  z-index: 2;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 7px;
  animation: scroll-bob 1.8s var(--ease) infinite;
}
@keyframes scroll-bob {
  0% { opacity: 0; transform: translateY(-3px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.about-photo::before {
  content: "";
  position: absolute; inset: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
  border-radius: var(--radius);
  z-index: 2; pointer-events: none;
}
.about-photo img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: 50% 30%;
  transition: transform 0.7s var(--ease);
}
.about-photo:hover img { transform: scale(1.04); }
.about-text p { color: var(--muted); margin: 0 0 1.1rem; max-width: 56ch; }
.about-note {
  font-size: 0.85rem !important;
  color: var(--muted-2) !important;
  font-style: italic;
  border-left: 2px solid var(--amber-deep);
  padding-left: 0.9rem;
}

/* ============================================================
   COMEDY
   ============================================================ */
.comedy { background: var(--bg-2); }
.comedy-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.comedy-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.comedy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232,178,76,0.4);
  box-shadow: 0 24px 50px -25px rgba(0,0,0,0.9);
}
.comedy-img { overflow: hidden; }
.comedy-img img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.comedy-card:hover .comedy-img img { transform: scale(1.05); }
.comedy-card figcaption { padding: 1.5rem 1.6rem 1.8rem; }
.comedy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.comedy-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0; padding: 0; border: 0;
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.gallery-item--feature {
  grid-row: span 2;
  grid-column: span 2;
}
.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img { object-position: 50% 25%; }

.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,0.55) 100%);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 0.15; }
.gallery-item:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }

.gallery-zoom {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1206;
  background: var(--amber-2);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: translateY(0); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  bottom: -30%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; max-width: 1000px; height: 600px;
  background: radial-gradient(circle, rgba(232,178,76,0.12), transparent 65%);
  pointer-events: none;
}
.contact-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-email {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--amber-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-email:hover { border-color: var(--amber); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,178,76,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin: 1rem 0 0;
  text-align: center;
}
.form-note.error { color: #f0907a; }
.form-note.success { color: var(--amber-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 5vw, 4rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.2rem;
}
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { color: var(--muted); margin: 0.4rem 0 0; font-size: 0.95rem; }
.footer-contact { text-align: right; }
.footer-contact > a {
  color: var(--amber-2);
  font-size: 0.98rem;
  transition: color 0.2s;
}
.footer-contact > a:hover { color: var(--amber); }
.footer-social {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 1rem 0 0;
  padding: 0;
  justify-content: flex-end;
}
.footer-social a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--amber-2); }
.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
}
.footer-base p { margin: 0; font-size: 0.82rem; color: var(--muted-2); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(6, 6, 7, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.6rem;
  width: 48px; height: 48px;
  font-size: 2rem; line-height: 1;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.25s, transform 0.25s;
}
.lightbox-close:hover { background: rgba(232,178,76,0.25); transform: rotate(90deg); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 2.4rem;
    background: rgba(13, 13, 15, 0.98);
    backdrop-filter: blur(14px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1.1rem; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-portrait { order: 1; max-width: 360px; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .comedy-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item--feature { grid-column: span 2; grid-row: span 2; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--feature { grid-column: span 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
