/* ============================================================
   ABBY BERNARD — BASE STYLES & COMPONENT CLASSES
   Reference implementations of the system's core patterns.
   ============================================================ */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-semibold); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration-color: color-mix(in oklab, var(--link) 45%, transparent); text-underline-offset: 3px; transition: color var(--duration-quick) var(--ease-out); }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
::selection { background: var(--selection-bg, #FFD75A); color: var(--selection-text, #14193B); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }

/* Theme scopes must re-apply resolved text color (custom props resolve
   where the property is SET, so inherited body color stays dark-theme) */
.theme-light, .theme-dark { color: var(--text); background: var(--bg); }

/* ---------- Star glyph (mask, colored via background) ---------- */
.star { display: inline-block; width: 1em; height: 1em; background: var(--accent); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; flex: none; }
.star.pink { background: var(--accent-2); }
.star.sm { width: .6em; height: .6em; }

/* ---------- Kicker + section header + star divider ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-text); }
.star-divider { display: flex; align-items: center; gap: 14px; }
.star-divider::before, .star-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--border-strong)); }
.star-divider::after { background: linear-gradient(90deg, var(--border-strong), transparent); }
.star-divider .star { width: 14px; height: 14px; }
.star-divider .star.sm { width: 8px; height: 8px; opacity: .7; }
/* Specificity hardening: kicker/tagline color must survive page rules like
   `.section p { color: … }` (0,1,1). Doubled class = (0,2,0). */
.kicker.kicker { color: var(--accent-text); }
.tagline.tagline { color: var(--accent-2-text); }

/* ---------- Buttons (min target 44px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border-radius: var(--radius-pill); border: 1px solid transparent; font: var(--weight-semibold) var(--text-body) var(--font-body); letter-spacing: .01em; color: var(--btn-primary-text); background: var(--btn-primary-bg); cursor: pointer; text-decoration: none; transition: transform var(--duration-quick) var(--ease-out), background var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }
.btn:hover { background: var(--btn-primary-bg-hover, var(--gold-300)); color: var(--btn-primary-text); box-shadow: var(--glow-gold-soft); }
.btn:active { transform: scale(.985); background: var(--gold-500); }
.btn .star { background: currentColor; width: .85em; height: .85em; }
.btn-secondary { background: transparent; border-color: var(--accent-text); color: var(--accent-text); }
.btn-secondary:hover { background: color-mix(in oklab, var(--accent) 14%, transparent); box-shadow: none; color: var(--accent-text); }
.btn-pink { background: var(--btn-pink-bg, var(--pink-400)); color: var(--btn-pink-text, var(--ink-900)); }
.btn-pink:hover { background: var(--pink-300); color: var(--ink-900); box-shadow: var(--glow-pink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-muted); background: color-mix(in oklab, var(--text) 7%, transparent); color: var(--text); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: var(--text-small); }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: var(--text-body-lg); }
.btn:disabled { opacity: .45; pointer-events: none; }
/* Specificity hardening: button label color must survive page link rules like
   `.nav a { color: … }` (0,1,1). Doubled class = (0,2,0); variants re-assert below. */
.btn.btn { color: var(--btn-primary-text); }
.btn.btn-secondary { color: var(--accent-text); }
.btn.btn-pink { color: var(--btn-pink-text, var(--ink-900)); }
.btn.btn-ghost { color: var(--text); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: var(--text-caption); font-weight: var(--weight-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.chip-gold { border-color: color-mix(in oklab, var(--gold-400) 55%, transparent); color: var(--accent-text); }
.chip-solid { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-900); }

/* ---------- Cards ---------- */
.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.theme-light .card { background: var(--surface-raised); }
.card-quiet { background: var(--surface); box-shadow: none; }

/* ---------- Forms (booking) ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--text); }
.field .hint { font-size: var(--text-caption); color: var(--text-subtle); }
.input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: var(--weight-regular) var(--text-body) var(--font-body); transition: border-color var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out); }
.input::placeholder { color: var(--text-subtle); }
.input:hover { border-color: var(--text-subtle); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238E97C4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---------- Photo treatments ---------- */
.photo-arch { border-radius: var(--radius-arch); overflow: hidden; }         /* signature stage-door arch */
.photo-circle { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.photo-card { border-radius: var(--radius-lg); overflow: hidden; }
.photo-ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }    /* gold ring, offset by bg */
.photo-glow { box-shadow: var(--glow-gold-soft), var(--shadow-card); }
.photo-frame img, .photo-arch img, .photo-circle img, .photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }  /* top-biased: headshots keep the full head in frame */
/* Midnight duotone — background/banner use ONLY, never the primary headshot */
.duotone { position: relative; background: var(--duotone-midnight); overflow: hidden; }
.duotone img { filter: grayscale(1) contrast(1.05) brightness(1.02); mix-blend-mode: luminosity; opacity: .92; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,215,90,.18), rgba(10,14,39,0) 55%, rgba(255,143,172,.14)); pointer-events: none; }
/* Bottom protection for text over photos */
.photo-protect::after { content: ""; position: absolute; inset: 0; background: var(--gradient-photo-protect); }

/* ---------- Starfield background (pure CSS, subtle) ---------- */
.starfield { position: relative; background-color: var(--bg); background-image: radial-gradient(1.2px 1.2px at 22% 30%, rgba(255,247,234,.55) 50%, transparent 51%), radial-gradient(1px 1px at 68% 18%, rgba(255,228,154,.5) 50%, transparent 51%), radial-gradient(1.4px 1.4px at 84% 62%, rgba(255,247,234,.4) 50%, transparent 51%), radial-gradient(1px 1px at 42% 74%, rgba(195,182,240,.45) 50%, transparent 51%), radial-gradient(1.1px 1.1px at 8% 82%, rgba(255,228,154,.38) 50%, transparent 51%), radial-gradient(1px 1px at 55% 45%, rgba(255,247,234,.30) 50%, transparent 51%), radial-gradient(1.3px 1.3px at 92% 12%, rgba(255,181,201,.35) 50%, transparent 51%); background-size: 520px 520px; }

/* ---------- Video embed frame ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--gradient-nebula); border: 1px solid var(--border); box-shadow: var(--shadow-card); display: grid; place-items: center; }
.video-frame iframe, .video-frame img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border: 0; }
.play-badge { position: relative; z-index: 2; width: 76px; height: 76px; border-radius: 50%; background: var(--gold-400); display: grid; place-items: center; box-shadow: var(--glow-gold); border: 0; cursor: pointer; transition: transform var(--duration-quick) var(--ease-out); }
.play-badge:hover { transform: scale(1.06); }
.play-badge::after { content: ""; width: 0; height: 0; border-left: 22px solid var(--ink-900); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }

/* ---------- Tagline ---------- */
.tagline { font-family: var(--font-script); font-weight: 600; font-size: var(--text-tagline); line-height: 1.25; color: var(--accent-2-text); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--space-section); }

/* ---------- Motion ---------- */
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.twinkle { animation: twinkle 2.6s var(--ease-out) infinite; }
.twinkle.d1 { animation-delay: .6s; } .twinkle.d2 { animation-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
