
/* ==============================================
   PARA YAS, COM AMOR.
   ESTILO COMPLETO DO SITE

   Tema: Preto, vinho e rosa
   Assinatura: vwxsz / x87
============================================== */


/* ==============================================
   01 — CORES E CONFIGURAÇÕES
============================================== */

:root {
    --background: #0b080b;
    --surface: #151015;
    --surface-light: #1e151c;

    --wine: #762c43;
    --wine-dark: #451a2a;
    --rose: #c78398;
    --rose-light: #e6b4c3;

    --white: #f5e9ed;
    --muted: #b3a0a8;
    --subtle: #82717a;

    --border: rgba(199, 131, 152, 0.19);

    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', Arial, sans-serif;

    --radius: 16px;
    --transition: 0.3s ease;
}


/* ==============================================
   02 — ESTILO GLOBAL
============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--white);

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(118, 44, 67, 0.15),
            transparent 55%
        );
}

main,
footer {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--wine);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--rose-light);
    outline-offset: 5px;
}

section,
article {
    scroll-margin-top: 105px;
}


/* ==============================================
   03 — BARRA DE ROLAGEM
============================================== */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #0b080b;
}

::-webkit-scrollbar-thumb {
    background: #472330;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wine);
}


/* ==============================================
   04 — ILUMINAÇÃO DO FUNDO
============================================== */

.background-glow {
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(118, 44, 67, 0.11),
            transparent 34%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(118, 44, 67, 0.09),
            transparent 38%
        );
}


/* ==============================================
   05 — PARTÍCULAS E ESTRELAS
============================================== */

.stars {
    position: fixed;
    inset: -40px;

    pointer-events: none;
    z-index: 0;

    opacity: 0.47;

    background-image:
        radial-gradient(
            1px 1px at 30px 50px,
            rgba(255, 223, 233, 0.75) 98%,
            transparent
        ),

        radial-gradient(
            1px 1px at 160px 120px,
            rgba(199, 131, 152, 0.75) 98%,
            transparent
        ),

        radial-gradient(
            1.5px 1.5px at 220px 20px,
            rgba(255, 255, 255, 0.5) 98%,
            transparent
        );

    background-size:
        290px 240px,
        390px 310px,
        470px 370px;

    animation: starsMove 35s linear infinite;
}

@keyframes starsMove {
    0% {
        transform: translateY(0);
        opacity: 0.28;
    }

    50% {
        opacity: 0.55;
    }

    100% {
        transform: translateY(-35px);
        opacity: 0.28;
    }
}


/* ==============================================
   06 — MENU SUPERIOR
============================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 16px 6%;

    background: rgba(11, 8, 11, 0.87);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.logo {
    white-space: nowrap;

    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1.5px;

    color: var(--white);
}

.logo span {
    color: var(--rose);
    font-weight: 400;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav a {
    font-size: 13px;
    letter-spacing: 0.2px;
    color: var(--muted);

    transition: color var(--transition);
}

.navbar nav a:hover {
    color: var(--rose-light);
}


/* BOTÃO DE MÚSICA */

#musicButton {
    padding: 10px 18px;

    background: transparent;

    color: var(--rose);
    font-size: 12px;

    border: 1px solid var(--border);
    border-radius: 50px;

    transition: all var(--transition);
}

#musicButton:hover {
    color: white;
    background: var(--wine);
    border-color: var(--wine);
}

#musicButton[aria-pressed="true"] {
    background: var(--wine);
    border-color: var(--rose);
    color: white;
}


/* ==============================================
   07 — PÁGINA INICIAL
============================================== */

.hero {
    position: relative;

    min-height: 760px;
    min-height: min(850px, 100svh);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 110px 24px 100px;

    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";

    position: absolute;

    width: min(720px, 95vw);
    height: min(720px, 95vw);

    left: 50%;
    top: 46%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(118, 44, 67, 0.20) 0%,
        rgba(118, 44, 67, 0.06) 40%,
        transparent 72%
    );

    z-index: -1;
}

