/* Static prerender pages — aligned with web/blog/post.html reading layout */
:root {
  --primary: #2ea8a0;
  --primary-dark: #238f88;
  --primary-light: #7fd4ce;
  --primary-wash: #e6f4f2;
  --primary-soft: #c9e7e4;
  --coral: #e8706a;
  --coral-wash: #fbe5e3;
  --mint: #45b87a;
  --mint-wash: #e1f2e8;
  --sky: #5b9ed6;
  --sky-wash: #e1edf7;
  --lavender: #9a6dc8;
  --lavender-wash: #ede4f4;
  --lavender-soft: #d7c2e8;
  --sunflower: #e8b840;
  --sunflower-wash: #faf1d5;
  --rose: #e88aa3;
  --rose-wash: #fbe5ec;
  --bg: #faf6f1;
  --surface: #fff;
  --cream: #f5efe8;
  --border: #ede6db;
  --fg1: #2d2018;
  --fg2: #5c4a3a;
  --fg3: #8a7f72;
  --f-disp: "Nunito", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-article: "Lora", Georgia, serif;
  --accent: var(--lavender);
  --accent-wash: var(--lavender-wash);
  --accent-soft: var(--lavender-soft);
}

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

html,
body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--fg1);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 12px -4px rgba(46, 168, 160, 0.45);
}

.topnav a.blog-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.topnav a.blog-link:hover {
  text-decoration: underline;
}

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg3);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.post-header {
  margin-bottom: 36px;
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

h1.post-title {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--fg1);
  text-wrap: balance;
  margin-bottom: 18px;
}

.post-deck {
  font-family: var(--f-article);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--fg2);
  text-wrap: pretty;
  font-weight: 400;
  max-width: 62ch;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg3);
}

.post-meta strong {
  color: var(--fg1);
  font-weight: 700;
}

.read-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-wash);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.cover {
  position: relative;
  margin: 36px 0;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-wash), var(--primary-wash));
  display: grid;
  place-items: center;
}

.cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  display: inline-block;
  background: #e7f5f3;
  color: #238f88;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.disclaimer {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--coral);
  margin: 0 0 36px;
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--fg1);
  display: block;
  margin-bottom: 2px;
}

.disclaimer p {
  margin: 6px 0 0;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.55;
}

.post-content {
  font-family: var(--f-article);
  font-size: 19px;
  line-height: 1.8;
  color: #3a2d22;
  max-width: 62ch;
}

.post-content > p:first-of-type::first-letter {
  font-family: var(--f-disp);
  font-weight: 800;
  float: left;
  font-size: 64px;
  line-height: 1;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

.post-content p {
  margin-bottom: 22px;
}

.post-content h2 {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: var(--fg1);
  letter-spacing: -0.6px;
  margin: 46px 0 14px;
  position: relative;
}

.post-content h2:not(.faq-heading)::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 12px;
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--accent);
  display: block;
}

.post-content h3 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--fg1);
  margin: 32px 0 10px;
  letter-spacing: -0.3px;
}

.post-content ul,
.post-content ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.post-content ul li::marker {
  color: var(--accent);
}

.post-content a {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary-soft);
}

.post-content strong {
  color: var(--fg1);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
  color: var(--fg2);
}

.post-content blockquote {
  margin: 28px 0;
  padding: 14px 20px 14px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, var(--primary-wash), #fff);
  font-style: italic;
  color: var(--fg2);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 28px auto;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.92em;
  font-family: var(--f-body);
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 0.55em 0.75em;
  text-align: left;
  vertical-align: top;
}

.post-content thead th {
  background: var(--primary-wash);
  font-weight: 600;
}

.post-content tbody tr:nth-child(even) {
  background: rgba(250, 246, 241, 0.55);
}

.post-content code {
  background: var(--cream);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.post-content pre {
  background: var(--fg1);
  color: #f5f0e8;
  padding: 20px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.85em;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-content h2.faq-heading {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px dashed var(--border);
  font-size: 28px;
  margin-bottom: 20px;
}

.post-content h2.faq-heading::before {
  display: none !important;
}

.post-content h3.faq-question {
  font-size: 16px;
  margin: 0;
  padding: 18px 22px;
  border: 1.5px solid var(--border);
  border-radius: 18px 18px 0 0;
  background: #fff;
  line-height: 1.35;
}

.post-content p.faq-answer {
  margin: -1px 0 12px;
  padding: 0 22px 18px;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 18px 18px;
  background: #fff;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
}

/* Updated date */
.updated {
  font-weight: 400;
  color: var(--fg3);
  font-size: 13px;
}

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
}

.share-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--fg2);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.related ul {
  list-style: none;
  padding: 0;
}

.related li {
  margin-bottom: 10px;
}

.related a {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.cta {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.cta a {
  display: inline-block;
  margin-top: 14px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
}

.footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg3);
  max-width: 62ch;
}

@media (max-width: 900px) {
  .article-wrap {
    padding: 24px 20px 60px;
  }

  .post-content {
    font-size: 17px;
    line-height: 1.75;
  }

  .post-content > p:first-of-type::first-letter {
    font-size: 52px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h2:not(.faq-heading)::before {
    display: none;
  }

  .read-pill {
    margin-left: 0;
  }
}
