/* Shared styles for the static blog articles under /blog. 

   Plain static HTML (no React), kept lean so crawlers and readers get fast, 

   fully-populated content. Supports a dark and a light theme via a 

   data-theme attribute on <html>; a small inline script in each page sets it 

   before paint (default: the visitor's system preference). */ 

 

/* Palette and fonts mirror the app (see src/styles.css) so the blog and app 

   feel like one product. Dark theme is the default. */ 

:root { 

  /* Dark theme: true black page (the corner washes and gradient resolve to
     black too), with neutral dark-grey cards, matching the app. */

  --bg: #000000;

  --bg-grad-1: #000000;

  --bg-grad-2: #000000;

  --surface: #111111;

  --surface-2: #1a1a1a;

  --text: #e5e5e5;

  --muted: #a3a3a3; 

  --accent: #38bdf8; 

  --accent-text: #38bdf8; 

  --accent-ink: #06121b; 

  --border: #2a2a2a;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4); 

  --maxw: 720px; 

  /* The app's font stack, used throughout. */ 

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; 

  --font-body: var(--font-ui); 

} 

 

/* Light theme mirrors the app's light tokens. */ 

[data-theme="light"] { 

  --bg: #f1f5f9; 

  --bg-grad-1: #ffffff; 

  --bg-grad-2: #e8eef5; 

  --surface: #ffffff; 

  --surface-2: #f8fafc; 

  --text: #0f172a; 

  --muted: #64748b; 

  --accent: #0284c7; 

  --accent-text: #0369a1; 

  --accent-ink: #ffffff; 

  --border: #cbd5e1; 

  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 28px rgba(15, 23, 42, 0.08); 

} 

 

* { 

  box-sizing: border-box; 

} 

 

html { 

  -webkit-text-size-adjust: 100%; 

} 

 

body { 

  margin: 0; 

  min-height: 100vh; 

  color: var(--text); 

  background-color: var(--bg); 

  /* Gentle corner washes + a vertical gradient for depth. */ 

  background-image: 

    radial-gradient(900px 500px at 100% -10%, var(--bg-grad-1), transparent 60%), 

    radial-gradient(700px 500px at -10% 0%, var(--bg-grad-1), transparent 55%), 

    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2)); 

  background-attachment: fixed; 

  font-family: var(--font-body); 

  line-height: 1.7; 

  font-size: 17px; 

} 

 

a { 

  color: var(--accent-text); 

} 

 

.wrap { 

  max-width: var(--maxw); 

  margin: 0 auto; 

  padding: 8px 20px 80px; 

} 

 

/* Top bar: brand on the left, theme toggle + app link on the right. */ 

.site-head { 

  display: flex; 

  align-items: center; 

  justify-content: space-between; 

  gap: 12px; 

  max-width: var(--maxw); 

  margin: 0 auto; 

  padding: 18px 20px; 

  font-family: var(--font-ui); 

} 

 

.site-head a { 

  text-decoration: none; 

} 

 

.site-head-actions { 

  display: inline-flex; 

  align-items: center; 

  gap: 10px; 

} 

 

.brand { 

  display: inline-flex; 

  align-items: center; 

  gap: 10px; 

  font-weight: 700; 

  color: var(--text); 

} 

 

.brand svg { 

  display: block; 

} 

 

.site-head .open-app { 

  background: var(--accent); 

  color: var(--accent-ink); 

  font-weight: 600; 

  padding: 8px 14px; 

  border-radius: 8px; 

} 

 

/* Theme toggle button (sun/moon). */ 

.theme-toggle { 

  display: inline-flex; 

  align-items: center; 

  justify-content: center; 

  width: 38px; 

  height: 38px; 

  padding: 0; 

  border: 1px solid var(--border); 

  border-radius: 8px; 

  background: var(--surface); 

  color: var(--text); 

  cursor: pointer; 

} 

 

.theme-toggle:hover { 

  border-color: var(--accent); 

} 

 

.theme-toggle svg { 

  display: block; 

} 

 

