/* ============================================
   MALAGUETA THEME — main.css (v2)
   Títulos: Sybarite | Corpo: Times New Roman
   ============================================ */

/* ── SYBARITE FONT FACES ─────────────────── */
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Small-BF673d590f651cc.otf")
        format("opentype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Small_Italic-BF673d590f680f5.otf")
        format("opentype");
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Medium-BF673d590f5ce80.otf")
        format("opentype");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Medium_Italic-BF673d590f3d4e1.otf")
        format("opentype");
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Large-BF673d590f33c33.otf")
        format("opentype");
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Large-Italic-BF673d590f29757.otf")
        format("opentype");
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Huge-BF673d590ed9bff.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Sybarite";
    src: url("/fonts/SybariteTrial_Huge_Italic-BF673d590f10721.otf")
        format("opentype");
    font-weight: 700;
    font-style: italic;
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap");

/* ── TOKENS ──────────────────────────────── */
:root {
    --bg: #e5e1cc;
    --surface: #ede9d6;
    --surface2: #d8d4be;
    --border: #ccc8b0;
    --accent: #c0392b;
    --text: #1e1a10;
    --muted: #7a7260;
    --link: #8b2020;

    --serif: "Sybarite", Georgia, serif;
    --body: "Times New Roman", Times, serif;
    --sans: "DM Sans", Helvetica, sans-serif;
    --mono: "DM Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.6;
    min-height: 100vh;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
    padding: 4px;
    flex-shrink: 0;
}
.site-title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    flex-shrink: 0;
}
.site-title a {
    color: var(--text);
}
.site-title a:hover {
    color: var(--accent);
}

.site-nav {
    flex: 1;
}
.site-nav ul {
    list-style: none;
    display: flex;
}
.site-nav a {
    display: inline-block;
    padding: 4px 14px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.15s;
    position: relative;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
}
.site-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 17px;
    padding: 4px 6px;
    line-height: 1;
    transition: color 0.15s;
}
.header-icon-btn:hover {
    color: var(--text);
}
.btn-subscribe {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid var(--text);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-subscribe:hover {
    background: var(--text);
    color: var(--bg);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}
.site-main {
    padding: 40px 0 60px;
}

/* ============================================
   HOMEPAGE — HERO
   ============================================ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.hero-image-link {
    display: block;
}
.hero-image-wrap {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-image-link:hover .hero-image-wrap img {
    transform: scale(1.03);
}

.hero-body {
}
.hero-category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.category-pill {
    /*background: var(--accent);*/
    background: #1eaa61;
    color: #fff;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}
.hero-byline {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-byline strong {
    color: var(--text);
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
}
.hero-title a {
    color: var(--text);
}
.hero-title a:hover {
    color: var(--accent);
}
.hero-excerpt {
    font-family: var(--body);
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
}

/* ============================================
   HOMEPAGE — 3 CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.post-card {
    cursor: pointer;
}
.post-card-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 14px;
    background: var(--surface2);
}
.post-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-img-wrap img {
    transform: scale(1.04);
}
.post-card-category {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.post-card-title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 10px;
    transition: color 0.15s;
}
.post-card-title a {
    color: var(--text);
}
.post-card:hover .post-card-title a {
    color: var(--accent);
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
    margin-bottom: 48px;
}
.category-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--text);
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.category-section-title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.category-section-link {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.15s;
}
.category-section-link:hover {
    color: var(--accent);
}
.category-posts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.list-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.15s;
}
.list-card:hover {
    opacity: 0.75;
}
.list-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    background: var(--surface2);
}
.list-card-content {
    flex: 1;
}
.list-card-category {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.list-card-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}
.list-card-meta {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}

/* ============================================
   LIST / CATEGORY PAGE
   ============================================ */
.list-page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
}
.list-page-header {
    border-bottom: 2px solid var(--text);
    padding-bottom: 10px;
    margin-bottom: 28px;
}
.list-page-title {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 700;
    font-style: italic;
}
.list-page-count {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.post-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.post-list-item-img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    flex-grow: 0;
    background: var(--surface2);
    display: block;
}
.post-list-item-content {
    flex: 1;
}
.post-list-item-category {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.post-list-item-title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
}
.post-list-item-title a:hover {
    color: var(--accent);
}
.post-list-item-excerpt {
    font-family: var(--body);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}
.post-list-item-meta {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 32px 0;
    font-family: var(--sans);
    font-size: 13px;
}
.pagination a,
.pagination span {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
}
.pagination a:hover {
    background: var(--surface2);
}
.pagination .current {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-header {
    max-width: 100%;
    margin: 0 auto 32px;
    text-align: center;
    padding: 0 20px;
}
.single-category-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.single-for-subscribers {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.single-title {
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}
.single-subtitle {
    font-family: var(--body);
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}
.single-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}
.single-meta-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.single-cover-wrap {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    margin-bottom: 48px;
}
.single-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 520px;
}

/*.single-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 40px;
    margin: 0 auto;
    align-items: start;
    width: 100%;
}*/
.single-layout {
    position: relative;
    width: 100%;
}
/*.single-col-left,
.single-col-right {
    position: sticky;
    top: 80px;
}*/
.single-col-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
}

