:root {
    --ink: #1a1a2e;
    --warm: #f5f0eb;
    --accent: #b08d57;
    --accent-light: #d4b98a;
    --muted: #6b6b7b;
    --line: #d6cfc6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Libre Franklin', sans-serif;
    background: var(--warm);
    color: var(--ink);
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

    /* subtle geometric background */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 15% 20%, rgba(176,141,87,0.06) 0%, transparent 50%), radial-gradient(circle at 85% 80%, rgba(176,141,87,0.04) 0%, transparent 50%);
        pointer-events: none;
    }

.card {
    max-width: 640px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(26,26,46,0.04), 0 12px 40px rgba(26,26,46,0.06);
    padding: 3.5rem 3rem;
    position: relative;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* gold top border */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3rem;
    right: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    border-radius: 0 0 2px 2px;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

    .logo span {
        color: var(--accent);
    }

.tagline {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--line);
    margin-bottom: 2rem;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.message {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

    .message:last-of-type {
        margin-bottom: 2.2rem;
    }

.contact-box {
    background: var(--warm);
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 4px 4px 0;
}

    .contact-box p {
        font-size: 0.88rem;
        font-weight: 400;
        color: var(--muted);
        margin-bottom: 0.5rem;
    }

    .contact-box a {
        font-family: 'Libre Franklin', sans-serif;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--accent);
        text-decoration: none;
        letter-spacing: 0.01em;
        transition: color 0.2s;
    }

        .contact-box a:hover {
            color: var(--ink);
        }

.closing {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.6;
}

.signature {
    margin-top: 0.2rem;
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--accent);
}

footer {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--muted);
    opacity: 0.6;
}

@media (max-width: 500px) {
    .card {
        padding: 2.5rem 1.8rem;
    }

        .card::before {
            left: 1.8rem;
            right: 1.8rem;
        }

    .logo {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 1.15rem;
    }
}
