:root {
    --rose: #e8a0b4;
    --hot: #d63a6e;
    --blush: #f5d0dc;
    --deep: #1a0810;
    --noir: #0f0509;
    --gold: #c8a96e;
    --cream: #f7ede8;
    --smoke: #3a1525;
    --text: #ecddd8;
    --muted: #a07080;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--noir);
    background-image: repeating-linear-gradient(135deg, transparent, transparent 40px,
            rgba(214, 58, 110, 0.015) 40px, rgba(214, 58, 110, 0.015) 41px);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px 80px;
    font-family: 'DM Serif Display', serif;
    color: var(--text);
}

.page {
    max-width: 660px;
    width: 100%;
    animation: rise 1.8s cubic-bezier(.22, 1, .36, 1) forwards;
    opacity: 0;
    transform: translateY(18px);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* top accent */
.top-accent {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--hot), var(--rose), var(--hot), transparent);
}

.book {
    background: linear-gradient(160deg, #1e0a12 0%, #140610 45%, #1c0a14 100%);
    border: 1px solid rgba(232, 160, 180, 0.18);
    border-top: none;
    padding: 0 0 54px;
    position: relative;
    box-shadow:
        0 0 70px rgba(214, 58, 110, 0.1),
        inset 0 0 90px rgba(0, 0, 0, 0.5),
        5px 5px 35px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* ambient glow */
.book::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(214, 58, 110, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.book::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(214, 58, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* noise */
.noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* corner ornaments */
.corner {
    position: absolute;
    width: 42px;
    height: 42px;
    z-index: 2;
    opacity: 0.55;
}

.corner svg {
    width: 100%;
    height: 100%;
}

.c-tl {
    top: 12px;
    left: 12px;
}

.c-tr {
    top: 12px;
    right: 12px;
    transform: scaleX(-1);
}

.c-bl {
    bottom: 12px;
    left: 12px;
    transform: scaleY(-1);
}

.c-br {
    bottom: 12px;
    right: 12px;
    transform: scale(-1);
}

.header {
    text-align: center;
    padding: 48px 40px 28px;
    border-bottom: 1px solid rgba(232, 160, 180, 0.1);
    position: relative;
    z-index: 1;
}

.header-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.52rem;
    letter-spacing: 0.55em;
    color: rgba(232, 160, 180, 0.5);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.header-title {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    color: var(--rose);
    text-shadow: 0 0 20px rgba(214, 58, 110, 0.4);
    line-height: 1.1;
}

.header-sub {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgba(200, 169, 110, 0.5);
    text-transform: uppercase;
    margin-top: 8px;
}

.divider {
    text-align: center;
    padding: 16px 0 8px;
    color: var(--hot);
    opacity: 0.35;
    font-size: 0.75rem;
    letter-spacing: 0.45em;
    position: relative;
    z-index: 1;
}

.entry {
    padding: 28px 46px 10px;
    position: relative;
    z-index: 1;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    opacity: 0.7;
}

.d-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232, 160, 180, 0.35));
}

.d-line.r {
    background: linear-gradient(to left, transparent, rgba(232, 160, 180, 0.35));
}

.d-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--rose);
    text-transform: uppercase;
    white-space: nowrap;
}

.entry-num {
    text-align: center;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.58rem;
    letter-spacing: 0.38em;
    color: rgba(200, 169, 110, 0.55);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.entry-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.05rem, 3vw, 1.28rem);
    font-weight: 400;
    color: rgba(245, 208, 220, 0.85);
    margin-bottom: 34px;
    line-height: 1.5;
}

p {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(0.98rem, 2.4vw, 1.08rem);
    line-height: 1.98;
    color: var(--text);
    margin-bottom: 1.45em;
    text-align: justify;
    text-indent: 2em;
    font-weight: 400;
}

p:first-of-type {
    text-indent: 0;
}

em {
    font-style: italic;
    color: var(--blush);
}

.pull {
    border-left: 2px solid rgba(214, 58, 110, 0.6);
    margin: 2em 0 2em 0.8em;
    padding: 0.65em 1.4em;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.02rem, 2.4vw, 1.14rem);
    color: rgba(232, 160, 180, 0.8);
    line-height: 1.75;
    text-indent: 0;
    background: rgba(214, 58, 110, 0.04);
    border-radius: 0 4px 4px 0;
}

.section-break {
    text-align: center;
    color: var(--hot);
    opacity: 0.4;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.6em;
    padding: 1.4em 0;
}

.closing {
    margin-top: 3.5em;
    text-align: right;
    padding-right: 8px;
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--muted);
    opacity: 0.8;
}

.signature {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.8rem;
    color: var(--rose);
    margin-top: 4px;
    opacity: 0.8;
    text-shadow: 0 0 12px rgba(214, 58, 110, 0.3);
    line-height: 1;
}

.sig-sub {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.48rem;
    letter-spacing: 0.35em;
    color: rgba(200, 169, 110, 0.4);
    text-transform: uppercase;
    margin-top: 6px;
}

.bottom-ornament {
    text-align: center;
    padding-top: 2.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.b-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(214, 58, 110, 0.3));
}

.b-line.r {
    background: linear-gradient(to left, transparent, rgba(214, 58, 110, 0.3));
}

.b-diamond {
    width: 5px;
    height: 5px;
    background: var(--hot);
    transform: rotate(45deg);
    opacity: 0.5;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .entry {
        padding: 24px 22px 10px;
    }

    p {
        text-indent: 1.4em;
    }
}

/* Container de navegação mobile */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.95), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 999;
    pointer-events: none; /* Deixa clicar no texto atrás se não for no botão */
}

.nav-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e8a0b4;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-btn svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px rgba(214, 58, 110, 0.4));
}

/* Efeito ao clicar/tocar */
.nav-btn:active {
    transform: scale(0.9);
    opacity: 0.7;
}

/* Ajuste para telas grandes (Desktop) */
@media (min-width: 1024px) {
    .mobile-nav {
        background: none;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        padding: 0 40px;
    }
    .nav-btn span {
        display: none; /* Esconde o texto no PC, deixa só a seta */
    }
    .nav-btn svg {
        width: 50px;
        height: 50px;
    }
}