.single-col-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
}

.single-article {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 220px;
}
/* Author card */
.author-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    background: var(--surface2);
}
.author-name {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.author-bio {
    font-family: var(--body);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.author-profile-link {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 2px;
    transition: all 0.15s;
}
.author-profile-link:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.subscribe-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.subscribe-box-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.subscribe-box-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.subscribe-box-text {
    font-family: var(--body);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 14px;
}
.subscribe-box-text strong {
    color: var(--text);
}
.btn-subscribe-box {
    display: block;
    background: #3a9e5f;
    color: #fff;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
}
.btn-subscribe-box:hover {
    background: #2d8a50;
}
.subscribe-login {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}
.subscribe-login a {
    color: var(--text);
    text-decoration: underline;
}

.share-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
}
.share-box-title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.share-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.share-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
    cursor: pointer;
}
.share-icon:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Single article content */
.single-content {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.85;
    color: #2a2010;
}
.single-content p {
    margin-bottom: 1.5em;
}
.single-content h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    margin: 2em 0 0.75em;
}
.single-content h3 {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
}
.single-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--muted);
    background: var(--surface);
}
.single-content ul,
.single-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.single-content li {
    margin-bottom: 0.5em;
}
.single-content a {
    color: var(--link);
    text-decoration: underline;
}
.single-content img {
    margin: 2em 0;
    border-radius: 8px;
}

.single-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.tag-pill {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 12px;
    border-radius: 999px;
    transition: all 0.15s;
}
.tag-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.sidebar-section {
    margin-bottom: 24px;
}
.sidebar-section-title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text);
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.related-post {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    align-items: flex-start;
    overflow: hidden;
}
.related-post:last-child {
    border-bottom: none;
}
.related-post:hover .related-post-title {
    color: var(--accent);
}
.related-post-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--surface2);
}
.related-post-text {
    flex: 1;
    min-width: 0;
}
.related-post-title {
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.15s;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post-meta {
    font-family: var(--sans);
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-layout {
    max-width: 720px;
    margin: 0 auto;
}
.about-title {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 8px;
}
.about-subtitle {
    font-family: var(--body);
    font-size: 18px;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.about-content {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.85;
}
.about-content p {
    margin-bottom: 1.5em;
}
.about-content h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    margin: 2em 0 0.75em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--surface2);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 28px;
}
.footer-brand-name {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 10px;
}
.footer-brand-name a {
    color: var(--text);
}
.footer-brand p {
    font-family: var(--body);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.footer-col-title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    font-family: var(--body);
    font-size: 14px;
    color: var(--muted);
    transition: color 0.15s;
}
.footer-links a:hover {
    color: var(--text);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}

/* ============================================
   UTILITIES
   ============================================ */
.img-placeholder {
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 32px;
    width: 100%;
    height: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr 360px;
    }
}
@media (max-width: 860px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-posts-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-layout {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .single-col-left,
    .single-col-right {
        display: none;
    }
    .single-col-left,
    .single-col-right {
        display: none;
    }
    .list-page-layout {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 16px;
    }
    .header-inner {
        padding: 0 16px;
        gap: 16px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .single-cover-wrap {
        max-height: 280px;
    }
}
