/* Blog BV Books — Editorial Clássico
   Inspiração: revistas cristãs (Christianity Today, First Things), broadsheets clássicos
   Paleta: creme #faf6ed · navy #0c2340 · borgonha #9d2933
   Tipografia: Playfair Display (display) + Lora (corpo)
*/

:root {
    --bg: #faf6ed;
    --bg-soft: #f4eedf;
    --text: #1a1612;
    --text-muted: #5a4a3a;
    --text-light: #7a6a5a;
    --rule: #d9cfb8;
    --rule-strong: #1a1612;
    --navy: #0c2340;
    --navy-soft: #1e3a8a;
    --accent: #9d2933;
    --accent-soft: #b94952;
    --max-width: 1180px;
    --reading-width: 720px;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ---------- MASTHEAD (cabeçalho jornal) ---------- */
.site-header {
    border-bottom: 3px double var(--rule-strong);
    padding: 28px 32px 18px;
    text-align: center;
    background: var(--bg);
}
.masthead-bar {
    max-width: var(--max-width);
    margin: 0 auto 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-display);
}
.masthead-bar .meta { display: flex; gap: 16px; }
.brand {
    text-decoration: none;
    display: inline-block;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 6vw, 56px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--navy);
    display: block;
}
.brand:hover .brand-name { color: var(--accent); }
.tagline {
    font-style: italic;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: var(--font-display);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 14px 0 0;
    margin-top: 18px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}
.main-nav a:hover { color: var(--accent); }

/* ---------- HOME: HERO + GRID ---------- */
.home-content { padding: 56px 32px; max-width: var(--max-width); margin: 0 auto; }

.featured-post {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    margin-bottom: 72px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--rule);
    align-items: center;
}
.featured-cover {
    aspect-ratio: 4/3;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 28px;
    background-size: cover;
    background-position: center;
}
.featured-cover-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--bg);
    padding: 5px 14px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}
.featured-cover-mark {
    font-family: var(--font-display);
    font-size: 110px;
    font-style: italic;
    color: rgba(255,255,255,.55);
    line-height: 0.8;
}
.featured-info { display: flex; flex-direction: column; }
.section-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 600;
}
.featured-info h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--navy);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.featured-info h2 a { color: inherit; text-decoration: none; }
.featured-info h2 a:hover { color: var(--accent); }
.post-byline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-style: italic;
}
.post-byline strong { color: var(--accent); font-weight: 600; font-style: normal; }
.featured-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #2a221a;
    margin: 0;
}
.featured-excerpt::first-letter {
    font-family: var(--font-display);
    font-size: 58px;
    float: left;
    line-height: 0.85;
    padding: 4px 10px 0 0;
    color: var(--accent);
    font-weight: 700;
}
.read-more {
    margin-top: 22px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
    padding-bottom: 2px;
    align-self: flex-start;
    font-weight: 600;
}
.read-more:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

.section-divider {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 110px;
    height: 1px;
    background: #c0b59a;
}
.section-divider::before { left: calc(50% - 200px); }
.section-divider::after  { right: calc(50% - 200px); }

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 56px;
}
.post-card { display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.post-card-cover {
    aspect-ratio: 1/1.25;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.post-card-mark {
    font-family: var(--font-display);
    font-size: 38px;
    color: rgba(255,255,255,.55);
    font-style: italic;
}
.post-card-cat {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
}
.post-card-cat a { color: inherit; text-decoration: none; }
.post-card-cat a:hover { color: var(--accent-soft); }
.post-card h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.22;
    color: var(--navy);
    margin: 0 0 8px;
}
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #3a302a;
    margin: 0 0 8px;
}
.post-card-meta {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.05em;
    font-style: italic;
}

/* Listagem (categoria/tag) */
.list-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
}
.list-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.list-subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 16px;
}

/* ---------- POST INDIVIDUAL ---------- */
.post-single {
    max-width: var(--reading-width);
    margin: 56px auto;
    padding: 0 32px;
}
.post-header { text-align: center; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.post-cat {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 600;
}
.post-cat a { color: inherit; text-decoration: none; }
.post-cat a:hover { color: var(--accent-soft); }
.post-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--navy);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.post-meta-line {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--text-muted);
}

