:root {
  --accent: #d97706;
  --accent-dark: #b45309;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #888;
  --line: #ebe6dc;
  --bg: #fbf9f4;
  --card: #ffffff;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--ink); }

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

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo .dot { color: var(--accent); }
.brand-tagline {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a.active, .site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.lang-switcher { position: relative; }
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: none;
  padding: 6px 0;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.lang-menu a:hover { background: var(--bg); color: var(--accent); border: none; }
.lang-menu a.active { color: var(--accent); font-weight: 700; }

/* Main */
.site-main { padding: 48px 0; min-height: 60vh; }

/* Home: hero + card grid */
.page-hero {
  text-align: center;
  margin-bottom: 56px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.page-hero p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.card {
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 56px 0 24px;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled { color: var(--muted); pointer-events: none; }

/* Article detail */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article-header { margin-bottom: 32px; }
.article-category {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-meta strong { color: var(--ink-soft); font-weight: 600; }
.article-feature-image {
  margin: 0 -60px 36px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}
.article-feature-image img { width: 100%; height: auto; display: block; }
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  margin: 2.2em 0 0.6em;
  line-height: 1.25;
}
.article-body h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 1.8em 0 0.5em; }
.article-body img {
  margin: 1.6em auto;
  border-radius: 4px;
  max-width: 100%;
}
.article-body figure { margin: 1.6em 0; }
.article-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 28px; }
.article-body li { margin-bottom: 0.4em; }
.article-body a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--ink); }

.related-posts {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.related-posts h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 28px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #d4d4d4;
  padding: 48px 0 36px;
  margin-top: 64px;
  text-align: center;
}
.site-footer .footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 14px;
}
.site-footer .dot { color: var(--accent); }
.site-footer .footer-nav { font-size: 13px; margin-bottom: 14px; }
.site-footer .footer-nav a { color: #d4d4d4; }
.site-footer .footer-nav a:hover { color: var(--accent); }
.site-footer .footer-nav .sep { color: #555; margin: 0 8px; }
.site-footer .footer-copy { font-size: 12px; color: #888; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: 12px; padding: 14px 24px; }
  .site-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .site-main { padding: 32px 0; }
  .page-hero h1 { font-size: 34px; }
  .article-title { font-size: 30px; }
  .article-feature-image { margin: 0 -24px 28px; border-radius: 0; }
}
