/**
 * Shared styles: tokens, blog listing, article layout, inner nav.
 * Homepage loads home.css after this file.
 */


  /* Shopify-inspired: neutral surfaces, brand green, Inter (closest public match to Shopify Sans) */
  :root {
    --ink: #212326;
    --ink-2: #4a4d51;
    --ink-3: #6d7175;
    --cream: #ffffff;
    --cream-2: #f6f6f7;
    --cream-3: #e1e3e5;
    --accent: #008060;
    --accent-light: #e3f1ed;
    --accent-dark: #006e52;
    --green: #108043;
    --green-light: #e3f1e9;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sans: var(--font);
    --serif: var(--font);
    --r: 10px;
    --r-lg: 18px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .page-blog {
    background: var(--cream-2);
  }
  body.page-article {
    line-height: 1.7;
  }


  .blog-page-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 56px 48px 80px;
  }
  .blog-page-inner .section-eyebrow {
    font-size: 12px; font-weight: 500; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 12px;
  }
  .blog-page-inner h1 {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600; line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .blog-page-inner .lead {
    font-size: 17px; color: var(--ink-2);
    max-width: 560px; margin-bottom: 40px;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .blog-card {
    background: #fff;
    border: 1px solid var(--cream-3);
    border-radius: var(--r-lg);
    padding: 28px;
    text-decoration: none;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
  }
  .blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
  .blog-card-soon { opacity: .6; cursor: default; }
  .blog-card-soon:hover { transform: none; box-shadow: none; }
  .blog-card-tag {
    font-size: 11px; font-weight: 500; text-transform: uppercase;
    letter-spacing: .07em; color: var(--accent);
    background: var(--accent-light); padding: 3px 10px;
    border-radius: 99px; display: inline-block; width: fit-content;
  }
  .blog-card-title {
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    color: var(--ink); line-height: 1.3; margin: 0;
  }
  .blog-card-excerpt {
    font-size: 14px; color: var(--ink-3); line-height: 1.6; margin: 0; flex: 1;
  }
  .blog-card-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--ink-3); margin-top: 4px;
  }
  @media (max-width: 900px) {
    .blog-page-inner { padding: 40px 20px 64px; }
    .blog-grid { grid-template-columns: 1fr !important; }
  }


  /* NAV (blog pages) */
  .site-nav.site-nav--inner {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-3);
  }
  .nav-logo {
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    color: var(--ink); text-decoration: none;
  }
  .nav-logo span { color: var(--accent); }
  .nav-back {
    font-size: 14px; color: var(--ink-3); text-decoration: none;
    display: flex; align-items: center; gap: 6px; transition: color .2s;
  }
  .nav-back:hover { color: var(--accent); }
  .nav-cta {
    background: var(--accent); color: #fff;
    padding: 9px 20px; border-radius: 99px;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: background .2s;
  }
  .nav-cta:hover { background: var(--accent-dark); }

  /* LAYOUT */
  .page-wrap {
    max-width: 1100px; margin: 0 auto;
    padding: 64px 48px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: start;
  }

  /* ARTICLE */
  article { min-width: 0; }

  .article-category {
    font-size: 12px; font-weight: 500; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 16px; display: block;
  }

  h1 {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600; line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink); margin-bottom: 20px;
  }

  .article-meta {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
    font-size: 13px; color: var(--ink-3);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-3);
  }
  .meta-author {
    display: flex; align-items: center; gap: 8px;
    font-weight: 500; color: var(--ink-2);
  }
  .author-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 13px; font-weight: 600; color: var(--accent);
    border: 2px solid var(--accent-light);
  }

  /* SUMMARY BOX */
  .article-summary {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin-bottom: 40px;
  }
  .article-summary p {
    font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0;
  }
  .article-summary strong { color: var(--ink); }

  /* BODY CONTENT */
  .article-body h2 {
    font-family: var(--serif);
    font-size: 26px; font-weight: 600;
    color: var(--ink); line-height: 1.25;
    margin: 48px 0 16px;
    padding-top: 8px;
  }
  .article-body h3 {
    font-size: 18px; font-weight: 500;
    color: var(--ink); margin: 32px 0 12px;
  }
  .article-body p {
    font-size: 16px; color: var(--ink-2);
    line-height: 1.8; margin-bottom: 18px;
  }
  .article-body ul, .article-body ol {
    margin: 0 0 18px 20px; color: var(--ink-2);
  }
  .article-body li { margin-bottom: 8px; font-size: 16px; line-height: 1.7; }
  .article-body strong { color: var(--ink); font-weight: 500; }
  .article-body a { text-decoration: none; border-bottom: 1px solid rgba(0, 128, 96, 0.35); transition: border-color .2s; }
  .article-body a:hover { border-color: var(--accent); }

  /* KEY FACT CALLOUT */
  .key-fact {
    background: #fff;
    border: 1px solid var(--cream-3);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0;
    display: flex; gap: 16px; align-items: flex-start;
  }
  .key-fact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
  .key-fact-text { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
  .key-fact-text strong { color: var(--ink); font-size: 16px; display: block; margin-bottom: 4px; }

  /* CAUSE CARD */
  .cause-card {
    background: #fff;
    border: 1px solid var(--cream-3);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
  }
  .cause-num {
    position: absolute; top: -14px; left: 24px;
    background: var(--accent); color: #fff;
    font-family: var(--serif); font-size: 13px; font-weight: 600;
    padding: 3px 14px; border-radius: 99px;
  }
  .cause-card h3 { margin-top: 8px; margin-bottom: 10px; font-size: 17px; }
  .cause-card p { margin-bottom: 12px; font-size: 15px; color: var(--ink-2); }
  .cause-fix {
    background: var(--green-light);
    border-radius: 8px; padding: 12px 16px;
    font-size: 14px; color: var(--green);
    margin-top: 8px;
  }
  .cause-fix strong { font-weight: 500; display: block; margin-bottom: 3px; }

  /* SCORE TABLE */
  .score-table {
    width: 100%; border-collapse: collapse;
    margin: 24px 0; font-size: 14px;
  }
  .score-table th {
    text-align: left; padding: 10px 14px;
    background: var(--cream-2); color: var(--ink-2);
    font-weight: 500; font-size: 13px;
    border-bottom: 1px solid var(--cream-3);
  }
  .score-table th:first-child { border-radius: 8px 0 0 0; }
  .score-table th:last-child { border-radius: 0 8px 0 0; }
  .score-table td {
    padding: 10px 14px; border-bottom: 1px solid var(--cream-3);
    color: var(--ink-2);
  }
  .score-table tr:last-child td { border-bottom: none; }
  .score-bad { color: #ef4444; font-weight: 500; }
  .score-ok  { color: #f59e0b; font-weight: 500; }
  .score-good { color: var(--green); font-weight: 500; }

  /* INLINE CTA */
  .inline-cta {
    background: var(--ink);
    border-radius: 14px;
    padding: 28px 32px;
    margin: 48px 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
  }
  .inline-cta-text h4 {
    font-family: var(--serif); font-size: 20px; font-weight: 600;
    color: #fff; margin-bottom: 6px;
  }
  .inline-cta-text p { font-size: 14px; color: rgba(255,255,255,.6); margin: 0; }
  .inline-cta-btn {
    background: var(--accent); color: #fff;
    padding: 12px 24px; border-radius: 99px;
    font-size: 14px; font-weight: 500; text-decoration: none;
    white-space: nowrap; transition: background .2s;
    flex-shrink: 0;
  }
  .inline-cta-btn:hover { background: var(--accent-dark); border-bottom: none; }

  /* SIDEBAR */
  .sidebar { position: sticky; top: 80px; }
  .sidebar-card {
    background: #fff; border: 1px solid var(--cream-3);
    border-radius: 14px; padding: 24px;
    margin-bottom: 20px;
  }
  .sidebar-card h4 {
    font-family: var(--serif); font-size: 16px; font-weight: 600;
    color: var(--ink); margin-bottom: 16px;
  }
  .toc-list { list-style: none; }
  .toc-list li { margin-bottom: 10px; }
  .toc-list a {
    font-size: 13px; color: var(--ink-3); text-decoration: none;
    display: flex; gap: 8px; align-items: flex-start;
    transition: color .2s; line-height: 1.4;
  }
  .toc-list a:hover { color: var(--accent); }
  .toc-num { color: var(--accent); font-weight: 500; font-size: 12px; flex-shrink: 0; margin-top: 1px; }
  .toc-fact {
    font-size: 13px; color: var(--ink-3);
    display: flex; gap: 8px; align-items: flex-start;
    line-height: 1.4;
  }

  .sidebar-author { text-align: center; }
  .sidebar-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--accent);
    border: 3px solid var(--accent-light);
    margin: 0 auto 12px;
  }
  .sidebar-author h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
  .sidebar-author p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; line-height: 1.5; }
  .sidebar-cta {
    display: block; width: 100%; text-align: center;
    background: var(--accent); color: #fff;
    padding: 11px; border-radius: 99px;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: background .2s;
  }
  .sidebar-cta:hover { background: var(--accent-dark); }

  /* FOOTER */
  body.page-blog footer,
  body.page-article footer {
    background: var(--ink);
    padding: 40px 48px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
  }
  body.page-article footer {
    margin-top: 80px;
  }
  .footer-brand { font-family: var(--serif); font-size: 18px; color: #ffffff; font-weight: 600; }
  .footer-brand span { color: var(--accent); }
  .footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.45); }

  @media (max-width: 860px) {
    .site-nav.site-nav--inner { padding: 14px 20px; }
    .page-wrap { grid-template-columns: 1fr; padding: 40px 20px; gap: 48px; }
    .sidebar { position: static; }
    h1 { font-size: 28px; }
    body.page-blog footer,
    body.page-article footer { padding: 32px 20px; }
  }
