/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============================================================
   blog.wibenson.com — Ghost theme screen.css
   Design system inherited verbatim from wibenson.com
   ("status page for a human"): ink palette, Anton nameplate,
   Archivo text/display, JetBrains Mono meta, 4px radius.
   ============================================================ */

/* ---------- tokens (same values as wibenson.com) ---------- */
:root {
  --ink:        #0c0f14;
  --ink-2:      #121722;
  --ink-3:      #171e2b;
  --line:       #222c3c;
  --line-soft:  #1a222f;

  --fg:         #e8ecf2;
  --fg-mid:     #b6c1d1;
  --fg-dim:     #9aa6b8;
  --fg-faint:   #66748a;

  --ok:         #34e27a;
  --ok-soft:    #86efb0;
  --warn:       #f5b23c;
  --warn-soft:  #ffd68a;
  --down:       #ff5a52;
  --na:         #5a6678;
  /* --fg-faint is wibenson.com's value, kept verbatim. Small mono text uses the
     AA variant below so 11-12px meta labels clear 4.5:1 on --ink (4.1 -> 4.7). */
  --fg-faint-aa: #707f96;

  --nameplate: 'Anton', 'Anton Fallback Roboto Condensed', 'Anton Fallback Arial', 'Impact', sans-serif;
  --display:   var(--gh-font-heading, 'Archivo', 'Archivo Fallback Arial', 'Archivo Fallback Roboto', system-ui, sans-serif);
  --text:      var(--gh-font-body, 'Archivo', 'Archivo Fallback Arial', 'Archivo Fallback Roboto', system-ui, sans-serif);
  --mono:      'JetBrains Mono', 'JetBrains Mono Fallback Menlo', 'JetBrains Mono Fallback Consolas', 'JetBrains Mono Fallback Courier', ui-monospace, monospace;

  --gut: 24px;
  --rad: 4px;
  --maxw: 1480px;
  --measure: 68ch;      /* long-form reading column */
  --img-bg: #eef2f7;    /* only visible behind transparent PNGs (diagrams, logos) */

  --e-out: cubic-bezier(.16,.84,.34,1);
  --e-in:  cubic-bezier(.5,0,.75,0);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(52,226,122,.3); color: #fff; }

.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ok); color: #06140b; font-family: var(--mono); font-size: .78rem;
  padding: 10px 14px; border-radius: var(--rad); font-weight: 700; text-decoration: none;
  transition: top 180ms var(--e-out);
}
.skip:focus { top: 12px; }

/* ---------- texture (same two overlays as wibenson.com) ---------- */
.texture { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.texture::before,
.texture::after { content: ""; position: absolute; inset: 0; }
.texture::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .055;
}
.texture::after {
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  opacity: .9;
}
.vignette {
  position: fixed; inset: 0; z-index: 49; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 45%, rgba(0,0,0,.55) 100%);
}

/* ---------- shell / grid ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

.sec { padding-block: 56px; border-top: 1px solid var(--line-soft); }
.sec-in {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 32px;
}
.sec-head { grid-column: 1 / -1; }
.sec-body { grid-column: 1 / -1; }
.kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-faint-aa); display: block; margin-bottom: 14px;
}
.kicker b { color: var(--ok); font-weight: 500; }
.sec-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-variation-settings: 'wdth' 88, 'wght' 750;
  letter-spacing: -.035em;
}
.sec-note { margin-top: 16px; color: var(--fg-dim); font-size: .95rem; max-width: 34ch; }

/* ---------- status dot (shared status vocabulary) ---------- */
.dot {
  position: relative; display: inline-block; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
}
.dot[data-state="ok"]   { background: var(--ok); }
.dot[data-state="warn"] { background: transparent; border: 2.5px solid var(--warn); }
.dot[data-state="down"] { background: var(--down); border-radius: 1px; transform: rotate(45deg); }
.dot[data-state="na"]   { background: transparent; border-top: 2.5px solid var(--na); border-radius: 0; height: 0; width: 11px; }
.dot[data-pulse]::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  border: 1px solid currentColor; opacity: 0;
  animation: pulse 2.6s var(--e-out) infinite;
}
.dot[data-state="ok"][data-pulse]   { color: var(--ok); }
.dot[data-state="warn"][data-pulse] { color: var(--warn); }
@keyframes pulse {
  0%   { opacity: .75; transform: scale(.7); }
  70%  { opacity: 0;   transform: scale(2.1); }
  100% { opacity: 0;   transform: scale(2.1); }
}

