:root {
    --cream: #faf6ef;
    --paper: #fffdf9;
    --ink: #2f2822;
    --ink-soft: #6b5f52;
    --terracotta: #b06a3f;
    --terracotta-deep: #8f5330;
    --wine: #7a2e30;
    --skyline: #6f8fa3;
    --gold: #b8935a;
    --line: #e6dac8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Jost", -apple-system, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
}

h1, h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}

.script {
    font-family: "Petit Formal Script", cursive;
    font-weight: 400;
}

/* --- header --- */

.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
}

.couple-names {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    color: var(--terracotta-deep);
    text-decoration: none;
    letter-spacing: 0.02em;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

/* --- divider: sutil guiño España/Argentina --- */

.ribbon-divider {
    height: 3px;
    width: 72px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wine) 0%, var(--wine) 45%, var(--skyline) 55%, var(--skyline) 100%);
    opacity: 0.75;
}

/* --- hero / monogram --- */

.hero {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
}

.monogram {
    width: 132px;
    height: 132px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--gold);
    outline: 1px solid var(--gold);
    outline-offset: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    position: relative;
}

.monogram .script {
    font-size: 2.6rem;
    color: var(--terracotta-deep);
    line-height: 1;
}

.sprig {
    position: absolute;
    width: 34px;
    height: auto;
    opacity: 0.85;
    color: var(--gold);
}

.sprig.left { left: -14px; bottom: 8px; transform: scaleX(-1) rotate(8deg); }
.sprig.right { right: -14px; bottom: 8px; transform: rotate(8deg); }

.monogram--signature {
    width: 86px;
    height: 86px;
    margin: 0 auto 1.25rem;
    outline-offset: 3px;
}

.monogram--signature .script { font-size: 1.7rem; }
.monogram--signature .sprig { width: 22px; }

.hero .subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 1rem;
}

.hero .date {
    font-size: 1.05rem;
    color: var(--terracotta-deep);
    margin: 0.75rem 0 0.25rem;
}

.hero .countdown {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.hero .countdown strong {
    color: var(--wine);
    font-weight: 600;
}

/* --- cards / sections --- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.card.narrow {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.card-heading .icon {
    width: 22px;
    height: 22px;
    color: var(--terracotta-deep);
    flex-shrink: 0;
}

.card-heading h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--ink);
}

.card .venue {
    font-weight: 600;
    color: var(--terracotta-deep);
    margin: 0 0 0.15rem;
}

.card .address {
    color: var(--ink-soft);
    margin: 0 0 0.6rem;
}

.card a.maps-link {
    color: var(--wine);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.card a.maps-link:hover { opacity: 0.75; }

.card p.body-text {
    color: var(--ink-soft);
    margin: 0;
}

/* --- fotos y placeholders --- */

.photo-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-credit {
    display: block;
    font-size: 0.7rem;
    color: var(--ink-soft);
    margin: -0.75rem 0 1rem;
    text-align: right;
}

.photo-credit a { color: inherit; }

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px dashed var(--gold);
    background:
        repeating-linear-gradient(135deg, rgba(184, 147, 90, 0.07) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, #fdf7ee, var(--cream));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gold);
    text-align: center;
}

.photo-placeholder svg { width: 30px; height: 30px; }

.photo-placeholder span {
    font-size: 0.8rem;
    color: var(--ink-soft);
    letter-spacing: 0.03em;
}

.hero .photo-placeholder,
.hero .photo-frame {
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 0.9rem;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.winter-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line);
}

.winter-note svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* --- buttons --- */

.button {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
}

.button:hover { background: var(--terracotta-deep); }

.button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--terracotta-deep);
    border: 1px solid var(--terracotta);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* --- forms --- */

form label {
    display: block;
    margin-top: 1.1rem;
    font-weight: 500;
    color: var(--ink);
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-top: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
}

input[type="text"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--terracotta);
}

.attending-choice {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-option:has(input:checked) {
    border-color: var(--terracotta);
    background: #fdf3ea;
}

.radio-option input { width: auto; accent-color: var(--terracotta); }

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
}

.checkbox-inline input {
    width: auto;
    margin-top: 0;
    accent-color: var(--terracotta);
}

fieldset.attendee-row {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.1rem;
    margin-bottom: 1rem;
    background: var(--paper);
}

#attendees-section h2 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.15rem;
}

.errors {
    color: var(--wine);
    padding-left: 1.2rem;
}

.messages {
    list-style: none;
    padding: 0;
}

/* --- footer --- */

.site-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: var(--terracotta-deep);
}

.site-footer .script {
    font-size: 1.6rem;
}

@media (max-width: 480px) {
    .monogram { width: 110px; height: 110px; }
    .monogram .script { font-size: 2.1rem; }
}
