/* Shared by the blog index and every article. Same tokens, nav and footer as index.html and compare.html. */
:root {
  --bg: #FAF6EF;
  --surface: #FFFEFC;
  --surface-2: #F3ECE1;
  --border: #EBE3D7;
  --border-2: #DDD2C2;
  --text: #17150F;
  --muted: #6D6459;
  --faint: #9B9184;
  --accent: #17150F;
  --accent-hover: #2E2A22;
  --c-focus: #4E9F78;
  --c-dist: #D95926;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 74px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 32px; font-size: 16px; color: var(--muted); position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-right { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn svg { width: 16px; height: 16px; }

/* article: a narrower column than compare.html, since posts are long reads */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 40px; }
.back { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.eyebrow { margin: 40px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-dist); }
h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 20px; text-wrap: balance; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0; text-wrap: pretty; }
.byline { font-size: 13px; color: var(--faint); margin: 20px 0 0; }
h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; margin: 64px 0 16px; text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: -.015em; font-weight: 600; margin: 48px 0 10px; }
.article p, .article li { color: var(--muted); }
.article p { margin: 0 0 16px; text-wrap: pretty; }
.article b { color: var(--text); font-weight: 600; }
.article ol, .article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; padding-left: 4px; }
.article li::marker { color: var(--text); font-weight: 600; }
.article a:not(.btn) { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.article a:not(.btn):hover { text-decoration-color: currentColor; }

.callout { margin: 24px 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.callout p { margin: 0; color: var(--text); font-size: 16px; }

/* screenshots sit on a warm backdrop, as on compare.html */
figure { margin: 28px 0 40px; text-align: center; }
.frame {
  display: inline-flex; flex-direction: column; align-items: center;
  max-width: 100%; padding: 28px; border-radius: 22px; vertical-align: top;
  background: radial-gradient(130% 100% at 50% -20%, #fdf8f2 0%, #f2e2ce 48%, #e2c3a1 100%);
  box-shadow: inset 0 0 0 1px rgba(60,40,20,.06);
}
.frame img {
  width: auto; max-width: 100%; max-height: min(500px, 58vh);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(40,25,10,.3);
}
figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; text-wrap: pretty; }

/* comparison table */
.tbl { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 720px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.cmp thead th { border-top: 0; font-weight: 600; color: var(--text); }
.cmp td { color: var(--muted); }
.cmp td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.end { margin: 64px 0 0; padding: 36px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.end svg.logo { width: 56px; height: 56px; margin: 0 auto 18px; }
.end h2 { margin: 0 0 10px; }
.end p { margin: 0 auto 24px; max-width: 460px; }

/* blog index */
.article .posts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
.article .post { margin: 0; padding: 0; }
.post a { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; text-decoration: none; transition: border-color .15s; }
.post a:hover { border-color: var(--border-2); }
.post .thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: radial-gradient(130% 100% at 50% -20%, #fdf8f2 0%, #f2e2ce 48%, #e2c3a1 100%); display: flex; align-items: center; justify-content: center; padding: 14px; }
.post .thumb img { max-height: 100%; border-radius: 8px; box-shadow: 0 8px 20px rgba(40,25,10,.25); }
.post h2 { font-size: 22px; margin: 0 0 6px; }
.post p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.post .meta { margin-top: 10px; font-size: 13px; color: var(--faint); }

footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .article { padding-top: 40px; }
  .frame { border-radius: 16px; padding: 12px; }
  .end { padding: 28px 20px; }
  .nav .btn .lbl-long { display: none; }
  .post a { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
}