.hero > * {
    position: relative;
    z-index: 1;
}


/* PEQUENOS TÍTULOS */

.eyebrow {
    color: var(--rose);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* SÍMBOLO DECORATIVO */

.rose-symbol {
    margin-top: 28px;
    margin-bottom: 10px;

    color: var(--rose);

    font-size: 58px;

    text-shadow:
        0 0 35px rgba(199, 131, 152, 0.35);

    animation: roseFloat 5s ease-in-out infinite;
}

@keyframes roseFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* TÍTULO PRINCIPAL */

.hero h1 {
    margin-top: 5px;

    font-size: clamp(58px, 9vw, 110px);
    font-weight: 400;

    line-height: 1.14;
    letter-spacing: -2px;

    color: var(--white);

    animation: heroAppear 1.4s ease both;
}

.hero h1 em {
    color: var(--rose);
    font-weight: 400;
}

@keyframes heroAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* DESCRIÇÃO PRINCIPAL */

.hero-description {
    max-width: 570px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 15px;
    line-height: 2;

    animation: fadeUp 1.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* BOTÃO PRINCIPAL */

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin-top: 45px;
    padding: 15px 32px;

    background: var(--wine);

    color: var(--white);

    font-size: 13px;
    font-weight: 500;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;

    box-shadow:
        0 12px 35px rgba(118, 44, 67, 0.15);

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.primary-button:hover {
    transform: translateY(-3px);

    background: #923c58;

    box-shadow:
        0 15px 40px rgba(118, 44, 67, 0.28);
}

.hero-signature {
    margin-top: 45px;

    color: var(--subtle);

    font-family: var(--font-title);
    font-size: 15px;
    font-style: italic;
}


/* ==============================================
   08 — INTRODUÇÃO
============================================== */

.intro {
    max-width: 920px;

    margin: 0 auto;
    padding: 120px 25px;

    text-align: center;
}

.intro::before {
    content: "";

    display: block;

    width: 65px;
    height: 1px;

    margin: 0 auto 55px;

    background: var(--wine);
}

.intro h2 {
    max-width: 720px;

    margin: 25px auto 30px;

    font-size: clamp(35px, 5vw, 54px);
    font-weight: 400;

    line-height: 1.35;
}

.intro > p:last-child {
    max-width: 660px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 15px;
    line-height: 2.1;
}


/* ==============================================
   09 — LISTA DOS CAPÍTULOS
============================================== */

.chapter-index {
    max-width: 980px;

    margin: 0 auto;
    padding: 110px 25px 130px;

    text-align: center;
}

.chapter-index h2 {
    margin: 20px 0 55px;

    font-size: clamp(36px, 5vw, 55px);
    font-weight: 400;
}

.chapter-list {
    display: flex;
    flex-direction: column;

    text-align: left;

    border-top: 1px solid var(--border);
}

.chapter-link {
    display: flex;
    align-items: center;

    gap: 30px;

    padding: 30px 24px;

    border-bottom: 1px solid var(--border);

    transition:
        background var(--transition),
        padding var(--transition);
}

.chapter-link:hover {
    background: rgba(118, 44, 67, 0.11);
    padding-left: 35px;
}

.chapter-link > span {
    min-width: 45px;

    color: var(--rose);

    font-family: var(--font-title);
    font-size: 25px;
    font-style: italic;
}

.chapter-link > div {
    flex: 1;
    min-width: 0;
}

.chapter-link h3 {
    margin-bottom: 6px;

    color: var(--white);

    font-size: 25px;
    font-weight: 400;

    transition: color var(--transition);
}

.chapter-link:hover h3 {
    color: var(--rose-light);
}

.chapter-link p {
    color: var(--subtle);

    font-size: 13px;
}

.chapter-link b {
    color: var(--rose);

    font-size: 22px;
    font-weight: 400;

    transition: transform var(--transition);
}

.chapter-link:hover b {
    transform: translate(4px, -4px);
}


/* ==============================================
   10 — CAPÍTULOS / CARTAS
============================================== */

.letter-section {
    max-width: 920px;

    margin: 0 auto;
    padding: 115px 25px 105px;

    text-align: center;
}

.letter-section > h2 {
    margin: 22px auto 20px;

    font-size: clamp(42px, 7vw, 68px);
    font-weight: 400;

    line-height: 1.25;
    letter-spacing: -1px;
}

.letter-intro {
    margin: 0 auto 55px;

    color: var(--rose);

    font-family: var(--font-title);
    font-size: 18px;
    font-style: italic;

    line-height: 1.8;
}


/* CONTEÚDO DA CARTA */

.letter-content {
    padding: 58px 58px 48px;

    background: linear-gradient(
        145deg,
        rgba(30, 21, 28, 0.97),
        rgba(19, 14, 19, 0.98)
    );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.13);

    text-align: left;
}

.letter-content p {
    margin-bottom: 27px;

    color: #c3b4bc;

    font-size: 15px;
    line-height: 2.12;
}

.letter-content p:last-child {
    margin-bottom: 0;
}


/* SUBTÍTULOS DENTRO DAS CARTAS */

.letter-content > h3 {
    margin: 58px 0 28px;

    color: var(--white);

    font-family: var(--font-title);
    font-size: clamp(26px, 4vw, 33px);
    font-weight: 400;

    line-height: 1.35;
}


/* CITAÇÕES, CASO ADICIONE ALGUMA */

.story-quote {
    margin: 35px 0;
    padding: 22px 28px;

    background: rgba(118, 44, 67, 0.10);

    border-left: 3px solid var(--rose);

    color: var(--rose-light);

    font-family: var(--font-title);
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
}


/* ==============================================
   11 — MOMENTOS DE DESTAQUE
============================================== */

.yas-reveal {
    position: relative;

    margin: 50px 0;
    padding: 65px 20px;

    text-align: center;

    background: rgba(118, 44, 67, 0.07);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.yas-reveal p {
    margin: 0 auto 15px;

    color: var(--white);

    font-family: var(--font-title);
    font-size: 21px;
    line-height: 1.7;
}

.yas-reveal h3,
.yas-reveal strong {
    display: block;

    margin: 15px 0 0;

    color: var(--rose);

    font-family: var(--font-title);
    font-size: clamp(39px, 7vw, 72px);
    font-weight: 400;
    font-style: italic;

    line-height: 1.3;

    text-shadow:
        0 0 35px rgba(199, 131, 152, 0.17);

    animation: yasAppear 2s ease both;
}

@keyframes yasAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==============================================
   12 — FINAL DAS CARTAS
============================================== */

.chapter-ending {
    margin-top: 45px !important;

    padding: 25px 8px 0;

    color: var(--rose-light) !important;

    font-family: var(--font-title);
    font-size: 19px !important;
    font-style: italic;

    line-height: 2 !important;
}

.next-chapter {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin-top: 45px;
    padding: 14px 28px;

    color: var(--white);

    font-size: 13px;

    background: rgba(118, 44, 67, 0.07);

    border: 1px solid var(--border);
    border-radius: 50px;

    transition:
        background var(--transition),
        transform var(--transition),
        border-color var(--transition);
}

.next-chapter:hover {
    background: var(--wine);
    border-color: var(--wine);

    transform: translateY(-3px);
}


/* ASSINATURA */

.letter-signature {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    margin-top: 50px;
}

.letter-signature span {
    color: var(--muted);

    font-family: var(--font-title);
    font-size: 17px;
    font-style: italic;
}

.letter-signature h3,
.letter-signature strong {
    margin: 0;

    color: var(--rose);

    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 400;
}


/* ==============================================
   13 — CAPÍTULO 01: CONHECENDO YAS
============================================== */

#capitulo1 .yas-reveal {
    padding-top: 75px;
    padding-bottom: 75px;
}

#capitulo1 .yas-reveal h3 {
    font-size: clamp(65px, 10vw, 105px);
}


