/* Hallmark · shape: Bento Grid (/, by request, concept D), kept elsewhere · genre: modern-minimal · theme: Ink (deal 3/3, seed personal-portfolio-data-engineer-fe43·883da6e2·2026-11-13·r0) · job: hire · draw: none, shape by request
 * hero: the bento is the first screen, the profile tile leading (/); Banner (/projects/, /tools/, /notes/) · nav: edge-aligned bar · footer: colophon block · imagery: the product, one small peek on / · signature: the headline tile beside a ruled list of the four tools · ink: paper (light), night (dark, derived)
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, a bento landing is a common shape; every tile holds this site's own facts and the one peek is a real code lookup */
/* Hallmark · waive 22 · ink, greys and rules at zero chroma · Ink prints in plain black, so the mark's blue and violet strokes are the only colour */
/* Hallmark · waive 26b · a site of links and one form; :disabled styles live on the form's button · nothing else on ariv24 is ever disabled */
/* Hallmark · answered F1 · straight quotes left in template comments are code, not prose */

/* Hub base: the floor, the chrome (header, nav, footer), controls and the shared pieces every hub page uses.
   Loaded by templates/hub/base_hub.html after hub/tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-rule-2) var(--color-paper); scroll-padding-top: var(--space-3xl); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55;
  -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); font-synthesis: none;
}
::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display);
  line-height: 1.04; overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
h1 { max-width: 20ch; font-size: var(--text-display); }
h2 { max-width: 30ch; font-size: var(--text-section); }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
code, pre, kbd { font-family: var(--font-outlier); font-variant-numeric: tabular-nums slashed-zero; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; }
.skip {
  position: absolute; left: var(--space-sm); top: calc(-1 * var(--space-3xl)); z-index: var(--z-modal);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-paper);
}
.skip:focus-visible { top: var(--space-sm); }

/* Header: wordmark at one edge, the destinations and the theme switch at the other, on glass the page shows through */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: color-mix(in oklab, var(--color-paper) 78%, transparent); border-bottom: var(--rule-hair) solid var(--color-rule);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.03em; }
.brand .mark { width: 30px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-2xs); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-muted);
  text-decoration: underline 2px transparent; text-underline-offset: 22px;
  transition: color var(--dur-micro) var(--ease-out), text-decoration-color var(--dur-micro) var(--ease-out);
}
.nav a:hover { color: var(--color-ink); }
.nav a:active { color: var(--color-ink-2); }
.nav a[aria-current] { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: var(--space-xs); padding: 0;
  color: var(--color-muted); background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.icon-btn:hover { color: var(--color-ink); border-color: var(--color-muted); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 16px; height: 16px; }
/* Highlight colour picker: a swatch button opening a row of Geist's eight colours (static/js/accent.js) */
.accent-picker { position: relative; }
.accent-picker[hidden] { display: none; }
.accent-picker .icon-btn { margin-left: var(--space-xs); }
.swatch-now { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-ink) 15%, transparent); }
.accent-menu {
  position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown);
  display: grid; grid-template-columns: repeat(4, 32px); gap: var(--space-xs); padding: var(--space-sm);
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  box-shadow: 0 12px 32px color-mix(in oklab, var(--color-ink) 14%, transparent);
}
.accent-menu[hidden] { display: none; }
.accent-menu button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.accent-menu button i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--sw); transition: transform var(--dur-micro) var(--ease-out); }
.accent-menu button:hover i { transform: scale(1.12); }
.accent-menu button:active i { transform: scale(0.95); }
.accent-menu button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--color-ink); }
[data-accent-value="gray"] { --sw: var(--swatch-gray); } [data-accent-value="blue"] { --sw: var(--swatch-blue); }
[data-accent-value="red"] { --sw: var(--swatch-red); } [data-accent-value="amber"] { --sw: var(--swatch-amber); }
[data-accent-value="green"] { --sw: var(--swatch-green); } [data-accent-value="teal"] { --sw: var(--swatch-teal); }
[data-accent-value="purple"] { --sw: var(--swatch-purple); } [data-accent-value="pink"] { --sw: var(--swatch-pink); }

@media (max-width: 40rem) {
  .nav a:not(.keep) { display: none; }
  .nav a { padding: 0 var(--space-xs); }
}

/* Footer: two quiet lines. The wordmark and the links, then the colophon sentence and the copyright.
   The colophon's wordmark and sentence are laid out as items of the footer row (display: contents). */
main:has(> .band:last-child) + .site-footer { margin-top: 0; }
.site-footer { margin-top: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-xl);
  padding-block: var(--space-lg) var(--space-xl);
}
.colophon { display: contents; }
.colophon .brand { order: 1; flex: none; font-size: var(--text-md); }
.colophon .brand .mark { width: 24px; }
.foot-links { order: 2; flex: 1 1 60%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--space-lg); }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; font-size: var(--text-sm); color: var(--color-muted); }
.foot-links a:hover { color: var(--color-ink); text-decoration: underline var(--rule-hair) var(--color-accent); text-underline-offset: 0.3em; }
.colophon p { order: 3; flex: 1 1 50%; font-size: var(--text-sm); color: var(--color-muted); }
.legal { order: 4; flex: none; font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 40rem) {
  .foot-links { flex-basis: 100%; justify-content: flex-start; }
  .colophon p { flex-basis: 100%; }
}

