/* Páginas de capítulo: defina --acc no <html> (ex.: style="--acc:#00C4D0") e data-ch="1"…"7". */
:root {
    --pink: #F0057B;
    --dark: #111;
    --abril-tracking: 0.05em;
    --abril-tracking-display: 0.07em;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--dark); background: white; overflow-x: hidden; }

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem;
    background: var(--acc);
    background: color-mix(in srgb, var(--acc) 95%, transparent);
    backdrop-filter: blur(12px);
}
.nav-logo { font-family: 'Abril Fatface', serif; color: white; font-size: 1.3rem; text-decoration: none; }
.nav-logo .ch { background: white; color: var(--acc); padding: 0 3px; border-radius: 3px; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; list-style: none; }
.nav-links a { color: white; text-decoration: none; font-weight: 700; font-size: 0.88rem; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-pdf {
    background: white !important; color: var(--acc) !important;
    padding: 0.45rem 1.1rem !important; border-radius: 100px !important;
    font-weight: 900 !important; opacity: 1 !important;
}

/* HERO */
.ch-hero {
    min-height: 70vh; background: var(--acc);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.ch-hero::before {
    font-family: 'Abril Fatface', serif;
    position: absolute; right: -0.1em; bottom: -0.15em;
    font-size: clamp(18rem, 35vw, 28rem); color: rgba(255,255,255,0.08);
    line-height: 1; pointer-events: none; user-select: none;
}
html[data-ch="1"] .ch-hero::before { content: '01'; }
html[data-ch="2"] .ch-hero::before { content: '02'; }
html[data-ch="3"] .ch-hero::before { content: '03'; }
html[data-ch="4"] .ch-hero::before { content: '04'; }
html[data-ch="5"] .ch-hero::before { content: '05'; }
html[data-ch="6"] .ch-hero::before { content: '06'; }
html[data-ch="7"] .ch-hero::before { content: '07'; }

.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.ch-part { color: rgba(255,255,255,0.7); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.ch-num-label { color: rgba(255,255,255,0.5); font-weight: 900; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }

.ch-title {
    font-family: 'Abril Fatface', serif; color: white;
}
html[data-ch="1"] .ch-title { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.0; }
html[data-ch="2"] .ch-title { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.05; }
html[data-ch="3"] .ch-title,
html[data-ch="4"] .ch-title { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.05; }
html[data-ch="5"] .ch-title,
html[data-ch="6"] .ch-title { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }
html[data-ch="7"] .ch-title { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; }
html[data-ch="7"] .ch-title .ch {
    display: inline-block;
    background: white; color: var(--acc); padding: 0 0.06em; border-radius: 4px;
}

.ch-body { max-width: 820px; margin: 0 auto; padding: 5rem 2rem; }
.ch-intro { font-size: 1.15rem; line-height: 1.9; color: #444; margin-bottom: 3rem; border-left: 4px solid var(--acc); padding-left: 1.5rem; }

.sections-title { font-family: 'Abril Fatface', serif; font-size: 1.6rem; color: var(--dark); margin-bottom: 2rem; }
.sections-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sections-list li {
    display: grid; grid-template-columns: 48px 1fr auto;
    align-items: center; gap: 1rem; padding: 1.1rem 1rem;
    border-bottom: 1px solid #f0f0f0; transition: background 0.2s;
}
.sections-list li:hover { background: color-mix(in srgb, var(--acc) 7%, #ffffff); }
.s-idx { font-family: 'Abril Fatface', serif; color: var(--acc); font-size: 1.1rem; }
.s-name { font-weight: 700; font-size: 1rem; color: #333; }
.s-page { font-size: 0.8rem; color: #bbb; font-weight: 700; }

.highlight {
    background: var(--acc); color: white; border-radius: 16px;
    padding: 2.5rem; margin: 3rem 0; position: relative; overflow: hidden;
}
.highlight::before { content: '❝'; font-family: 'Abril Fatface', serif; position: absolute; top: -0.2em; left: 0.2em; font-size: 8rem; color: rgba(255,255,255,0.1); line-height: 1; }
.highlight p { font-size: 1.1rem; line-height: 1.75; position: relative; z-index: 1; font-style: italic; }
.highlight cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 800; font-size: 0.85rem; opacity: 0.75; }

.ch-nav {
    position: static; background: transparent; backdrop-filter: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: 3rem 2rem; max-width: 820px; margin: 0 auto;
    border-top: 1px solid #eee;
}
.ch-nav a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--dark); text-decoration: none; font-weight: 800; font-size: 0.9rem;
    padding: 0.75rem 1.5rem; border-radius: 100px; border: 2px solid #eee;
    transition: border-color 0.2s, color 0.2s;
}
.ch-nav a:hover { border-color: var(--acc); color: var(--acc); }
.ch-nav .home { background: var(--acc); color: white; border-color: var(--acc); }
.ch-nav .home:hover { background: var(--pink); border-color: var(--pink); color: white; }

.pdf-cta { background: var(--pink); padding: 5rem 2rem; text-align: center; }
.pdf-cta h2 { font-family: 'Abril Fatface', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: white; margin-bottom: 1rem; }
.pdf-cta p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 2rem; font-weight: 600; }
.btn-big {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: white; color: var(--pink); padding: 1rem 2.5rem;
    border-radius: 100px; font-weight: 900; font-size: 1rem;
    text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-big:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

footer { background: #080808; padding: 2.5rem 2rem; text-align: center; }
.ft-logo { font-family: 'Abril Fatface', serif; color: white; font-size: 1.4rem; margin-bottom: 0.4rem; }
footer p { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin-bottom: 0.25rem; }
.ft-tag { color: var(--pink) !important; font-weight: 800 !important; }

@media (max-width: 768px) {
    nav { padding: 0.75rem 1rem; }
    .nav-links li:not(:last-child) { display: none; }
    .ch-hero { padding: 5.5rem 1.25rem 2.5rem; min-height: 50vh; }
    html[data-ch="1"] .ch-title,
    html[data-ch="3"] .ch-title,
    html[data-ch="4"] .ch-title { font-size: clamp(1.8rem, 8vw, 3rem); }
    html[data-ch="2"] .ch-title { font-size: clamp(1.5rem, 6.5vw, 2.5rem); }
    html[data-ch="5"] .ch-title,
    html[data-ch="6"] .ch-title { font-size: clamp(1.6rem, 7vw, 2.6rem); }
    html[data-ch="7"] .ch-title { font-size: clamp(2.8rem, 12vw, 5rem); }
    .ch-body { padding: 2.5rem 1.25rem; }
    .ch-intro { font-size: 1rem; padding-left: 1rem; }
    .sections-title { font-size: 1.25rem; margin-bottom: 1.25rem; }
    .sections-list li { grid-template-columns: 32px 1fr; gap: 0.6rem; padding: 0.85rem 0.25rem; }
    .s-page { display: none; }
    .s-name { font-size: 0.9rem; }
    .highlight { padding: 1.5rem; margin: 2rem 0; }
    .highlight p { font-size: 0.95rem; }
    .ch-nav { flex-direction: column; gap: 0.6rem; align-items: stretch; text-align: center; padding: 2rem 1.25rem; }
    .ch-nav a { justify-content: center; padding: 0.85rem 1.25rem; }
    .pdf-cta { padding: 3.5rem 1.25rem; }
    .pdf-cta h2 { font-size: 1.5rem; }
    .btn-big { width: 100%; justify-content: center; box-sizing: border-box; }
    footer { padding: 2rem 1.25rem; }
}

/* ---------- Ajuste de espaçamento das letras (Abril Fatface) ---------- */
.nav-logo,
.ch-title,
.sections-title,
.s-idx,
.pdf-cta h2,
.ft-logo {
    letter-spacing: var(--abril-tracking);
}
.ch-hero .ch-title { letter-spacing: var(--abril-tracking-display); }
