/*
Theme Name: Fala Alfredo
Theme URI: https://falaalfredo.com.br
Author: Alfredo Bertunes
Description: Tema editorial minimalista estilo jornal impresso para o blog pessoal Fala Alfredo.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fala-alfredo
*/

/* =============================================
   IMPORTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #f5f0e8;
    color: #1a1a1a;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   TIPOGRAFIA
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
}

p {
    margin-bottom: 1.2em;
}

p:last-child {
    margin-bottom: 0;
}

blockquote {
    border-left: 2px solid #1a1a1a;
    margin: 2em 0;
    padding: 0.5em 0 0.5em 1.5em;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15em;
    color: #444;
}

/* =============================================
   LAYOUT GERAL
   ============================================= */
.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    border-left: 0.5px solid #c8c0b0;
    border-right: 0.5px solid #c8c0b0;
    min-height: 100vh;
    background: #f5f0e8;
}

.site-content-area {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    padding: 32px;
}

.main-content {
    padding-right: 28px;
    border-right: 0.5px solid #1a1a1a;
}

/* =============================================
   BARRA SUPERIOR
   ============================================= */
.site-top-bar {
    border-bottom: 0.5px solid #1a1a1a;
    padding: 7px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #777;
}

/* =============================================
   CABEÇALHO
   ============================================= */
.site-header {
    text-align: center;
    padding: 28px 32px 22px;
    border-bottom: 3px double #1a1a1a;
    background: #f5f0e8;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #1a1a1a;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 1;
}

/* =============================================
   NAVEGAÇÃO
   ============================================= */
.site-nav {
    border-bottom: 0.5px solid #1a1a1a;
    background: #f5f0e8;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.site-nav ul li a {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 11px 32px;
    color: #1a1a1a;
    border-right: 0.5px solid #1a1a1a;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.site-nav ul li:first-child a {
    border-left: 0.5px solid #1a1a1a;
}

.site-nav ul li a:hover,
.site-nav ul li.current-menu-item a,
.site-nav ul li.current_page_item a {
    background: #1a1a1a;
    color: #f5f0e8;
    opacity: 1;
}

/* =============================================
   POST EM DESTAQUE
   ============================================= */
.featured-post {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 0.5px solid #1a1a1a;
}

.featured-post .post-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.featured-post .post-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 14px;
}

.featured-post .post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-post .post-title a:hover {
    opacity: 0.65;
}

.featured-post .post-excerpt {
    font-family: 'Libre Baskerville', serif;
    font-size: 13.5px;
    line-height: 1.85;
    color: #333;
    margin-bottom: 12px;
}

.featured-post .post-thumbnail {
    margin-bottom: 18px;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* =============================================
   META DOS POSTS
   ============================================= */
.post-meta {
    font-size: 11px;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-meta .meta-sep {
    color: #ccc;
}

.post-meta .post-category a {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 10px;
    color: #777;
}

.post-meta .post-category a:hover {
    opacity: 0.6;
}

/* =============================================
   GRID DE POSTS
   ============================================= */
.posts-grid-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #999;
    border-bottom: 0.5px solid #1a1a1a;
    padding-bottom: 7px;
    margin-bottom: 18px;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.grid-post {
    padding: 0 16px 18px 0;
    margin-bottom: 18px;
    border-bottom: 0.5px solid #ddd;
}

.posts-grid .grid-post:nth-child(even) {
    padding-left: 16px;
    padding-right: 0;
    border-left: 0.5px solid #e0d8cc;
}

.grid-post .post-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 5px;
}

.grid-post .post-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.grid-post .post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.grid-post .post-title a:hover {
    opacity: 0.6;
}

.grid-post .post-excerpt {
    font-family: 'Libre Baskerville', serif;
    font-size: 11.5px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 6px;
}

.grid-post .post-meta {
    font-size: 10px;
}

/* =============================================
   PAGINAÇÃO
   ============================================= */
.pagination {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 0.5px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination a,
.pagination span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 6px 0;
    border-bottom: 1px solid #1a1a1a;
}

.pagination span.current {
    color: #999;
    border-bottom-color: #ddd;
}

/* =============================================
   SIDEBAR
   ============================================= */
.site-sidebar {
    padding-left: 24px;
    padding-top: 0;
}

.widget {
    margin-bottom: 28px;
}

.widget-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #999;
    border-bottom: 0.5px solid #1a1a1a;
    padding-bottom: 6px;
    margin-bottom: 12px;
    font-family: 'Source Sans 3', sans-serif;
}

/* Widget: Posts recentes / mais lidos */
.widget-posts-list {
    list-style: none;
}