/* ============================================================
   site header — partials/site-header.hbs
   row 1: nameplate + actions   row 2: {{navigation}} rail
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12,15,20,.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  --od-gap: 14px;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  min-height: 54px;
}
.brand {
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--ok); }
.chip {
  --od-gap: 8px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ok-soft); border: 1px solid rgba(52,226,122,.3); border-radius: 100px;
  padding: 5px 11px 5px 9px; background: rgba(52,226,122,.07); white-space: nowrap;
}
.toplink {
  --od-gap: 6px; --od-icon-size: 13px;
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ok-soft); text-decoration: none; padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--e-out), color 160ms var(--e-out);
}
.toplink:hover { border-bottom-color: var(--ok); color: var(--ok); }

/* nav rail: the next item peeks at the edge instead of wrapping or hiding */
.navbar { border-top: 1px solid var(--line-soft); background: rgba(12,15,20,.5); }
.navbar-in {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.nav-rail {
  --od-gap: 2px; --od-rail-pad: var(--gut);
  list-style: none;
}
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--fg-dim); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--e-out), border-color 160ms var(--e-out), background 160ms var(--e-out);
}
.nav-link:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.nav-link[aria-current="page"] { color: var(--ok); border-bottom-color: var(--ok); }
.nav-rail > li:first-child .nav-link { padding-left: 0; }

/* ---------- buttons (same shapes as wibenson.com) ---------- */
.btn-primary {
  --od-gap: 10px; --od-icon-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--ok); color: #06140b; text-decoration: none;
  padding: 13px 18px; border: 1px solid var(--ok); border-radius: var(--rad);
  box-shadow: 0 14px 40px -16px rgba(52,226,122,.7);
  cursor: pointer;
  transition: background 160ms var(--e-out), transform 160ms var(--e-out), box-shadow 160ms var(--e-out);
}
.btn-primary:hover { background: var(--ok-soft); border-color: var(--ok-soft); color: #06140b; transform: translateY(-2px); box-shadow: 0 18px 46px -16px rgba(52,226,122,.85); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] {
  background: rgba(52,226,122,.25); border-color: rgba(52,226,122,.3); color: #0b2415;
  box-shadow: none; transform: none; cursor: not-allowed;
}
.btn-primary--sm { padding: 9px 13px; font-size: .7rem; box-shadow: none; }
.btn-ghost {
  --od-gap: 10px; --od-icon-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-mid); background: transparent; text-decoration: none;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--rad);
  cursor: pointer;
  transition: color 160ms var(--e-out), border-color 160ms var(--e-out), background 160ms var(--e-out);
}
.btn-ghost:hover { color: var(--fg); border-color: #30405a; background: var(--ink-2); }
.btn-ghost:disabled, .btn-ghost[aria-disabled="true"] {
  color: var(--fg-faint-aa); border-color: var(--line-soft); background: transparent;
  cursor: not-allowed; pointer-events: none;
}

/* ============================================================
   home masthead — index.hbs
   ============================================================ */
.masthead-sec { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(36px, 5vw, 64px); overflow: hidden; }
.masthead-sec::before {
  content: ""; position: absolute; left: -10%; top: -40%; width: 70%; height: 130%;
  background: radial-gradient(closest-side, rgba(52,226,122,.13), transparent 70%);
  pointer-events: none;
}
.masthead-in {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 36px;
}
.masthead { grid-column: 1 / -1; }
.eyebrow {
  --od-gap: 10px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--fg-faint-aa); margin-bottom: 20px;
}
.eyebrow i { display: block; width: 26px; height: 1px; background: var(--line); flex: none; }
.nameplate {
  display: flex; align-items: flex-start; gap: .05em;
  font-family: var(--nameplate);
  font-size: clamp(3.2rem, 14vw, 11rem);
  font-variation-settings: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .84;
  color: var(--fg);
}
.nameplate .tld {
  flex: none; margin-top: .14em;
  font-family: var(--mono); font-size: clamp(.8rem, 1.5vw, 1.4rem); font-weight: 500;
  letter-spacing: .04em; text-transform: none; color: var(--ok);
}
.site-tagline {
  margin-top: 26px;
  font-family: var(--mono); font-size: clamp(.9rem, 1.8vw, 1.1rem);
  line-height: 1.55; color: var(--fg); max-width: 30ch;
}
.site-desc { margin-top: 22px; color: var(--fg-dim); font-size: 1.02rem; max-width: 50ch; }
.site-desc a { color: var(--ok-soft); text-decoration: none; border-bottom: 1px solid rgba(52,226,122,.4); }
.site-desc a:hover { color: var(--ok); border-bottom-color: var(--ok); }

.masthead-panel { grid-column: 1 / -1; align-self: end; }
.pill {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ok-soft); white-space: nowrap;
  padding: 13px 20px 13px 17px; border-radius: 100px;
  border: 1px solid rgba(52,226,122,.42);
  background: linear-gradient(180deg, rgba(52,226,122,.17), rgba(52,226,122,.05));
  box-shadow: 0 0 0 1px rgba(52,226,122,.06), 0 14px 44px -14px rgba(52,226,122,.55), inset 0 1px 0 rgba(255,255,255,.07);
}
.pill .dot { width: 11px; height: 11px; }
.pill-note {
  margin-top: 13px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  color: var(--fg-faint-aa); max-width: 30ch;
}
.meta-list { margin-top: 22px; border-top: 1px solid var(--line-soft); }
.meta-list > div {
  --od-gap: 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .76rem;
}
.meta-list dt { color: var(--fg-faint-aa); letter-spacing: .14em; text-transform: uppercase; flex: none; }
.meta-list dd { color: var(--fg-mid); text-align: right; }

