*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f7f5f2;
    --bg-search: #f0eae3b5;
    --bg-content: #faf8f5;
    --surface: #ffffff;
    --text: #1a1a1a;
    --muted: #888888;
    --accent: #a08855;
    --accent-light: #f5eed8;
    --border: #e8e4de;
    --border-warm: #e2d9cf;
    --radius: 16px;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-warm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { text-decoration: none; }

.logo-img {
    width: 200px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

nav { display: flex; gap: 32px; }

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s;
    letter-spacing: 0.1px;
}

nav a:hover { color: var(--accent); }

/* ── Page top (search area) ── */
.page-top {
    background: var(--bg-search);
    padding: 36px 0 32px;
    border-bottom: 1px solid var(--border-warm);
}

.page-top .tagline {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}

.page-top .hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

.page-top .hero-title em {
    color: var(--accent);
    font-style: italic;
}

.search-bar {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 40px;
    background: var(--surface);
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-bar svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

/* ── Main ── */
.site-main {
    background: var(--bg-content);
    padding: 52px 0 96px;
}

/* ── Category tabs ── */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.tab {
    padding: 7px 20px;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    background: var(--surface);
    transition: all 0.15s;
    letter-spacing: 0.3px;
}

.tab:hover, .tab.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

/* ── Article grid ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 16px;
}

.card-body { padding: 24px; }

.tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 10px;
}

.tag:hover { color: var(--accent); }

.card-body h2 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.card-body h2 a:hover { color: var(--accent); }

.excerpt {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-date {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 500;
}

.read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.read-more:hover { text-decoration: underline; }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ── Article full ── */
.article-full { max-width: 860px; margin: 0 auto; }

.cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.article-header { margin-bottom: 36px; }

.article-header h1 {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0 12px;
}

.meta { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.article-body {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text);
}

.article-body p { margin-bottom: 1.5em; }

.article-illustration {
    width: 100%;
    border-radius: var(--radius);
    margin: 36px 0;
    display: block;
    box-shadow: var(--shadow);
}

.source {
    margin-top: 36px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── Related ── */
.related { margin-top: 72px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.related h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
}

/* ── Page header (category + home) ── */
.page-header { margin-bottom: 40px; }

.page-header h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.15;
}

.page-header p { color: var(--muted); font-size: 0.95rem; }

/* ── Footer ── */
.site-footer {
    background: #f0ebe4;
    border-top: 1px solid var(--border-warm);
    padding: 56px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-logo { width: 180px; mix-blend-mode: multiply; }

.footer-tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 280px; }

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 9px 18px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.15s;
}

.tg-btn:hover { opacity: 0.85; }

.footer-col h4 {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-warm);
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Static pages (About, Privacy, Contact) ── */
.static-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0 48px;
}

.static-page h1 {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.static-page h2 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 36px 0 12px;
}

.static-page p, .static-page li {
    font-size: 0.97rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 14px;
}

.static-page ul { padding-left: 20px; margin-bottom: 14px; }
.static-page a { color: var(--accent); }
.static-page .lead { font-size: 1.1rem; color: var(--text); font-style: italic; margin-bottom: 24px; }

.contact-options { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s;
}

.contact-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.contact-card svg { color: var(--accent); flex-shrink: 0; }

.contact-card strong { display: block; font-weight: 700; margin-bottom: 2px; }

.contact-card span { font-size: 0.88rem; color: var(--muted); }

.empty { color: var(--muted); padding: 48px 0; }

/* ── Scroll to top ── */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 200;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover { opacity: 0.85; }

/* ── Hamburger ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.mobile-nav a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 720px) {
    .article-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    nav { display: none; }
    .burger { display: flex; }
    .page-top { padding: 28px 0 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .logo-img { width: 160px; }
    .card-body { padding: 18px; }
    .search-bar input { font-size: 0.88rem; padding: 12px 16px 12px 44px; }
}
