:root {
  --ink: #142033; --ink-soft: #4B5875; --ink-faint: #8A93A8;
  --paper: #F7F9FC; --surface: #FFFFFF; --line: #E2E7EE;
  --brand: #3E6E96; --brand-deep: #1B3A57; --brand-soft: #EAF1F7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAEEF7; --ink-soft: #AAB4CB; --ink-faint: #6E7893;
    --paper: #0D1220; --surface: #141A2A; --line: #262F45;
    --brand: #7AA6D9; --brand-deep: #A9C7E8; --brand-soft: #1B2947;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--brand-deep); }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; text-wrap: balance; }
nav.site {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
nav.site .wrap { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark img { width: 30px; height: 30px; border-radius: 8px; }
.brand-mark span { font-family: "Fraunces", serif; font-weight: 600; font-size: 18px; color: var(--ink); }
nav.site .back { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
nav.site .back:hover { color: var(--brand-deep); }
main { padding-block: 56px 96px; }

/* Article */
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
h1.title { font-size: clamp(28px, 4.4vw, 40px); font-weight: 600; margin: 0 0 10px; }
.byline { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 40px; }
article h2 { font-size: 21px; font-weight: 600; margin: 40px 0 12px; }
article h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
article p, article li { font-size: 16px; color: var(--ink-soft); }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
article .lede { font-size: 18px; color: var(--ink); margin-bottom: 8px; }

.cta-box {
  margin-top: 48px; padding: 28px; border-radius: 16px;
  background: var(--brand-soft); border: 1px solid var(--line);
}
.cta-box h3 { margin-top: 0; font-size: 19px; }
.cta-box p { margin-bottom: 18px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; background: var(--brand-deep); color: #fff;
}

/* Blog index */
.post-list { list-style: none; padding: 0; margin: 32px 0 0; }
.post-card {
  display: block; padding: 22px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.post-card:first-child { padding-top: 0; }
.post-card h2 { margin: 0 0 6px; font-size: 21px; }
.post-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.post-card .date { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 6px; display: block; }

footer { border-top: 1px solid var(--line); padding-block: 32px; }
footer .wrap { max-width: 1080px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .fine { font-size: 13px; color: var(--ink-faint); }
footer .fine a { color: var(--brand-deep); text-decoration: none; font-weight: 500; }