/* Show the moon in light mode (switch to dark) and the sun in dark mode. */ 

.theme-toggle .icon-moon { 

  display: none; 

} 

.theme-toggle .icon-sun { 

  display: block; 

} 

[data-theme="light"] .theme-toggle .icon-moon { 

  display: block; 

} 

[data-theme="light"] .theme-toggle .icon-sun { 

  display: none; 

} 

 

.crumbs { 

  font-family: var(--font-ui); 

  font-size: 14px; 

  color: var(--muted); 

  margin: 8px 0; 

} 

 

.crumbs a { 

  color: var(--muted); 

} 

 

h1, 

h2, 

h3 { 

  letter-spacing: -0.01em; 

} 

 

h1 { 

  font-size: 32px; 

  line-height: 1.2; 

  margin: 10px 0 12px; 

} 

 

h2 { 

  font-size: 22px; 

  margin: 38px 0 10px; 

} 

 

h3 { 

  font-size: 18px; 

  margin: 26px 0 6px; 

} 

 

.lede { 

  font-size: 19px; 

  line-height: 1.6; 

  color: var(--muted); 

} 

 

.meta { 

  font-family: var(--font-ui); 

  font-size: 13px; 

  color: var(--muted); 

  margin-bottom: 28px; 

} 

 

p { 

  margin: 14px 0; 

} 

 

ul, 

ol { 

  padding-left: 24px; 

} 

 

li { 

  margin: 7px 0; 

} 

 

/* A call-to-action card that funnels the reader into the live app feature. */ 

.cta { 

  display: block; 

  background: var(--surface); 

  border: 1px solid var(--border); 

  border-radius: 14px; 

  padding: 18px 20px; 

  margin: 28px 0; 

  text-decoration: none; 

  color: var(--text); 

  box-shadow: var(--shadow); 

  font-family: var(--font-ui); 

  transition: border-color 0.15s ease, transform 0.15s ease; 

} 

 

.cta:hover { 

  border-color: var(--accent); 

  transform: translateY(-1px); 

} 

 

.cta .cta-kicker { 

  display: block; 

  font-size: 12px; 

  text-transform: uppercase; 

  letter-spacing: 0.06em; 

  color: var(--accent-text); 

  font-weight: 700; 

} 

 

.cta .cta-title { 

  display: block; 

  font-size: 18px; 

  font-weight: 700; 

  margin: 4px 0 3px; 

} 

 

.cta .cta-sub { 

  display: block; 

  font-size: 15px; 

  color: var(--muted); 

} 

 

.feature-table { 

  width: 100%; 

  border-collapse: collapse; 

  margin: 18px 0; 

  font-family: var(--font-ui); 

  font-size: 15px; 

} 

 

.feature-table th, 

.feature-table td { 

  text-align: left; 

  padding: 11px 12px; 

  border-bottom: 1px solid var(--border); 

  vertical-align: top; 

} 

 

.feature-table thead th { 

  color: var(--muted); 

  font-weight: 600; 

  border-bottom: 2px solid var(--border); 

} 

 

.feature-table tbody th { 

  color: var(--muted); 

  font-weight: 600; 

} 

 

.callout { 

  background: var(--surface-2); 

  border: 1px solid var(--border); 

  border-left: 3px solid var(--accent); 

  border-radius: 10px; 

  padding: 14px 18px; 

  margin: 24px 0; 

  font-size: 16px; 

} 

 

.related { 

  margin-top: 44px; 

  border-top: 1px solid var(--border); 

  padding-top: 22px; 

} 

 

.related h2 { 

  margin-top: 0; 

} 

 

.site-foot { 

  max-width: var(--maxw); 

  margin: 0 auto; 

  padding: 24px 20px 56px; 

  color: var(--muted); 

  font-family: var(--font-ui); 

  font-size: 13px; 

  border-top: 1px solid var(--border); 

} 

 

/* Figures: an SVG mockup now, swappable for a real PNG screenshot later. 

   To use a real screenshot, drop a PNG in /blog/img and point the <img src> 

   at it; the figure/caption markup stays the same. */ 

