:root {
  --brand: #e06020;
  --brand-dark: #b34c14;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --rule: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --max-width: 720px;
  --max-width-wide: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header-inner {
  max-width: var(--max-width-wide); margin: 0 auto;
  padding: 24px 24px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 50px; width: auto; display: block; }
.site-nav {
  display: flex; gap: 28px;
  font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.site-nav a {
  color: var(--ink-soft); padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--brand); }

main { max-width: var(--max-width-wide); margin: 0 auto; padding: 40px 24px 80px; }
.narrow { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

.post-list { display: flex; flex-direction: column; gap: 56px; }
.post-card { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) {
  .post-card { grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
}
.post-card-hero {
  display: block; width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: var(--bg-soft); border-radius: 4px;
}
.post-card-body h2 {
  font-size: 24px; font-weight: 600;
  margin: 0 0 12px; line-height: 1.25;
}
.post-card-body h2 a { color: var(--ink); }
.post-card-body h2 a:hover { color: var(--brand); text-decoration: none; }
.post-excerpt { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.read-more {
  display: inline-block; margin-top: 10px;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.post-article header { margin-bottom: 28px; }
.post-article h1 {
  font-size: 38px; line-height: 1.18; margin: 0 0 12px;
  font-weight: 700; letter-spacing: -0.01em;
}
.post-article .hero {
  width: 100%; height: auto; display: block;
  margin: 0 0 32px; border-radius: 4px;
}
.post-body p { margin: 0 0 1.2em; }
.post-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 1em 0; }
.post-body h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.post-body blockquote {
  border-left: 3px solid var(--brand);
  margin: 1.5em 0; padding: .2em 1.2em;
  color: var(--ink-soft); font-style: italic;
}
.post-body a { border-bottom: 1px solid currentColor; }
.post-body ul, .post-body ol { padding-left: 1.4em; }

.pagination {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.pagination a {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.pagination a:hover { color: var(--brand); text-decoration: none; }
.pagination .disabled { color: var(--rule); pointer-events: none; }
.pagination .page-info { font-size: 13px; color: var(--muted); }

.site-footer {
  margin-top: 80px; padding: 40px 24px;
  border-top: 1px solid var(--rule);
  text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer a { color: var(--ink-soft); }

.page-content h2 { font-size: 22px; margin-top: 1.4em; }
.page-content p { font-size: 16px; }


/* ===== Post prev/next navigation ===== */
.post-nav {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav a, .post-nav .disabled {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.post-nav a:hover {
  border-color: var(--brand);
  background: var(--bg-soft);
  text-decoration: none;
}
.post-nav .post-nav-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.post-nav .post-nav-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.post-nav .post-nav-next {
  text-align: right;
}
.post-nav .disabled {
  opacity: 0.4;
  background: var(--bg-soft);
  border-style: dashed;
  cursor: default;
}
.post-nav .disabled .post-nav-title { display: none; }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
}
