/* Reset */

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

/* Palette */

:root {
    --bg-dark: #050608;
    --bg-deep: #0b1018;
    --bg-glow: #162033;

    --surface-top: rgba(18, 24, 35, 0.95);
    --surface-bottom: rgba(10, 12, 18, 0.95);

    --gold: #d8b16a;
    --gold-bright: #f1d79a;
    --gold-dim: #705b36;

    --text-main: #d5dae2;
    --text-muted: #8d96a7;
    --text-bright: #f5efe5;

    --blue-glow: #5f8ecf;
}

/* Base */

html,
body {
    height: 100%;
}

body {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(95, 142, 207, 0.14),
            transparent 35%
        ),
        radial-gradient(
            circle at center,
            var(--bg-glow),
            var(--bg-dark) 75%
        );

    font-family: Georgia, "Times New Roman", serif;
    color: var(--text-main);
}

/* Atmosphere */

.mist {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            rgba(216, 177, 106, 0.05),
            transparent 70%
        );

    pointer-events: none;
}

/* Main Frame */

.frame {
    position: relative;

    width: 100%;
    max-width: 620px;

    padding: 5rem 4rem;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            var(--surface-top),
            var(--surface-bottom)
        );

    border: 1px solid rgba(216, 177, 106, 0.15);

    backdrop-filter: blur(12px);

    box-shadow:
        0 0 0 1px rgba(216, 177, 106, 0.05),
        0 50px 120px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(95, 142, 207, 0.08);

    animation: fadeIn 1.6s cubic-bezier(.25,1,.5,1) both;
}

.frame::before {
    content: "";

    position: absolute;

    inset: 14px;

    border: 1px solid rgba(216, 177, 106, 0.15);

    pointer-events: none;
}

.frame::after {
    content: "";

    position: absolute;

    inset: -60px;

    z-index: -1;

    background:
        radial-gradient(
            circle,
            rgba(216, 177, 106, 0.08),
            transparent 65%
        );
}

/* Crest */

.crest {
    width: 72px;
    height: 72px;

    margin: 0 auto 3rem;

    color: var(--gold-bright);

    filter:
        drop-shadow(0 0 10px rgba(216,177,106,.25))
        drop-shadow(0 0 25px rgba(216,177,106,.15));
}

/* Typography */

h1 {
    color: var(--text-bright);

    font-size: 1.5rem;
    font-weight: 400;

    letter-spacing: 0.22em;
    text-transform: uppercase;

    line-height: 1.6;

    text-shadow:
        0 0 12px rgba(241,215,154,.08);
}

.divider {
    width: 60%;

    height: 1px;

    border: none;

    margin: 2.5rem auto;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(216,177,106,.4),
            transparent
        );
}

p {
    font-size: 1rem;

    line-height: 1.9;

    letter-spacing: 0.03em;

    color: var(--text-muted);
}

/* Footer */

.domain {
    margin-top: 4rem;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.35em;
    text-transform: uppercase;

    color: var(--gold-dim);
}

.cursor {
    display: inline-block;

    width: 1px;
    height: 0.9em;

    margin-left: 4px;

    vertical-align: middle;

    background: var(--gold);

    animation: blink 1.6s infinite;
}

/* Animations */

@keyframes blink {
    0%,100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Mobile */

@media (max-width: 640px) {
    .frame {
        padding: 3rem 2rem;
    }

    h1 {
        font-size: 1.15rem;
    }
}
