/* ============================================================
   TINA PHAM — Comedian · Actor · Former Fighter
   Design system
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.2rem + 6vw, 6rem);
  --text-hero: clamp(3.5rem, 0.5rem + 11vw, 9rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-wide: 1200px;
  --content-default: 1080px;

  /* Fonts */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

/* ---------- Light (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f4f1ea;
  --color-surface: #ffffff;
  --color-surface-2: #ece7dd;
  --color-surface-3: #e3ddd1;
  --color-text: #1a1714;
  --color-text-muted: #6a655d;
  --color-text-faint: #9a948a;
  --color-text-inverse: #f6f3ec;
  --color-border: #d8d2c6;
  --color-divider: #e0dace;

  --color-primary: #7a1530;       /* maroon / burgundy */
  --color-primary-hover: #5e0f24;
  --color-primary-soft: #f0e0e4;

  --color-ink: #161210;           /* near-black sections */
  --shadow-sm: 0 1px 2px rgba(30, 20, 15, 0.06);
  --shadow-md: 0 6px 20px rgba(30, 20, 15, 0.10);
  --shadow-lg: 0 18px 48px rgba(30, 20, 15, 0.16);
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --color-bg: #14110f;
  --color-surface: #1c1916;
  --color-surface-2: #211d19;
  --color-surface-3: #28231e;
  --color-text: #ece7df;
  --color-text-muted: #9c958a;
  --color-text-faint: #6d665c;
  --color-text-inverse: #14110f;
  --color-border: #34302a;
  --color-divider: #2a2622;

  --color-primary: #c8536e;
  --color-primary-hover: #d96a82;
  --color-primary-soft: #2e1c20;

  --color-ink: #0e0b0a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14110f;
    --color-surface: #1c1916;
    --color-surface-2: #211d19;
    --color-surface-3: #28231e;
    --color-text: #ece7df;
    --color-text-muted: #9c958a;
    --color-text-faint: #6d665c;
    --color-text-inverse: #14110f;
    --color-border: #34302a;
    --color-divider: #2a2622;
    --color-primary: #c8536e;
    --color-primary-hover: #d96a82;
    --color-primary-soft: #2e1c20;
    --color-ink: #0e0b0a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 { line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }

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

::selection { background: var(--color-primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-primary); display: inline-block; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: none;
}

.section-head {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
}

/* rule under headings (mockup style) */
.rule-accent {
  width: 56px; height: 3px;
  background: var(--color-primary);
  margin-top: var(--space-4);
  border: 0;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 34ch;
  font-weight: 500;
}

.muted { color: var(--color-text-muted); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }

.btn-outline { border-color: var(--color-text); color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); transform: translateY(-2px); }

.btn-outline-accent { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-accent:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

/* on dark backgrounds */
.on-dark .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--color-ink); }

/* ============================================================
   Header / Nav
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled { border-bottom-color: var(--color-divider); box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo { display: flex; align-items: center; color: var(--color-text); }
.logo svg { width: 46px; height: 46px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--color-primary); }

.nav-right { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--color-surface-2); }

.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; color: var(--color-text); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-8);
    transform: translateY(-120%);
    transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--color-divider); }
  .nav-links a { display: block; padding: var(--space-4) 0; font-size: var(--text-base); }
  .nav-toggle { display: grid; }
}

/* ============================================================
   Hero (split) — used on subpages and home
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(440px, 60vh, 620px);
}
.hero-text {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem) max(1.25rem, calc((100vw - var(--content-wide)) / 2 + 1.25rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.86;
  letter-spacing: 0.005em;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.02;
  color: var(--color-text);
}
.hero-desc { color: var(--color-text-muted); max-width: 42ch; font-size: var(--text-base); }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; min-height: 320px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; aspect-ratio: 4/3; }
  .hero-text { padding: clamp(2rem,7vw,3rem) clamp(1.25rem,5vw,2rem); }
}

/* ============================================================
   Cards / generic
   ============================================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.grid { display: grid; gap: var(--space-5); }

/* video thumb */
.vthumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-ink);
  cursor: pointer;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--transition); }
.vthumb:hover img { transform: scale(1.06); }
.vthumb .play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.vthumb .play svg { width: 22px; height: 22px; margin-left: 2px; }
.vthumb .tag {
  position: absolute; top: 10px; left: 10px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--color-primary); color: #fff;
  padding: 0.25rem 0.55rem; border-radius: var(--radius-sm);
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--color-ink); color: #e8e3da; }
.footer a { color: var(--color-primary); }
[data-theme='light'] .footer a { color: #d97a90; }
.footer-cta {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.footer-bar .col { display: flex; align-items: center; gap: var(--space-3); }
.footer-bar .col.center { justify-content: center; }
.footer-bar .col.right { justify-content: flex-end; }
.footer-bar svg { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
.footer-bar .label { font-size: var(--text-xs); color: #b9b2a8; line-height: 1.3; }
.footer-bar .val { font-size: var(--text-sm); font-weight: 600; color: #fff; }
.footer-copy {
  text-align: center;
  font-size: var(--text-xs);
  color: #837d73;
  padding-bottom: var(--space-8);
}
/* social icon row */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #e8e3da;
  background: rgba(255,255,255,0.06);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-social a.imdb { width: 54px; border-radius: 6px; background: #f5c518; color: #000; }
.footer-social a.imdb svg { width: 40px; height: 20px; }
.footer-social a.imdb:hover { background: #ffd23f; color: #000; transform: translateY(-2px); }
@media (max-width: 720px) {
  .footer-bar { grid-template-columns: 1fr; text-align: left; gap: var(--space-5); }
  .footer-bar .col.center, .footer-bar .col.right { justify-content: flex-start; }
  .footer-social { gap: var(--space-4); flex-wrap: wrap; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Utility text
   ============================================================ */
.t-xs { font-size: var(--text-xs); }
.t-sm { font-size: var(--text-sm); }
.center { text-align: center; }
.accent { color: var(--color-primary); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
