/* ============================================
   LiCoWa Design System V3 (Editorial/Organic)
   ============================================ */

/* 1. Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Caveat:wght@400;700&display=swap');

:root {
  /* 2. Color Palette (Organic/Paper) */
  --color-canvas: #FAFAF9;      /* Warm Paper / 页面背景 */
  --color-surface: #FFFFFF;     /* Pure White / 卡片背景 */
  --color-ink: #1C1917;         /* Stone 900 / 主要文字 */
  --color-ink-light: #57534E;   /* Stone 500 / 次要文字 */
  --color-ink-lighter: #A8A29E; /* Stone 300 / 占位符 */
  --color-accent: #BE123C;      /* Rose 700 / 点睛色 */
  --color-line: #E7E5E4;        /* Stone 200 / 分割线 */
  
  /* 3. Typography Tokens */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-accent: 'Caveat', cursive;

  /* 4. Spacing System (Fluid) */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2.5rem;   /* 40px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* 5. Radius (Squircle/Organic) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 6. Shadows (Diffusion) */
  --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(28, 25, 23, 0.08);
  --shadow-float: 0 20px 40px -4px rgba(28, 25, 23, 0.12);

  /* 7. Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-normal: 0.6s;
}

/* ============================================
   Base Reset
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-canvas);
  color: var(--color-ink);
  line-height: 1.7;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--color-ink);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* ============================================
   Component: Buttons (Editorial Style)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-ink);
  color: var(--color-canvas);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-canvas);
}

/* ============================================
   Component: Cards (Photo Paper)
   ============================================ */
.photo-card {
  background: var(--color-surface);
  padding: var(--space-sm);
  border-radius: var(--radius-sm); /* 拍立得是直角或小圆角 */
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  filter: grayscale(10%) contrast(105%); /* 胶片质感 */
  transition: filter 0.4s ease;
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-float);
  z-index: 10;
}

.photo-card:hover img {
  filter: grayscale(0%) contrast(110%);
}

/* ============================================
   Layout: Editorial Grid
   ============================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealImage {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.1); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* ============================================
   Utility: Navigation
   ============================================ */
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-ink-light);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-ink);
}

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

/* Force consistent navbar font sizes across all pages */
nav .font-serif {
  font-size: 1.875rem !important; /* text-3xl = 30px */
}

nav .nav-link {
  font-size: 0.875rem !important; /* text-sm = 14px */
  letter-spacing: 0.1em !important;
}

/* ============================================
   Utility: Text Styles
   ============================================ */
.text-display {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

.text-hand {
  font-family: var(--font-accent);
  color: var(--color-accent);
  transform: rotate(-2deg);
  display: inline-block;
}

/* ============================================
   Component: Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-md);
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-float);
  animation: modalFadeIn 0.3s var(--ease-out-expo);
}

/* Redesigned Modal */
.modal-content.redesigned {
  padding: 0;
  max-width: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal-content.redesigned {
    flex-direction: row;
    min-height: 480px;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}
