/* Public site styles.
   Currently used by the rendered article pages. When the 43 marketing pages
   are ported this merges with the site's own stylesheet; the article
   templates pick up whatever lands here on the next render. */

:root {
  --ink: #1b2430;
  --ink-soft: #5a6572;
  --accent: #14467a;
  --line: #e3e6ea;
  --bg-soft: #f6f7f9;
  --measure: 38rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.1rem; }

a { color: var(--accent); }

/* ---------- chrome ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-head .wrap { display: flex; align-items: center; gap: 1rem; max-width: 60rem; }
.site-name { font-weight: 700; text-decoration: none; color: var(--ink); }
.site-call { margin-left: auto; text-decoration: none; font-weight: 600; }

.site-foot {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.6rem 0 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
}

.site-foot .wrap { max-width: 60rem; }
.site-foot p { margin: 0 0 .7rem; }
.site-foot .small { color: var(--ink-soft); font-size: .85rem; }

/* ---------- article ---------- */

.article { padding-top: 2rem; }

.crumbs {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .85rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}

.byline, .lede, .meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.byline { color: var(--ink-soft); font-size: .9rem; margin: 0 0 2rem; }
.lede { color: var(--ink-soft); font-size: 1rem; margin-bottom: 2rem; }

.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3rem; }
.prose h2 { font-size: 1.4rem; margin: 2.4rem 0 .8rem; line-height: 1.25; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }

.prose blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
}

.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; }
.prose th { background: var(--bg-soft); }

.tags { margin: 2rem 0 0; }

.tag {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1rem .45rem;
  margin-right: .3rem;
}

.source {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}

.cta {
  margin-top: 2.5rem;
  padding: 1.4rem 1.3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cta h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.cta p { margin: 0; font-size: .97rem; }

/* ---------- index ---------- */

.article-list { list-style: none; margin: 2rem 0 0; padding: 0; }

.article-list li {
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.article-list li:last-child { border-bottom: 0; }
.article-list .title { font-size: 1.25rem; font-weight: 700; text-decoration: none; line-height: 1.3; display: block; }
.article-list .meta { color: var(--ink-soft); font-size: .85rem; margin: .3rem 0 .5rem; }
.article-list .excerpt { margin: 0; font-size: .97rem; color: #3c4653; }