figure.shot { 

  margin: 28px 0; 

} 

 

figure.shot picture { 

  display: block; 

} 

 

figure.shot img { 

  display: block; 

  width: 100%; 

  height: auto; 

  border: 1px solid var(--border); 

  border-radius: 14px; 

  box-shadow: var(--shadow); 

  background: var(--surface); 

} 

 

figure.shot figcaption { 

  margin-top: 10px; 

  font-family: var(--font-ui); 

  font-size: 13px; 

  color: var(--muted); 

  text-align: center; 

} 

 

@media (max-width: 640px) { 

  body { 

    font-size: 17px; 

  } 

  h1 { 

    font-size: 28px; 

  } 

  h2 { 

    font-size: 21px; 

  } 

  .lede { 

    font-size: 18px; 

  } 

} 

 

/* --- Blog index: featured post + card grid --- */ 

 

.posts-intro { 

  margin: 8px 0 28px; 

} 

 

/* Featured post: a large card with the thumbnail beside the text on wide 

   screens, stacked on narrow ones. */ 

.post-featured { 

  display: grid; 

  grid-template-columns: 1.1fr 1fr; 

  gap: 0; 

  background: var(--surface); 

  border: 1px solid var(--border); 

  border-radius: 16px; 

  overflow: hidden; 

  box-shadow: var(--shadow); 

  text-decoration: none; 

  color: var(--text); 

  margin: 0 0 32px; 

  transition: border-color 0.15s ease, transform 0.15s ease; 

} 

 

.post-featured:hover { 

  border-color: var(--accent); 

  transform: translateY(-2px); 

} 

 

.post-featured .thumb { 

  margin: 0; 

  background: var(--surface-2); 

  border-right: 1px solid var(--border); 

  overflow: hidden; 

  min-height: 220px; 

} 

 

.post-featured .thumb img { 

  width: 100%; 

  height: 100%; 

  object-fit: cover; 

  object-position: top center; 

  display: block; 

} 

 

.post-featured .body { 

  padding: 24px 26px; 

  display: flex; 

  flex-direction: column; 

  justify-content: center; 

} 

 

/* Card grid for the rest of the posts. */ 

.post-grid { 

  display: grid; 

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 

  gap: 20px; 

  margin: 0 0 36px; 

} 

 

.post-card { 

  display: flex; 

  flex-direction: column; 

  background: var(--surface); 

  border: 1px solid var(--border); 

  border-radius: 14px; 

  overflow: hidden; 

  box-shadow: var(--shadow); 

  text-decoration: none; 

  color: var(--text); 

  transition: border-color 0.15s ease, transform 0.15s ease; 

} 

 

.post-card:hover { 

  border-color: var(--accent); 

  transform: translateY(-2px); 

} 

 

.post-card .thumb { 

  margin: 0; 

  background: var(--surface-2); 

  border-bottom: 1px solid var(--border); 

  aspect-ratio: 16 / 10; 

  overflow: hidden; 

} 

 

.post-card .thumb img { 

  width: 100%; 

  height: 100%; 

  object-fit: cover; 

  object-position: top center; 

  display: block; 

} 

 

.post-card .body { 

  padding: 16px 18px 18px; 

  display: flex; 

  flex-direction: column; 

  flex: 1; 

} 

 

/* Shared card typography. */ 

.post-kicker { 

  font-size: 12px; 

  text-transform: uppercase; 

  letter-spacing: 0.06em; 

  color: var(--accent-text); 

  font-weight: 700; 

} 

 

.post-title { 

  font-size: 19px; 

  font-weight: 700; 

  line-height: 1.25; 

  margin: 6px 0 6px; 

} 

 

.post-featured .post-title { 

  font-size: 24px; 

} 

 

.post-excerpt { 

  color: var(--muted); 

  font-size: 15px; 

  margin: 0 0 14px; 

} 

 

.post-meta-row { 

  margin-top: auto; 

  display: flex; 

  align-items: center; 

  justify-content: space-between; 

  gap: 12px; 

  font-size: 13px; 

  color: var(--muted); 

} 

 

