/* Shared styling for Saymail blog posts. Reading-focused: long line lengths
   capped, comfortable spacing, prominent template cards. */

:root {
  --bg:           #F7F5F0;
  --surface:      #FFFFFF;
  --ink:          #1A1714;
  --ink-soft:     #6B6560;
  --accent:       #2D6A4F;
  --accent-deep:  #1F4D38;
  --accent-light: #D8EDE4;
  --accent-warm:  #E8A838;
  --border:       #E4E0D8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

/* ---- nav ---- */
.blog-nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.blog-nav-inner {
  max-width: 760px; margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.blog-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.blog-logo svg { width: 26px; height: 26px; display: block; }
.blog-logo span {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 21px; letter-spacing: -0.4px;
}
.blog-cta {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.blog-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* ---- article layout ---- */
article {
  max-width: 720px; margin: 0 auto;
  padding: 64px 28px 96px;
}

.post-eyebrow {
  font-weight: 600; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.post-meta {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 40px;
  display: flex; gap: 14px; align-items: center;
}
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.6px;
  margin-bottom: 22px;
}
.post-lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 56px 0 16px;
}
h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 36px 0 12px;
}
p, ul, ol { margin-bottom: 20px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

/* ---- template card ---- */
.tpl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 20px 0 32px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--ink);
}
.tpl-label {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-weight: 600; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}

/* ---- do / don't ---- */
.do-dont {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 16px 0 32px;
}
@media (max-width: 640px) { .do-dont { grid-template-columns: 1fr; } }
.do-dont .col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.do-dont h4 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 18px; margin-bottom: 10px;
}
.do-dont ul { padding-left: 18px; margin: 0; }
.do-dont li { font-size: 15px; line-height: 1.55; }

/* ---- inline CTA / takeaway box ---- */
.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0 32px;
  font-size: 15.5px;
  color: var(--accent-deep);
}
.callout strong { color: var(--accent-deep); }

/* ---- big CTA box ---- */
.post-cta {
  background: var(--ink); color: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 56px 0 0;
}
.post-cta h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 26px; margin-bottom: 10px; color: #fff;
}
.post-cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
}
.post-cta a {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.post-cta a:hover { background: var(--accent-deep); }

/* ---- footer ---- */
.post-foot {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 24px;
  font-size: 14px; color: var(--ink-soft);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.post-foot a { text-decoration: none; }
.post-foot a:hover { text-decoration: underline; }
