/* ==========================================================================
   Template 3 – Art Deco / Gatsby
   Deep navy & antique gold, geometric ornaments, glamorous elegance.
   Reuses self-hosted Great Vibes + Cormorant Garamond (SIL OFL).
   ========================================================================== */

/* Great Vibes – Regular 400 */
@font-face {
    font-family: 'Great Vibes';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/GreatVibes-Regular.woff2') format('woff2');
}

/* Cormorant Garamond – Light 300, latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Light-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond – Light 300, latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Light-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond – Regular 400, latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond – Regular 400, latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    --deco-gold:       #b8963e;
    --deco-gold-light: #d4b866;
    --deco-gold-dim:   #96793a;
    --deco-navy:       #1a1a2e;
    --deco-navy-deep:  #0f1020;
    --deco-ivory:      #faf6ef;
    --deco-ivory-mid:  #f0ebe0;
    --deco-text:       #2a2a3e;
    --deco-text-soft:  #5a5a6e;
}

/* ==========================================================================
   General Styles
   ========================================================================== */

body {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-variant-numeric: lining-nums tabular-nums;
    background-color: var(--deco-ivory);
    color: var(--deco-text);
    margin: 0;
    line-height: 1.7;
    font-size: 1.1rem;
}

a {
    color: var(--deco-gold-dim);
}

a:hover {
    color: var(--deco-gold);
}

a:visited {
    color: var(--deco-gold-dim);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* ==========================================================================
   Header – Navy with gold accents and geometric ornament lines
   ========================================================================== */

header {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(160deg, var(--deco-navy) 0%, var(--deco-navy-deep) 50%, var(--deco-navy) 100%);
    color: #e8dece;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--deco-gold);
}

/* Top and bottom geometric ornament lines */
header::before,
header::after {
    content: '\25C6\2003\2014\2014\2014\2003\25C6';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--deco-gold);
    font-size: 0.75em;
    letter-spacing: 0.15em;
    opacity: 0.6;
    white-space: nowrap;
}

header::before {
    top: 28px;
}

header::after {
    bottom: 28px;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5em;
    margin: 0;
    font-weight: 400;
    color: var(--deco-gold-light);
    letter-spacing: 0.03em;
    text-shadow: 0 2px 20px rgba(184, 150, 62, 0.3);
}

header p {
    font-size: 1.15em;
    color: #b8ae9a;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ==========================================================================
   Countdown – Boxed golden numbers
   ========================================================================== */

#countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 60px 0 70px;
    font-size: 1.3em;
    font-weight: 300;
}

#countdown > div {
    text-align: center;
    padding: 18px 22px 14px;
    min-width: 85px;
    border: 1px solid rgba(184, 150, 62, 0.3);
    background: var(--deco-ivory-mid);
    position: relative;
}

/* Corner accents on countdown boxes */
#countdown > div::before,
#countdown > div::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--deco-gold);
    border-style: solid;
}

#countdown > div::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

#countdown > div::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

#countdown span {
    display: block;
    font-size: 2em;
    font-weight: 400;
    line-height: 1.2;
    color: var(--deco-gold);
}

/* ==========================================================================
   Sections – Art Deco diamond dividers
   ========================================================================== */

section {
    padding: 80px 20px;
    border-bottom: none;
    position: relative;
}

/* Diamond ornament between sections */
section::after {
    content: '\25C7\2003\25C6\2003\25C7';
    display: block;
    text-align: center;
    color: var(--deco-gold);
    font-size: 0.85em;
    margin-top: 70px;
    letter-spacing: 0.3em;
    opacity: 0.5;
}

section:last-child::after {
    display: none;
}

h2 {
    font-family: 'Great Vibes', cursive;
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--deco-gold);
    text-wrap: balance;
}

/* Gold gradient line beneath headings */
h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--deco-gold), transparent);
    margin: 15px auto 45px;
}

