/* ============================================
   JON & CODY — BOLD FOREST DESIGN SYSTEM
   shared across all pages; inlined at build
   ============================================ */
:root {
    /* FOREST — primary dark */
    --forest:        #1f3a2e;
    --forest-deep:   #12261d;
    --forest-ink:    #0d1c15;
    --moss:          #2d5443;
    --sage:          #a8b8a0;
    --sage-soft:     #d6dfcf;

    /* WARM NEUTRALS */
    --ivory:         #f5efe2;
    --ivory-deep:    #ece4d0;
    --cream:         #ede4cc;
    --paper:         #f9f4e8;

    /* ACCENT — single warm metallic */
    --gold:          #c9a96e;
    --gold-deep:     #a8895a;
    --gold-line:     rgba(201, 169, 110, 0.5);

    /* TYPE */
    --ink:           #12261d;
    --ink-soft:      #3a4a40;
    --ink-muted:     #6b7a70;
    --on-dark:       #f5efe2;
    --on-dark-soft:  rgba(245, 239, 226, 0.75);
    --on-dark-muted: rgba(245, 239, 226, 0.55);

    /* LINES */
    --hair-light:    rgba(18, 38, 29, 0.15);
    --hair-dark:     rgba(245, 239, 226, 0.2);

    /* FONTS */
    --f-display:     'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --f-mark:        'Cinzel', 'Trajan Pro', serif;
    --f-sans:        'Josefin Sans', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-display);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* subtle paper grain */
body::before {
    content: ''; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; mix-blend-mode: multiply; opacity: 0.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ====== NAVIGATION — clear, large, high-contrast ====== */
nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--forest);
    color: var(--on-dark);
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--gold-line);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto; gap: 1rem; position: relative;
}
.nav-logo {
    display: inline-flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--on-dark);
    font-family: var(--f-mark); font-weight: 500;
    font-size: 0.95rem; letter-spacing: 0.35em;
}
.nav-logo .mark {
    width: 28px; height: 28px;
    border: 1px solid var(--gold); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-family: var(--f-display); font-style: italic;
    font-size: 0.95rem; letter-spacing: 0; padding-bottom: 2px;
}
nav.site-nav ul {
    list-style: none; display: flex; align-items: center;
    gap: 0.25rem; padding: 0; margin: 0;
}
nav.site-nav a {
    text-decoration: none; color: var(--on-dark-soft);
    font-family: var(--f-sans); font-weight: 400;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.22em;
    padding: 0.75rem 1rem; display: block; position: relative;
    transition: color 0.25s ease; min-height: 44px;
    display: flex; align-items: center;
}
nav.site-nav a::after {
    content: ''; position: absolute; left: 1rem; right: 1rem;
    bottom: 0.5rem; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s ease;
}
nav.site-nav a:hover, nav.site-nav a.active {
    color: var(--ivory);
}
nav.site-nav a:hover::after, nav.site-nav a.active::after {
    transform: scaleX(1);
}

/* Mobile */
.nav-toggle { display: none; background: none; border: none;
    padding: 0.5rem; cursor: pointer; z-index: 1001; }
.nav-toggle span { display: block; width: 26px; height: 1.5px;
    background: var(--on-dark); margin: 6px 0; transition: all 0.3s ease; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

nav.site-nav a.mobile-rsvp { display: none; }

@media (max-width: 899px) {
    nav.site-nav { padding: 0.75rem 1rem; }
    .nav-toggle { display: block; }
    nav.site-nav a.mobile-rsvp {
        display: inline-flex; align-items: center;
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        background: var(--gold); color: var(--forest-deep);
        padding: 0.55rem 1.2rem; font-size: 0.75rem; font-weight: 600;
        letter-spacing: 0.2em; text-transform: uppercase;
        font-family: var(--f-sans); min-height: 40px;
        text-decoration: none;
    }
    nav.site-nav a.mobile-rsvp::after { display: none; }
    nav.site-nav a.mobile-rsvp:hover { background: var(--ivory); color: var(--forest-deep); }

    nav.site-nav ul {
        position: fixed; top: 0; right: -100%; width: 82%; max-width: 360px;
        height: 100vh; background: var(--forest-deep);
        flex-direction: column; justify-content: flex-start;
        padding: 6rem 0 2rem; gap: 0;
        border-left: 1px solid var(--gold-line);
        box-shadow: -8px 0 40px rgba(0,0,0,0.35);
        transition: right 0.35s ease;
    }
    nav.site-nav ul.open { right: 0; }
    nav.site-nav ul li { width: 100%; }
    nav.site-nav ul a {
        font-size: 1rem; padding: 1.2rem 2rem;
        border-bottom: 1px solid var(--hair-dark);
        letter-spacing: 0.28em; color: var(--on-dark);
    }
    nav.site-nav ul a::after { display: none; }
    nav.site-nav ul a.active {
        background: rgba(201, 169, 110, 0.1);
        border-left: 3px solid var(--gold);
    }
}

/* ====== TYPE HELPERS ====== */
.eyebrow {
    font-family: var(--f-sans); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.5em;
    color: var(--gold-deep); font-weight: 500;
}
.eyebrow.on-dark { color: var(--gold); }

.chapter-num {
    font-family: var(--f-mark); font-size: 0.85rem;
    letter-spacing: 0.4em; color: var(--gold-deep);
    display: inline-block; padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--gold-line);
}
.chapter-num.on-dark { color: var(--gold); }

