:root {
  --bg: #f6efe5;
  --bg-soft: #fff8f1;
  --paper: rgba(255, 251, 246, 0.78);
  --paper-strong: rgba(255, 248, 240, 0.92);
  --ink: #3f2f28;
  --muted: #7f6457;
  --accent: #df7a5a;
  --accent-soft: #f8b27f;
  --gold: #e8c16c;
  --shadow: 0 24px 60px rgba(92, 61, 43, 0.18);
  --border: rgba(121, 88, 67, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(180deg, #f9f2e8 0%, #f6efe5 32%, #f2e7d9 100%);
}

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

button,
a {
  font: inherit;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  min-height: 100vh;
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Ma Shan Zheng", cursive;
  line-height: 1.1;
  font-weight: 400;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  max-width: 12ch;
}

.hero-text,
.section-heading p,
.intro-card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 56ch;
  margin: 20px 0 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 32px;
}

.hero-stats > div,
.intro-card {
  border: 1px solid var(--border);
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-stats > div {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
}

.stat-value {
  display: block;
  font-size: 1.9rem;
  color: var(--accent);
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff8ef;
  background: linear-gradient(135deg, #d86f54, #e59c62);
  box-shadow: 0 18px 36px rgba(216, 111, 84, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(216, 111, 84, 0.34);
}

.hero-collage {
  position: relative;
  height: 700px;
}

.hero-polaroid {
  position: absolute;
  width: clamp(180px, 25vw, 280px);
  background: rgba(255, 251, 246, 0.95);
  border-radius: 24px;
  padding: 14px 14px 22px;
  box-shadow: 0 28px 55px rgba(63, 47, 40, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: rotate(var(--rotation));
  animation: floatCard 8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hero-polaroid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  width: 100%;
}

.hero-polaroid span {
  display: block;
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-polaroid:nth-child(1) {
  top: 4%;
  left: 0;
}

.hero-polaroid:nth-child(2) {
  right: 6%;
  top: 14%;
}

.hero-polaroid:nth-child(3) {
  left: 20%;
  bottom: 4%;
}

.intro-card {
  position: relative;
  margin: 12px auto 60px;
  padding: 22px 28px;
  border-radius: 24px;
  max-width: 860px;
  text-align: center;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.photo-card {
  grid-column: span 3;
  position: relative;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(63, 47, 40, 0.16));
  opacity: 0;
  transition: opacity 240ms ease;
}

.photo-card:hover {
  transform: translateY(-6px) rotate(0.2deg);
  box-shadow: 0 30px 56px rgba(79, 55, 44, 0.22);
}

.photo-card:hover::after {
  opacity: 1;
}

.photo-card.featured {
  grid-column: span 6;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #eadfce;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 380ms ease;
}

.photo-card.featured .photo-frame img {
  aspect-ratio: 16 / 10;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.04);
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  position: relative;
  z-index: 1;
}

.photo-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.photo-index {
  color: var(--accent);
  white-space: nowrap;
  font-size: 0.9rem;
}

.lightbox {
  width: min(1200px, calc(100% - 24px));
  max-width: 1200px;
  border: none;
  padding: 24px;
  border-radius: 28px;
  background: rgba(43, 30, 26, 0.8);
  color: #fff7f0;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.32);
}

.lightbox::backdrop {
  background: rgba(28, 18, 15, 0.68);
  backdrop-filter: blur(8px);
}

.lightbox-body {
  display: grid;
  gap: 16px;
}

.lightbox-body img {
  max-height: 74vh;
  margin: 0 auto;
  border-radius: 20px;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.lightbox-caption,
.lightbox-index {
  margin: 0;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  color: #fff7f0;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border-radius: 999px;
  font-size: 2rem;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

@keyframes floatCard {
  0%, 100% { transform: rotate(var(--rotation)) translateY(0); }
  50% { transform: rotate(calc(var(--rotation) * 0.85)) translateY(-10px); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-collage {
    order: -1;
    height: 520px;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .photo-card,
  .photo-card.featured {
    grid-column: span 3;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-collage {
    height: 360px;
  }

  .hero-polaroid {
    width: 46%;
    border-radius: 18px;
    padding: 10px 10px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card.featured {
    grid-column: auto;
  }

  .lightbox {
    padding: 56px 14px 18px;
  }

  .lightbox-nav {
    width: 42px;
    height: 56px;
  }

  .lightbox-meta {
    flex-direction: column;
  }
}