/* ============================================================
   post cards — {{#foreach posts}}
   ============================================================ */
.tag-pill {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok-soft); background: rgba(52,226,122,.1);
  border: 1px solid rgba(52,226,122,.28); border-radius: 100px;
  padding: 4px 10px; text-decoration: none; white-space: nowrap;
  transition: background 160ms var(--e-out), color 160ms var(--e-out), border-color 160ms var(--e-out);
}
a.tag-pill:hover { background: rgba(52,226,122,.2); color: var(--ok); border-color: var(--ok); }
.tag-pill--muted { color: var(--fg-dim); background: rgba(154,166,184,.07); border-color: var(--line); }
a.tag-pill--muted:hover { color: var(--fg); border-color: #30405a; background: rgba(154,166,184,.12); }

.meta-mono {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-faint-aa); white-space: nowrap;
}
.meta-sep { color: var(--line); }

/* featured latest post */
.featured {
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--rad);
  background: linear-gradient(180deg, var(--ink-2), rgba(18,23,34,.35));
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color 200ms var(--e-out), background 200ms var(--e-out);
}
.featured:hover { border-color: #30405a; }
/* deliberate uniform banner crop: mixed source ratios line up across the grid */
.featured-media {
  --od-ratio: 16 / 9;
  background: var(--img-bg); border-bottom: 1px solid var(--line-soft);
}
.featured-body { padding: 24px 22px 26px; display: grid; gap: 14px; }
.featured-tags { --od-gap: 8px; }
.featured-title {
  font-family: var(--display); font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  font-variation-settings: 'wdth' 90, 'wght' 760;
  letter-spacing: -.032em; color: var(--fg);
  transition: color 180ms var(--e-out);
}
.featured:hover .featured-title { color: var(--ok); }
.featured-excerpt { color: var(--fg-dim); font-size: 1rem; max-width: 62ch; }
.featured-foot { --od-gap: 12px; margin-top: 2px; }
.read-on {
  --od-gap: 8px; --od-icon-size: 14px;
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ok-soft);
}
.featured:hover .read-on, .post-card:hover .read-on { color: var(--ok); }
.read-on svg { transition: transform 200ms var(--e-out); }
.featured:hover .read-on svg, .post-card:hover .read-on svg { transform: translate(3px, -3px); }

/* post list rows */
.post-feed { border-top: 1px solid var(--line); }
.post-card {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 14px;
  padding: 22px 0 24px; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  transition: background 180ms var(--e-out);
}
.post-card:hover { background: rgba(255,255,255,.022); }
.post-card-media {
  --od-ratio: 16 / 9;
  border: 1px solid var(--line-soft); border-radius: var(--rad);
  background: var(--img-bg);
}
.post-card-body { display: grid; gap: 10px; align-content: start; }
.post-card-tags { --od-gap: 8px; }
.post-card-title {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-variation-settings: 'wdth' 92, 'wght' 700;
  letter-spacing: -.025em; color: var(--fg);
  transition: color 180ms var(--e-out);
}
.post-card:hover .post-card-title { color: var(--ok); }
.post-card-excerpt { color: var(--fg-dim); font-size: .95rem; max-width: 64ch; }
.post-card-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-card-side .meta-mono { font-size: .68rem; }

/* ---------- pagination — {{pagination}} ---------- */
.pagination {
  --od-gap: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.page-count {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-faint-aa); order: -1; width: 100%; text-align: center;
}
.pagination .btn-ghost { min-height: 44px; }

/* ============================================================
   article — post.hbs
   ============================================================ */
.article { padding-block: 40px 0; }
.article-in { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.article-head { max-width: var(--measure); }
.article-tags { --od-gap: 8px; margin-bottom: 18px; }
.article-title {
  font-family: var(--display); font-size: clamp(2rem, 6vw, 3.4rem);
  font-variation-settings: 'wdth' 88, 'wght' 780;
  letter-spacing: -.038em; color: var(--fg);
}
.article-meta {
  --od-gap: 10px;
  margin-top: 22px; padding-block: 14px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.byline { --od-gap: 10px; display: inline-flex; align-items: center; }
.byline-mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(52,226,122,.12); border: 1px solid rgba(52,226,122,.3);
  color: var(--ok-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
}
.byline-name {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mid);
}

/* feature image: full frame, intrinsic ratio from the file — never cropped,
   because a feature image may be a diagram or a screenshot. */
.article-feature { margin-top: 28px; }
.article-feature img {
  border: 1px solid var(--line); border-radius: var(--rad); background: var(--img-bg);
}
.article-feature figcaption,
.feature-credit {
  margin-top: 10px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--fg-faint-aa);
}

