/* assets/site.css — shared "hospitality" design system.
 *
 * The site's one look: white cards with a warm gold glow, floating on a
 * softly blurred desert photo. Open Sans throughout.
 *
 * Pages link this via brand_head() in partials/brand.php, and get the
 * backdrop + laurel symbol from brand_body(). Page-specific layout stays in
 * the page; anything two pages need belongs here.
 *
 * Replaced the old dark "console" look (/styles.css, removed 2026-11-09).
 */

/* --- TOKENS --- */
:root {
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --ink-muted: #6b6b6b;
  --card: #ffffff;
  --rule: #e6e0d4;
  --gold: #c9962b;
  --gold-light: #f2c75c;
  --orange: #f08a24;
  --glow: rgba(255, 214, 120, 0.55);
  --sand: #b89a5a;           /* behind the photo while it loads */
  --gradient: linear-gradient(135deg, var(--orange), var(--gold-light));
  --font: 'Open Sans', system-ui, -apple-system, sans-serif;
}

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

html { background: var(--sand); }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100vh;
  padding: 32px 16px 48px;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

/* Fixed, softly blurred desert behind everything */
.backdrop {
  position: fixed;
  inset: -24px;
  z-index: -1;
  background: url('branding/desert-bg.jpg') center 38% / cover no-repeat;
  filter: blur(3px);
}

.page { max-width: 880px; margin: 0 auto; }

/* Text that sits directly on the photo, not on a card */
.on-photo {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.wordmark {
  display: block;
  height: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}

/* --- CARDS --- */
.card {
  background: var(--card);
  padding: 22px 26px;
  margin-bottom: 40px;
  box-shadow: 0 0 28px 6px var(--glow);
}

.card h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.card ul { padding-left: 1.4em; }
.card li { margin-bottom: 6px; }
.card li:last-child { margin-bottom: 0; }

/* Gradient photo frame (headshots, cover art) */
.frame {
  padding: 4px;
  background: var(--gradient);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Centered, underlined heading flanked by gold laurels */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
}

.laurel { width: 92px; height: 34px; flex-shrink: 0; }
.laurel.flip { transform: scaleX(-1); }

/* Small uppercase label above a title */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.muted { color: var(--ink-soft); }

/* --- LINKS & BUTTONS --- */
.text-link {
  background: none;
  border: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.text-link:hover, .text-link.playing { color: var(--gold); }

/* Primary action: gradient fill, ink text */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--gradient);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}

.btn:hover { filter: brightness(1.05); box-shadow: 0 0 16px 2px var(--glow); }
.btn:disabled { opacity: 0.6; cursor: default; filter: none; box-shadow: none; }
.btn--block { display: block; width: 100%; }

/* Secondary action: outlined ink */
.btn-secondary {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 13px 18px;     /* + 1px border = same height as .btn */
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }

/* --- FORMS --- */
.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.field-input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--ink-soft);
  padding: 11px 10px;
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus { border-bottom-color: var(--gold); }

.form-error {
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff5e6;
  border-left: 3px solid var(--orange);
  padding: 8px 12px;
}

.fine-print { font-size: 0.72rem; color: var(--ink-muted); }

/* --- AUDIO PROGRESS --- */
.progress {
  height: 3px;
  background: #eee;
  margin-top: 8px;
  display: none;
}

.progress.visible { display: block; }

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--gold-light));
}

/* --- VIDEO LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 6, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox.open { display: flex; }

.lightbox-inner { position: relative; width: 100%; max-width: 960px; }

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  cursor: pointer;
}

.lightbox-close:hover { border-color: var(--gold-light); color: var(--gold-light); }

.video-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- SITE HEADER (wordmark on the photo, links home) --- */
.site-header {
  text-align: center;
  margin-bottom: 32px;
}

.site-header a { display: inline-block; }

.site-header .wordmark {
  width: min(360px, 70vw);
  margin: 0 auto;
}

.page--narrow { max-width: 560px; }

/* --- TOP BAR (homepage + /hospitality: photo, wordmark, tagline, nav) ---
   Pages using it set `body { padding: 0; }` and wrap in .page-wrap. */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Round headshot with the gradient ring */
.headshot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: var(--gradient);
  box-shadow: 0 0 16px 2px var(--glow);
  flex-shrink: 0;
  display: block;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.identity .wordmark {
  height: 24px;
  width: auto;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 46ch;
}

/* --- NAV BAR (partials/nav.php; homepage, /store, /hospitality) --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* On /store it sits centered under the wordmark */
.site-header .site-nav {
  justify-content: center;
  margin-top: 18px;
}

