/*
 * Always Unforgettable — root "Coming soon" page.
 * Palette mirrors /memorials/assets/styles/style.css (warm ivory + gold + charcoal).
 * Fonts are self-hosted: /assets/vendors/fonts/fonts.css (Cinzel + Inter).
 * All sizes in rem. Dark mode follows the au_theme cookie (data-theme="dark").
 */

:root {
    --bg: #FAF7F2;
    --bg-alt: #F3EDE4;
    --surface: #FFFFFF;
    --text: #2E2A26;
    --text-muted: #8A8077;
    --gold: #C9A96E;
    --gold-dark: #B08C4F;
    --gold-soft: #F0E6D4;
    --border: #EAE2D7;
    --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
    --bg: #17130F;
    --bg-alt: #1E1914;
    --surface: #26201A;
    --text: #EDE7DD;
    --text-muted: #A79B8C;
    --gold: #C9A96E;
    --gold-dark: #D9BC82;
    --gold-soft: #352D22;
    --border: #3A342C;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 50% 0%, var(--gold-soft) 0%, transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.cs-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.cs-card {
    max-width: 44rem;
    text-align: center;
    opacity: 0;
    transform: translateY(1.25rem);
    animation: cs-reveal 0.8s var(--ease) 0.1s forwards;
}

@keyframes cs-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-logo {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 2rem;
    display: block;
}

.cs-brand {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.cs-divider {
    width: 4rem;
    height: 0.0625rem;
    margin: 0 auto 1.5rem;
    background: var(--gold);
    border: 0;
}

.cs-tagline {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    letter-spacing: 0.12em;
    color: var(--gold-dark);
    margin: 0 0 2rem;
}

.cs-tagline span {
    display: inline-block;
    margin: 0 0.35em;
}

.cs-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.cs-soon {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dark);
    padding: 0.75rem 1.75rem;
    border: 0.0625rem solid var(--gold);
    border-radius: 999rem;
    margin-bottom: 3rem;
}

.cs-notice {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: -1.5rem auto 2.5rem;
}

.cs-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    font-size: 0.9rem;
}

.cs-links a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 0.0625rem solid var(--border);
    padding-bottom: 0.15rem;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cs-links a:hover,
.cs-links a:focus-visible {
    color: var(--gold-dark);
    border-color: var(--gold);
}

.cs-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1.5rem;
}

.cs-theme {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0.0625rem solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.3s var(--ease);
}

.cs-theme:hover,
.cs-theme:focus-visible {
    border-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .cs-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
