@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg:        #fdf8f0;
  --bg-2:      #fdf4e6;
  --bg-card:   #ffffff;
  --text-1:    #1a1108;
  --text-2:    #7a6a55;
  --text-3:    #c4b49e;
  --border:    rgba(26,17,8,0.08);
  --border-med:rgba(26,17,8,0.13);
  --orange:    #ff6b35;
  --font-display: 'Calistoga', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:    14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(253,248,240,0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 20px;
  height: 20px;
}

.nav-dot {
  border-radius: 50%;
  border: 2.5px solid currentColor;
  width: 8px;
  height: 8px;
}

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

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.48rem 1.2rem;
  background: #06d6a0;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(6,214,160,0.3);
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* ── ARTICLE HEADER ── */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ── PROSE ── */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 2.75rem 0 0.85rem;
  line-height: 1.2;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 2rem 0 0.65rem;
  line-height: 1.3;
}

.prose p {
  margin-bottom: 1.4rem;
  color: var(--text-1);
  font-weight: 300;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: 500;
  color: var(--text-1);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-med);
  margin: 2.5rem 0;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: var(--text-1);
  font-weight: 300;
}

.prose a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,107,53,0.35);
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  text-decoration-color: var(--orange);
}

.prose blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: italic;
  color: var(--text-2);
}

/* Checklist styling */
.prose ul.checklist {
  list-style: none;
  padding-left: 0;
}

.prose ul.checklist li {
  padding-left: 1.5rem;
  position: relative;
}

.prose ul.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #06d6a0;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ── ARTICLE FOOTER ── */
.article-footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.article-cta-box {
  background: var(--bg-card);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem;
}

.cta-box-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: block;
}

.cta-box-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.cta-box-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.cta-box-btn {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  background: var(--orange);
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.cta-box-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

/* ── RELATED POSTS ── */
.related {
  margin-top: 3rem;
}

.related-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.related-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--border-med);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,17,8,0.07);
}

.related-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

/* ── BLOG INDEX ── */
.blog-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.blog-hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}

.post-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.22s;
}

.post-card:first-child {
  grid-column: 1 / -1;
}

.post-card:hover {
  border-color: var(--border-med);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(26,17,8,0.08);
}

.post-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
}

.post-card:first-child .post-card-title {
  font-size: 1.4rem;
}

.post-card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  font-weight: 300;
}

.post-card-meta {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

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

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

.footer-note {
  font-size: 0.72rem;
  color: var(--text-3);
}

@media (max-width: 680px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .article-wrap { padding: 2.5rem 1.25rem 4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card:first-child { grid-column: auto; }
}
