:root {
    --bg: #faf7f2;
    --surface: #ffffff;
    --ink: #2b2a26;
    --ink-soft: #5c5a52;
    --accent: #6a8f6b;
    --accent-dark: #4d6f4e;
    --border: #e8e2d5;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(60, 50, 30, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 17px;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.01em; color: var(--ink); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    margin-bottom: 40px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; }
.brand-name { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--ink); }
.brand-tag { font-size: 13px; color: var(--ink-soft); }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--ink-soft); }

.site-footer { margin-top: 80px; padding: 30px 0; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 14px; text-align: center; }

/* Cards de post na home */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(60,50,30,.09); }
.post-card h2 { margin: 0 0 8px; font-size: 26px; }
.post-card h2 a { color: var(--ink); }
.post-meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.post-cover { width: 100%; height: auto; border-radius: 10px; margin-bottom: 18px; display: block; }
.post-intro { color: var(--ink-soft); margin: 0 0 18px; }
.read-more {
    display: inline-block; padding: 10px 18px; background: var(--accent);
    color: #fff; border-radius: 999px; font-weight: 500; font-size: 14px;
}
.read-more:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

/* Post completo */
.post-full { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.post-full h1 { font-size: 40px; margin: 0 0 8px; line-height: 1.15; }
.post-full .post-content { margin-top: 24px; font-size: 18px; }
.post-full .post-content p { margin: 0 0 18px; }
.post-full .post-cover { margin: 24px 0; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); font-size: 14px; }

.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin: 24px 0; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Formulários e admin */
.auth-card, .admin-panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow); max-width: 480px; margin: 40px auto;
}
.admin-panel { max-width: 780px; }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
input[type=text], input[type=password], input[type=url], input[type=file], textarea, select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
    font: inherit; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
textarea.large { min-height: 260px; }
.btn {
    display: inline-block; padding: 11px 22px; background: var(--accent); color: #fff;
    border: 0; border-radius: 999px; font-weight: 500; cursor: pointer; font-size: 15px;
    text-decoration: none;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-danger { background: #b04a4a; }
.btn-danger:hover { background: #8f3838; }
.form-row { margin-bottom: 8px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.flash.error { background: #fdecec; color: #8f2323; }
.flash.success { background: #e8f2e8; color: #2f5c30; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-header h1 { margin: 0; font-size: 28px; }
table.posts-list { width: 100%; border-collapse: collapse; }
table.posts-list th, table.posts-list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 15px; }
table.posts-list th { color: var(--ink-soft); font-weight: 500; font-size: 13px; text-transform: uppercase; }
.actions a { margin-right: 10px; font-size: 14px; }

@media (max-width: 600px) {
    .post-full { padding: 24px; }
    .post-full h1 { font-size: 30px; }
    .post-card { padding: 22px; }
}