/* ==============================================
   14 — CAPÍTULO 05: PROMESSAS
============================================== */

#capitulo5 .letter-content {
    border-color: rgba(199, 131, 152, 0.24);
}

#capitulo5 .chapter-ending {
    text-align: center;
}


/* ==============================================
   15 — CAPÍTULO 06: ADEUS, ANTIGO X87
============================================== */

#capitulo6 {
    position: relative;
}

#capitulo6 > h2 {
    color: var(--rose-light);
}

#capitulo6 .letter-content {
    background: linear-gradient(
        160deg,
        rgba(33, 20, 29, 0.98),
        rgba(15, 10, 15, 0.99)
    );

    border-color: rgba(199, 131, 152, 0.28);
}

#capitulo6 .yas-reveal {
    margin: 65px 0;

    padding: 85px 22px;

    background: linear-gradient(
        135deg,
        rgba(118, 44, 67, 0.21),
        rgba(11, 8, 11, 0.5)
    );

    border: 1px solid rgba(199, 131, 152, 0.25);
    border-radius: 14px;

    box-shadow:
        inset 0 0 75px rgba(118, 44, 67, 0.04),
        0 0 55px rgba(118, 44, 67, 0.05);
}

#capitulo6 .yas-reveal h3 {
    font-size: clamp(36px, 6vw, 58px);

    letter-spacing: -0.5px;
}

