/* ==========================================================================
   VICKY'S MUSIC STUDIO
   Clean, elegant, minimal — with soul
   ========================================================================== */

/* Google Fonts - Source Serif Pro (Freight Text alternative) */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors - Minimal, timeless */
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-cream: #faf9f7;
  --color-gray-600: #6b6b6b;
  --color-gray-400: #a3a3a3;
  --color-gray-200: #e5e5e5;
  
  /* Typography */
  --font-serif: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-hero: clamp(2rem, 6vw, 3.5rem);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;
  
  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
}

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

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

body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background-color: var(--color-black);
  color: var(--color-white);
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  max-width: 65ch;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-gray {
  color: var(--color-gray-600);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header.is-scrolled .logo,
.header.is-scrolled .nav-link {
  color: var(--color-black);
  text-shadow: none;
}

.logo {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  transition: color var(--duration-normal), text-shadow var(--duration-normal);
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--duration-normal), 
              text-shadow var(--duration-normal),
              transform var(--duration-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:active {
  transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  padding: var(--space-3xl) var(--gutter);
  text-align: center;
  color: var(--color-white);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity var(--duration-normal);
}

.scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-white), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: var(--space-2xl) var(--gutter);
  scroll-margin-top: 60px;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.section-line {
  width: 40px;
  height: 1px;
  background-color: var(--color-black);
}

/* ==========================================================================
   PROGRAM SECTION
   ========================================================================== */
.program {
  background-color: var(--color-white);
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
}

.program-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  min-height: 0;
}

.program-item {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.program-item-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.program-embed {
  flex: 1;
  position: relative;
  background-color: var(--color-cream);
  border: 1px solid var(--color-gray-200);
  min-height: 200px;
}

.program-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder state */
.program-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  text-align: center;
}

.program-placeholder-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gray-400);
}

.program-placeholder-text {
  color: var(--color-gray-600);
  font-size: var(--text-xs);
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-black);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  transition: border-color var(--duration-fast), 
              background-color var(--duration-fast),
              transform var(--duration-fast) var(--ease-out);
}

.program-link:hover {
  border-color: var(--color-black);
  background-color: var(--color-cream);
}

.program-link:active {
  transform: scale(0.98);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  background-color: var(--color-cream);
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
}

.about-content {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-2xl) 0;
  }
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text {
  max-width: 540px;
}

.about-name {
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.about-bio {
  color: var(--color-gray-600);
}

.about-bio p {
  margin-bottom: var(--space-md);
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.social-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--duration-fast),
              transform var(--duration-fast) var(--ease-out);
}

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

.social-link:active {
  transform: scale(0.97);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: var(--space-lg) var(--gutter);
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.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;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
  }
  
  .nav {
    gap: var(--space-md);
  }
  
  .hero-content {
    padding: var(--space-2xl) var(--gutter);
  }
  
  .section {
    padding: var(--space-md) var(--gutter);
    scroll-margin-top: 56px;
  }
  
  .section-header {
    margin-bottom: var(--space-sm);
  }
  
  .program-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .program-item {
    max-height: 35vh;
  }
  
  .program-embed {
    min-height: 150px;
  }
  
  .about-image {
    max-width: 260px;
    margin: var(--space-sm) auto var(--space-md);
  }
  
  .about-content {
    gap: var(--space-md);
    padding: var(--space-md) 0;
  }
  
  .about-bio p {
    margin-bottom: var(--space-xs);
  }
  
  .social-links {
    margin-top: var(--space-md);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .about-content {
    gap: var(--space-3xl);
  }
}
