@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Karla:wght@400;500;700&display=swap');

:root {
  --radius: 0.75rem;
  --background: oklch(0.96 0.018 75);
  --foreground: oklch(0.28 0.04 30);
  --card: oklch(0.99 0.008 80);
  --card-foreground: oklch(0.25 0.05 25);
  --popover: oklch(0.99 0.008 80);
  --popover-foreground: oklch(0.25 0.05 25);
  --primary: oklch(0.38 0.14 18);
  --primary-foreground: oklch(0.97 0.02 85);
  --secondary: oklch(0.90 0.04 70);
  --secondary-foreground: oklch(0.35 0.10 30);
  --muted: oklch(0.91 0.025 70);
  --muted-foreground: oklch(0.48 0.05 45);
  --accent: oklch(0.74 0.13 82);
  --accent-foreground: oklch(0.22 0.05 30);
  --destructive: oklch(0.52 0.19 25);
  --destructive-foreground: oklch(0.98 0.01 85);
  --border: oklch(0.85 0.035 70);
  --input: oklch(0.85 0.035 70);
  --ring: oklch(0.55 0.13 30);
  --gold: oklch(0.74 0.13 82);
  --terracotta: oklch(0.56 0.15 42);
  --kente: oklch(0.40 0.09 25);
  --emerald: oklch(0.42 0.09 155);
}

* { border-color: var(--border); box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Karla', sans-serif;
}
h1, h2, h3, .font-display { font-family: 'Cormorant Garamond', serif; }

.kente-strip {
  background: repeating-linear-gradient(
    90deg,
    var(--emerald) 0 16px,
    var(--gold) 16px 28px,
    var(--kente) 28px 40px,
    var(--gold) 40px 46px
  );
}
.motif-border {
  border-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0 8px,
    var(--terracotta) 8px 16px
  ) 8;
}
.shadow-warm {
  box-shadow: 0 20px 50px -20px color-mix(in oklab, var(--kente) 45%, transparent);
}
.text-gilded {
  background: linear-gradient(135deg, var(--gold), var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-terracotta { color: var(--terracotta); }
.text-gold { color: var(--gold); }
.bg-primary { background-color: var(--primary); }
.bg-destructive { background-color: var(--destructive); }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }
.border-gold\/30 { border-color: color-mix(in oklab, var(--gold) 30%, transparent); }
.border-gold\/40 { border-color: color-mix(in oklab, var(--gold) 40%, transparent); }
.border-gold\/50 { border-color: color-mix(in oklab, var(--gold) 50%, transparent); }
.bg-secondary\/40 { background-color: color-mix(in oklab, var(--secondary) 40%, transparent); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 64rem; margin: auto; display: flex; align-items: center;
  justify-content: space-between; padding: .75rem 1rem;
}
.nav-links { display: flex; gap: 1.25rem; font-size: .875rem; font-weight: 500; }
.nav-links a { color: var(--muted-foreground); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.brand { color: var(--primary); font-family: 'Cormorant Garamond',serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }

.hero { position: relative; height: 78vh; min-height: 520px; overflow: hidden; }
.hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(to top, color-mix(in oklab,var(--kente) 85%,transparent), color-mix(in oklab,var(--kente) 30%,transparent), color-mix(in oklab,var(--kente) 40%,transparent)); }
.hero-radial { position:absolute; inset:0; background:radial-gradient(ellipse at center,transparent 40%,oklch(0.25 0.08 25) 100%); }
.hero-frame { pointer-events:none; position:absolute; inset:1rem; border:1px solid color-mix(in oklab,var(--gold) 40%,transparent); border-radius:1.5rem; }
.hero-content { position:absolute; inset-inline:0; bottom:0; padding-bottom:3.5rem; text-align:center; }
.hero-title { margin-top:.75rem; font-family:'Cormorant Garamond',serif; font-size:3rem; line-height:1; font-weight:700; color:#fff; }
.hero-meta { margin:1rem auto 0; display:flex; align-items:center; justify-content:center; gap:.75rem; color:rgba(255,245,220,.9); }
.hero-label { font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.4em; color:var(--gold); }

.countdown-wrap { position:relative; z-index:10; max-width:56rem; margin:-2.5rem auto 0; padding:0 1rem; }
.countdown-card { border:1px solid color-mix(in oklab,var(--gold) 30%,transparent); background:color-mix(in oklab,var(--card) 90%,transparent); border-radius:1.5rem; padding:2rem; box-shadow:0 20px 50px -20px color-mix(in oklab,var(--kente) 45%,transparent); backdrop-filter:blur(12px); }
.ornament { margin:1rem auto 0; display:flex; align-items:center; justify-content:center; gap:1rem; }
.ornament-line { height:1px; width:5rem; background:linear-gradient(to right,transparent,var(--gold)); }
.ornament-line.reverse { background:linear-gradient(to left,transparent,var(--gold)); }
.countdown-items { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; }
.count-box { position:relative; width:5rem; border:1px solid color-mix(in oklab,var(--gold) 40%,transparent); background:color-mix(in oklab,var(--card) 80%,transparent); border-radius:1rem; padding:1rem; text-align:center; box-shadow:0 20px 50px -20px color-mix(in oklab,var(--kente) 45%,transparent); backdrop-filter:blur(8px); }
.count-number { font-family:'Cormorant Garamond',serif; font-size:1.875rem; font-weight:700; color:var(--primary); }
.count-label { margin-top:.25rem; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.2em; color:var(--muted-foreground); }

.section { max-width:64rem; margin:auto; padding:4rem 1rem; }
.section-heading { text-align:center; }
.eyebrow { font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.35em; color:var(--terracotta); }
.section-title { margin:.5rem 0 0; font-family:'Cormorant Garamond',serif; font-size:2.25rem; font-weight:700; color:var(--primary); }

.program-grid { margin-top:3rem; display:grid; gap:1.5rem; }
.program-card { overflow:hidden; border:1px solid color-mix(in oklab,var(--gold) 30%,transparent); border-radius:1rem; background:var(--card); box-shadow:0 20px 50px -20px color-mix(in oklab,var(--kente) 45%,transparent); }
.program-image { position:relative; height:8rem; overflow:hidden; }
.program-image img { width:100%; height:100%; object-fit:cover; transition:transform .7s; }
.program-card:hover img { transform:scale(1.1); }
.program-image::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,color-mix(in oklab,var(--kente) 80%,transparent),transparent); }
.program-time { position:absolute; z-index:1; left:1rem; bottom:.75rem; font-family:'Cormorant Garamond',serif; font-size:1.5rem; font-weight:700; color:var(--gold); }
.program-body { padding:1.5rem; }
.program-body h3 { margin:0; font-family:'Cormorant Garamond',serif; font-size:1.25rem; font-weight:600; }
.program-body p { margin:.5rem 0 0; font-size:.875rem; color:var(--muted-foreground); }