.post-readmore { 

  color: var(--accent-text); 

  font-weight: 600; 

} 

 

.section-label { 

  font-size: 13px; 

  text-transform: uppercase; 

  letter-spacing: 0.06em; 

  color: var(--muted); 

  font-weight: 700; 

  margin: 36px 0 14px; 

} 

 

@media (max-width: 640px) { 

  .post-featured { 

    grid-template-columns: 1fr; 

  } 

  .post-featured .thumb { 

    border-right: none; 

    border-bottom: 1px solid var(--border); 

  } 

} 

 

/* --- Footer site links (Privacy / About / Contact) --- */ 

.site-foot .legal-links { 

  display: flex; 

  flex-wrap: wrap; 

  gap: 16px; 

  margin-bottom: 10px; 

} 

 

.site-foot .legal-links a { 

  color: var(--accent-text); 

  text-decoration: none; 

  font-weight: 600; 

} 

 

.site-foot .legal-links a:hover { 

  text-decoration: underline; 

} 

 

/* --- Cookie consent banner --- */ 

.cc-banner { 

  position: fixed; 

  left: 50%; 

  bottom: 16px; 

  transform: translateX(-50%); 

  width: calc(100% - 32px); 

  max-width: 760px; 

  background: var(--surface); 

  color: var(--text); 

  border: 1px solid var(--border); 

  border-radius: 14px; 

  box-shadow: var(--shadow); 

  padding: 16px 18px; 

  display: flex; 

  flex-wrap: wrap; 

  align-items: center; 

  gap: 12px 18px; 

  z-index: 1000; 

  font-family: var(--font-ui); 

  font-size: 14px; 

} 

 

.cc-banner p { 

  margin: 0; 

  flex: 1 1 320px; 

  color: var(--muted); 

} 

 

.cc-banner a { 

  color: var(--accent-text); 

} 

 

.cc-actions { 

  display: flex; 

  gap: 10px; 

  flex-shrink: 0; 

} 

 

.cc-btn { 

  border: 1px solid var(--border); 

  background: var(--surface-2); 

  color: var(--text); 

  border-radius: 8px; 

  padding: 9px 16px; 

  font-size: 14px; 

  font-weight: 600; 

  cursor: pointer; 

  font-family: var(--font-ui); 

} 

 

.cc-btn.primary { 

  background: var(--accent); 

  color: var(--accent-ink); 

  border-color: var(--accent); 

} 

 

.cc-btn:hover { 

  border-color: var(--accent); 

} 

 

@media (max-width: 640px) { 

  .cc-actions { 

    width: 100%; 

  } 

  .cc-btn { 

    flex: 1; 

  } 

} 

 

/* Embedded Google contact form on /contact.html. Full width (not Google's 

   fixed 640px) so it works on phones. Google Forms iframes do not auto-size to 

   their content, so a tall fixed height is used; the iframe scrolls internally 

   if the form is longer. */ 

.contact-form-wrap { 

  margin: 16px 0 8px; 

  border: 1px solid var(--border); 

  border-radius: 12px; 

  overflow: hidden; 

  background: var(--surface); 

  /* Break out of the narrow (720px) reading column just a little so the form 

     has room to breathe. Centers the block without affecting the rest. */ 

  width: min(760px, 94vw); 

  margin-left: 50%; 

  transform: translateX(-50%); 

} 

 

.contact-form { 

  display: block; 

  width: 100%; 

  height: 1040px; 

  border: 0; 

} 

 

@media (max-width: 640px) { 

  .contact-form { 

    height: 1150px; 

  } 

} 

/* ── Blog index view toggle (grid / list) ─────────────────────────────── */

.blog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.blog-header h1 {
  margin: 0;
}

.view-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.view-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.view-btn.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

/* ── List view (opt-in; grid is the default) ──────────────────────────────────────────── */
/* Each post is one row: title (with an optional "New" badge), a one-line
   summary, then a small meta line with the topic tag, date, and read time.
   Rows stack the same way on phones, so nothing gets squeezed into columns. */

