/* ═══════════════════════════════════════════════════════════════
   Trek Theater – Counterpoint  |  main.css
   Mobile-first. Light card on fixed starfield.
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Card palette — warm near-white, not clinical */
  --card-bg:          rgba(252, 249, 243, 0.97);
  --card-border:      rgba(180, 160, 110, 0.25);
  --card-shadow:      0 8px 48px rgba(0, 0, 0, 0.55),
                      0 0 0 1px rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary:     #1a1612;
  --text-secondary:   #3d342a;
  --text-muted:       #6b5e4e;
  --text-accent:      #4a2e6e;   /* deep indigo — subtle space nod */

  /* Rule / decoration */
  --rule-color:       rgba(100, 80, 50, 0.18);
  --rule-accent:      rgba(74, 46, 110, 0.35);

  /* Link */
  --link-color:       #3a1e5c;
  --link-hover:       #6b3fa0;

  /* Layout */
  --card-max:         680px;
  --card-pad-x:       1.5rem;
  --card-pad-y:       2.5rem;
  --section-gap:      2rem;
}

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

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

body {
  min-height: 100dvh;
  background-color: #04030a;               /* fallback while image loads */
  background-image: url('/images/starfield.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  font-family: 'Lora', Georgia, serif;
  color: var(--text-primary);
  line-height: 1.7;

  /* subtle vignette over the star bg */
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(2, 1, 8, 0.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Outer wrapper ──────────────────────────────────────────────── */
.page-outer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  padding: 1.5rem var(--card-pad-x);
}

/* ── Content card ───────────────────────────────────────────────── */
.content-card {
  width: 100%;
  max-width: var(--card-max);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  padding: var(--card-pad-y) var(--card-pad-x);

  /* Soft entrance */
  animation: card-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ───────────────────────────────────────────────────────── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.logo-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.logo-fallback {
  /* shown only when logo.svg is missing */
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--rule-accent);
  letter-spacing: 0.25em;
}

.logo-fallback-text {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-accent);
}

/* ── Title block ─────────────────────────────────────────────────── */
.title-block {
  text-align: center;
  margin-bottom: var(--section-gap);
}

.presenter-line {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.show-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 7vw, 3.2rem);   /* reduced ceiling */
  font-weigcht: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-accent);
  white-space: nowrap;                      /* added */
  overflow-wrap: break-word;                /* added */
  word-break: break-word;                   /* added — Safari fallback */

  /* Subtle text gradient — space-like depth */
  background: linear-gradient(
    160deg,
    #2a1048 0%,
    #6b3fa0 50%,
    #3d1a6e 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.show-subtitle {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Decorative rule under title */
.title-rule {
  margin: 1.25rem auto 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--rule-accent),
    transparent
  );
  position: relative;
}

.title-rule::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  color: var(--rule-accent);
  background: var(--card-bg);
  padding: 0 0.4rem;
}

/* ── Body content ────────────────────────────────────────────────── */
.body-content {
  margin-bottom: var(--section-gap);
}

/* Section headings (h2 from markdown ## ) */
.body-content h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-color);
}

/* First section — no top border */
.body-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Paragraphs */
.body-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.body-content p:last-child {
  margin-bottom: 0;
}

/* Audition date lines — <br> separated inline, style them */
.body-content p:has(br) {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 2.1;
}

.body-content ul {
  padding-bottom: 1rem;
}

/* Bold text — used for Owen Rose Garden */
.body-content strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* Inline links in body */
.body-content a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.body-content a:hover {
  color: var(--link-hover);
}

/* ── Links / Contact footer ──────────────────────────────────────── */
.links-section {
  margin-top: var(--section-gap);
}

.links-rule {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--rule-color) 20%,
    var(--rule-color) 80%,
    transparent
  );
  margin-bottom: 1.5rem;
}

.links-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.15s;
  font-size: 0.95rem;
}

.link-item:hover {
  color: var(--link-hover);
}

.link-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 3.5rem;
  transition: color 0.15s;
}

.link-item:hover .link-label {
  color: var(--link-hover);
}

.link-value {
  font-family: 'Lora', Georgia, serif;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── Responsive: tablet and up ───────────────────────────────────── */
@media (min-width: 600px) {
  :root {
    --card-pad-x: 3rem;
    --card-pad-y: 3.5rem;
  }

  .page-outer {
    padding: 3rem 2rem;
    align-items: center;       /* vertically center short content */
  }

  .logo-img {
    max-width: 260px;
  }

  .presenter-line {
    font-size: 0.88rem;
    letter-spacing: 0.28em;
  }

  .links-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .content-card {
    animation: none;
  }
}
