/* Explain: Styles for reusable UI components like cards and forms. */
.site-header {
    background: linear-gradient(180deg, var(--nav-bg), var(--glass-bg));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid var(--background-color);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 700px);
    min-height: 480px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 560px;
    max-width: 440px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.25rem;
    bottom: 3.5rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.countdown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    background: var(--glass-bg);
    padding: 0.85rem 0.4rem;
    box-shadow: var(--shadow-soft);
}

.countdown-value {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.story-detail,
.info-card,
.timeline-item,
.guest-chip {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.story-detail,
.info-card {
    border-radius: 1.6rem;
    padding: 1.25rem;
}

.story-detail span {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.story-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    border-radius: 1.6rem;
    padding: 1.15rem 1.25rem;
}

.timeline-marker {
    display: flex;
    min-width: 3.6rem;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.2rem;
}

.timeline-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.4rem var(--terracotta-soft);
}

.timeline-time {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-card {
    border-radius: 2.2rem;
    padding: 1.6rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.news-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px);
}

.news-date {
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.news-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.9;
}

.news-body p {
    margin-bottom: 1.25rem;
}

.news-body p:last-child {
    margin-bottom: 0;
}

.news-body h2,
.news-body h3 {
    margin: 2rem 0 0.85rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
}

.news-body h2 {
    font-size: 1.6rem;
}

.news-body h3 {
    font-size: 1.3rem;
}

.news-body ul,
.news-body ol {
    margin: 0 0 1.25rem 1.35rem;
}

.news-body ul {
    list-style: disc;
}

.news-body ol {
    list-style: decimal;
}

.news-body li {
    margin-bottom: 0.5rem;
}

.news-body a {
    color: var(--sage-dark);
    text-decoration: underline;
}

.news-body img {
    margin: 1.5rem 0;
    border-radius: 1.5rem;
}

.news-body strong {
    color: var(--text-color);
}

.news-body blockquote {
    margin: 1.5rem 0;
    padding-left: 1.1rem;
    border-left: 2px solid var(--accent-color);
    font-style: italic;
}

.venue-card,
.rsvp-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: var(--primary-color);
}

.form-status.error {
    color: var(--logo-subtitle-color);
}

.guest-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    color: var(--text-color);
    font-size: 0.82rem;
}

.guest-chip i {
    color: var(--accent-color);
    font-size: 0.7rem;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 480px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 430px);
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }
}