@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --primary: #4a5568;
  --accent: #8b7355;
  --bg: #f5f3ef;
  --bg-card: #ffffff;
  --text: #2d3748;
  --muted: #718096;
  --border: #d4cfc4;
  --container: 960px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --radius: 6px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Split nav header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-link:hover { text-decoration: none; }
.logo-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.logo-sub { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

.header-meta { font-size: 0.85rem; color: var(--muted); }

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
}

.nav-links { display: flex; gap: var(--space-md); list-style: none; }
.nav-links a { color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: var(--radius);
}

/* Editorial columns homepage */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-lg);
  align-items: center;
}

.hero-lead h1 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.hero-lead .dek { font-size: 1.1rem; color: var(--muted); margin-bottom: var(--space-md); }

.tag { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.tag::before { content: '['; }
.tag::after { content: ']'; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

.columns-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.sidebar-left {
  border-right: 1px solid var(--border);
  padding-right: var(--space-md);
}

.sidebar-section { margin-bottom: var(--space-lg); }
.sidebar-section h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent);
}

.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: var(--space-xs); font-size: 0.9rem; }
.sidebar-list a { color: var(--text); }

.main-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* Bordered cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #e8e4dc; }
.card-body { padding: var(--space-sm); }
.card-body h3 { font-family: var(--font-head); font-size: 1.1rem; margin: 6px 0; line-height: 1.3; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-meta { font-size: 0.8rem; color: var(--muted); }

.section-block { margin-bottom: var(--space-xl); }
.section-block h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: var(--space-md); border-left: 3px solid var(--accent); padding-left: var(--space-sm); }

.featured-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.featured-main .card { height: 100%; }
.featured-side { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Article page */
.article-header { padding: var(--space-lg) 0 var(--space-md); max-width: 720px; }
.article-header h1 { font-family: var(--font-head); font-size: 2rem; line-height: 1.3; margin-bottom: var(--space-sm); }
.article-byline { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

.author-inline { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.article-body { max-width: 680px; }
.article-body p { margin-bottom: var(--space-sm); }
.article-body h2 { font-family: var(--font-head); font-size: 1.35rem; margin: var(--space-md) 0 var(--space-sm); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--muted);
  background: var(--bg-card);
}

.article-sidebar .author-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: var(--space-xs); }
.author-box h4 { font-family: var(--font-head); margin-bottom: 4px; }
.author-box p { font-size: 0.85rem; color: var(--muted); }

.related-list { list-style: none; }
.related-list li { padding: var(--space-xs) 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

/* Page content */
.page-content { padding: var(--space-lg) 0 var(--space-xl); max-width: 720px; }
.page-content h1 { font-family: var(--font-head); font-size: 2rem; margin-bottom: var(--space-md); }
.page-content h2 { font-family: var(--font-head); font-size: 1.25rem; margin: var(--space-md) 0 var(--space-sm); }
.page-content p { margin-bottom: var(--space-sm); }
.page-content ul { margin: var(--space-sm) 0 var(--space-sm) var(--space-md); }

.articles-list { display: flex; flex-direction: column; gap: var(--space-md); }
.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-row img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.article-row-body { padding: var(--space-md); }

.contact-form label { display: block; margin-bottom: var(--space-xs); font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  margin-bottom: var(--space-sm);
  background: var(--bg-card);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Three-column footer */
.site-footer {
  background: var(--primary);
  color: #e2e8f0;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-col h4 { font-family: var(--font-head); margin-bottom: var(--space-sm); color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; font-size: 0.9rem; }
.footer-col a { color: #cbd5e0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-sm); font-size: 0.85rem; color: #a0aec0; text-align: center; }

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1000;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-main { position: relative; }
  .hero-split, .columns-layout, .card-grid, .featured-row, .article-layout, .article-row, .footer-grid { grid-template-columns: 1fr; }
  .sidebar-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: var(--space-md); }
  .hero-lead h1 { font-size: 1.6rem; }
}