.post-content {
    font-size: 18px;
    line-height: 1.78;
    color: #1a1612;
}
.post-content > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 72px;
    float: left;
    line-height: 0.85;
    padding: 6px 12px 0 0;
    color: var(--accent);
    font-weight: 700;
}
.post-content p.lead {
    font-size: 21px;
    line-height: 1.55;
    color: var(--navy);
    font-family: var(--font-display);
    font-style: italic;
    margin: 0 0 28px;
}
.post-content p.lead::first-letter {
    font-size: inherit;
    float: none;
    color: inherit;
    padding: 0;
    font-weight: inherit;
}
.post-content p { margin: 1.1em 0; }
.post-content h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin: 2.2em 0 0.6em;
    line-height: 1.2;
    letter-spacing: -0.005em;
}
.post-content h2::before {
    content: '·';
    color: var(--accent);
    margin-right: 12px;
    font-size: 1.2em;
}
.post-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin: 1.8em 0 0.5em;
    line-height: 1.3;
    font-style: italic;
}
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 28px;
    margin: 1.8em 0;
    background: var(--bg-soft);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--navy);
    line-height: 1.55;
}
.post-content blockquote strong {
    font-style: normal;
    font-family: var(--font-body);
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-right: 6px;
}
.post-content ul,
.post-content ol { padding-left: 1.5em; margin: 1.2em 0; }
.post-content li { margin: 0.5em 0; }
.post-content ul li::marker { color: var(--accent); }
.post-content ol li::marker { color: var(--accent); font-weight: 700; font-family: var(--font-display); }
.post-content figure { margin: 2em 0; }
.post-content img { border-radius: 2px; margin: 1.5em auto; }
.post-content figcaption {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    font-family: var(--font-display);
}
.post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
}
.post-content a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.post-content code {
    background: var(--bg-soft);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
}
.post-content pre {
    background: #1a1612;
    color: #f0e8d0;
    padding: 1.2em;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.55;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 16px;
}
.post-content th,
.post-content td {
    border-bottom: 1px solid var(--rule);
    padding: 10px 14px;
    text-align: left;
}
.post-content th {
    font-family: var(--font-display);
    background: var(--bg-soft);
    color: var(--navy);
}

.post-tags {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-display);
}
.post-tags-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 12px;
}
.post-tags .tag {
    display: inline-block;
    color: var(--accent);
    margin: 0 6px;
    text-decoration: none;
    font-style: italic;
    font-size: 14px;
}
.post-tags .tag:hover { color: var(--accent-soft); }

/* ---------- FOOTER ---------- */
.site-footer {
    border-top: 3px double var(--rule-strong);
    padding: 32px 32px;
    text-align: center;
    font-family: var(--font-display);
    color: var(--text-muted);
    margin-top: 80px;
}
.site-footer .footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-footer p { margin: 6px 0; font-size: 13px; letter-spacing: 0.05em; }
.site-footer .footer-meta {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 12px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); text-decoration: underline; }
.footer-social {
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* ---------- ESTADOS ESPECIAIS ---------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 18px;
}
.error-page {
    text-align: center;
    padding: 100px 20px;
    max-width: var(--reading-width);
    margin: 0 auto;
}
.error-page h1 {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--accent);
    margin: 0;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.error-page p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 18px;
    font-family: var(--font-display);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .featured-post { grid-template-columns: 1fr; gap: 32px; }
    .post-grid { grid-template-columns: 1fr; gap: 36px; }
    .post-card { grid-template-columns: 100px 1fr; }
    .home-content { padding: 40px 24px; }
    .post-single { padding: 0 24px; margin: 32px auto; }
    .post-content { font-size: 17px; }
    .section-divider::before,
    .section-divider::after { display: none; }
    .masthead-bar .meta:nth-child(1),
    .masthead-bar .meta:nth-child(3) { display: none; }
    .main-nav { gap: 18px; font-size: 11px; }
}
@media (max-width: 600px) {
    .featured-cover-mark { font-size: 70px; }
    .featured-info h2 { font-size: 26px; }
    .post-content > p:first-of-type::first-letter { font-size: 56px; }
}