#capitulo6 .chapter-ending {
    margin-top: 55px !important;
    padding: 30px 12px 10px;

    text-align: center;

    color: var(--rose-light) !important;

    border-top: 1px solid var(--border);
}


/* ==============================================
   16 — EPÍLOGO: CARTA FINAL
============================================== */

#epilogo {
    padding-top: 140px;
    padding-bottom: 135px;
}

#epilogo > h2 {
    color: var(--rose-light);
}

#epilogo .letter-content {
    background: linear-gradient(
        160deg,
        rgba(39, 21, 31, 0.88),
        rgba(19, 14, 19, 0.99)
    );

    border-color: rgba(199, 131, 152, 0.35);
}

#epilogo .chapter-ending {
    font-size: 22px !important;
    text-align: center;
}

#epilogo .letter-signature {
    margin-top: 70px;
}

#epilogo .letter-signature h3 {
    font-size: 36px;
}


/* ==============================================
   17 — ÁREA DE LEMBRANÇAS
============================================== */

.memories {
    max-width: 1100px;

    margin: 0 auto;
    padding: 130px 25px 150px;

    text-align: center;
}

.memories h2 {
    margin: 20px 0;

    font-size: clamp(40px, 6vw, 62px);
    font-weight: 400;
}

.memories > p:not(.eyebrow) {
    max-width: 550px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 15px;
    line-height: 2;
}

.memory-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-top: 65px;
}

.memory-grid figure {
    min-width: 0;

    text-align: center;
}

.memory-photo {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    aspect-ratio: 4 / 5;

    background: linear-gradient(
        145deg,
        #281820,
        #130e13 65%,
        #2a1720
    );

    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--rose);
    font-size: 44px;

    overflow: hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.memory-photo::before {
    content: "";

    position: absolute;
    inset: 12px;

    border: 1px solid rgba(199, 131, 152, 0.08);
    border-radius: 7px;

    pointer-events: none;
}

.memory-grid figure:hover .memory-photo {
    transform: translateY(-7px);

    border-color: var(--rose);

    box-shadow:
        0 18px 50px rgba(118, 44, 67, 0.13);
}

.memory-grid figcaption {
    margin-top: 20px;

    color: var(--muted);

    font-family: var(--font-title);
    font-size: 17px;
    font-style: italic;
}


/* ==============================================
   18 — ENCERRAMENTO
============================================== */

