/* Shared styling for the static blog under /blog/.
   These pages are plain HTML on purpose — see the note in each file's head —
   so they can't reach into the React app's CSS. This file mirrors the tokens
   from src/index.css so the articles still look like the rest of the site. */

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

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --cream: #f2ede4;
  --blue: #1a73e8;
  --blue-mid: #1557b0;
  --blue-light: #e8f0fe;
  --muted: #6e6e6e;
  --border: rgba(0,0,0,0.09);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- top bar ---- */
.blog-nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.blog-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.blog-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  letter-spacing: -0.01em;
}
.blog-logo:hover { text-decoration: none; }
.blog-logo span { color: var(--blue); }
.blog-logo img { width: 22px; height: 22px; border-radius: 5px; }
.blog-nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.blog-nav-cta:hover { background: var(--blue-mid); text-decoration: none; }

/* ---- article shell ---- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

.article h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 5.5vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.standfirst {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2rem;
}
.article h2 {
  font-family: 'Syne', sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.9rem;
  line-height: 1.25;
}
.article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 1.9rem 0 0.6rem;
}
.article p { margin-bottom: 1.15rem; }
.article ul, .article ol {
  margin: 0 0 1.3rem 1.25rem;
}
.article li { margin-bottom: 0.55rem; }
.article strong { font-weight: 500; color: var(--black); }

blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.6rem 0;
  color: var(--muted);
  font-style: italic;
}

/* wide tables scroll on their own rather than pushing the page sideways */
.table-scroll {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--cream);
  font-weight: 500;
  font-size: 13px;
}
tr:last-child td { border-bottom: none; }

/* ---- inline call to action ---- */
.cta {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta h3 { margin: 0 0 0.4rem; font-size: 18px; }
.cta p { color: var(--muted); font-size: 14.5px; margin-bottom: 1.1rem; }
.cta-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14.5px;
}
.cta-btn:hover { background: var(--blue-mid); text-decoration: none; }
.cta-note { font-size: 12.5px; color: var(--muted); margin: 0.75rem 0 0; }

/* ---- related links ---- */
.related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related h2 { margin-top: 0; font-size: 19px; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin-bottom: 0.7rem; }

/* ---- index listing ---- */
.post-list { list-style: none; margin: 2.5rem 0 0; }
.post-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.post-item:first-child { padding-top: 0; }
.post-item h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.post-item h2 a { color: var(--black); }
.post-item h2 a:hover { color: var(--blue); text-decoration: none; }
.post-item p { color: var(--muted); font-size: 14.5px; margin: 0 0 0.4rem; }
.post-date { font-size: 12.5px; color: var(--muted); }

/* ---- footer ---- */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.blog-footer a { color: var(--muted); margin: 0 0.5rem; }
.blog-footer a:hover { color: var(--blue); }
.blog-footer-copy { margin-top: 1rem; font-size: 12px; }

@media (max-width: 600px) {
  .blog-nav { padding: 0.85rem 1.25rem; }
  .article { padding: 2.5rem 1.25rem 3rem; }
  .standfirst { font-size: 16.5px; }
}