/* Decorative horizontal rule w/ diamond */
.rule-diamond {
    display: flex; align-items: center; justify-content: center;
    gap: 0.75rem; color: var(--gold);
}
.rule-diamond::before, .rule-diamond::after {
    content: ''; height: 1px; width: clamp(40px, 10vw, 90px);
    background: currentColor; opacity: 0.7;
}
.rule-diamond .d {
    width: 7px; height: 7px; background: currentColor;
    transform: rotate(45deg);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.6rem; padding: 1.1rem 2.4rem; min-height: 52px;
    background: var(--forest); color: var(--ivory);
    text-decoration: none; border: 1px solid var(--forest);
    font-family: var(--f-sans); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.28em;
    font-size: 0.78rem; cursor: pointer; border-radius: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--forest-deep); transform: translateY(-2px); }
.btn-ghost {
    background: transparent; color: var(--forest); border-color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: var(--ivory); }
.btn-gold {
    background: var(--gold); border-color: var(--gold); color: var(--forest-deep);
}
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.btn-on-dark {
    background: var(--gold); border-color: var(--gold); color: var(--forest-deep);
}
.btn-on-dark:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest-deep); }
.btn-ghost-dark {
    background: transparent; color: var(--ivory); border-color: var(--on-dark-soft);
}
.btn-ghost-dark:hover { background: var(--ivory); color: var(--forest-deep); border-color: var(--ivory); }

/* ====== SECTION BLOCKS (alternating) ====== */
.block {
    position: relative; padding: 6rem 1.5rem;
    overflow: hidden;
}
.block-dark {
    background: var(--forest); color: var(--on-dark);
}
.block-dark h1, .block-dark h2, .block-dark h3 { color: var(--ivory); }
.block-dark p { color: var(--on-dark-soft); }
.block-deep { background: var(--forest-deep); color: var(--on-dark); }
.block-deep h1, .block-deep h2, .block-deep h3 { color: var(--ivory); }
.block-deep p { color: var(--on-dark-soft); }
.block-light { background: var(--ivory); color: var(--ink); }
.block-cream { background: var(--cream); color: var(--ink); }
.block-paper { background: var(--paper); color: var(--ink); }

.block-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.block-narrow { max-width: 780px; margin: 0 auto; width: 100%; }

/* Giant serif title */
.block h1, .block h2 {
    font-family: var(--f-display); font-weight: 400;
    color: var(--forest); line-height: 0.95;
    letter-spacing: -0.01em;
}
.block h2 {
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-style: italic;
}
.block-dark h2, .block-deep h2 { color: var(--ivory); }

/* ====== HERO SHARED (page heroes) ====== */
.page-hero {
    background: var(--forest); color: var(--on-dark);
    padding: 11rem 1.5rem 6rem; text-align: center;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--gold-line);
}
.page-hero::before, .page-hero::after {
    content: ''; position: absolute; width: 500px; height: 500px;
    border-radius: 50%; pointer-events: none; opacity: 0.08;
    background: radial-gradient(circle, var(--gold) 0%, transparent 65%);
}
.page-hero::before { top: -200px; left: -180px; }
.page-hero::after { bottom: -240px; right: -200px; }
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero .chapter-num { margin-bottom: 1.5rem; }
.page-hero h1 {
    font-family: var(--f-display); font-style: italic; font-weight: 400;
    font-size: clamp(3.5rem, 10vw, 8rem);
    color: var(--ivory); line-height: 0.95;
    letter-spacing: -0.015em; margin-bottom: 1.5rem;
}
.page-hero .subtitle {
    font-family: var(--f-sans); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.35em;
    color: var(--gold); margin-top: 1rem;
}
.page-hero .rule-diamond { margin: 1.5rem auto 0; }

/* ====== MONOGRAM CREST ====== */
.crest {
    display: inline-flex; align-items: center; justify-content: center;
    flex-direction: column; color: var(--gold);
}
.crest-circle {
    width: 140px; height: 140px; border-radius: 50%;
    border: 1px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.crest-circle::before {
    content: ''; position: absolute; inset: 6px;
    border: 1px solid currentColor; border-radius: 50%; opacity: 0.4;
}
.crest-letters {
    font-family: var(--f-display); font-style: italic;
    font-size: 3.2rem; line-height: 1;
    color: var(--gold); letter-spacing: -0.02em;
}
.crest-year {
    font-family: var(--f-mark); font-size: 0.72rem;
    letter-spacing: 0.5em; margin-top: 1rem;
    color: var(--gold-deep);
}

/* ====== BOTANICAL — large, confident ====== */
.botanical {
    position: absolute; pointer-events: none;
    color: var(--sage);
}

/* ====== FOOTER ====== */
footer.site-footer {
    background: var(--forest-ink); color: var(--on-dark);
    padding: 4rem 1.5rem 3rem; text-align: center;
    position: relative; border-top: 1px solid var(--gold-line);
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-crest { margin: 0 auto 1.5rem; }
.footer-message {
    font-family: var(--f-display); font-style: italic; font-size: 1.1rem;
    color: var(--on-dark-soft); line-height: 1.7; max-width: 560px;
    margin: 0 auto 1.5rem;
}
.footer-contact {
    font-family: var(--f-sans); font-size: 0.78rem;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); padding-top: 1.5rem;
    border-top: 1px solid var(--hair-dark);
    display: inline-block;
}
.footer-contact a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; }
.footer-contact a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ====== UTILITY ====== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* smaller screens */
@media (max-width: 640px) {
    body { font-size: 17px; }
    .block { padding: 4.5rem 1.25rem; }
    .page-hero { padding: 9rem 1.25rem 5rem; }
    .btn { padding: 1rem 1.8rem; font-size: 0.72rem; letter-spacing: 0.24em; }
}
