:root {
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --ink: #1A1A18;
  --paper: #F5F2EA;
  --paper-mid: #EDE9DC;
  --muted: #7A7669;
  --rule: #D4CEBC;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Playfair Display', serif;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

/* ── HEADER ── */
header {
  text-align: center;
  padding: 28px 0 12px;
  border-bottom: 3px solid var(--ink);
}

.site-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  display: inline-block;
}

.site-title:hover { color: var(--ink); }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: 0 24px;
  height: 42px;
  gap: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  height: 100%;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  cursor: pointer;
}

.nav-item:hover { color: var(--gold-light); }
.nav-item.active { background: var(--gold); color: var(--ink); }
.nav-sep { color: #444; font-size: 16px; padding: 0 2px; user-select: none; }
.nav-search { margin-left: auto; color: var(--paper); cursor: pointer; gap: 8px; }
.nav-search:hover { color: var(--gold-light); }

/* ── PAGE WRAPPER ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ROW ── */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  border-bottom: 1px solid var(--rule);
  padding: 32px 0 28px;
}

.hero-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding-right: 32px;
  border-right: 1px solid var(--rule);
}

.post-thumb {
  background: var(--ink);
  aspect-ratio: 4/3;
  object-fit: cover;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.post-thumb:hover { opacity: 0.85; }
.post-thumb.tall { aspect-ratio: 3/4; height: 100%; max-height: 220px; }

/* ── POST TEXT ── */
.post-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.15s;
}

.post-title:hover { color: var(--gold); }

.post-meta {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.post-meta .date { font-weight: 600; }
.tag { color: var(--gold); font-weight: 600; }
.tag:hover { color: var(--gold-light); }

.post-excerpt {
  font-size: 12.5px;
  line-height: 1.65;
  color: #3A3A36;
}

/* ── SIDEBAR ── */
.sidebar { padding-left: 28px; }

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.read-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}

.read-item:last-child { border-bottom: none; margin-bottom: 0; }

.read-title {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
  transition: color 0.15s;
  display: block;
}

.read-title:hover { color: var(--gold); }
.read-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ── SECONDARY ROW ── */
.secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}

.secondary-post {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--rule);
}

.secondary-post:last-child {
  border-right: none;
  padding-left: 24px;
  padding-right: 0;
  margin-right: 0;
}

.secondary-post .post-title { font-size: 1.05rem; line-height: 1.2; }

/* ── FOOTER TEASERS ── */
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px 0 32px;
}

.footer-teaser {
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--rule);
}

.footer-teaser:last-child { border-right: none; padding-left: 24px; margin-right: 0; }

.teaser-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.teaser-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1.2;
  margin-bottom: 4px;
  display: block;
}

.teaser-title:hover { color: var(--gold); }
.teaser-meta { font-size: 10.5px; color: var(--muted); }

/* ── SITE FOOTER ── */
.site-footer {
  border-top: 3px solid var(--ink);
  padding: 14px 0;
  font-size: 11px;
  color: var(--muted);
}

.site-footer .page { display: flex; justify-content: space-between; align-items: center; }

/* ── SECTION LIST PAGE ── */
.section-header {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
}

.post-list { display: flex; flex-direction: column; gap: 24px; padding: 24px 0; }

.post-list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.post-list-item:last-child { border-bottom: none; }
.list-title { font-size: 1.3rem; }

/* ── SINGLE POST ── */
.single-post { padding: 32px 0 48px; max-width: 720px; }

.hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 24px;
}

.single-header { margin-bottom: 28px; }
.single-title { font-size: 2.4rem !important; }

.post-body {
  font-size: 14px;
  line-height: 1.8;
  color: #2A2A26;
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 28px 0 12px;
}

.post-body p { margin-bottom: 16px; }

.post-body a { color: var(--gold); border-bottom: 1px solid var(--gold); }

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  color: var(--muted);
  margin: 20px 0;
  font-style: italic;
}

.post-body code {
  background: var(--paper-mid);
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 12px;
}

.post-body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}

.post-nav-link { color: var(--gold); font-weight: 600; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-post   { animation: fadeUp 0.5s ease both 0.05s; }
.sidebar     { animation: fadeUp 0.5s ease both 0.15s; }
.secondary-post:nth-child(1) { animation: fadeUp 0.5s ease both 0.2s; }
.secondary-post:nth-child(2) { animation: fadeUp 0.5s ease both 0.28s; }
.footer-teaser:nth-child(1) { animation: fadeUp 0.5s ease both 0.35s; }
.footer-teaser:nth-child(2) { animation: fadeUp 0.5s ease both 0.4s; }
.footer-teaser:nth-child(3) { animation: fadeUp 0.5s ease both 0.45s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-post { grid-template-columns: 1fr; border-right: none; padding-right: 0; }
  .sidebar { padding-left: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
  .secondary-row { grid-template-columns: 1fr; }
  .secondary-post { border-right: none; padding-left: 0 !important; margin: 0 0 20px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-teaser { border-right: none; padding-left: 0 !important; margin: 0 0 20px; }
  .post-thumb.tall { max-height: 200px; aspect-ratio: 16/9; width: 100%; }
  nav { overflow-x: auto; }
}