/* ---------- long-form content — {{content}} ---------- */
.gh-content {
  max-width: var(--measure);
  margin-top: 40px;
  font-size: 1.06rem; line-height: 1.72; color: var(--fg-mid);
}
.gh-content > * { margin-block: 0 24px; }
.gh-content > *:last-child { margin-bottom: 0; }
.gh-content h2 {
  font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-variation-settings: 'wdth' 92, 'wght' 740;
  letter-spacing: -.028em; color: var(--fg);
  margin-block: 52px 16px; padding-top: 8px;
  scroll-margin-top: 120px;
}
.gh-content h3 {
  font-family: var(--display); font-size: 1.25rem;
  font-variation-settings: 'wdth' 94, 'wght' 700;
  letter-spacing: -.02em; color: var(--fg);
  margin-block: 36px 12px;
}
.gh-content h4 {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ok-soft); margin-block: 32px 10px;
}
.gh-content p { color: var(--fg-mid); }
.gh-content strong { color: var(--fg); font-weight: 650; }
.gh-content em { color: var(--fg); }
.gh-content a {
  color: var(--ok-soft); text-decoration: underline;
  text-decoration-color: rgba(52,226,122,.42); text-underline-offset: 4px;
  transition: color 160ms var(--e-out), text-decoration-color 160ms var(--e-out);
}
.gh-content a:hover { color: var(--ok); text-decoration-color: var(--ok); }

.gh-content ul, .gh-content ol { padding-left: 0; margin-left: 0; display: grid; gap: 10px; }
.gh-content ul > li, .gh-content ol > li { position: relative; padding-left: 26px; color: var(--fg-mid); }
.gh-content ul > li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 1px; background: var(--ok);
}
.gh-content ol { counter-reset: gh-ol; }
.gh-content ol > li { counter-increment: gh-ol; padding-left: 32px; }
.gh-content ol > li::before {
  content: counter(gh-ol, decimal-leading-zero);
  position: absolute; left: 0; top: .08em;
  font-family: var(--mono); font-size: .72rem; color: var(--ok-soft); letter-spacing: .06em;
}
.gh-content li > ul, .gh-content li > ol { margin-top: 10px; }

.gh-content hr {
  border: 0; height: 1px; background: var(--line);
  margin-block: 44px; position: relative;
}
.gh-content hr::after {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 1px; background: var(--ok);
}

.gh-content blockquote {
  margin: 36px 0; padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ok);
  font-family: var(--display); font-size: 1.22rem; line-height: 1.5;
  font-variation-settings: 'wdth' 100, 'wght' 500;
  letter-spacing: -.01em; color: var(--fg);
}
.gh-content blockquote p + p { margin-top: 14px; }
.gh-content blockquote cite,
.gh-content blockquote footer {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: .7rem; font-style: normal;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint-aa);
}
.gh-content blockquote.kg-blockquote-alt {
  border-left: 0; padding-left: 0; text-align: center;
  font-size: 1.35rem; color: var(--fg);
}

/* inline code + mono code panels, matching wibenson.com's panel treatment */
.gh-content :not(pre) > code {
  font-family: var(--mono); font-size: .86em;
  color: var(--ok-soft); background: rgba(52,226,122,.08);
  border: 1px solid rgba(52,226,122,.2); border-radius: 3px;
  padding: .12em .34em;
  overflow-wrap: anywhere;
}
.gh-content pre {
  margin-block: 28px;
  background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--rad);
  padding: 18px 18px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.gh-content pre code {
  display: block;
  font-family: var(--mono); font-size: .82rem; line-height: 1.65;
  color: var(--fg); background: none; border: 0; padding: 0;
  white-space: pre;
  tab-size: 2;
}
.gh-content pre code .hljs-comment { color: var(--fg-faint-aa); }

/* code card: a captioned <pre>, so the panel keeps the caption attached */
.gh-content .kg-code-card { margin-block: 32px; }
.gh-content .kg-code-card pre { margin-block: 0; }
.gh-content .kg-code-card figcaption {
  margin-top: 0; padding: 9px 14px;
  background: var(--ink-3); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--rad) var(--rad);
  color: var(--ok-soft);
}
.gh-content .kg-code-card pre { border-radius: var(--rad) var(--rad) 0 0; }

/* figures and captions */
.gh-content figure { margin-block: 32px; }
.gh-content figure img { border-radius: var(--rad); background: var(--img-bg); border: 1px solid var(--line-soft); }
.gh-content figcaption,
.gh-content figcaption p {
  margin-top: 12px;
  font-family: var(--mono); font-size: .7rem; line-height: 1.55; letter-spacing: .06em;
  color: var(--fg-faint-aa); text-align: left;
}
.gh-content figcaption a { color: var(--ok-soft); }

/* ============================================================
   Koenig card classes — kg-*
   Width classes escape the reading column on wide screens.
   ============================================================ */
.gh-content .kg-card { margin-block: 32px; }

.gh-content .kg-width-wide,
.gh-content .kg-width-full { width: 100%; max-width: 100%; margin-inline: 0; }

