/* Chatmend blog — self-contained styling built on the site's brand tokens
   (mirrors :root in ../styles.css so the blog matches the landing page without
   depending on its landing-specific classes). */

:root {
  --paper:      #f6f3ea;
  --paper-2:    #fffdf7;
  --paper-3:    #efeadd;
  --ink:        #211f1a;
  --ink-soft:   #57534a;
  --ink-faint:  #6e6a61;
  --teal:       #15665d;
  --teal-deep:  #0e4a43;
  --teal-wash:  #d9ebe7;
  --amber:      #b1781d;
  --line:       rgba(33, 31, 26, 0.10);
  --line-soft:  rgba(33, 31, 26, 0.06);
  --shadow-sm:  0 1px 2px rgba(33,31,26,.05), 0 2px 8px rgba(33,31,26,.04);
  --shadow-md:  0 6px 24px rgba(33,31,26,.08), 0 2px 6px rgba(33,31,26,.05);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:    18px;
  --maxw:      760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--teal-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
  font-size: 15px;
  transition: top 0.15s ease-in-out;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
  text-decoration: none;
  outline: 3px solid var(--amber);
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

del.strike, .strike { text-decoration: line-through; color: var(--ink-faint); }
ins.mend, .mend { text-decoration: none; color: var(--teal-deep); font-weight: 600; background: var(--teal-wash); padding: 1px 4px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* --- nav --- */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(246,243,234,.85);
  backdrop-filter: saturate(1.2) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 20px; }
.brand b { font-weight: 700; }
.brand .accent { color: var(--teal); font-weight: 600; }
.nav-links a { color: var(--ink-soft); margin-left: 22px; font-weight: 500; font-size: 15px; }

/* --- article header --- */
.post-head { padding: 40px 0 8px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color .15s ease;
}
.back-link:hover {
  color: var(--teal);
  text-decoration: none;
}
.eyebrow {
  display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 12px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12; letter-spacing: -.01em; margin: 0 0 16px;
}
.post-meta { color: var(--ink-faint); font-size: 15px; margin-bottom: 8px; }

/* --- article body --- */
article { padding-bottom: 40px; }
article h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2;
  margin: 40px 0 12px; letter-spacing: -.01em;
}
article p { margin: 0 0 18px; }
article strong { font-weight: 700; }
article em { font-style: italic; }
article ul { margin: 0 0 18px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.lead { font-size: 21px; line-height: 1.55; color: var(--ink-soft); }

/* --- CTA card --- */
.cta {
  background: var(--teal-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 36px 0 16px;
  box-shadow: var(--shadow-sm);
}
.cta-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0 0 10px;
  line-height: 1.3;
}
.cta p { margin: 0 0 18px; color: var(--teal-deep); font-size: 16.5px; line-height: 1.55; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #fff;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn:hover { background: var(--teal-deep); text-decoration: none; color: #fff; }
.cta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.store-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.store-badge-link:hover {
  transform: translateY(-1.5px);
  opacity: .92;
}
.store-badge-link svg,
.store-badge-link img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 7px;
}

/* --- article bottom navigation --- */
.article-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.article-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--teal);
  text-decoration: none;
  transition: color .15s ease;
}
.article-nav-link:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}
.article-nav-link.back {
  color: var(--ink-soft);
  font-weight: 500;
}
.article-nav-link.back:hover {
  color: var(--teal);
  text-decoration: none;
}

/* --- blog index --- */
.index-head { padding: 56px 0 10px; }
.index-head h1 { margin-bottom: 8px; }
.index-head p { color: var(--ink-soft); font-size: 19px; margin-top: 0; }
.post-list { list-style: none; padding: 0; margin: 24px 0 60px; }
.post-list li {
  border-top: 1px solid var(--line); padding: 24px 0;
}
.post-list a.title {
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  color: var(--ink); line-height: 1.2; display: inline-block; margin-bottom: 6px;
}
.post-list a.title:hover { color: var(--teal); text-decoration: none; }
.post-list .excerpt { color: var(--ink-soft); margin: 6px 0 0; }
.tag-chip {
  display: inline-block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 4px;
}

/* --- footer --- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--ink-faint); font-size: 15px; }
.footer .wrap { max-width: 1140px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer a { color: var(--ink-soft); margin-left: 18px; }
.footer .foot-links { display: flex; flex-wrap: wrap; }

@media (max-width: 560px) {
  .nav-links { display: none; }
  body { font-size: 17px; }
}