.closing {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 590px;

    padding: 120px 25px;

    text-align: center;

    background: radial-gradient(
        ellipse at center,
        rgba(118, 44, 67, 0.13),
        transparent 70%
    );

    border-top: 1px solid var(--border);
}

.closing h2 {
    max-width: 750px;

    margin: 25px auto;

    font-size: clamp(38px, 6vw, 68px);
    font-weight: 400;

    line-height: 1.3;
}

.closing > p:not(.eyebrow) {
    color: var(--muted);

    font-family: var(--font-title);
    font-size: 18px;
    font-style: italic;
}

.closing .primary-button {
    margin-top: 40px;
}


/* ==============================================
   19 — RODAPÉ
============================================== */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 28px 6%;

    border-top: 1px solid var(--border);

    background: #090609;
}

footer p {
    color: var(--rose);

    font-family: var(--font-title);
    font-size: 15px;
    font-style: italic;
}

footer span {
    color: var(--subtle);

    font-size: 12px;
}


/* ==============================================
   20 — ANIMAÇÕES SUAVES
============================================== */

@keyframes gentleGlow {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(199, 131, 152, 0.13);
    }

    50% {
        text-shadow:
            0 0 35px rgba(199, 131, 152, 0.28);
    }
}

#capitulo6 .yas-reveal h3 {
    animation:
        yasAppear 2s ease both,
        gentleGlow 5s ease-in-out 2s infinite;
}


/* ==============================================
   21 — TABLETS
============================================== */

@media (max-width: 900px) {

    .navbar {
        padding: 16px 4%;
    }

    .navbar nav {
        gap: 18px;
    }

    .chapter-index,
    .intro,
    .letter-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .letter-content {
        padding: 42px 35px;
    }

    .memory-grid {
        gap: 16px;
    }
}


/* ==============================================
   22 — CELULARES
============================================== */

@media (max-width: 650px) {

    html {
        scroll-padding-top: 140px;
    }

    section,
    article {
        scroll-margin-top: 145px;
    }

    .navbar {
        flex-wrap: wrap;

        gap: 14px;

        min-height: auto;
        padding: 14px 18px;
    }

    .logo {
        font-size: 15px;
    }

    .navbar nav {
        order: 3;

        display: flex;
        justify-content: center;

        width: 100%;

        gap: 26px;

        padding-top: 10px;

        border-top: 1px solid var(--border);
    }

    .navbar nav a {
        font-size: 12px;
    }

    #musicButton {
        margin-left: auto;

        padding: 8px 13px;

        font-size: 11px;
    }

    /* CAPA */

    .hero {
        min-height: 690px;

        padding: 95px 23px 85px;
    }

    .hero .eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .rose-symbol {
        font-size: 48px;
    }

    .hero h1 {
        font-size: clamp(55px, 12vw, 75px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.9;
    }

    /* INTRODUÇÃO */

    .intro {
        padding: 90px 23px;
    }

    .intro h2 {
        font-size: 37px;
    }

    .intro > p:last-child {
        font-size: 14px;
    }

    /* LISTA DE CAPÍTULOS */

    .chapter-index {
        padding: 85px 16px 100px;
    }

    .chapter-index h2 {
        font-size: 38px;
    }

    .chapter-link {
        gap: 15px;
        padding: 24px 10px;
    }

    .chapter-link:hover {
        padding-left: 15px;
    }

    .chapter-link > span {
        min-width: 34px;
        font-size: 20px;
    }

    .chapter-link h3 {
        font-size: 21px;
    }

    .chapter-link p {
        font-size: 12px;
    }

    .chapter-link b {
        font-size: 18px;
    }

    /* CARTAS */

    .letter-section {
        padding: 90px 15px;
    }

    .letter-section > h2 {
        font-size: clamp(38px, 9vw, 50px);
    }

    .letter-intro {
        margin-bottom: 38px;

        font-size: 16px;
    }

    .letter-content {
        padding: 29px 23px;

        border-radius: 12px;
    }

    .letter-content p {
        font-size: 14px;
        line-height: 2;
        margin-bottom: 23px;
    }

    .letter-content > h3 {
        margin: 45px 0 23px;
        font-size: 27px;
    }

    .yas-reveal {
        margin: 35px 0;
        padding: 50px 12px;
    }

    .yas-reveal p {
        font-size: 18px;
    }

    .yas-reveal h3,
    .yas-reveal strong {
        font-size: 43px;
    }

    #capitulo1 .yas-reveal h3 {
        font-size: 68px;
    }

    #capitulo6 .yas-reveal {
        padding: 55px 15px;
    }

    #capitulo6 .yas-reveal h3 {
        font-size: 38px;
    }

    .chapter-ending {
        padding: 20px 2px 0;
        font-size: 17px !important;
    }

    .letter-signature h3 {
        font-size: 27px;
    }

    /* LEMBRANÇAS */

    .memories {
        padding: 90px 20px;
    }

    .memory-grid {
        grid-template-columns: 1fr;

        gap: 40px;

        max-width: 350px;
        margin: 50px auto 0;
    }

    .memory-photo {
        aspect-ratio: 4 / 4;
    }

    /* ENCERRAMENTO */

    .closing {
        min-height: 500px;

        padding: 100px 25px;
    }

    .closing h2 {
        font-size: 42px;
    }

    /* RODAPÉ */

    footer {
        flex-direction: column;
        justify-content: center;

        gap: 10px;

        text-align: center;
    }
}


