/* ── THE BLOG'S ONE STYLESHEET (WEBSITE-PREMIUM-REDESIGN-01, 2026-11-25) ─────────────────────────────────────────────────
   Every page under blog/ links this file. Until now each of the 33 pages carried its own pasted copy of one 14 KB style
   block, kept alike by hand; one file cannot drift, and a reader's second article finds it already fetched.
   scripts/pack-site.mjs copies every .css in blog/ into website-deploy/blog/, so it ships with the pages.

   It is the home page's system (index.html's <style> says why): the same tokens, the same twelve columns in a 1200px
   measure with the spine at the fourth column, a 1px rule in ink over a block and hairlines between its rows, Cabinet
   Grotesk 800 for display and General Sans for text, one blue for links and the primary action, nothing that takes
   colour under the pointer, 6px corners, no gradient, no tinted panel. An article's headline hangs from the left edge
   and its text runs from the fourth column at a 720px measure; the index is a ruled list set in type alone, the
   date in the margin, not a grid of picture cards.
   The hooks scripts/blog-index.mjs reads stay as they were: an article's <h1>, <div class="meta">, <figure class="feat">,
   and the index's <div class="list"> of <a class="card">. */
/* Until Cabinet Grotesk arrives a heading is set in Arial Bold at 89%, the measured width of Cabinet Grotesk 800 at -0.02em, so a
   headline breaks into the same lines before and after the font lands (index.html's <style> has the measurement). */
@font-face { font-family: 'Cabinet Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'); font-weight: 800; size-adjust: 89%; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
:root {
  --blue:     #1d4ed8;
  --blue-d:   #1e40af;
  --blue-l:   #eff6ff;
  --ink:      #0f172a;
  --text:     #0f172a;
  --text-2:   #334155;
  --muted:    #556070;
  --border:   #e2e8f0;
  --border-2: #cbd5e1;
  --bg:       #f8fafc;
  --night:    #0b1220;
  --maxw:     1200px;
  --gut:      32px;
  --pad:      max(var(--gut), calc((100% - var(--maxw)) / 2));
  --col:      calc((min(100vw - 2 * var(--gut), var(--maxw)) - 11 * 24px) / 12);
  --spine:    calc(3 * var(--col) + 3 * 24px);   /* from the left edge to the fourth column */
  --measure:  720px;                             /* the reading column: about 75 characters at 18px */
  --display:  'Cabinet Grotesk', 'Cabinet Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --face:     'General Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --obj:      0 0 0 1px rgba(15,23,42,.10), 0 1px 2px rgba(2,12,40,.07), 0 22px 48px -18px rgba(2,12,40,.24);
  --ease:     cubic-bezier(.22,.61,.36,1);
}
@media (max-width: 760px) { :root { --gut: 20px; } }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: rgba(29,78,216,.3) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(29,78,216,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(29,78,216,.55); }
::selection { background: #dbeafe; color: var(--ink); }

body { font-family: var(--face); font-size: 16px; line-height: 1.6; background: #fff; color: var(--text-2); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 800; color: var(--ink); }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; }

/* ── NAV: the home page's bar ── */
nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: border-color .16s; }
nav.stuck, nav.open { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; height: 64px; padding: 0 var(--pad); }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-brand svg { width: 28px; height: 28px; display: block; flex: none; }
.nav-links { display: flex; gap: 30px; list-style: none; margin-right: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .12s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 600; }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 6px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .12s, color .12s, transform .06s;
}
.nav-cta { background: var(--blue); color: #fff; }
.nav-cta:hover { background: var(--blue-d); }
.nav-cta:active, .btn:active { transform: translateY(1px); }
.nav-burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: center; gap: 6px; border-radius: 6px; }
.nav-burger span { display: block; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .16s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -28px rgba(2,12,40,.30); padding: 4px var(--pad) 22px; }
.nav-menu.open { display: block; }
.nav-menu a:not(.nav-cta) { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; }
.nav-menu .nav-cta { display: flex; margin-top: 18px; min-height: 48px; font-size: 16px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { margin-right: 12px; }
  .nav-menu .nav-cta { margin-right: 0; }
}
@media (max-width: 430px) { .nav-inner > .nav-cta { display: none; } }

