/*
Theme Name: Save The Date
Theme URI: https://example.com/save-the-date-theme
Author: Your Name
Description: A simple custom WordPress theme for a Save the Date landing page.
Version: 1.0
Text Domain: save-the-date
*/

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    overscroll-behavior: none;
    transition: background-color 0.5s ease;
    font-family: Arial, sans-serif;
    color: #111;
}

.homepage-hero,
.homepage-hero * {
    color: inherit;
}

/* Romantic font stack */
h1, .hero-date {
    font-family: 'Cormorant Garamond', serif;
}
body, p, .homepage-card, .countdown-unit {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.cky-consent-container,
.cky-notice,
.cky-banner,
.fc-dialog-container,
#cookie-law-info-bar,
#cookie-law-info-again,
.cookie-notice,
.cmplz-cookiebanner,
.cc-window,
.gdpr-cookie-container,
.cookie-banner {
    display: none !important;
}

.save-the-date-page {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(0px, 1vw, 8px);
    box-sizing: border-box;
    height: 100dvh;
    overflow: hidden;
}

.save-the-date-page img {
    width: auto;
    max-width: min(92vw, 700px);
    max-height: min(92vh, 92dvh, 92svh);
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.homepage-hero,
.homepage-hero * {
    font-family: "Brush Script MT", cursive, sans-serif;
}

.homepage-card {
    background: transparent;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: none;
    max-width: 640px;
    width: 100%;
}

.homepage-card--transparent {
    background: transparent;
    box-shadow: none;
    padding: 16px 12px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.homepage-card h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 10px;
}

.homepage-logo {
    width: clamp(180px, 60vw, 420px);
    height: auto;
    margin: 0 auto 12px;
    display: block;
}

.hero-date {
    margin: 8px 0 6px;
}

.countdown-inline {
    font-family: "Brush Script MT", cursive, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
    color: inherit;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 12px;
}

.countdown-inline .sep {
    opacity: 0.5;
}

.homepage-subtitle {
    font-family: "Didot", serif;
    font-size: 0.75rem;
    color: inherit;
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.homepage-light-text,
body.homepage-light-text .homepage-hero,
body.homepage-light-text .homepage-card,
body.homepage-light-text .homepage-card h1,
body.homepage-light-text .countdown-inline,
body.homepage-light-text .homepage-subtitle {
    color: #111;
}

body.homepage-dark-text,
body.homepage-dark-text .homepage-hero,
body.homepage-dark-text .homepage-card,
body.homepage-dark-text .homepage-card h1,
body.homepage-dark-text .countdown-inline,
body.homepage-dark-text .homepage-subtitle {
    color: #fff;
}

/* Ensure image displays on top of colored background */
.save-the-date-page {
    background-clip: padding-box;
}

.countdown-label {
    margin: 0 0 24px;
    font-size: 1rem;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.countdown-unit {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 14px 8px;
}

.countdown-unit span {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
}

.countdown-unit small {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
}

.homepage-link {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: #0b0d40;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 480px) {
    .save-the-date-page {
        padding: 10px;
    }

    .save-the-date-page img {
        max-width: 96vw;
        max-height: 96vh;
    }

    .homepage-card {
        padding: 24px 16px;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