/* ==============================================
   23 — TELAS MUITO PEQUENAS
============================================== */

@media (max-width: 380px) {

    .navbar nav {
        gap: 17px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .letter-content {
        padding: 25px 18px;
    }

    .chapter-link h3 {
        font-size: 19px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }
}


/* ==============================================
   24 — ACESSIBILIDADE
   Reduz animações quando solicitado
============================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .stars {
        animation: none;
    }
}


/* ==============================================
   FIM DO STYLE.CSS
   PARA YAS, COM AMOR.
============================================== */


/* ==========================================
   PARA YAS, COM AMOR.
   RESPONSIVIDADE PARA CELULARES
   iPhone, Android e tablets
========================================== */

/* EVITAR ELEMENTOS SAINDO DA TELA */

html {
    width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

main,
section,
article {
    min-width: 0;
}

.letter-content,
.chapter-link,
.spotify-player {
    min-width: 0;
}

/* ==========================================
   TABLETS E CELULARES
========================================== */

@media screen and (max-width: 768px) {

    html {
        scroll-padding-top: 145px;
    }

    section,
    article {
        scroll-margin-top: 145px;
    }

    /* MENU SUPERIOR */

    .navbar {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr) auto;

        align-items: center;

        gap: 10px 12px;

        padding: 12px 16px;

        min-height: auto;

        background: rgba(11, 8, 11, 0.95);
    }

    .navbar .logo {
        grid-column: 1;
        grid-row: 1;

        font-size: 15px;
        letter-spacing: 0.5px;

        white-space: nowrap;
    }

    /* BOTÃO NOSSA MÚSICA */

    .spotify-nav-link {
        grid-column: 2;
        grid-row: 1;

        justify-self: end;

        display: inline-flex;
        justify-content: center;
        align-items: center;

        min-height: 44px;

        padding: 9px 12px;

        font-size: 11px;

        white-space: nowrap;
    }

    /* LINKS DO MENU */

    .navbar nav {
        grid-column: 1 / -1;
        grid-row: 2;

        display: flex;
        justify-content: center;
        align-items: center;

        flex-wrap: wrap;

        width: 100%;

        gap: 5px 18px;

        margin: 0;
        padding: 8px 0 0;

        border-top: 1px solid var(--border);
    }

    .navbar nav a {
        display: inline-flex;
        justify-content: center;
        align-items: center;

        min-height: 42px;

        padding: 0 5px;

        font-size: 12px;

        color: var(--muted);
    }

    /* ======================================
       CAPA PRINCIPAL
    ====================================== */

    .hero {
        min-height: 620px;
        min-height: max(
            620px,
            calc(100svh - 125px)
        );

        padding: 100px 20px 90px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        text-align: center;
    }

    .hero .eyebrow {
        max-width: 330px;

        font-size: 10px;
        letter-spacing: 1.6px;

        line-height: 1.8;
    }

    .rose-symbol {
        margin-top: 25px;

        font-size: 46px;
    }

    .hero h1 {
        font-size: clamp(
            50px,
            12vw,
            76px
        );

        line-height: 1.18;
        letter-spacing: -1px;
    }

    .hero-description {
        max-width: 360px;

        margin: 25px auto 0;

        font-size: 14px;
        line-height: 1.95;
    }

    .primary-button {
        min-height: 48px;

        padding: 14px 26px;

        font-size: 13px;
    }

    .hero-signature {
        margin-top: 35px;

        font-size: 14px;
    }

    /* ======================================
       PLAYER DO SPOTIFY
    ====================================== */

    .spotify-section {
        width: 100%;

        padding: 75px 18px 90px;
    }

    .spotify-section h2 {
        font-size: clamp(
            35px,
            9vw,
            48px
        );

        line-height: 1.3;
    }

    .spotify-description {
        max-width: 380px;

        font-size: 14px;
        line-height: 1.95;
    }

    .spotify-player {
        width: 100%;
        max-width: 550px;

        margin: 0 auto;

        border-radius: 13px;
        overflow: hidden;
    }

    .spotify-player iframe {
        display: block;

        width: 100%;
        height: 152px;

        border: 0;
    }

    .spotify-note {
        font-size: 15px;
        line-height: 1.8;
    }

    /* ======================================
       INTRODUÇÃO
    ====================================== */

    .intro {
        width: 100%;

        padding: 85px 22px;
    }

    .intro h2 {
        font-size: clamp(
            32px,
            8vw,
            43px
        );

        line-height: 1.35;
    }

    .intro > p:last-child {
        max-width: 390px;

        font-size: 14px;
        line-height: 2;
    }

    /* ======================================
       ÍNDICE DOS CAPÍTULOS
    ====================================== */

    .chapter-index {
        width: 100%;

        padding: 80px 16px 95px;
    }

    .chapter-index h2 {
        margin-bottom: 40px;

        font-size: clamp(
            34px,
            8vw,
            45px
        );

        line-height: 1.3;
    }

    .chapter-list {
        width: 100%;
    }

    .chapter-link {
        display: flex;
        align-items: center;

        gap: 14px;

        min-height: 90px;

        padding: 22px 9px;
    }

    .chapter-link > span {
        flex-shrink: 0;

        min-width: 33px;

        font-size: 20px;
    }

    .chapter-link > div {
        flex: 1;
        min-width: 0;
    }

    .chapter-link h3 {
        font-size: clamp(
            19px,
            5vw,
            23px
        );

        line-height: 1.3;

        overflow-wrap: anywhere;
    }

    .chapter-link p {
        margin-top: 6px;

        font-size: 12px;
        line-height: 1.7;
    }

    .chapter-link b {
        flex-shrink: 0;
        font-size: 19px;
    }

    .chapter-link:hover {
        padding-left: 14px;
    }

    /* ======================================
       CAPÍTULOS / CARTAS
    ====================================== */

    .letter-section {
        width: 100%;
        max-width: 100%;

        padding: 85px 15px 95px;

        text-align: center;
    }

    .letter-section > h2 {
        max-width: 550px;

        margin: 20px auto;

        font-size: clamp(
            36px,
            9vw,
            50px
        );

        line-height: 1.3;
        overflow-wrap: break-word;
    }

    .letter-intro {
        max-width: 390px;

        margin: 0 auto 35px;

        font-size: 16px;
        line-height: 1.8;
    }

    .letter-content {
        width: 100%;

        padding: 30px 23px;

        border-radius: 13px;

        text-align: left;
    }

    .letter-content p {
        font-size: 14px;
        line-height: 2;

        margin-bottom: 24px;

        overflow-wrap: break-word;
    }

    .letter-content > h3 {
        margin: 45px 0 22px;

        font-size: 27px;
        line-height: 1.4;
    }

    /* MOMENTOS ESPECIAIS */

    .yas-reveal {
        margin: 40px 0;

        padding: 55px 14px;

        text-align: center;
    }

    .yas-reveal p {
        font-size: 18px;
        line-height: 1.8;
    }

    .yas-reveal h3,
    .yas-reveal strong {
        font-size: clamp(
            36px,
            9vw,
            54px
        );

        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    #capitulo1 .yas-reveal h3 {
        font-size: clamp(
            58px,
            14vw,
            76px
        );
    }

    /* DESPEDIDA DO ANTIGO X87 */

    #capitulo6 .yas-reveal {
        margin: 45px 0;

        padding: 55px 15px;
    }

    #capitulo6 .yas-reveal h3 {
        font-size: clamp(
            32px,
            8vw,
            45px
        );
    }

    #capitulo6 .chapter-ending {
        padding: 25px 5px;

        font-size: 17px !important;
        line-height: 2.1 !important;
    }

    /* FINAL DAS CARTAS */

    .chapter-ending {
        font-size: 17px !important;
        line-height: 2 !important;
    }

    .next-chapter {
        min-height: 47px;

        margin-top: 35px;

        padding: 13px 23px;

        font-size: 13px;
    }

    .letter-signature {
        margin-top: 40px;
    }

    .letter-signature h3,
    .letter-signature strong {
        font-size: 28px;
    }

    /* EPÍLOGO */

    #epilogo {
        padding: 100px 15px;
    }

    #epilogo .letter-content {
        padding: 35px 23px;
    }

    #epilogo .chapter-ending {
        font-size: 19px !important;
    }

    /* ======================================
       LEMBRANÇAS
    ====================================== */

    .memories {
        width: 100%;

        padding: 90px 20px;
    }

    .memories h2 {
        font-size: 42px;
    }

    .memory-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 35px;

        max-width: 370px;
        margin: 45px auto 0;
    }

    .memory-photo {
        width: 100%;
        aspect-ratio: 4 / 4;

        font-size: 42px;
    }

    .memory-grid figcaption {
        font-size: 16px;
    }

    /* ======================================
       ENCERRAMENTO
    ====================================== */

    .closing {
        min-height: 480px;

        padding: 90px 22px;
    }

    .closing h2 {
        font-size: clamp(
            36px,
            9vw,
            48px
        );

        line-height: 1.35;
    }

    .closing > p:not(.eyebrow) {
        font-size: 16px;
    }

    /* RODAPÉ */

    footer {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 10px;

        padding: 30px 15px;

        text-align: center;
    }

    footer p {
        font-size: 15px;
    }

    footer span {
        font-size: 12px;
    }
}


/* ==========================================
   CELULARES MUITO PEQUENOS
========================================== */

@media screen and (max-width: 390px) {

    .navbar {
        padding: 12px 11px;
        column-gap: 6px;
    }

    .navbar .logo {
        font-size: 13px;
    }

    .spotify-nav-link {
        padding: 8px 9px;
        font-size: 10px;
    }

    .navbar nav {
        gap: 5px 8px;
    }

    .navbar nav a {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 49px;
    }

    .hero-description {
        font-size: 13px;
    }

    .letter-content {
        padding: 27px 18px;
    }

    .letter-content p {
        font-size: 13.5px;
    }

    .chapter-link h3 {
        font-size: 19px;
    }

    .chapter-link {
        gap: 10px;
    }

    #capitulo6 .yas-reveal h3 {
        font-size: 31px;
    }
}


/* ==========================================
   ACESSIBILIDADE
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FIM DO CSS RESPONSIVO */
