/* ============================================================
   LOVIE PROJECT STUDIO — Global Styles
   Editorial narrative site, cinematic dark tone
   ============================================================ */

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

:root {
  /* Palette */
  --ink:          #0f0e0d;
  --ink-soft:     #2c2a27;
  --ink-muted:    #5a5650;
  --paper:        #faf8f4;
  --paper-warm:   #f2ede4;
  --paper-mid:    #e8e2d8;
  --gold:         #b8942a;
  --gold-light:   #d4aa44;
  --gold-pale:    #f0e6c8;
  --cream:        #fcfaf6;
  --white:        #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:   0.375rem;
  --space-sm:   0.75rem;
  --space-md:   1.25rem;
  --space-lg:   2rem;
  --space-xl:   3.5rem;
  --space-2xl:  6rem;

  /* Layout */
  --max-width:  1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quick:  cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

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

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

ul { list-style: none; }


/* ── Utility: Container ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: 720px;
}


/* ── Utility: Tags ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 2px 8px;
  white-space: nowrap;
}

.tag--era {
  color: var(--gold-light);
  border-color: rgba(212, 170, 68, 0.5);
}

.tag--collection {
  color: var(--ink-soft);
  border-color: var(--ink-soft);
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  transition: all 0.2s var(--ease-quick);
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 148, 42, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}


/* ============================================================
   NAVIGATION
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15, 14, 13, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: auto;
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-logo--footer {
  width: 52px;
  height: 52px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}

.brand-tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 2px;
  letter-spacing: 0.05em !important;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 11px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.2s;
}


/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.7) contrast(1.05);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 8, 0.97) 0%,
    rgba(10, 9, 8, 0.65) 45%,
    rgba(10, 9, 8, 0.18) 80%,
    rgba(10, 9, 8, 0.1) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  max-width: 820px;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-reading-time {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-deck {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   SECTION DIVIDER
============================================================ */
.section-divider {
  background: var(--ink);
  padding: var(--space-lg) var(--space-lg);
  text-align: center;
}

.section-intro-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}


/* ============================================================
   FEATURE GRID
============================================================ */
.feature-grid-section {
  background: var(--paper);
  padding: var(--space-2xl) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

/* Column header */
.col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.col-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.col-see-all {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.15s;
}

.col-see-all:hover {
  color: var(--gold-light);
}


/* ── Cards ────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-lg);
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:last-child {
  margin-bottom: 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Image wrap */
.card-img-link {
  display: block;
  overflow: hidden;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--paper-mid);
}

.card-img-wrap--collection {
  padding-top: 48%;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-img {
  transform: scale(1.03);
}

/* Collection badge */
.collection-count-badge {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: rgba(10, 9, 8, 0.75);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* Card body */
.card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2px;
}

.card-title a {
  transition: color 0.15s;
}

.card-title a:hover {
  color: var(--gold);
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
  margin-top: var(--space-xs);
}

.card-cta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-sm);
  align-self: flex-start;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

.card-cta:hover {
  color: var(--ink);
  transform: translateX(3px);
}

/* Video cards */
.card-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--ink);
  overflow: hidden;
}

.card-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================================
   EDITORIAL CALLOUT
============================================================ */
.callout-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-mid);
  border-bottom: 1px solid var(--paper-mid);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.callout-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.callout-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.callout-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.callout-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
}


/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.brand-mark--footer {
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 2px;
}

.brand-name--footer {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  max-width: 280px;
  line-height: 1.55;
}

.footer-nav p,
.footer-contact p {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-md);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold-light);
  transition: color 0.15s;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.25);
}


/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablet nav: switch to hamburger at 768px */
@media (max-width: 768px) and (min-width: 681px) {
  .brand-tagline {
    display: none;
  }
}

/* ── Pure-CSS nav toggle (no JS) ─────────────────────────── */
.nav-toggle-input {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 62px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 14, 13, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: var(--space-xl);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Prevent scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}


/* ============================================================
   SCROLL REVEAL (progressive enhancement)
============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s var(--ease) forwards;
  }

  .feature-col:nth-child(1) .card:nth-child(1) { animation-delay: 0.05s; }
  .feature-col:nth-child(1) .card:nth-child(2) { animation-delay: 0.15s; }
  .feature-col:nth-child(1) .card:nth-child(3) { animation-delay: 0.25s; }
  .feature-col:nth-child(2) .card:nth-child(1) { animation-delay: 0.10s; }
  .feature-col:nth-child(2) .card:nth-child(2) { animation-delay: 0.20s; }
  .feature-col:nth-child(2) .card:nth-child(3) { animation-delay: 0.30s; }
  .feature-col:nth-child(3) .card:nth-child(1) { animation-delay: 0.15s; }
  .feature-col:nth-child(3) .card:nth-child(2) { animation-delay: 0.25s; }
  .feature-col:nth-child(3) .card:nth-child(3) { animation-delay: 0.35s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