/* ── THE HEAD. White, as the home page's hero is: the dark band is gone. An article's headline starts at the left edge and
   may run ten columns; the index's is the page's largest line. ── */
.hero { padding: clamp(36px, 4.6vw, 64px) var(--pad) 0; }
.hero h1 { font-size: clamp(31px, 4.3vw, 58px); line-height: 1.06; letter-spacing: -0.02em; max-width: 17em; text-wrap: balance; }
.hero > h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.04; }                                  /* the blog index */
.hero > p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; max-width: 32em; }
.crumb { font-size: 15px; font-weight: 500; margin-bottom: 20px; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.crumb a::before { content: ''; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.crumb a:hover { color: var(--ink); }
.hero .meta { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* ── THE FEATURED PICTURE. Every article names one (<figure class="feat">): it is the picture a shared link shows (og:image) and
   the one scripts/blog-index.mjs reads. Most are title cards drawn for that link preview, in the dark navy look the site
   retired, and they are not shown on the page: an article opens with its headline and its words. A picture that IS the
   software, a real screen of the app, is marked <figure class="feat shot"> and stands in the page's window, from the fourth
   column to the right edge. ── */
.feat { display: none; }
.feat.shot { display: block; margin: clamp(28px, 3.6vw, 48px) 0 0; padding: 0 var(--pad) 0 calc(var(--pad) + var(--spine)); }
.feat img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: var(--obj); }

/* ── ARTICLE: from the fourth column, at the reading measure ── */
article { padding: clamp(32px, 3.8vw, 52px) var(--pad) clamp(40px, 5vw, 72px) calc(var(--pad) + var(--spine)); font-size: 18px; line-height: 1.7; }
article > * { max-width: var(--measure); }
article p { margin-bottom: 22px; }
article h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.015em; line-height: 1.15; margin: 52px 0 14px; text-wrap: balance; }
article strong { color: var(--ink); font-weight: 600; }
article a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
article a:hover { color: var(--blue-d); }
article ul, article ol { margin: 0 0 22px 22px; max-width: calc(var(--measure) - 22px); }
article li { margin-bottom: 8px; }
article li::marker { color: var(--muted); }

/* A bordered note, not a tinted panel. .warn keeps its meaning as an amber dot, the one status colour on the page,
   never a fill. */
.callout, .warn { background: #fff; border: 1px solid var(--border-2); border-radius: 6px; padding: 18px 20px; margin: 26px 0; font-size: 17px; line-height: 1.65; }
.warn { position: relative; padding-left: 40px; }
.warn::before { content: ''; position: absolute; left: 19px; top: 28px; width: 8px; height: 8px; border-radius: 50%; background: #d97706; }

/* Tables: a rule in ink over the head, hairline rows, right-aligned figures. Four articles wrap theirs in three
   different class names, so all three are one rule. No min-width: a table that scrolls inside its wrapper hides its last
   columns on a phone with nothing to say so, so the columns narrow instead. The wrapper's overflow stays as the net; the
   page itself never scrolls sideways. */
.tbl-wrap, .twrap, .tablewrap { overflow-x: auto; margin: 26px 0; }
article table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; border-top: 1px solid var(--ink); }
article th, article td { text-align: left; vertical-align: top; padding: 11px 18px 11px 0; border-bottom: 1px solid var(--border); }
article th:last-child, article td:last-child { padding-right: 0; }
article th { font-size: 13px; font-weight: 600; color: var(--muted); }
article th.num, article td.num { text-align: right; }
article td.num { white-space: nowrap; }
.tbl-note { font-size: 14px; color: var(--muted); margin: -12px 0 22px; }

/* A picture inside an article: the app's own screen or a printed invoice, standing as the home page's objects do, a
   caption under it. Two side by side as a .pair (the pages of one invoice, a screen and its print). */
article figure { margin: 30px 0 34px; }
article figure img { width: 100%; height: auto; display: block; border-radius: 8px; background: #fff; box-shadow: var(--obj); }
article figure a { display: block; text-decoration: none; }
article figcaption { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 14px; }
article figure.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
article figure.pair figcaption { grid-column: 1 / -1; margin-top: -2px; }

/* ── THE CLOSING BAND: the home page's. The ask on the left, the white key on the right. ── */
.cta { background: var(--blue); padding: clamp(52px, 6vw, 84px) var(--pad); }
.cta-box { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; color: #fff; }
.cta-box strong { grid-column: 1 / span 8; display: block; font-family: var(--display); font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; color: #fff; text-wrap: balance; }
.cta-box p { grid-column: 1 / span 7; color: #dbeafe; font-size: 17px; line-height: 1.55; margin-top: 14px; }
.btn { grid-column: 9 / span 4; grid-row: 1 / span 2; background: #fff; color: var(--blue); min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn:hover { background: var(--bg); color: var(--blue-d); }
.btn:focus-visible { outline-color: #fff; }

/* ── FOOTER: the home page's ink. The brand at the left, the page's few links, one line under them. ── */
footer { background: var(--night); padding: 44px var(--pad) 28px; color: #9aa9c2; font-size: 14px; line-height: 1.6; }
.foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.foot-brand svg { width: 28px; height: 28px; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: #e2e8f0; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(199,210,230,.18); }

/* ── THE INDEX: a ruled list, set in type alone. The date in the margin, the title and two lines of what it says in the
   matter columns. The whole row is the link, so "Read the article" is not said fifteen times, and the title cards (see
   the featured picture above) are not shown: with loading="lazy" a picture that is not shown is not fetched either. ── */
.list { margin: clamp(36px, 4.4vw, 60px) var(--pad) clamp(56px, 6vw, 88px); border-top: 1px solid var(--ink); }
.card { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: start; padding: 26px 0 28px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.card .date { grid-column: 1 / span 3; grid-row: 1 / span 2; font-size: 15px; font-weight: 500; color: var(--muted); padding-top: 6px; }
.card h2 { grid-column: 4 / span 8; grid-row: 1; font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.18; text-wrap: balance; }
.card:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card p { grid-column: 4 / span 8; grid-row: 2; align-self: start; margin-top: 8px; max-width: 44em; font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-img, .card .more { display: none; }
.pager { margin: calc(32px - clamp(56px, 6vw, 88px)) var(--pad) clamp(56px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: 8px; }
.pager[hidden] { display: none; }
.pager button { min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background-color .12s, color .12s, border-color .12s; }
.pager button:hover { background: var(--bg); border-color: var(--border-2); color: var(--ink); }
.pager button[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; cursor: default; }
.pager button:disabled { opacity: .4; cursor: default; }
/* the pager's two arrows are drawn: neither face carries an arrow, so a typed one came from whatever font the system lent */
.pager .prev::before, .pager .next::before { content: ''; display: block; width: 7px; height: 7px; margin: 0 auto; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); }
.pager .next::before { transform: translateX(-2px) rotate(-135deg); }

/* ── NARROWER ── */
@media (max-width: 1000px) {
  .feat.shot, article { padding-left: var(--pad); }
  .card { display: block; }
  .card .date { padding: 0 0 6px; font-size: 14px; }
  .cta-box { display: block; }
  .btn { margin-top: 26px; }
}
@media (max-width: 640px) {
  article { font-size: 17px; }
  article h2 { margin-top: 40px; }
  article table { font-size: 14px; }
  article th, article td { padding-right: 12px; }
  article th:last-child, article td:last-child { padding-right: 0; }
  .callout, .warn { font-size: 16px; }
  .card { padding: 20px 0 22px; }
  .card p { font-size: 15px; }
  .btn { display: flex; }
  .foot-top { display: block; }
  .foot-links { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  nav, .nav-links a, .nav-cta, .nav-burger span, .btn, .pager button { transition: none; }
}
