@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap');

:root {
    --bg: #cfc6b8;
    --paper: #d8cbbb;
    --title-text: #3b0d0d;
    --body-text: #1a1a1a;
    --muted-text: #5f554d;
    --gold: #8c6b3f;
    --ink: #211814;

    --heading-font: 'Playfair Display SC', serif;
    --nav-link-font: 'Playfair Display', serif;
    --letter-font: 'Rock Salt', cursive;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(rgba(207, 198, 184, 0.85), rgba(207, 198, 184, 0.9)), url('photos/girls.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--body-text);
    font-family: var(--nav-link-font);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

/* subtle aged-paper texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.35;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 64px;
    border-bottom: 1px solid rgba(59, 13, 13, 0.18);
}

.logo {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 30px;
    letter-spacing: 3px;
    color: var(--title-text);
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    font-family: var(--nav-link-font);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--ink);
    transition: 0.25s ease;
}

a:hover {
    color: var(--title-text);
    letter-spacing: 3px;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
}

.letter {
    position: relative;
    white-space: pre-line;
    max-width: 680px;
    padding: 60px 70px;
    margin-top: 0;
    background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0.05)), #d8cbbb;
    border: 1px solid rgba(59, 13, 13, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), inset 0 0 100px rgba(59, 13, 13, 0.08);
    font-family: var(--letter-font);
    font-size: 18px;
    line-height: 2.2;
    color: #211814;
    transform: rotate(-0.4deg);
}

.letter::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(140, 107, 63, 0.4);
    pointer-events: none;
}

.letter span:nth-child(odd) {
    transform: translateY(0.3px);
}

.letter span {
    opacity: 0;
    animation: ink 0.45s ease forwards;
}

.letter:hover {
    transform: rotate(0deg) scale(1.01);
    transition: 0.4s ease;
}

@keyframes ink {
    from {
        opacity: 0;
        filter: blur(1.2px);
        text-shadow: 0 0 3px rgba(33, 24, 20, 0.3);
    }

    to {
        opacity: 1;
        filter: blur(0);
        text-shadow: 0 0 0 rgba(33, 24, 20, 0);
    }
}

/* MOBILE */

@media (max-width: 700px) {

    body {
        background-attachment: scroll;
    }

    header {
        padding: 22px 16px;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .logo {
        font-size: clamp(34px, 11vw, 48px);
        letter-spacing: 2px;
    }

    nav ul {
        justify-content: center;
        gap: 28px;
        flex-wrap: wrap;
    }

    a {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .page {
        min-height: auto;
        padding: 34px 0 60px;
    }

    .letter {
        width: calc(100% - 28px);
        margin: 0 auto;
        padding: 38px 24px;
        font-size: 13px;
        line-height: 2.1;
        transform: rotate(0deg);
    }

    .letter::before {
        inset: 12px;
    }

    .letter:hover {
        transform: none;
    }
}