.nav-link {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(20, 20, 20, 0.18);
  padding: 7px 13px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Booker page, not a profile — the one filled "hero" button, set a little
   apart from the rest. */
.nav-link--hero {
  margin-left: 8px;
  background: var(--gradient);
  color: var(--ink);
  border-color: transparent;
}

/* Keep the gradient on hover (swapping it for a flat color is what left the
   button stuck unstyled in Chrome) — just brighten it. */
.nav-link--hero:hover { background: var(--gradient); filter: brightness(1.1); }

/* On /hospitality itself it stays the gradient button (the generic
   aria-current rule above would turn it white). */
.nav-link--hero[aria-current="page"] {
  background: var(--gradient);
  color: var(--ink);
  border-color: transparent;
}

/* ON AIR / OFF AIR — a neon sign on a dark backing plate. Grey (unlit)
   by default, red and flickering when .is-live. */
.on-air {
  --neon: #8d8d8d;
  --neon-glow: rgba(160, 160, 160, 0.25);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--neon);
  background: rgba(14, 10, 10, 0.72);
  border: 2px solid var(--neon);
  border-radius: 6px;
  padding: 6px 12px;
  text-shadow: 0 0 4px var(--neon-glow);
  box-shadow: 0 0 6px var(--neon-glow), inset 0 0 6px var(--neon-glow);
}

a.on-air:not(.is-live):hover {
  --neon: #c4c4c4;
  --neon-glow: rgba(210, 210, 210, 0.4);
}

.on-air.is-live {
  --neon: #ff4d4d;
  --neon-glow: rgba(255, 40, 40, 0.75);
  color: #ffe9e9;
  text-shadow: 0 0 2px #fff, 0 0 6px var(--neon), 0 0 14px var(--neon-glow);
  box-shadow: 0 0 8px var(--neon-glow), 0 0 22px rgba(255, 40, 40, 0.45), inset 0 0 8px var(--neon-glow);
  animation: neon-flicker 6s infinite;
}

/* Flicker by dimming color + glow, NOT opacity: an opacity animation gets
   its own compositing layer in Safari, which then intermittently stopped
   painting the neighbouring Hospitality button's gradient (until a hover or
   resize forced a repaint). Paint-only properties avoid that. */
@keyframes neon-flicker {
  0%, 89%, 92%, 93%, 96%, 100% {
    color: #ffe9e9;
    border-color: #ff4d4d;
    text-shadow: 0 0 2px #fff, 0 0 6px #ff4d4d, 0 0 14px rgba(255, 40, 40, 0.75);
    box-shadow: 0 0 8px rgba(255, 40, 40, 0.75), 0 0 22px rgba(255, 40, 40, 0.45), inset 0 0 8px rgba(255, 40, 40, 0.75);
  }
  90%, 94% {
    color: #a86a6a;
    border-color: #8a2a2a;
    text-shadow: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .on-air.is-live { animation: none; }
}

/* --- TITLES --- */
.title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
}

.byline {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.lede p { margin-bottom: 4px; }
.lede p:last-child { margin-bottom: 0; }

/* --- SPLIT CARD: media left, content right; stacks on phones --- */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  padding: 30px;
}

.split-media, .split-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.split-media .frame { aspect-ratio: 1 / 1; }

/* --- BIO CARD --- */
.bio {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bio .frame {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
}

.bio .frame img { object-position: 50% 20%; }

.bio-line { flex: 1; font-size: 0.92rem; color: var(--ink-soft); }

/* --- TIP JAR --- */
.tip-jar {
  border: 2px dashed var(--gold);
  padding: 18px 20px;
}

.tip-jar p { margin: 6px 0 14px; }

/* --- AUDIO PLAYER (play button + label) --- */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #faf6ee;
  border: 1px solid var(--rule);
  padding: 12px 14px;
}

.play-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover { transform: scale(1.05); box-shadow: 0 0 12px 2px var(--glow); }

.player-title { font-weight: 700; font-size: 0.88rem; }
.player-specs { font-size: 0.75rem; color: var(--ink-muted); }

/* --- PILL LINKS (used on the photo) --- */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(20, 20, 20, 0.18);
  padding: 7px 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pill:hover { background: #fff; color: var(--ink); border-color: #fff; }

.pill--accent { background: var(--gradient); color: var(--ink); border-color: transparent; }
.pill--accent:hover { background: #fff; }

/* --- FOOTER (sits on the photo) --- */
.site-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
}

.site-footer a { color: inherit; }

/* --- PHONES --- */
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
}

@media (max-width: 640px) {
  body { padding: 24px 16px 40px; }
  .card { padding: 18px; margin-bottom: 28px; font-size: 0.95rem; }
  .split { padding: 18px; }
  .laurel { width: 52px; height: 22px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 1.05rem; }
  .site-header { margin-bottom: 24px; }
  .title { font-size: 1.6rem; }

  .page-wrap { padding: 24px 16px 48px; }
  .top-bar { flex-direction: column; text-align: center; }
  .brand-block { flex-direction: column; }
  .identity { align-items: center; }
  .top-bar .site-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .bio { flex-direction: column-reverse; text-align: center; }
}
