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

:root {
  --ink: #0F1117;
  --paper: #F7F4EE;
  --cream: #EDE8DF;
  --rule: #D4CCBC;
  --brass: #B8942A;
  --brass-light: #D4AB3A;
  --muted: #6B6457;
}

html { font-size: 16px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* NAV */
nav {
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--brass); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--brass) !important; }

/* POST HEADER */
.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--rule);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.post-category {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

.post-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rule);
}

.post-date, .post-read-time {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.post-lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}

/* BLOG INDEX HERO */
.blog-hero {
  border-bottom: 1px solid var(--rule);
  padding: 5rem 2rem 4rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.blog-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* BODY LAYOUT */
.post-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: start;
}

/* BLOG INDEX LAYOUT */
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* POST BODY */
.post-body { max-width: 680px; }

.post-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.75rem 0 0.75rem;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.5rem 1.25rem;
}

.post-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.post-body strong {
  font-weight: 600;
  color: var(--ink);
}

.post-body em { font-style: italic; }

.post-body blockquote {
  border-left: 3px solid var(--brass);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.post-body blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0;
}

/* CALLOUT BOX */
.post-callout {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.post-callout p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--muted);
}

.post-callout strong { color: var(--ink); }

/* CTA BLOCK */
.post-cta-block {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.post-cta-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.post-cta-block p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.post-cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}

.post-cta-btn:hover { background: var(--brass); }

/* BACK LINK */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  transition: color 0.15s;
}

.post-back:hover { color: var(--ink); }

/* SIDEBAR */
.post-sidebar { position: sticky; top: 80px; }
.blog-sidebar { position: sticky; top: 80px; }

.sidebar-block {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.sidebar-block p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.sidebar-cta {
  display: block;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-cta:hover { background: var(--brass); }

.sidebar-tools { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-tools li { border-bottom: 1px solid var(--rule); }
.sidebar-tools li:last-child { border-bottom: none; }

.sidebar-tools a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-tools a:hover { color: var(--brass); }
.sidebar-tools a::before { content: '→ '; color: var(--brass); font-size: 0.75rem; }

/* BLOG INDEX POST CARDS */
.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.post-card:first-child { padding-top: 0; }
.post-card:hover { opacity: 0.75; }

.post-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

.post-read-time {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 0.25rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.footer-logo span { color: var(--brass); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .post-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 1.25rem 4rem;
  }

  .blog-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 1.25rem;
  }

  .post-sidebar { position: static; }
  .blog-sidebar { position: static; }
  .post-header { padding: 3rem 1.25rem 2.5rem; }
  .blog-hero { padding: 3rem 1.25rem 2.5rem; }
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .post-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