/* image + gallery */
.gh-content .kg-image-card img,
.gh-content .kg-image { display: block; width: 100%; height: auto; }
.gh-content .kg-image-card.kg-card-hascaption figcaption { border-top: 1px solid var(--line-soft); padding-top: 10px; }

.gh-content .kg-gallery-card { display: block; }
.gh-content .kg-gallery-card.kg-card-hascaption figcaption { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.gh-content .kg-gallery-row { display: flex; gap: 10px; }
.gh-content .kg-gallery-image { flex: 1 1 0; min-width: 0; }
.gh-content .kg-gallery-image img {
  display: block; width: 100%; height: auto;
  border-radius: var(--rad); border: 1px solid var(--line-soft); background: var(--img-bg);
}
@media (max-width: 599px) {
  .gh-content .kg-gallery-row { flex-direction: column; }
}

/* bookmark */
.gh-content .kg-bookmark-card a.kg-bookmark-container {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden;
  transition: border-color 180ms var(--e-out), background 180ms var(--e-out);
}
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover { border-color: #30405a; background: var(--ink-3); }
.gh-content .kg-bookmark-content { display: grid; gap: 8px; padding: 18px 20px; min-width: 0; }
.gh-content .kg-bookmark-title {
  font-family: var(--display); font-size: 1.02rem;
  font-variation-settings: 'wdth' 96, 'wght' 700;
  letter-spacing: -.015em; color: var(--fg);
}
.gh-content .kg-bookmark-description {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: .92rem; color: var(--fg-dim);
}
.gh-content .kg-bookmark-metadata {
  --od-gap: 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 2px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--fg-faint-aa);
}
.gh-content .kg-bookmark-icon { width: 16px; height: 16px; flex: none; border-radius: 2px; }
.gh-content .kg-bookmark-author::after { content: "·"; margin-inline: 6px; color: var(--line); }
.gh-content .kg-bookmark-thumbnail { flex: none; }
.gh-content .kg-bookmark-thumbnail img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--img-bg);
}
@media (min-width: 768px) {
  .gh-content .kg-bookmark-card a.kg-bookmark-container { flex-direction: row-reverse; align-items: stretch; }
  .gh-content .kg-bookmark-content { flex: 1 1 0; }
  .gh-content .kg-bookmark-thumbnail { width: 200px; }
  .gh-content .kg-bookmark-thumbnail img { height: 100%; aspect-ratio: auto; }
}

/* callout */
.gh-content .kg-callout-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-left: 2px solid var(--ok); border-radius: var(--rad);
}
.gh-content .kg-callout-emoji { flex: none; font-size: 1.1rem; line-height: 1.5; }
.gh-content .kg-callout-text { min-width: 0; color: var(--fg-mid); font-size: .98rem; }
.gh-content .kg-callout-card-blue   { border-left-color: #4aa8ff; }
.gh-content .kg-callout-card-green  { border-left-color: var(--ok); }
.gh-content .kg-callout-card-yellow { border-left-color: var(--warn); }
.gh-content .kg-callout-card-red    { border-left-color: var(--down); }
.gh-content .kg-callout-card-grey   { border-left-color: var(--na); }

/* embed */
.gh-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.gh-content .kg-embed-card iframe,
.gh-content .kg-embed-card > iframe {
  display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 1px solid var(--line); border-radius: var(--rad); background: var(--ink-2);
}
.gh-content .kg-embed-card blockquote { margin-block: 0; }
.gh-content .kg-embed-card figcaption { align-self: flex-start; }

/* toggle */
.gh-content .kg-toggle-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 4px 18px;
}
.gh-content .kg-toggle-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 14px; cursor: pointer; min-height: 44px;
}
.gh-content .kg-toggle-heading-text {
  font-family: var(--display); font-size: 1.02rem;
  font-variation-settings: 'wdth' 96, 'wght' 700;
  letter-spacing: -.012em; color: var(--fg); margin: 0;
}
.gh-content .kg-toggle-card-icon {
  flex: none; width: 16px; height: 16px; color: var(--ok-soft);
  transition: transform 220ms var(--e-out);
}
.gh-content .kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon { transform: rotate(180deg); }
.gh-content .kg-toggle-content {
  overflow: hidden; max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height 280ms var(--e-out), opacity 200ms var(--e-out), visibility 280ms var(--e-out);
  font-size: .98rem; color: var(--fg-dim);
}
.gh-content .kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-content {
  max-height: 720px; opacity: 1; visibility: visible; padding-bottom: 16px;
}