/* Controls: an ink primary beside a bordered secondary, both at 10px */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.btn:hover { border-color: var(--color-muted); background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn.primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.text-link {
  font-weight: 500; color: var(--color-ink);
  text-decoration: underline var(--rule-hair) var(--color-rule-2); text-underline-offset: 0.25em;
  transition: color var(--dur-micro) var(--ease-out), text-decoration-color var(--dur-micro) var(--ease-out);
}
.text-link:hover { text-decoration-color: var(--color-accent); }

/* A tag carries state only: live is ink-filled, beta is an outline */
.badge {
  display: inline-flex; align-items: center; flex: none; padding: var(--space-3xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-chip);
  background: transparent; color: var(--color-muted); font-size: var(--text-xs); font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge.live { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.badge.build { background: transparent; }
a.badge:hover { border-color: var(--color-muted); color: var(--color-ink); }
.badge .dot { display: none; }

/* The bar across the top of a demo card: what it shows, and a detail */
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  min-height: 48px; padding: 0 var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm); color: var(--color-muted);
}
.panel-bar b { font-weight: 500; color: var(--color-ink); }

/* A band changes the paper edge to edge while its content keeps the container */
.band { background: var(--color-paper-3); color: var(--color-ink); box-shadow: 0 0 0 100vmax var(--color-paper-3); clip-path: inset(0 -100vmax); }

/* App icons beside a name */
.app-id { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.app-logo { display: block; flex: none; color: var(--color-ink); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: var(--z-base); }

/* tetherOps icon: a pulse travels from the job to its target, which turns green */
.to-logo { display: grid; place-items: center; border-radius: 19%; background: var(--color-paper-3); box-shadow: inset 0 0 0 1px var(--color-rule-2); color: var(--color-ink); }
.to-logo svg { width: 70%; height: 70%; }
.to-source, .to-target { opacity: 0.6; }
.to-track { opacity: 0.22; }
.to-pulse { stroke: var(--color-status-run); stroke-width: 2; stroke-dasharray: 22 200; stroke-dashoffset: 22; opacity: 0; }
.to-ring { stroke: var(--color-status-ok); opacity: 0; }
.to-target, .to-ring { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .to-pulse { animation: to-pulse 3.6s var(--ease-out) infinite; }
  .to-target { animation: to-target 3.6s var(--ease-in-out) infinite; }
  .to-ring { animation: to-ring 3.6s var(--ease-out) infinite; }
  @keyframes to-pulse { 0%, 12% { stroke-dashoffset: 22; opacity: 0; } 18%, 70% { opacity: 1; } 78%, 100% { stroke-dashoffset: -100; opacity: 0; } }
  @keyframes to-target { 0%, 72%, 100% { transform: scale(1); opacity: 0.6; } 80% { transform: scale(1.1); opacity: 1; stroke: var(--color-status-ok); } 92% { transform: scale(1); opacity: 0.8; stroke: var(--color-status-ok); } }
  @keyframes to-ring { 0%, 76% { opacity: 0; transform: scale(1); } 80% { opacity: 0.55; } 100% { opacity: 0; transform: scale(1.7); } }
}
/* tetherOps Hybrid icon: the tetherOps tether ending in a red beacon, a dot inside a ring, for status broadcast to the
   team. The beacon is red at rest and the pulse that reaches it is red too; on arrival the dot and ring swell and a
   ripple leaves the ring. The Hybrid app's own copy is static/img/tetherops-hybrid-icon.svg. */
.to-logo.hybrid .to-target { stroke: var(--color-hybrid); opacity: 1; }
.to-logo.hybrid .to-dot { fill: var(--color-hybrid); stroke: none; transform-box: fill-box; transform-origin: center; }
.to-logo.hybrid .to-pulse, .to-logo.hybrid .to-ring { stroke: var(--color-hybrid); }
@media (prefers-reduced-motion: no-preference) {
  .to-logo.hybrid .to-target { animation-name: to-beacon; }
  .to-logo.hybrid .to-dot { animation: to-beacon 3.6s var(--ease-in-out) infinite; }
  .to-logo.hybrid .to-ring { animation-name: to-beacon-ring; }
  @keyframes to-beacon { 0%, 72%, 100% { transform: scale(1); } 80% { transform: scale(1.12); } 92% { transform: scale(1); } }
  @keyframes to-beacon-ring { 0%, 76% { opacity: 0; transform: scale(1); } 80% { opacity: 0.55; } 100% { opacity: 0; transform: scale(1.5); } }
}

/* A page head: the title and its one line, left on the columns */
.page-head { display: grid; gap: var(--space-md); padding-block: var(--space-2xl) var(--space-xl); }
.page-head h1 { font-size: clamp(2rem, 1.6vw + 1.25rem, 2.75rem); line-height: 1.06; }
.lead { font-size: var(--text-lg); line-height: 1.5; max-width: 56ch; color: var(--color-ink-2); }
.crumbs { font-size: var(--text-sm); color: var(--color-muted); }
.crumbs a { text-decoration: underline var(--rule-hair) var(--color-rule-2); text-underline-offset: 0.25em; }
.crumbs a:hover { color: var(--color-accent); }

/* Simple pages (about, notes list) */
.page { padding-bottom: var(--space-2xl); }
.page > h1 { padding-top: var(--space-2xl); margin-bottom: var(--space-md); font-size: clamp(2rem, 1.6vw + 1.25rem, 2.75rem); }

/* Lists of notes: rows parted by hairlines */
.note-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.note-list li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.note-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg);
  padding: var(--space-md) 0;
}
.note-row > div { display: grid; gap: var(--space-2xs); }
.note-row b { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; transition: color var(--dur-micro) var(--ease-out); }
.note-row > div > span { max-width: 70ch; font-size: var(--text-sm); color: var(--color-muted); }
a.note-row:hover b { color: var(--color-accent); }
.note-site { font-size: var(--text-sm); color: var(--color-muted); }
.note-site time, .note-site .num { font-variant-numeric: tabular-nums; }
.note-arrow { width: 20px; height: 20px; flex: none; color: var(--color-muted); }

@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) {
  *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
}