.widget-posts-list li {
    border-bottom: 0.5px solid #e0d8cc;
    padding-bottom: 11px;
    margin-bottom: 11px;
}

.widget-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-posts-list .wpl-title {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.widget-posts-list .wpl-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.widget-posts-list .wpl-title a:hover {
    opacity: 0.6;
}

.widget-posts-list .wpl-meta {
    font-size: 10px;
    color: #bbb;
}

/* Widget: Vídeo YouTube */
.widget-video .video-embed-wrap {
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
}

.widget-video .video-embed-wrap iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.widget-video .video-caption {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 8px;
    line-height: 1.35;
}

/* Widget: Música */
.widget-music .music-card {
    border: 0.5px solid #1a1a1a;
    border-radius: 3px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-music .music-art {
    width: 44px;
    height: 44px;
    background: #e0d8cc;
    border-radius: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.widget-music .music-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-music .music-info .music-title {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.widget-music .music-info .music-artist {
    font-size: 11px;
    color: #999;
}

.widget-music .music-embed {
    margin-top: 10px;
}

.widget-music .music-embed iframe {
    width: 100%;
    border: none;
    border-radius: 3px;
}

/* Widget: Sobre */
.widget-about p {
    font-family: 'Libre Baskerville', serif;
    font-size: 12px;
    line-height: 1.75;
    color: #555;
}

/* =============================================
   POST SINGULAR
   ============================================= */
.single-post-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #1a1a1a;
}

.single-post-header .post-category-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.single-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 14px;
}

.single-post-thumbnail {
    margin-bottom: 28px;
}

.single-post-thumbnail img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.single-post-content {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    line-height: 1.9;
    color: #222;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content h2 {
    font-size: 22px;
    margin: 2em 0 0.75em;
}

.single-post-content h3 {
    font-size: 18px;
    margin: 1.75em 0 0.6em;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 1.5em 1.5em;
}

.single-post-content li {
    margin-bottom: 0.4em;
}

.single-post-content a {
    border-bottom: 1px solid #1a1a1a;
}

.single-post-content blockquote {
    border-left: 2px solid #1a1a1a;
    margin: 2em 0;
    padding: 0.5em 0 0.5em 1.5em;
    font-style: italic;
    color: #444;
}

.single-post-content figure {
    margin: 2em 0;
}

.single-post-content figure img {
    width: 100%;
}

.single-post-content figcaption {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    text-align: center;
    letter-spacing: 0.04em;
}

/* Embed YouTube dentro do post */
.single-post-content .wp-block-embed,
.single-post-content .video-embed {
    margin: 2em 0;
}

.single-post-content .wp-block-embed iframe,
.single-post-content .video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* Embed Spotify / música */
.single-post-content .music-embed iframe {
    width: 100%;
    border: none;
    border-radius: 3px;
    display: block;
    margin: 1.5em 0;
}

/* Post navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px double #1a1a1a;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation .nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

/* =============================================
   PÁGINA DE CONTATO
   ============================================= */
.contact-page {
    max-width: 520px;
}

.contact-page h1 {
    font-size: 36px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid #1a1a1a;
}

.contact-page .contact-intro {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 28px;
}

.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 22px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-bottom-color: #555;
}

.contact-form textarea {
    resize: none;
    height: 120px;
}

.contact-form input[type="submit"] {
    background: #1a1a1a;
    color: #f5f0e8;
    border: none;
    padding: 10px 32px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s;
}

.contact-form input[type="submit"]:hover {
    opacity: 0.75;
}

/* =============================================
   RODAPÉ
   ============================================= */
.site-footer {
    border-top: 3px double #1a1a1a;
    padding: 14px 32px;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.08em;
    background: #f5f0e8;
}

/* =============================================
   UTILITÁRIOS
   ============================================= */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.reading-time {
    font-size: 11px;
    color: #bbb;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 800px) {
    .site-title { font-size: 42px; }
    .site-content-area { grid-template-columns: 1fr; padding: 20px; }
    .main-content { padding-right: 0; border-right: none; border-bottom: 0.5px solid #1a1a1a; padding-bottom: 32px; margin-bottom: 32px; }
    .site-sidebar { padding-left: 0; }
    .posts-grid { grid-template-columns: 1fr; }
    .posts-grid .grid-post:nth-child(even) { padding-left: 0; border-left: none; }
    .featured-post .post-title { font-size: 26px; }
    .single-post-title { font-size: 28px; }
    .site-top-bar { display: none; }
}

@media (max-width: 500px) {
    .site-title { font-size: 32px; }
    .site-nav ul li a { padding: 10px 18px; }
    .site-header { padding: 20px 16px 16px; }
    .site-content-area { padding: 16px; }
}