/* button, header, product and audio cards keep the same panel language */
.gh-content .kg-button-card { display: flex; justify-content: center; }
.gh-content .kg-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ok); color: #06140b; text-decoration: none;
  padding: 12px 18px; border-radius: var(--rad);
}
.gh-content .kg-btn:hover { background: var(--ok-soft); color: #06140b; }

/* ---------- members CTA — {{#unless @member}} ---------- */
.members-cta {
  max-width: var(--measure);
  margin-top: 56px; padding: 26px 24px 28px;
  background: linear-gradient(180deg, var(--ink-2), rgba(18,23,34,.4));
  border: 1px solid var(--line); border-radius: var(--rad);
  display: grid; gap: 14px;
}
.members-cta h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-variation-settings: 'wdth' 90, 'wght' 760; letter-spacing: -.03em; color: var(--fg);
}
.members-cta p { color: var(--fg-dim); font-size: .98rem; max-width: 52ch; }
.members-actions { --od-gap: 12px; margin-top: 4px; }
.members-note { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--fg-faint-aa); }

/* ---------- read next ---------- */
.read-next { --od-cols: 1; --od-gap: 16px; }
.read-next-card {
  display: grid; gap: 12px; align-content: start;
  padding: 20px 20px 22px;
  background: linear-gradient(180deg, var(--ink-2), rgba(18,23,34,.35));
  border: 1px solid var(--line-soft); border-radius: var(--rad);
  text-decoration: none; color: inherit;
  transition: border-color 180ms var(--e-out), background 180ms var(--e-out);
}
.read-next-card:hover { border-color: #30405a; background: var(--ink-3); }
.read-next-dir {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ok-soft);
}
.read-next-media { --od-ratio: 16 / 9; border-radius: var(--rad); background: var(--img-bg); }
.read-next-title {
  font-family: var(--display); font-size: 1.2rem;
  font-variation-settings: 'wdth' 94, 'wght' 700; letter-spacing: -.02em; color: var(--fg);
}
.read-next-card:hover .read-next-title { color: var(--ok); }
.also-tagged {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--fg-faint-aa);
}
.also-tagged a { color: var(--ok-soft); text-decoration: underline; text-decoration-color: rgba(52,226,122,.4); text-underline-offset: 4px; }
.also-tagged a:hover { color: var(--ok); }

.post-footer-sec {
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-soft);
}
.members-note a {
  color: var(--ok-soft); text-decoration: underline;
  text-decoration-color: rgba(52,226,122,.4); text-underline-offset: 3px;
}
.members-note a:hover { color: var(--ok); }

/* ============================================================
   tag archive — tag.hbs
   ============================================================ */
.tag-head-sec { position: relative; padding-block: clamp(32px, 4.5vw, 60px) clamp(28px, 4vw, 44px); overflow: hidden; }
.tag-head-sec::before {
  content: ""; position: absolute; left: -8%; top: -50%; width: 56%; height: 140%;
  background: radial-gradient(closest-side, rgba(52,226,122,.1), transparent 70%);
  pointer-events: none;
}
.tag-head-in {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 28px;
}
.tag-head { grid-column: 1 / -1; }
.tag-name {
  font-family: var(--display); font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-variation-settings: 'wdth' 86, 'wght' 800;
  letter-spacing: -.04em; color: var(--fg);
}
.tag-count {
  margin-top: 18px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
}
.tag-count b { color: var(--ok); font-weight: 500; }
.tag-side { grid-column: 1 / -1; align-self: end; }
.tag-crumbs { --od-gap: 8px; --od-icon-size: 12px; }
.tag-crumbs a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ok-soft); text-decoration: none; border-bottom: 1px solid rgba(52,226,122,.35);
}
.tag-crumbs a:hover { color: var(--ok); border-bottom-color: var(--ok); }

/* ============================================================
   footer — partials/site-footer.hbs
   ============================================================ */
.site-foot { border-top: 1px solid var(--line-soft); margin-top: 72px; padding-block: 34px 48px; }
.foot-in {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  display: grid; gap: 26px;
}
.foot-top { display: grid; gap: 22px; }
.foot-brand { display: grid; gap: 10px; }
.foot-nameplate {
  font-family: var(--nameplate); font-size: 2rem; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .9; color: var(--fg);
}
.foot-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--fg-faint-aa); }
.foot-col h2 {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint-aa); margin-bottom: 12px;
}
.foot-col ul { display: grid; gap: 2px; }
.foot-col a {
  display: inline-flex; align-items: center; min-height: 36px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
  color: var(--fg-dim); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--e-out), border-color 160ms var(--e-out);
}
.foot-col a:hover { color: var(--ok-soft); border-bottom-color: var(--ok); }
.foot-bottom {
  --od-gap: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.foot-bottom p { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--fg-faint-aa); }
