:root {
    --navy: #0f2a4a;
    --navy-deep: #081d36;
    --gold: #c5a059;
    --gold-soft: #d8bd84;
    --ivory: #fdfbf7;
    --ivory-muted: rgba(253, 251, 247, 0.72);
    --ivory-faint: rgba(253, 251, 247, 0.32);

    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --serif-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: var(--gold);
    color: var(--navy);
    text-shadow: none;
}
::-moz-selection {
    background-color: var(--gold);
    color: var(--navy);
    text-shadow: none;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--sans);
    color: var(--ivory);
    background-color: var(--navy);
    background-image:
        radial-gradient(ellipse at top, rgba(197, 160, 89, 0.10), transparent 55%),
        radial-gradient(ellipse at bottom, rgba(197, 160, 89, 0.06), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(197, 160, 89, 0.025) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, rgba(197, 160, 89, 0.025) 0 1px, transparent 1px 22px);
    pointer-events: none;
    z-index: 0;
}

.frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    border: 1px solid rgba(197, 160, 89, 0.28);
    background: linear-gradient(180deg, rgba(253, 251, 247, 0.02), rgba(253, 251, 247, 0));
    text-align: center;
    backdrop-filter: blur(2px);
}

.ornament-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--gold);
    border-style: solid;
    border-width: 0;
}
.ornament-tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.ornament-tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.ornament-bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.ornament-br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    animation: fadeUp 1s ease-out both;
}

.monogram {
    color: var(--gold);
    width: clamp(72px, 9vw, 96px);
    height: clamp(72px, 9vw, 96px);
    display: block;
}
.monogram svg {
    width: 100%;
    height: 100%;
    display: block;
}

.eyebrow {
    margin: 0;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ivory-muted);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}
.eyebrow-left {
    justify-self: end;
}
.eyebrow-right {
    justify-self: start;
}
.eyebrow-center {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.eyebrow-dot {
    color: var(--gold);
    letter-spacing: 0;
    font-size: 1rem;
    line-height: 1;
    margin: 0 0.45em;
    display: inline-block;
    transform: translateY(-1px);
}
.eyebrow-accent {
    color: var(--gold);
}

.hero {
    animation: fadeUp 1.1s 0.15s ease-out both;
}

.title {
    margin: 0;
    font-family: var(--serif-display);
    font-weight: 400;
    font-size: clamp(3rem, 10vw, 6.25rem);
    line-height: 1;
    letter-spacing: 0.015em;
    color: var(--ivory);
}

.title-line {
    display: block;
}
.title-line + .title-line {
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: clamp(1.5rem, 3vw, 2.25rem) auto;
    max-width: 280px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-diamond {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.08);
}

.tagline {
    margin: 0 0 0.85rem;
    font-family: var(--serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    letter-spacing: 0.04em;
    color: var(--gold-soft);
}

.subtitle {
    margin: 0 auto;
    max-width: 38rem;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.7;
    font-weight: 300;
    color: var(--ivory-muted);
}

.notify {
    margin: clamp(2rem, 4vw, 2.75rem) auto 0;
    max-width: 460px;
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    border: 1px solid rgba(197, 160, 89, 0.38);
    background: rgba(8, 29, 54, 0.4);
    transition: border-color 0.3s ease;
}
.notify:focus-within {
    border-color: var(--gold);
}

.notify input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0.85rem 1rem;
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.notify input::placeholder {
    color: var(--ivory-faint);
    font-style: italic;
}

.notify button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.85rem 1.4rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.notify button:hover,
.notify button:focus-visible {
    background: var(--ivory);
    color: var(--navy);
    transform: translateX(2px);
}
.notify button .btn-icon,
.notify button .btn-spinner {
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.notify button:hover .btn-icon {
    transform: translateX(3px);
}
.notify button .btn-spinner {
    display: none;
    animation: spin 0.9s linear infinite;
    transform-origin: 50% 50%;
}
.notify.is-loading button .btn-icon {
    display: none;
}
.notify.is-loading button .btn-spinner {
    display: inline-block;
}
.notify button:disabled {
    opacity: 0.75;
    cursor: progress;
}
.notify.is-success {
    border-color: var(--gold);
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.notify-status {
    margin: 0.85rem auto 0;
    min-height: 1.1rem;
    max-width: 460px;
    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: transparent;
    transition: color 0.25s ease;
}
.notify-status[data-state="success"] {
    color: var(--gold-soft);
}
.notify-status[data-state="error"] {
    color: #e8b4b4;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notify-note {
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ivory-faint);
}

.meta {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: clamp(1.25rem, 3vw, 1.75rem);
    border-top: 1px solid rgba(197, 160, 89, 0.18);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--ivory-faint);
    animation: fadeUp 1.2s 0.3s ease-out both;
}
.meta p {
    margin: 0;
}
.meta a {
    color: var(--gold-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.meta a:hover,
.meta a:focus-visible {
    color: var(--ivory);
    border-bottom-color: var(--gold);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .frame {
        padding: 2.75rem 1.5rem;
    }
    .eyebrow {
        display: block;
        text-align: center;
        line-height: 1.9;
    }
    .eyebrow-side,
    .eyebrow-center {
        display: inline;
    }
    .notify {
        flex-direction: column;
        padding: 0.5rem;
        background: transparent;
        border: 0;
        gap: 0.6rem;
    }
    .notify input {
        border: 1px solid rgba(197, 160, 89, 0.38);
        background: rgba(8, 29, 54, 0.4);
        padding: 0.95rem 1rem;
        text-align: center;
    }
    .notify button {
        justify-content: center;
        padding: 0.95rem 1.2rem;
    }
    .meta {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand,
    .hero,
    .meta {
        animation: none;
    }
    * {
        transition: none !important;
    }
}
