:root {
    --navy: #1d4f72;
    --navy-dark: #163c57;
    --green: #9fba5f;
    --text: #2b3a44;
    --card: rgba(255, 255, 255, 0.88);
}

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

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: #cfe3ee url("../images/field-near-spruce-meadows.jpg") center 30% / cover no-repeat;
    color: var(--text);
    font-family: "Lora", Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(24px, 8vh, 96px) 16px 48px;
}

.note {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 72px) clamp(28px, 4vw, 40px);
    background: var(--card);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(22, 60, 87, 0.22), 0 2px 6px rgba(22, 60, 87, 0.1);
    text-align: center;
    animation: rise 0.9s ease-out both;
}

.note__body,
.note__signature {
    text-align: left;
}

.note__logo {
    display: block;
    width: min(280px, 80%);
    height: auto;
    margin: 0 auto;
}

.note__body {
    margin-top: clamp(20px, 4vw, 28px);
    padding-top: clamp(20px, 4vw, 28px);
    border-top: 1px solid rgba(159, 186, 95, 0.55);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height: 1.75;
}

.note__body p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.note__body strong {
    color: var(--navy);
    font-weight: 500;
}

.note__greeting {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6em;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.note__signature {
    margin: 0.25em 0 0;
    font-family: "Parisienne", cursive;
    font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem);
    line-height: 1;
    color: var(--navy-dark);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .note {
        animation: none;
    }
}