.rsvp-section { position:relative; overflow:hidden; background:linear-gradient(to bottom,color-mix(in oklab,var(--secondary) 40%,transparent),var(--background)); padding:5rem 1rem; }
.rsvp-form { max-width:32rem; margin:2.5rem auto 0; border:1px solid color-mix(in oklab,var(--gold) 40%,transparent); background:var(--card); border-radius:1.5rem; padding:2rem; box-shadow:0 20px 50px -20px color-mix(in oklab,var(--kente) 45%,transparent); }
.form-grid { margin-top:2rem; display:grid; gap:1.25rem; }
.form-label { font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-foreground); }
.form-input { margin-top:.5rem; width:100%; border:1px solid var(--input); border-radius:.5rem; background:color-mix(in oklab,var(--background) 60%,transparent); padding:.75rem 1rem; font-size:.875rem; color:var(--foreground); outline:none; }
.form-input:focus { border-color:var(--gold); box-shadow:0 0 0 2px color-mix(in oklab,var(--gold) 60%,transparent); }
.presence-grid { margin-top:.75rem; display:grid; gap:.75rem; }
.presence-btn, .submit-btn { border-radius:.75rem; border:1px solid var(--input); padding:.75rem 1rem; font-size:.875rem; font-weight:600; cursor:pointer; transition:.2s; }
.presence-btn { background:color-mix(in oklab,var(--background) 60%,transparent); }
.presence-btn:hover { border-color:var(--gold); }
.presence-btn.selected-yes { border-color:var(--primary); background:var(--primary); color:var(--primary-foreground); }
.presence-btn.selected-no { border-color:var(--destructive); background:var(--destructive); color:var(--destructive-foreground); }
.submit-btn { margin-top:2rem; width:100%; background:var(--primary); color:var(--primary-foreground); text-transform:uppercase; letter-spacing:.08em; }
.submit-btn:hover { background:var(--kente); box-shadow:0 20px 50px -20px color-mix(in oklab,var(--kente) 45%,transparent); }

.gallery-page { max-width:64rem; margin:auto; padding:4rem 1rem; }
.gallery-grid { margin-top:3rem; display:grid; gap:1.25rem; }
.gallery-card { position:relative; overflow:hidden; border:1px solid color-mix(in oklab,var(--gold) 30%,transparent); border-radius:1rem; background:var(--card); box-shadow:0 20px 50px -20px color-mix(in oklab,var(--kente) 45%,transparent); }
.gallery-card img { display:block; width:100%; height:16rem; object-fit:cover; transition:transform .7s; }
.gallery-card:hover img { transform:scale(1.05); }
.gallery-card:first-child img { height:18rem; }
.gallery-card::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,color-mix(in oklab,var(--kente) 85%,transparent),transparent 70%); opacity:.8; pointer-events:none; }
.caption { position:absolute; z-index:1; left:0; bottom:0; padding:1.25rem; color:#fff; }
.caption-line { height:1px; width:2.5rem; background:var(--gold); margin-bottom:.5rem; }
.caption p { margin:0; font-family:'Cormorant Garamond',serif; font-size:1.125rem; font-weight:600; text-shadow:0 1px 3px #000; }

footer { margin-top:4rem; border-top:1px solid var(--border); }
footer p { padding:1.5rem; margin:0; text-align:center; font-size:.875rem; color:var(--muted-foreground); }

@media (min-width:640px) {
  .hero-title { font-size:5rem; }
  .hero-label { font-size:.875rem; }
  .countdown-card { padding:3rem; }
  .count-box { width:7rem; }
  .count-number { font-size:3rem; }
  .count-label { font-size:.75rem; }
  .program-grid, .presence-grid { grid-template-columns:repeat(3,1fr); }
  .presence-grid { grid-template-columns:repeat(2,1fr); }
  .form-grid { grid-template-columns:repeat(2,1fr); }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
  .gallery-card:first-child { grid-column:span 2; }
  .gallery-card:first-child img { height:24rem; }
  .gallery-card:not(:first-child) img { height:18rem; }
}

.hidden { display:none !important; }
.center { text-align:center; }
.max-text { max-width:36rem; margin-left:auto; margin-right:auto; }
