:root {
    --ink: #24302f;
    --muted: #66706d;
    --paper: #fffaf2;
    --soft: #f5eadf;
    --sage: #6f8979;
    --sage-dark: #425f51;
    --rose: #b87974;
    --gold: #c49a4b;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(36, 48, 47, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.section-pad { padding: 92px 0; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1; }
.eyebrow {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow.dark { color: var(--rose); }

.site-nav {
    align-items: center;
    background: rgba(255, 250, 242, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(36, 48, 47, 0.08);
    display: flex;
    justify-content: space-between;
    left: 0;
    min-height: 72px;
    padding: 0 32px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}
.brand {
    color: var(--sage-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
}
.brand span { color: var(--gold); }
.nav-links { align-items: center; display: flex; gap: 26px; }
.nav-links a { color: var(--ink); font-size: 0.92rem; font-weight: 700; }
.nav-rsvp { background: var(--sage-dark); border-radius: 999px; color: var(--white) !important; padding: 10px 18px; }
.nav-toggle { background: transparent; border: 0; display: none; height: 42px; width: 42px; }
.nav-toggle span { background: var(--ink); display: block; height: 2px; margin: 6px auto; width: 22px; }

.hero {
    align-items: center;
    background: linear-gradient(90deg, rgba(20, 31, 29, 0.74), rgba(20, 31, 29, 0.28)), url("http://staging.wohcaloocan.org/james-whim/img/1.jpg") center/cover;
    color: var(--white);
    display: grid;
    min-height: 100vh;
    padding: 120px 8vw 48px;
    position: relative;
}
.hero-content { max-width: 720px; }
.hero h1 { font-size: clamp(4rem, 11vw, 9rem); margin: 18px 0; }
.hero-date, .hero-location { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; }
.hero-location { color: rgba(255, 255, 255, 0.82); margin-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}
.button.primary { background: var(--gold); color: var(--ink); }
.button.ghost { border: 1px solid rgba(255, 255, 255, 0.64); color: var(--white); }
.countdown { align-self: end; display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(74px, 1fr)); max-width: 520px; }
.countdown div { background: rgba(255, 250, 242, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; padding: 18px 12px; text-align: center; }
.countdown strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.3rem; line-height: 1; }
.countdown span { color: rgba(255, 255, 255, 0.78); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }

.split { align-items: start; display: grid; gap: 42px; grid-template-columns: 0.8fr 1fr; }
.intro h2, .section-heading h2, .rsvp h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-top: 12px; }
.intro p:last-child, .rsvp-wrap > div p:last-child { color: var(--muted); font-size: 1.08rem; }
.story, .party, .faq { background: var(--white); }
.section-heading { margin-bottom: 36px; text-align: center; }
.timeline { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.timeline article, .party-grid article, .faq-list details { background: var(--paper); border: 1px solid rgba(36, 48, 47, 0.08); border-radius: 8px; padding: 28px; }
.timeline span, .detail-card span { color: var(--rose); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.timeline h3, .detail-card h3, .party-grid h3 { color: var(--sage-dark); font-size: 2rem; margin: 12px 0 10px; }
.timeline p, .detail-card p, .party-grid p, .faq-list p { color: var(--muted); }

.detail-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.detail-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.detail-card img { aspect-ratio: 1.25; height: auto; object-fit: cover; width: 100%; }
.detail-card div { padding: 28px; }
.detail-card.accent {
    align-items: end;
    background: linear-gradient(rgba(66, 95, 81, 0.9), rgba(66, 95, 81, 0.9)), url("https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?auto=format&fit=crop&w=900&q=80") center/cover;
    color: var(--white);
    display: flex;
}
.detail-card.accent h3, .detail-card.accent p, .detail-card.accent span { color: var(--white); }

.party-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.party-grid article { padding: 18px; text-align: center; }
.party-grid img { aspect-ratio: 1; border-radius: 8px; object-fit: cover; width: 100%; }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.gallery-grid button { background: transparent; border: 0; border-radius: 8px; cursor: zoom-in; overflow: hidden; }
.gallery-grid img { aspect-ratio: 1.18; object-fit: cover; transition: transform 0.35s ease; width: 100%; }
.gallery-grid button:hover img, .gallery-grid button:focus-visible img { transform: scale(1.05); }

.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0; }
.faq-list summary { cursor: pointer; font-weight: 800; list-style: none; padding: 22px 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { border-top: 1px solid rgba(36, 48, 47, 0.08); padding: 18px 24px 24px; }

.rsvp { background: var(--soft); }
.rsvp-wrap { align-items: start; display: grid; gap: 48px; grid-template-columns: 0.78fr 1fr; }
.rsvp-form { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: 18px; padding: 28px; }
.rsvp-form label { color: var(--ink); display: grid; font-size: 0.9rem; font-weight: 800; gap: 8px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 120px; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { background: #fffdf8; border: 1px solid rgba(36, 48, 47, 0.16); border-radius: 8px; color: var(--ink); min-height: 48px; padding: 12px 14px; width: 100%; }
.rsvp-form textarea { resize: vertical; }
.form-message { color: var(--sage-dark); font-weight: 800; min-height: 24px; }

.lightbox { align-items: center; background: rgba(19, 24, 24, 0.86); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 40; }
.lightbox[hidden] { display: none; }
.lightbox img { border-radius: 8px; max-height: 86vh; object-fit: contain; }
.lightbox button { background: var(--white); border: 0; border-radius: 999px; cursor: pointer; font-size: 2rem; height: 46px; line-height: 1; position: absolute; right: 24px; top: 24px; width: 46px; }
footer { align-items: center; background: var(--ink); color: var(--white); display: flex; justify-content: space-between; padding: 28px 32px; }
footer a { color: var(--gold); font-weight: 800; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links { background: var(--paper); border-bottom: 1px solid rgba(36, 48, 47, 0.08); display: none; flex-direction: column; gap: 0; left: 0; padding: 10px 20px 22px; position: absolute; right: 0; top: 72px; }
    .nav-links a { padding: 12px 0; width: 100%; }
    .site-nav.is-open .nav-links { display: flex; }
    .split, .timeline, .detail-grid, .party-grid, .rsvp-wrap { grid-template-columns: 1fr; }
    .party-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .site-nav { padding: 0 18px; }
    .hero { padding: 110px 20px 28px; }
    .countdown { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .section-pad { padding: 68px 0; }
    .container { width: min(100% - 28px, 1120px); }
    .gallery-grid, .party-grid, .form-row { grid-template-columns: 1fr; }
    footer { align-items: start; flex-direction: column; gap: 10px; }
}
