:root {
  --ink: #14202c;
  --ink-soft: #2a3a4a;
  --cream: #faf6ee;
  --paper: #ffffff;
  --sand: #f1e8d6;
  --sunset: #0047AB;
  --sunset-deep: #00337A;
  --gold: #c8a049;
  --forest: #20503a;
  --line: rgba(20, 32, 44, 0.08);
  --shadow-sm: 0 2px 8px rgba(20, 32, 44, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 32, 44, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 32, 44, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-logo { height: 46px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--sunset); }
.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.lang-toggle button.active {
  background: var(--sunset); color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 71, 171, 0.4);
}
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ─── BLOG HERO ─── */
.blog-hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 71, 171, 0.10) 0%, transparent 60%),
    var(--cream);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.blog-hero .wrap { max-width: 900px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(0, 71, 171, 0.10); color: var(--sunset);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: 18px;
}
.blog-hero h1 { margin-bottom: 18px; }
.blog-hero h1 em { font-style: italic; color: var(--sunset); font-weight: 500; }
.blog-hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ─── POST GRID ─── */
.blog-list { padding: 70px 0 100px; }
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.post-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .3s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-thumb {
  display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--sand);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb--placeholder {
  background: linear-gradient(135deg, var(--sunset) 0%, var(--gold) 100%);
}
.post-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post-date {
  display: block; font-size: 0.78rem; color: var(--ink-soft);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.post-body h3 { margin-bottom: 10px; }
.post-body h3 a { color: var(--ink); transition: color .2s; }
.post-body h3 a:hover { color: var(--sunset); }
.post-body p { font-size: 0.95rem; flex: 1; margin-bottom: 16px; }
.read-more {
  color: var(--sunset); font-weight: 600; font-size: 0.92rem;
  transition: color .2s;
}
.read-more:hover { color: var(--sunset-deep); }

.post-empty {
  text-align: center; padding: 80px 20px;
  background: var(--paper); border-radius: var(--radius-lg);
}
.post-empty h3 { margin-bottom: 8px; color: var(--ink); }

/* ─── PAGINATION ─── */
.pagination {
  margin-top: 60px; display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 10px 16px; border-radius: 999px; font-weight: 600;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
  transition: all .2s; min-width: 44px; text-align: center;
}
.pagination a:hover { color: var(--sunset); border-color: var(--sunset); }
.pagination .current { background: var(--sunset); color: #fff; border-color: var(--sunset); }

/* ─── SINGLE POST ─── */
.post-single-hero {
  width: 100%; max-height: 60vh; overflow: hidden;
  background: var(--sand);
}
.post-single-hero img { width: 100%; height: 100%; max-height: 60vh; object-fit: cover; display: block; }
.post-single-body {
  max-width: 760px; padding: 60px 24px 100px;
}
.back-link {
  display: inline-block; color: var(--sunset); font-weight: 600;
  font-size: 0.92rem; margin-bottom: 28px;
}
.back-link:hover { color: var(--sunset-deep); }
.post-single h1 { margin: 8px 0 32px; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.post-content {
  font-size: 1.08rem; line-height: 1.75; color: var(--ink);
}
.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content figure,
.post-content pre { margin-bottom: 1.4em; }
.post-content h2 { margin: 2em 0 .8em; font-size: 1.8rem; }
.post-content h3 { margin: 1.7em 0 .6em; font-size: 1.4rem; }
.post-content ul, .post-content ol { padding-left: 1.6em; }
.post-content li { margin-bottom: .5em; }
.post-content a { color: var(--sunset); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--sunset-deep); }
.post-content blockquote {
  border-left: 3px solid var(--sunset);
  padding: 6px 0 6px 22px;
  font-style: italic; color: var(--ink-soft);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; line-height: 1.5;
}
.post-content img { border-radius: var(--radius-md); margin: 1.6em auto; }
.post-content code {
  background: var(--sand); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em;
}

/* ─── FOOTER ─── */
footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { height: 58px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-about { font-size: 0.95rem; max-width: 380px; color: rgba(255,255,255,0.7); }
.footer-col h4 { color: #fff; font-family: 'Inter'; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--sunset); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--line); gap: 18px; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 60px 0 50px; }
  .blog-list { padding: 50px 0 80px; }
  .post-single-body { padding: 40px 22px 70px; }
}
