/* growth-6: shared stylesheet for every hand-written blog page (index +
   posts). Pure CSS, no build step, no JS, matches this project's existing
   "lighter bespoke static pages" approach (seo-1/seo-2) rather than pulling
   these into the Expo/React bundle. Linked from every public/blog page's
   index.html via a stylesheet link tag, so a single edit here updates
   every page at once. */

:root {
  --bg: #f2efe6;
  --bg-deep: #ece7d9;
  --surface: #fffdf8;
  --ink: #221d17;
  --ink-soft: #6b6255;
  --ink-faint: #80745e;
  --accent: #9c5c44;
  --accent-ink: #6b3d2c;
  --accent-tint: #f0ddd0;
  --border: rgba(34, 29, 23, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / masthead */

.site-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand .word {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-size: 21px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.brand .word .life {
  font-weight: 700;
  color: var(--ink);
}

.brand .word .of {
  font-weight: 400;
  color: var(--accent);
  font-size: 14px;
  margin: 0 1px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

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

.breadcrumb {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
  margin: 18px 0 0;
}

.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-ink);
}

.breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* Article */

main.post {
  padding-top: 48px;
  padding-bottom: 64px;
}

main.post h1 {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}

main.post h1 + p.page-tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  color: var(--ink-soft);
  margin: -4px 0 30px;
}

main.post .post-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-style: normal;
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 34px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

main.post .post-date em {
  font-style: normal;
}

main.post h2 {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--ink);
  margin: 42px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

main.post p {
  margin: 0 0 22px;
  color: var(--ink);
}

main.post a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

main.post a:hover {
  color: var(--accent);
}

/* Closing "Read more" / "Try it" section: the last h2 + its paragraph,
   given a distinct card treatment so it reads as a deliberate call-to-action
   rather than just another section. */

main.post > h2:last-of-type {
  border-left: none;
  padding-left: 0;
  margin-top: 56px;
  margin-bottom: 0;
  background: var(--accent-tint);
  color: var(--accent-ink);
  padding: 22px 26px 4px;
  border-radius: 14px 14px 0 0;
}

main.post > h2:last-of-type + p {
  background: var(--accent-tint);
  border-radius: 0 0 14px 14px;
  padding: 4px 26px 26px;
  margin-bottom: 0;
}

/* Blog index list */

main.index-list {
  padding-top: 48px;
  padding-bottom: 64px;
}

main.index-list h1 {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 38px;
  margin: 0 0 10px;
}

main.index-list > p.lede {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 40px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.post-list a.title {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.post-list a.title:hover {
  color: var(--accent-ink);
}

.post-list .meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 6px;
}

.post-list .excerpt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.site-footer .wrap {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer,
.site-footer a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
}

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

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  main.post h1,
  main.index-list h1 {
    font-size: 30px;
  }
  main.post h2 {
    font-size: 20px;
  }
  main.post,
  main.index-list {
    padding-top: 36px;
  }
}