h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.15em;
    margin-bottom: 8px;
    color: var(--deco-text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ==========================================================================
   Couple & Location
   ========================================================================== */

.couple, .location {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.couple > div, .location > div {
    flex: 1;
    text-align: center;
}

.couple img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px var(--deco-gold),
        0 0 0 7px var(--deco-ivory),
        0 0 20px rgba(184, 150, 62, 0.15);
}

.location iframe {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(184, 150, 62, 0.25);
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================================================
   Gallery – Clean grid with gold border accents
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(184, 150, 62, 0.2);
}

/* ==========================================================================
   Footer – Matching navy band
   ========================================================================== */

footer {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(160deg, var(--deco-navy) 0%, var(--deco-navy-deep) 50%, var(--deco-navy) 100%);
    color: #b8ae9a;
    font-weight: 300;
    border-top: 3px solid var(--deco-gold);
}

footer a,
footer a:visited {
    color: var(--deco-gold-light);
    text-decoration: underline;
}

footer a:focus-visible {
    outline: 2px solid var(--deco-gold-light);
    outline-offset: 2px;
    border-radius: 2px;
}

.language-selector {
    margin-bottom: 8px;
}

.language-selector a {
    text-decoration: none;
    font-size: 1.4em;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.language-selector a:hover {
    transform: scale(1.2);
}

.template-selector {
    font-size: 0.85em;
    opacity: 0.7;
}

.template-selector a {
    text-decoration: none;
    color: var(--deco-gold-light);
    border-bottom: 1px dotted var(--deco-gold-light);
}

.template-selector a:hover {
    border-bottom-style: solid;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .couple, .location {
        flex-direction: column;
        align-items: center;
    }

    .couple > div, .location > div {
        width: 100%;
    }

    header {
        padding: 70px 20px;
    }

    header h1 {
        font-size: 3.2em;
    }

    header p {
        letter-spacing: 0.1em;
    }

    #countdown > div {
        min-width: 70px;
        padding: 14px 16px 10px;
    }
}

/* ==========================================================================
   Dark Mode – Deeper navy, brighter gold
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --deco-gold:       #c9a84c;
        --deco-gold-light: #e0c878;
        --deco-gold-dim:   #b89840;
        --deco-navy:       #0a0a16;
        --deco-navy-deep:  #060610;
        --deco-ivory:      #0f0f1a;
        --deco-ivory-mid:  #16162a;
        --deco-text:       #e0d8c8;
        --deco-text-soft:  #a0988a;
    }

    html {
        color-scheme: dark;
    }

    body {
        background-color: var(--deco-ivory);
        color: var(--deco-text);
    }

    a {
        color: var(--deco-gold-light);
    }

    a:hover {
        color: #ecd888;
    }

    a:visited {
        color: var(--deco-gold);
    }

    header {
        background: linear-gradient(160deg, var(--deco-navy) 0%, var(--deco-navy-deep) 50%, var(--deco-navy) 100%);
    }

    header h1 {
        color: var(--deco-gold-light);
        text-shadow: 0 2px 30px rgba(212, 184, 102, 0.4);
    }

    header p {
        color: #908878;
    }

    h2 {
        color: var(--deco-gold-light);
    }

    h3 {
        color: #d0c8b8;
    }

    #countdown > div {
        background: var(--deco-ivory-mid);
        border-color: rgba(184, 150, 62, 0.2);
    }

    .couple img {
        box-shadow:
            0 0 0 3px var(--deco-gold),
            0 0 0 7px var(--deco-ivory),
            0 0 25px rgba(184, 150, 62, 0.25);
    }

    .gallery img {
        background-color: var(--deco-ivory-mid);
        border-color: rgba(184, 150, 62, 0.12);
    }

    .location iframe {
        border-color: rgba(184, 150, 62, 0.15);
    }

    footer {
        background: linear-gradient(160deg, #060610 0%, #04040a 50%, #060610 100%);
        color: #807868;
    }
}