main.list-view .post-featured .thumb,
main.list-view .post-card .thumb {
  display: none;
}

main.list-view .post-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 8px;
}

main.list-view .post-card,
main.list-view .post-featured {
  display: block;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 14px 10px;
  transition: background 0.12s;
}

main.list-view .post-card:hover,
main.list-view .post-featured:hover {
  background: var(--surface);
  border-color: var(--border);
  transform: none;
}

main.list-view .post-card .body,
main.list-view .post-featured .body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 0;
}

main.list-view .post-title,
main.list-view .post-featured .post-title {
  order: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

main.list-view .post-excerpt,
main.list-view .post-featured .post-excerpt {
  order: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Topic tag + date + read time on one small line. */
main.list-view .post-kicker {
  order: 3;
  display: inline;
  width: auto;
  min-width: 0;
  font-size: 11px;
  margin: 2px 0 0;
}

main.list-view .post-meta-row {
  order: 3;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

main.list-view .post-readmore {
  display: none;
}

/* Put the kicker and meta on the same line: kicker first, meta after. */
main.list-view .post-card .body,
main.list-view .post-featured .body {
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
}
main.list-view .post-title,
main.list-view .post-excerpt {
  grid-column: 1 / -1;
}

main.list-view .section-label {
  margin-top: 28px;
  margin-bottom: 0;
}

/* Featured post in list view: same row, marked as the place to start. */
main.list-view .post-featured .post-kicker {
  color: var(--accent-text);
}

/* ── "New" badge, added by the index script for recent posts ──────────── */
.post-new {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-text);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 2px;
}

/* ── Search + view toggle toolbar ──────────────────────────────────────── */
.blog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.blog-toolbar .view-toggle {
  margin: 0;
  flex-shrink: 0;
}

.blog-search {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.blog-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.blog-search input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px 0 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
}

.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.blog-search-status {
  min-height: 1.2em;
  margin: 6px 2px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

.blog-search-status:empty {
  margin: 0;
  min-height: 0;
}

/* Cards are display:flex/grid, which would override the hidden attribute. */
main .post-card[hidden],
main .post-featured[hidden],
main .post-grid[hidden],
main .section-label[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Bottom "Open the app" box: show an actual button so it reads as clickable. */
.cta .cta-go {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

/* Header app link: never wrap onto two lines. */
.site-head .open-app {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .blog-search input {
    font-size: 16px; /* no iOS zoom on focus */
  }
  main.list-view .post-card,
  main.list-view .post-featured {
    padding: 12px 4px;
  }
  main.list-view .post-title,
  main.list-view .post-featured .post-title {
    font-size: 15px;
  }
  main.list-view .post-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .site-head .open-app {
    padding: 8px 12px;
    font-size: 15px;
  }
}

/* ── Thumbnail-less grid cards (the "Going deeper" posts) ───────────────── */
/* These posts have no hero screenshot. Without a thumb the card looked bare,
   so give it an accent top bar and roomier body so it reads as intentional
   and sits evenly beside the image cards. */
main:not(.list-view) .post-grid .post-card:not(:has(.thumb)) {
  border-top: 3px solid var(--accent);
}

main:not(.list-view) .post-grid .post-card:not(:has(.thumb)) .body {
  padding: 18px 20px 20px;
}

main:not(.list-view) .post-grid .post-card:not(:has(.thumb)) .post-title {
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Article page layout: byline, two-column (article + sticky TOC sidebar on
   wide screens), and a back-to-top button. Only applies to post pages, which
   carry `main.post`; the blog index and listing pages are unaffected.
   The TOC, sidebar, and back-to-top are built by /blog/post-enhance.js and
   degrade gracefully to a normal single-column article without JavaScript.
   ═══════════════════════════════════════════════════════════════════════ */

/* Visible byline under the lede (static markup, good for no-JS + crawlers). */
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-ui);
  margin: 2px 0 18px;
}
.byline svg {
  flex-shrink: 0;
}
.byline .byline-sep {
  opacity: 0.5;
}

/* On wide screens, widen the post shell and lay article + sidebar side by side.
   The article column stays at the readable measure (--maxw); the sidebar takes
   the extra space. Non-post pages keep the normal centered --maxw width. */
@media (min-width: 1040px) {
  main.post.has-toc {
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0, var(--maxw)) 1fr;
    column-gap: 48px;
    align-items: start;
  }
  main.post.has-toc > .post-body {
    grid-column: 1;
    min-width: 0;
  }
  main.post.has-toc > .post-aside {
    grid-column: 2;
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* Sidebar hidden below the two-column breakpoint (and when JS is off). */
.post-aside {
  display: none;
}
@media (min-width: 1040px) {
  main.post.has-toc > .post-aside {
    display: block;
  }
}

/* Table of contents. */
.toc {
  font-family: var(--font-ui);
}
.toc-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover {
  color: var(--text);
}
.toc a.active {
  color: var(--accent-text);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* "Try the app" card under the TOC. */
.aside-card {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
}
.aside-card .aside-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  font-weight: 700;
}
.aside-card .aside-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
}
.aside-card .aside-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.aside-card .aside-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* Give headings scroll-margin so the sticky nav / top padding does not hide
   them when jumped to via a TOC link. */
main.post h2[id],
main.post h3[id] {
  scroll-margin-top: 20px;
}

/* Back-to-top button (shown after scrolling, built by the script). */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, border-color 0.15s;
  z-index: 50;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* ── Contributions page: representative feedback quotes ─────────────────── */
.quotes {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.quote-card .quote-attr {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-ui);
}

.quote-card .quote-shipped {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-ui);
}

.quote-card .quote-shipped strong {
  color: var(--accent-text);
  font-weight: 700;
}
/* ═══════════════════════════════════════════════════════════════════════
   Article layout refinements (Oct 2026)
   ═══════════════════════════════════════════════════════════════════════ */

/* Header and footer match the two-column article width on wide screens, so
   the logo lines up with the article's left edge. post-enhance.js adds
   body.post-wide only when it builds the sidebar layout. */
@media (min-width: 1040px) {
  body.post-wide .site-head,
  body.post-wide .site-foot {
    max-width: 1100px;
  }
}

/* One compact row under the lede: author, date, read time. Wraps cleanly on
   phones instead of splitting into columns. */
.byline {
  flex-wrap: wrap;
  row-gap: 2px;
  margin: 4px 0 26px;
}
.byline svg {
  margin-right: 2px;
}

/* Click-to-enlarge screenshots. */
figure.shot picture {
  position: relative;
}
figure.shot img.zoomable {
  cursor: zoom-in;
}
figure.shot img.zoomable:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
figure.shot picture:hover .zoom-hint,
figure.shot img.zoomable:focus-visible + .zoom-hint {
  opacity: 1;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 16px 24px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.lightbox img {
  display: block;
  /* Up to the screenshot's real size (shot at 2x, so half its pixels). */
  width: auto;
  max-width: min(100%, 1280px);
  height: auto;
  border-radius: 10px;
  margin: auto 0;
}
.lightbox-caption {
  max-width: 720px;
  margin: 12px 0 0;
  color: #e5e5e5;
  font-family: var(--font-ui);
  font-size: 14px;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: #fff;
  outline: none;
}

/* "Keep reading": cards instead of a bullet list. */
.related-cards {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.related-cards li {
  margin: 0;
}
.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-ui);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.related-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  font-weight: 700;
}
.related-title {
  margin: 4px 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.related-sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 640px) {
  .related-cards {
    grid-template-columns: 1fr;
  }
}
/* Phones: author on its own line, then "date · read time", so the row never
   wraps with a separator left dangling at the end of a line. Children are:
   svg, author, sep, date, sep, read time. */
@media (max-width: 640px) {
  .byline > span:nth-child(2) {
    flex-basis: calc(100% - 30px);
  }
  .byline > span:nth-child(3) {
    display: none;
  }
}
