/* === Fonts === */
@font-face {
    font-family: 'Candlescript Pro';
    src: url('fonts/Candlescript Pro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === Color Palette (from branding guide) === */
:root {
    --cream: #efecea;
    --yellow-gold: #f6b53a;
    --light-brown: #7a4d30;
    --dark-brown: #5c3a21;
    --divider-color: #945f3c;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--dark-brown);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

/* === Invitation Container === */
.invitation {
    position: relative;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(
        135deg,
        var(--cream) 0%,
        #f0e4da 30%,
        var(--cream) 50%,
        #f0e4da 70%,
        var(--cream) 100%
    );
    padding: 3rem 2.5rem;
    overflow: hidden;
}

/* === Floral Frame === */
.floral-frame {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0.2;
}

/* === Gold Arc === */
.gold-arc {
    position: absolute;
    top: 10%;
    right: -50px;
    width: 200px;
    height: 80%;
    border: 1px solid var(--light-brown);
    border-left: none;
    border-radius: 0 50% 50% 0;
    opacity: 0.3;
}

/* === Typography === */
.greeting {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-align: center;
    margin-bottom: 1rem;
}

.headline-script {
    font-family: 'Quintessential', cursive;
    font-weight: normal;
    font-size: 2rem;
    line-height: 1.4;
    padding: 0.2em 0.1em;
    background: linear-gradient(180deg, var(--yellow-gold), var(--dark-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1.5rem;
}

.subheading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    line-height: 1.6;
    color: var(--light-brown);
}

.body-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: center;
    margin: 1rem 0;
    color: var(--light-brown);
}

.body-text.italic {
    font-style: italic;
}

/* === Dividers === */
.divider {
    width: 60%;
    height: 1px;
    background: var(--divider-color);
    margin: 1.5rem auto;
    opacity: 0.4;
}

/* === Sections === */
.invitation-content,
.voting-methods,
.disclaimer {
    position: relative;
    z-index: 1;
}

.invitation-content {
    margin-bottom: 3rem;
}

/* === Voting Methods Grid === */
.voting-methods {
    margin-bottom: 3rem;
}

.methods-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 1.5rem 0;
}

.method {
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    line-height: 1.5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.method.faded {
    opacity: 0.5;
}

.method-divider {
    width: 40%;
    height: 1px;
    background: var(--divider-color);
    opacity: 0.4;
}

/* === Links === */
a {
    color: var(--dark-brown);
    text-decoration: none;
    border-bottom: 1px solid var(--light-brown);
    transition: color 0.2s;
}

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

/* === Method Links === */
.method-link::before {
    content: '▸';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.3em;
}

.method-link.selected::before {
    transform: rotate(90deg);
}

.method-link {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.20em;
    border-bottom: none;
    transition: font-weight 0.2s;
}

.method-link:hover {
    font-weight: 700;
    color: var(--yellow-gold);
}

.method-link.selected {
    font-weight: 700;
    color: var(--dark-brown);
}

.method-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    width: 0;
    min-width: 100%;
}

.method-info.active {
    max-height: 40rem;
    margin-top: 0.5rem;
}

.method-info ul {
    text-align: left;
    padding-left: 1.2em;
    margin: 0;
}

.method-info li {
    margin-bottom: 0.4em;
}

/* === Footer / Disclaimer === */
.disclaimer {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 0.7;
    margin-top: 2rem;
}

/* === Responsive === */
@media (max-width: 480px) {
    .invitation {
        padding: 2rem 1.5rem;
    }

    .headline-script {
        font-size: 2.5rem;
    }

}