.foot-bottom a { color: var(--fg-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-bottom a:hover { color: var(--ok-soft); border-bottom-color: var(--ok); }

/* ---------- scroll entrances ---------- */
.js .rise { opacity: 0; transform: translateY(14px); }
.js .rise.in {
  opacity: 1; transform: none;
  transition: opacity 400ms var(--e-out), transform 400ms var(--e-out);
  transition-delay: calc(var(--d, 0) * 40ms);
}

/* ============================================================
   breakpoints — 375 / 768 / 1024 / 1440
   ============================================================ */
@media (max-width: 767px) {
  .topbar-in { --od-gap: 10px; flex-wrap: wrap; padding-block: 8px; }
  #site-chip { display: none; }
  .brand { font-size: .74rem; }
}

@media (min-width: 768px) {
  :root { --gut: 40px; }
  .sec { padding-block: 72px; }

  .featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  .featured-media { --od-ratio: 4 / 3; border-bottom: 0; border-right: 1px solid var(--line-soft); height: 100%; }
  .featured-body { padding: 28px 28px 30px; align-content: center; }

  .post-card { grid-template-columns: 200px minmax(0,1fr) auto; column-gap: 26px; align-items: start; padding-block: 26px 28px; }
  .post-card-side { flex-direction: column; align-items: flex-end; gap: 8px; }

  .read-next { --od-cols: 2; }
  .article { padding-block: 52px 0; }
  .article-meta { --od-gap: 14px; }

  .foot-top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
  .page-count { order: 0; width: auto; }
}

@media (min-width: 1024px) {
  :root { --gut: 56px; }
  .sec { padding-block: 88px; }
  .sec--feed .sec-head { grid-column: 1 / 4; position: sticky; top: 124px; align-self: start; }
  .sec--feed .sec-body { grid-column: 4 / 13; }
  .sec--latest .sec-head { grid-column: 1 / 4; }
  .sec--latest .sec-body { grid-column: 4 / 13; }

  .masthead { grid-column: 1 / 9; }
  .masthead-panel { grid-column: 10 / 13; padding-bottom: 10px; }

  .tag-head { grid-column: 1 / 9; }
  .tag-side { grid-column: 10 / 13; }

  .article-in { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; }
  .article-head,
  .article-feature,
  .gh-content,
  .members-cta,
  .article-footer { grid-column: 3 / 11; }
  /* wide/full cards step outside the reading measure by fixed amounts that
     always stay inside the 12-column article area — no horizontal scroll. */
  .gh-content .kg-width-wide  { width: calc(100% + 120px); max-width: none; margin-left: -60px; }
  .gh-content .kg-width-full  { width: calc(100% + 240px); max-width: none; margin-left: -120px; }

  .post-card { grid-template-columns: 240px minmax(0,1fr) auto; column-gap: 32px; }
  .foot-top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1440px) {
  :root { --gut: 72px; }
  .sec { padding-block: 104px; }
  .gh-content .kg-width-wide  { width: calc(100% + 180px); margin-left: -90px; }
  .gh-content .kg-width-full  { width: calc(100% + 440px); margin-left: -220px; }
  .article-head,
  .article-feature,
  .gh-content,
  .members-cta,
  .article-footer { grid-column: 3 / 10; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1 !important; transform: none !important; }
  .dot[data-pulse]::after { animation: none; opacity: 0; }
  .btn-primary:hover { transform: none; }
  .featured:hover .read-on svg, .post-card:hover .read-on svg { transform: none; }
  .gh-content .kg-toggle-content { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   Ghost theme additions (not in the OD mockup)
   ============================================================ */
.byline-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
a.byline { text-decoration: none; }
.pagination .btn-ghost { text-decoration: none; }
.page-head-sec .gh-content { margin-top: 28px; }
.error-code { font-family: var(--nameplate); font-size: clamp(5rem, 22vw, 14rem); line-height: .9; color: var(--fg); }
.post-card-media--empty { aspect-ratio: 16 / 9; background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--rad); }
.tag-desc, .article-excerpt { margin-top: 14px; max-width: 60ch; color: var(--fg-dim); font-size: 1.05rem; }
.post-comments { max-width: var(--measure); margin-top: 48px; }

/* Metric-matched local fallbacks: generated by scripts/fallback-metrics.js (capsize metrics).
   Text set in a fallback takes the same space as the web font, so the swap does not reflow the page. */
@font-face {
  font-family: 'Archivo Fallback Arial';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  size-adjust: 102.29%;
  ascent-override: 85.84%;
  descent-override: 20.53%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Archivo Fallback Roboto';
  src: local('Roboto'), local('Roboto-Regular');
  size-adjust: 102.51%;
  ascent-override: 85.65%;
  descent-override: 20.49%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Anton Fallback Roboto Condensed';
  src: local('Roboto Condensed'), local('RobotoCondensed-Regular');
  /* calibrated on uppercase text (Anton is only set in caps): measured 'WIBENSON' width ratio x0.775 */
  size-adjust: 79.13%;
  ascent-override: 148.65%;
  descent-override: 41.59%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Anton Fallback Arial';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'), local('Roboto');
  /* calibrated on uppercase text (Anton is only set in caps): measured 'WIBENSON' width ratio x0.775 */
  size-adjust: 70.28%;
  ascent-override: 167.35%;
  descent-override: 46.82%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback Menlo';
  src: local('Menlo'), local('Menlo-Regular'), local('DejaVu Sans Mono'), local('Droid Sans Mono');
  size-adjust: 99.66%;
  ascent-override: 102.35%;
  descent-override: 30.10%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback Consolas';
  src: local('Consolas');
  size-adjust: 109.13%;
  ascent-override: 93.47%;
  descent-override: 27.49%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback Courier';
  src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'), local('Cousine');
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30.00%;
  line-gap-override: 0.00%;
}


/* ============================================================
   One page title, every template.
   Home nameplate, tag/author name, post/page title and the error message
   share family, size, width axis and top offset, so switching pages does
   not move or resize the title.
   ============================================================ */
:root {
  --title-size: clamp(2.3rem, 6vw, 3.6rem);
  --page-top: clamp(36px, 5vw, 56px);
}
.nameplate,
.tag-name,
.article-title {
  font-family: var(--display);
  font-size: var(--title-size);
  font-weight: 780;
  font-variation-settings: 'wdth' 88, 'wght' 780;
  letter-spacing: -.038em;
  line-height: 1.04;
  text-transform: none;
  color: var(--fg);
}
.nameplate { display: flex; align-items: flex-start; gap: .12em; }
.nameplate .tld { margin-top: .32em; font-size: clamp(.8rem, 1.3vw, 1.05rem); }
.masthead-sec,
.tag-head-sec { padding-top: var(--page-top); }
.article { padding-top: var(--page-top); }
@media (min-width: 768px) { .article { padding-top: var(--page-top); } }
/* Same-height kicker row above every title (eyebrow text or tag pills),
   so the title starts at the same y on every template. */
main .eyebrow,
.article-tags { min-height: 27px; margin-top: 0; margin-bottom: 18px; align-items: center; }

/* ============================================================
   Home masthead = wibenson.com hero, value for value
   (padding, eyebrow, nameplate, .tld, tagline, sub copy, grid span),
   so moving between wibenson.com and the blog keeps the same nameplate.
   ============================================================ */
.home-template .masthead-sec { padding-block: clamp(44px, 7vw, 96px) clamp(52px, 7vw, 104px); }
.home-template .masthead-in { row-gap: 40px; }
.home-template .masthead .eyebrow { min-height: 0; margin-bottom: 22px; color: var(--fg-faint); }
.home-template .nameplate {
  display: flex; align-items: flex-start; gap: .05em;
  font-family: var(--nameplate);
  font-size: clamp(2.16rem, 10.2vw, 9rem);
  font-variation-settings: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .84;
  margin: 0;
}
@media (max-width: 767px) {
  .home-template .nameplate { font-size: clamp(2.4rem, 13.2vw, 5.4rem); }
  .home-template .masthead-panel { display: none; }
  .home-template .masthead-sec { padding-bottom: 28px; }
}
.home-template .nameplate .tld {
  flex: none; margin-top: .14em;
  font-family: var(--mono); font-size: clamp(.72rem, 1vw, .9rem); font-weight: 500;
  letter-spacing: .04em; text-transform: none; color: var(--ok);
}
.home-template .site-tagline { margin-top: 30px; font-size: clamp(.9rem, 1.9vw, 1.18rem); }
.home-template .site-desc { margin-top: 26px; max-width: 46ch; }
@media (min-width: 1024px) {
  .home-template .masthead { grid-column: 1 / 10; }
}

/* ============================================================
   Header = wibenson.com topbar: one 54px row on every viewport.
   >=1280px the nav sits inline; below that it folds into a Menu disclosure.
   ============================================================ */
.topbar-in { flex-wrap: nowrap !important; padding-block: 0 !important; min-height: 54px; }
.topnav { display: none; margin-left: 18px; }
.topnav .nav-rail { display: flex; gap: 2px; padding: 0; margin: 0; overflow: visible; }
.topnav .nav-link { min-height: 54px; padding: 0 10px; border-bottom-width: 2px; }
.topnav .nav-rail > li:first-child .nav-link { padding-left: 10px; }
.topbar-chip, .topbar-home { display: none; }
@media (min-width: 640px) { .topbar-home { display: inline-flex; } }
@media (min-width: 1280px) {
  .topnav { display: block; }
  .topbar-chip { display: inline-flex; }
  .navmenu { display: none; }
}
.navmenu { position: relative; }
.navmenu-btn {
  list-style: none; cursor: pointer;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mid); background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--rad); padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center;
}
.navmenu-btn::-webkit-details-marker { display: none; }
.navmenu[open] .navmenu-btn { color: var(--ok-soft); border-color: rgba(52,226,122,.4); }
.navmenu-panel {
  position: absolute; right: 0; top: calc(100% + 9px); min-width: 230px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 8px; display: grid; gap: 4px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
}
.navmenu-panel .nav-rail { display: grid; gap: 0; padding: 0; margin: 0; }
.navmenu-panel .nav-link { min-height: 40px; padding: 0 10px; border-bottom: 0; border-left: 2px solid transparent; }
.navmenu-panel .nav-rail > li:first-child .nav-link { padding-left: 10px; }
.navmenu-panel .nav-link[aria-current="page"] { border-left-color: var(--ok); }
.navmenu-panel .toplink { padding: 10px; border-top: 1px solid var(--line-soft); }
