/*
Theme Name: Lance Medlin Music
Theme URI: https://lancemedlin.com
Author: Lance Medlin
Author URI: https://lancemedlin.com
Description: Official website theme for Lance Medlin — Alt-Country artist from Texas.
Version: 1.0
License: GNU General Public License v2 or later
Tags: music, one-page, dark, custom
*/

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

    :root {
      --black:   #0c0a08;
      --dark:    #161210;
      --card:    #1e1a16;
      --amber:   #c4922a;
      --amber-lt:#d4a84a;
      --cream:   #f0ead8;
      --muted:   #8a7d6e;
      --rule:    rgba(196,146,42,0.25);
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--black);
      color: var(--cream);
      font-family: 'Inter', sans-serif;
      font-weight: 300;
      line-height: 1.7;
      overflow-x: hidden;
    }

    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.4rem 3rem;
      transition: background 0.4s, backdrop-filter 0.4s;
    }
    nav.scrolled {
      background: rgba(12,10,8,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--rule);
    }
    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--cream);
      text-decoration: none;
    }
    .nav-links { display: flex; gap: 2.5rem; list-style: none; }
    .nav-links a {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--amber); }

    #hero {
      position: relative;
      height: 100vh; min-height: 640px;
      display: flex; align-items: flex-end;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background:
        linear-gradient(to top, rgba(12,10,8,1) 0%, rgba(12,10,8,0.55) 45%, rgba(12,10,8,0.2) 100%),
        url('https://lancemedlinmusic.com/wp-content/uploads/2025/11/E95E8DE4-12B7-4E7A-8581-F95B645CE6A4_1_105_c.jpeg') center / cover no-repeat;
      background-color: #1a1410;
      transform: scale(1.02);
      transition: transform 8s ease-out;
    }
    #hero.loaded .hero-bg { transform: scale(1); }
    .hero-content {
      position: relative; z-index: 2;
      padding: 0 3rem 5rem;
      max-width: 780px;
    }
    .hero-eyebrow {
      font-size: 0.7rem; font-weight: 500;
      letter-spacing: 0.3em; text-transform: uppercase;
      color: var(--amber); margin-bottom: 1rem;
    }
    .hero-name {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3.5rem, 9vw, 7.5rem);
      font-weight: 900; line-height: 0.92;
      letter-spacing: -0.02em; color: #c4922a;
      margin-bottom: 1.5rem;
      text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.4);
    }
    .hero-tagline {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-size: clamp(1.1rem, 2vw, 1.4rem);
      font-weight: 300; color: rgba(240,234,216,0.7);
      margin-bottom: 2.5rem; max-width: 480px;
    }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn-primary {
      display: inline-flex; align-items: center; gap: 0.6rem;
      background: var(--amber); color: var(--black);
      padding: 0.85rem 1.8rem;
      font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-primary:hover { background: var(--amber-lt); transform: translateY(-1px); }
    .btn-ghost {
      display: inline-flex; align-items: center; gap: 0.6rem;
      border: 1px solid rgba(240,234,216,0.3); color: var(--cream);
      padding: 0.85rem 1.8rem;
      font-size: 0.75rem; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s, transform 0.15s;
    }
    .btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-1px); }

    section { padding: 7rem 3rem; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-label {
      font-size: 0.65rem; font-weight: 500;
      letter-spacing: 0.35em; text-transform: uppercase;
      color: var(--amber); margin-bottom: 0.75rem;
    }
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700; line-height: 1.15;
      color: var(--cream); margin-bottom: 1.5rem;
    }
    .divider { width: 48px; height: 1px; background: var(--amber); margin-bottom: 3rem; }

    #music { background: var(--dark); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
    .music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .music-text p { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }
    .stream-links { display: flex; flex-direction: column; gap: 0.85rem; }
    .stream-link {
      display: flex; align-items: center; gap: 1rem;
      padding: 1rem 1.4rem;
      border: 1px solid var(--rule); background: var(--card);
      text-decoration: none; color: var(--cream);
      font-size: 0.85rem; font-weight: 500;
      transition: border-color 0.2s, background 0.2s;
    }
    .stream-link:hover { border-color: var(--amber); background: rgba(196,146,42,0.06); }
    .stream-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
    .stream-icon.spotify { background: #1DB954; }
    .stream-icon.apple   { background: #fc3c44; }
    .stream-arrow { margin-left: auto; color: var(--muted); font-size: 1.1rem; transition: transform 0.2s, color 0.2s; }
    .stream-link:hover .stream-arrow { transform: translateX(4px); color: var(--amber); }

    #about { background: var(--black); }
    .about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
    .about-photo { position: relative; }
    .about-photo-inner {
      width: 100%; aspect-ratio: 3/4;
      background: linear-gradient(135deg, #1a1008 0%, #2a1a0a 40%, #0c0a08 100%) center / cover;
      background-color: var(--card);
      position: relative; overflow: hidden;
    }
    .about-photo::before {
      content: ''; position: absolute;
      top: -16px; left: -16px; width: 64px; height: 64px;
      border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); z-index: 2;
    }
    .about-photo::after {
      content: ''; position: absolute;
      bottom: -16px; right: -16px; width: 64px; height: 64px;
      border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); z-index: 2;
    }
    .about-quote {
      font-family: 'Cormorant Garamond', serif; font-style: italic;
      font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 300;
      color: var(--cream); line-height: 1.45;
      margin-bottom: 2rem; padding-left: 1.5rem;
      border-left: 2px solid var(--amber);
    }
    .about-body { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-bottom: 2.5rem; }
    .about-body p + p { margin-top: 1.25rem; }

    #gallery { background: var(--dark); border-top: 1px solid var(--rule); }
    .gallery-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }
    .photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); }
    .photo-item { aspect-ratio: 4/3; overflow: hidden; background: var(--card); position: relative; cursor: pointer; }
.photo-item-img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .photo-placeholder { width: 100%; height: 100%; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }

    footer { background: var(--black); border-top: 1px solid var(--rule); padding: 3rem; }
    .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
    .footer-logo { font-family: 'Playfair Display', serif; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
    .footer-socials { display: flex; gap: 1.5rem; }
    .footer-socials a { color: var(--muted); text-decoration: none; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; }
    .footer-socials a:hover { color: var(--amber); }
    .footer-copy { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.05em; }

    .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .fade-in.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 768px) {
      nav { padding: 1.2rem 1.5rem; }
      .nav-links { display: none; }
      section { padding: 5rem 1.5rem; }
      .hero-content { padding: 0 1.5rem 4rem; }
      .music-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .about-photo { max-width: 320px; }
      .photo-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-inner { flex-direction: column; align-items: flex-start; }
    }
/* JS-independent fade-in override */
.fade-in { opacity: 1 !important; transform: none !important; }
