/* Hallmark · shape: Map / Diagram · genre: modern-minimal · theme: Ultraviolet (deal 1/3, seed techswitch-devsecops-cloud-mlops-c0bf·6c0ec932·2026-10-28·r0) · job: hire · draw: 07d0ef
 * hero: Ledge · nav: masthead · footer: mast · imagery: the product, the user's store art and blog covers · signature: the delivery pipeline drawn as a map, each stage naming the tools run there, scan in the violet · ultraviolet: lavender, one record band
 * axes: light/geometric-sans/cool · posture: committed · modes: light+dark (ultraviolet night) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a services studio reads like any consultancy; led with the six-stage pipeline map naming the real tools from the portfolio, and opened UPI Hub as the one case */
/* Hallmark · waive 47c · the upi hub screens are built inside data-slot figures · the app does not run here, the slots take real screenshots later */
/* Hallmark · answered F4 · the ink tab is a selected segment, and the white pill is the theme's primary inverted inside the violet record band */
/* Hallmark · answered F7 · ultraviolet is round: map stages, the segment track and the screen's pay bar are pills by the theme's own rule */
/* Hallmark · dismissed 23 · the violet behind slotted photos is the theme's photo tint, under the image, never a field */
/* Hallmark · dismissed 41 · the dark slot fill sits under an image and carries no text */
/* Hallmark · dismissed 58 · on post pages the h1 is the owner's own post title, copied verbatim from Hashnode */
/* Hallmark · answered F1 · straight quotes on post pages are inside the owner's imported Hashnode prose */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; --radius-screen: 28px; }

/* chrome */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

.mast { border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--nav-h); gap: var(--space-lg); }
.mast__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font: 500 var(--text-sm)/1 var(--font-display); }
.mast__links--end { justify-content: flex-end; align-items: center; }
.mast__links a { text-decoration: none; white-space: nowrap; }
.mast__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.wordmark { font: 500 var(--text-2xl)/1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; text-transform: lowercase; }

/* controls */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 500 var(--text-md)/1 var(--font-display); text-transform: lowercase; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--secondary { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.link { font: 500 var(--text-md)/1.2 var(--font-display); text-transform: lowercase; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

h1, h2, h3 { text-transform: lowercase; line-height: 1; }
.section { padding-block: var(--section-gap) 0; }
.section--tight { padding-block: var(--section-gap-s) 0; }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head h2 { grid-column: 1 / 7; }
.head > p { grid-column: 8 / 13; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }

/* hero: ledge, the pipeline map as the tall field, the head at its base */
.hero { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-xl) var(--space-2xl); }
.hero__field { display: grid; align-content: center; }
.hero__base { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.hero h1 { grid-column: 1 / 8; max-width: none; font-size: clamp(2.75rem, 4.6vw + 0.75rem, 6rem); }
.hero__side { grid-column: 9 / 13; display: grid; gap: var(--space-lg); }
.hero__side .lead { color: var(--color-ink-2); }

.map { margin: 0; }
.map__stages { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.map__stages::before { content: ""; position: absolute; left: 0; right: 0; top: 32px; border-top: 1.5px solid var(--color-rule-2); }
.map__stage { position: relative; display: grid; justify-items: start; align-content: start; gap: var(--space-md); }
.map__node { display: inline-flex; align-items: center; min-height: 64px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); font: 500 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.map__stage--key .map__node { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.map__step { font: 300 var(--text-sm)/1 var(--font-display); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.map__tools { margin: 0; padding: 0; list-style: none; font-size: var(--text-md); line-height: 1.55; color: var(--color-ink); }
.map figcaption { margin-top: var(--space-xl); max-width: 52ch; font-size: var(--text-sm); color: var(--color-muted); }

/* work: an index of projects, the lead row larger */
.index { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.index__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.index__name { grid-column: 1 / 5; font: 500 var(--text-title)/1.1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: lowercase; }
.index__name a { text-decoration: none; }
.index__name a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.index__what { grid-column: 5 / 10; color: var(--color-ink-2); }
.index__stack { grid-column: 10 / 12; font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); text-transform: lowercase; }
.index__year { grid-column: 12 / 13; justify-self: end; font: 300 var(--text-lg)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-muted); }
.index__row--lead { align-items: center; padding-block: var(--space-xl); }
.index__row--lead .index__name { grid-column: 1 / 5; font-size: var(--text-section); line-height: 1; }
.index__row--lead .index__what { grid-column: 1 / 5; grid-row: 2; font-size: var(--text-lead); line-height: 1.45; }
.index__row--lead .index__art { grid-column: 6 / 13; grid-row: 1 / 4; margin: 0; }
.index__row--lead .index__stack { grid-column: 1 / 3; grid-row: 3; }
.index__row--lead .index__year { grid-column: 3 / 5; grid-row: 3; justify-self: start; }
.index__art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }

/* upi hub, opened: a switcher across the three moments of a payment */
.case { padding-block: var(--section-gap) ; }
.case__well { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; padding: var(--space-3xl) var(--space-2xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.case__text { grid-column: 1 / 7; display: grid; gap: var(--space-lg); justify-items: start; }
.case__icon { width: 64px; height: 64px; border-radius: var(--radius-card); }
.case__text h2 { max-width: 14ch; }
.case__text > p { max-width: 44ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.facts { display: grid; gap: 0; width: 100%; margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font: 500 var(--text-sm)/1.5 var(--font-display); color: var(--color-muted); text-transform: lowercase; }
.facts dd { margin: 0; }
.case__stage { grid-column: 8 / 13; display: grid; justify-items: center; gap: var(--space-lg); }

.seg { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); }
.seg button { min-height: 44px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.seg button:hover { background: var(--color-paper-2); }
.seg button[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg button:active { transform: translateY(1px); }
html:not(.js) .seg { display: none; }

.screens { display: grid; gap: var(--space-lg); width: 100%; justify-items: center; }
.screen { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(100%, 320px); aspect-ratio: 9 / 18; margin: 0; padding: var(--space-lg); border-radius: var(--radius-screen); background: var(--color-paper); box-shadow: var(--shadow-card); font-size: var(--text-sm); }
.screen[data-slot] { background: var(--color-paper); }
.screen__top { display: flex; justify-content: space-between; align-items: center; font: 500 var(--text-md)/1 var(--font-display); text-transform: lowercase; }
.screen__note { color: var(--color-muted); font-size: var(--text-xs); }
.screen--scan { background: var(--color-night); color: var(--color-night-ink); }
.screen--scan[data-slot] { background: var(--color-night); }
.screen--scan .screen__note { color: var(--color-night-muted); }
.finder { position: relative; align-self: center; justify-self: center; width: 72%; aspect-ratio: 1; }
.finder i { position: absolute; width: 28%; aspect-ratio: 1; border: 0 solid var(--color-night-ink); }
.finder i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: var(--radius-card); }
.finder i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: var(--radius-card); }
.finder i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: var(--radius-card); }
.finder i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: var(--radius-card); }
.finder span { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-lg); text-align: center; color: var(--color-night-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); font: 500 var(--text-xs)/1 var(--font-display); text-transform: lowercase; }
.screen--scan .chip { box-shadow: none; background: var(--color-night-2); color: var(--color-night-ink); }
.payee { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); }
.payee b { font: 300 var(--text-3xl)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.apps { display: grid; align-content: start; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.apps li { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: var(--rule-hair) solid var(--color-rule); font: 500 var(--text-md)/1 var(--font-display); }
.apps li span { font: 400 var(--text-xs)/1 var(--font-body); color: var(--color-muted); }
.apps li[aria-current="true"] { color: var(--color-accent); }
.apps li[aria-current="true"] span { color: var(--color-accent); }
.screen__bar { display: flex; justify-content: center; min-height: 44px; align-items: center; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; }
.handoff { display: grid; align-content: center; gap: var(--space-md); }
.handoff b { font: 500 var(--text-2xl)/1.05 var(--font-display); letter-spacing: var(--tracking-display); text-transform: lowercase; }
.handoff p { color: var(--color-ink-2); }
.screens figcaption { max-width: 36ch; text-align: center; font-size: var(--text-sm); color: var(--color-muted); }

/* services: rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.rows li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows h3 { grid-column: 1 / 6; font-size: var(--text-title); }
.rows p { grid-column: 6 / 12; color: var(--color-ink-2); }

/* writing: three covers */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.post-card { position: relative; display: grid; gap: var(--space-md); align-content: start; }
.post-card .cover { aspect-ratio: 16 / 9; border-radius: var(--radius-card); margin: 0; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.post-card h3 a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 6px; border-radius: var(--radius-card); }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.post-card time { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-muted); text-transform: lowercase; }
.head__more { grid-column: 11 / 13; justify-self: end; }

/* contact: the record band */
.record { margin-top: var(--section-gap); padding-block: var(--space-4xl); background: var(--color-accent); color: var(--color-accent-ink); }
.record__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.record h2 { grid-column: 1 / 8; max-width: 12ch; font-size: var(--text-display); }
.record__side { grid-column: 9 / 13; display: grid; gap: var(--space-lg); }
.record__side p { font-size: var(--text-lead); line-height: 1.45; }
.record .btn--primary { background: var(--color-accent-ink); color: var(--color-accent-deep); }
.record .btn--primary:hover { background: var(--color-paper-2); }
.record :focus-visible { outline-color: var(--color-accent-ink); }
.creds { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.creds li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--color-accent-ink) 55%, transparent); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; }

/* footer: a mast */
.foot { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-night); color: var(--color-night-ink); }
.foot__mark { display: block; font: 500 clamp(4rem, 15vw, 13rem)/0.9 var(--font-display); letter-spacing: -0.05em; text-transform: lowercase; text-decoration: none; overflow-wrap: break-word; min-width: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin: var(--space-2xl) 0 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-night-2); font: 500 var(--text-sm)/1 var(--font-display); }
.foot__links a { text-decoration: none; white-space: nowrap; }
.foot__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent-soft); }
.foot__legal { margin-top: var(--space-xl); font-size: var(--text-xs); color: var(--color-night-muted); }
.foot :focus-visible { outline-color: var(--color-accent-soft); }

/* blog index */
.banner { padding-block: var(--space-3xl) var(--space-2xl); }
.banner__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.banner h1 { grid-column: 1 / 8; }
.banner .lead { grid-column: 9 / 13; color: var(--color-ink-2); }
.feed { margin: 0 0 var(--section-gap); padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.feed__row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.feed__row time { grid-column: 1 / 3; font: 300 var(--text-lg)/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-muted); text-transform: lowercase; }
.feed__row h2 { grid-column: 3 / 9; max-width: none; font-size: var(--text-title); line-height: 1.15; }
.feed__row h2 a { text-decoration: none; }
.feed__row h2 a::after { content: ""; position: absolute; inset: 0; }
.feed__row h2 a:focus-visible { outline: none; }
.feed__row:has(a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.feed__row:hover h2 { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.feed__brief { grid-column: 9 / 12; font-size: var(--text-sm); color: var(--color-ink-2); }
.feed__min { grid-column: 12 / 13; justify-self: end; font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-muted); white-space: nowrap; }
.feed__row--lead { align-items: center; padding-block: var(--space-xl); }
.feed__row--lead .cover { grid-column: 1 / 8; grid-row: 1 / 5; aspect-ratio: 16 / 9; margin: 0; border-radius: var(--radius-card); }
.feed__row--lead time { grid-column: 9 / 13; grid-row: 1; }
.feed__row--lead h2 { grid-column: 9 / 13; grid-row: 2; font-size: var(--text-section); line-height: 1; }
.feed__row--lead .feed__brief { grid-column: 9 / 13; grid-row: 3; font-size: var(--text-md); }
.feed__row--lead .feed__min { grid-column: 9 / 13; grid-row: 4; justify-self: start; }

/* one post */
.article { padding-block: var(--space-3xl) var(--section-gap); }
.article__head { display: grid; gap: var(--space-lg); max-width: 900px; margin-bottom: var(--space-2xl); }
.article__head h1 { max-width: 22ch; font-size: var(--text-display-s); line-height: 1.02; }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); text-transform: lowercase; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); color: var(--color-ink-2); }
.article__cover { max-width: 1100px; aspect-ratio: 16 / 9; margin: 0 0 var(--space-2xl); border-radius: var(--radius-card); }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.65; }
.prose > * + * { margin-top: var(--space-md); }
.prose h1, .prose h2, .prose h3, .prose h4 { max-width: none; margin-top: var(--space-2xl); font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-display); text-transform: none; line-height: 1.15; }
.prose h1, .prose h2 { font-size: var(--text-2xl); }
.prose h3, .prose h4 { font-size: var(--text-xl); }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { padding-left: var(--space-lg); }
.prose li + li { margin-top: var(--space-2xs); }
.prose a { text-decoration-color: var(--color-accent); }
.prose img { height: auto; border-radius: var(--radius-card); }
.prose blockquote { margin-inline: 0; padding-left: var(--space-lg); border-left: 2px solid var(--color-rule-2); color: var(--color-ink-2); }
.prose code { font-family: var(--font-outlier); font-size: 0.9em; padding: 0 var(--space-2xs); border-radius: var(--space-2xs); background: var(--color-paper-2); }
.prose pre { max-width: 100%; overflow-x: auto; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-night); color: var(--color-night-ink); box-shadow: inset 0 0 0 1px var(--color-rule); font-size: var(--text-sm); line-height: 1.6; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose pre:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; }
.hljs-keyword, .hljs-built_in, .hljs-selector-tag { color: var(--code-keyword); }
.hljs-string, .hljs-attr, .hljs-number, .hljs-literal { color: var(--code-string); }
.hljs-comment { color: var(--code-comment); font-style: italic; }
.hljs-title, .hljs-function, .hljs-name, .hljs-section { color: var(--color-night-ink); font-weight: 500; }
.quiz { margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--color-rule); }
.quiz > * + * { margin-top: var(--space-sm); }
.prose .quiz h3 { margin-top: 0; font-size: var(--text-lg); }
.prose .quiz ol { padding-left: var(--space-xl); }
.quiz ol li::marker { font-family: var(--font-display); font-weight: 500; color: var(--color-accent-deep); }
.quiz summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; cursor: pointer; list-style: none; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary:hover { box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.quiz summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.quiz details[open] summary { background: var(--color-paper-2); }
.quiz details > p { margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border-left: 2px solid var(--color-accent); background: var(--color-paper-2); border-radius: 0 var(--space-2xs) var(--space-2xs) 0; }
.prose .jump { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: 0; list-style: none; }
.prose .jump li + li { margin-top: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-2); font: 500 var(--text-sm)/1 var(--font-display); text-decoration: none; }
.jump a:hover { background: var(--color-accent-soft); }

/* cheat sheet: a reference table, term on the left */
.sheet { display: grid; gap: var(--space-lg); }
.sheet__group { padding: var(--space-md) var(--space-lg) var(--space-lg); background: var(--color-paper-2); border-top: 3px solid var(--color-accent); border-radius: 0 0 var(--space-2xs) var(--space-2xs); }
.prose .sheet__group h3 { margin: 0 0 var(--space-sm); font: 500 var(--text-xs)/1.2 var(--font-outlier); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-deep); }
[data-mode="dark"] .prose .sheet__group h3 { color: var(--color-focus); }
@media (prefers-color-scheme: dark) { :root:not([data-mode]) .prose .sheet__group h3 { color: var(--color-focus); } }
.sheet dl { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; margin: 0; font-size: var(--text-sm); line-height: 1.55; }
.sheet dt, .sheet dd { margin: 0; padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.sheet dt:first-of-type, .sheet dt:first-of-type + dd { border-top: 0; }
.sheet dt { padding-right: var(--space-md); font-family: var(--font-display); font-weight: 500; }
.sheet code { background: var(--color-paper-3); }

/* anti-patterns: numbered trap and fix pairs */
.prose .traps { padding: 0; list-style: none; counter-reset: trap; }
.prose .traps > li { position: relative; max-width: none; margin-top: var(--space-xl); padding-left: 3.25rem; counter-increment: trap; }
.traps > li::before { content: counter(trap, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 300 var(--text-2xl)/1 var(--font-display); color: var(--color-accent); }
.prose .traps h3 { margin: 0 0 var(--space-xs); font-size: var(--text-lg); }
.traps p { position: relative; margin: 0; padding: var(--space-xs) 0 var(--space-xs) var(--space-2xl); font-size: var(--text-sm); line-height: 1.55; }
.traps p + p { border-top: 1px dashed var(--color-rule-2); }
.traps p > span { position: absolute; left: 0; top: calc(var(--space-xs) + 1px); padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-2xs); font: 500 var(--text-xs)/1.4 var(--font-display); text-transform: lowercase; color: var(--color-paper); }
.traps__bad span { background: var(--color-error); }
.traps__fix span { background: var(--color-success); }
.traps__bad { color: var(--color-ink-2); }
.prose .rule { margin-top: var(--space-2xl); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-accent-soft); }
@media (max-width: 40rem) {
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dd { padding-top: 0; border-top: 0; }
  .prose .traps > li { padding-left: 2.75rem; }
  .traps > li::before { font-size: var(--text-xl); }
  .quiz { padding: var(--space-md); }
}
.article__back { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); max-width: 70ch; }

/* 404 */
.lost { min-height: 60svh; display: grid; align-content: center; gap: var(--space-lg); justify-items: start; }

@media (max-width: 60rem) {
  .mast__bar { grid-template-columns: auto minmax(0, 1fr); }
  .mast__links--start { display: none; }
  .mast__links--end { gap: var(--space-md); }
  .hero { min-height: 0; padding-block: var(--space-xl); gap: var(--space-xl); }
  .hero h1, .hero__side, .head h2, .head > p, .head__more, .record h2, .record__side, .banner h1, .banner .lead { grid-column: 1 / -1; justify-self: start; }
  .hero__base { order: -1; padding-top: 0; border-top: 0; }
  .hero__field { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
  .map__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .map__stages::before { display: none; }
  .index__row, .index__row--lead { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .index__row > *, .index__row--lead > * { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; }
  .index__row--lead .index__art { order: -1; margin-bottom: var(--space-md); }
  .case { padding-block: var(--section-gap) 0; }
  .case__well { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl) var(--space-lg); }
  .case__text, .case__stage { grid-column: 1 / -1; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .rows h3, .rows p { grid-column: 1 / -1; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed__row, .feed__row--lead { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .feed__row > *, .feed__row--lead > * { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; }
  .feed__row--lead .cover { width: 100%; margin-bottom: var(--space-md); }
}
@media (max-width: 40rem) {
  .wordmark { font-size: var(--text-xl); }
  .mast__links--end .mast__mail { display: none; }
  .map__node { min-height: 52px; padding: 0 var(--space-md); font-size: var(--text-lg); }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .seg button { padding: 0 var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .seg button, .link { transition: none; }
  .btn:active, .seg button:active { transform: none; }
}

/* light and dark */
body { font-weight: var(--body-weight); }
.mode { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.mode:hover { background: var(--color-paper-2); }
.mode:active { transform: translateY(1px); }
.mode:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* the photo plate's dark pair: the violet duotone lifted out of the night instead of multiplied into lavender */
[data-mode="dark"] [data-slot]:has(> img) { background: var(--color-accent-deep); }
[data-mode="dark"] [data-slot] > img { mix-blend-mode: luminosity; opacity: 0.9; }
[data-mode="dark"] [data-slot]:has(> img)::before { background: var(--color-night); mix-blend-mode: multiply; opacity: 0.35; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) [data-slot]:has(> img) { background: var(--color-accent-deep); }
  :root:not([data-mode]) [data-slot] > img { mix-blend-mode: luminosity; opacity: 0.9; }
  :root:not([data-mode]) [data-slot]:has(> img)::before { background: var(--color-night); mix-blend-mode: multiply; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) { .mode { transition: none; } .mode:active { transform: none; } }
/* the owner's post titles keep their own casing: product names like GitHub Actions and Java must survive */
.post-card h3, .feed__row h2, .article__head h1 { text-transform: none; }
/* real app screenshots sit in the screens untinted: they are the product, not photographs */
.screen { aspect-ratio: 923 / 2000; }
.screens .screen[data-slot]:has(> img) { padding: 0; background: var(--color-paper); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.screens .screen[data-slot] > img { filter: none; mix-blend-mode: normal; opacity: 1; }
/* a certification badge is a mark, not a photograph: shown whole and in its own colours, on a plate matched to its dark backdrop */
[data-slot].cover--whole:has(> img), :root [data-slot].cover--whole:has(> img) { background: var(--color-night); }
[data-slot].cover--whole > img, :root [data-slot].cover--whole > img { object-fit: contain; filter: none; mix-blend-mode: normal; opacity: 1; }
[data-slot].cover--whole:has(> img)::before { display: none; }
.screens .screen[data-slot]:has(> img)::before { content: none; }
@media (max-width: 40rem) { .seg button { padding: 0 var(--space-sm); } }

/* upi hub page: the app's own banner, then one card per platform */
.banner h1:has(.banner__icon) { display: flex; align-items: center; gap: var(--space-md); }
.banner__icon { flex: none; }
.banner .lead { display: grid; gap: var(--space-lg); }
.get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.get__card { display: grid; gap: var(--space-lg); align-content: start; justify-items: start; padding: var(--space-2xl) var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.get__card h3 { font-size: var(--text-section); line-height: 1; }
.get__card > p { max-width: 44ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.get__card > p.get__note { font-size: var(--text-md); color: var(--color-muted); }
/* the iphone card is an outline: there is no file behind it yet */
.get__card--off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-rule-2); }
.hash { font-family: var(--font-outlier); font-size: var(--text-xs); overflow-wrap: anywhere; }
.rows p .link { margin-left: var(--space-2xs); }
@media (max-width: 60rem) {
  .get { grid-template-columns: minmax(0, 1fr); }
  .get__card { padding: var(--space-xl) var(--space-lg); }
}

/* work rows carry their own links in place of a year */
#work .index__name { grid-column: 1 / 4; }
#work .index__what { grid-column: 4 / 9; }
#work .index__stack { grid-column: 9 / 11; }
.index__links { grid-column: 11 / 13; justify-self: end; display: flex; gap: var(--space-md); white-space: nowrap; }

/* training: four courses across, parted by hairlines */
.courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.course { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-md); min-height: 280px; padding: var(--space-xl) var(--space-lg) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.course:first-child { padding-left: 0; border-left: 0; }
.course h3 { font-size: var(--text-section); line-height: 1; }
.course h3 a { text-decoration: none; }
.course h3 a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.course > p:not(.course__links) { color: var(--color-ink-2); }
.course__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
@media (max-width: 60rem) {
  #work .index__name, #work .index__what, #work .index__stack, .index__links { grid-column: 1 / -1; justify-self: start; }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course { min-height: 0; padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-left: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
}
@media (max-width: 40rem) { .courses { grid-template-columns: minmax(0, 1fr); } }

/* the TechSwitch mark beside the wordmark: the home link on every page */
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); }
.wordmark__mark { width: 32px; height: 32px; border-radius: 6px; }


/* work: a card slider. Each card is one link to its app; the next card peeks in at the edge.
   Nothing moves on its own: the buttons, the names under it, a swipe or the arrow keys move it. */
.head .slider__nav { grid-column: 8 / 13; display: flex; gap: var(--space-xs); }
html:not(.js) .slider__nav, html:not(.js) .pager { display: none; }
.slider { margin-inline: calc(-1 * var(--gutter)); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: var(--gap-columns); margin: 0; padding: var(--space-xs) var(--gutter) var(--space-lg); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.slide { scroll-snap-align: start; min-width: 0; }
.card { position: relative; display: grid; grid-template-rows: auto auto; height: 100%; border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); overflow: hidden; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--color-rule-2), var(--shadow-card); }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.card__art { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--color-night); }
.card__art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__art--center img { object-position: center; }
.card__art--type { display: grid; align-content: end; gap: var(--space-xs); padding: var(--space-2xl); background: var(--color-accent); color: var(--color-accent-ink); }
.card__art--type b { font: 500 clamp(3.5rem, 7vw, 7rem)/0.9 var(--font-display); letter-spacing: var(--tracking-display); }
.card__art--type span { font: 500 var(--text-xl)/1.3 var(--font-display); text-transform: lowercase; max-width: 30ch; }
.card__art--samples { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-3xs); }
.card__shot { margin: 0; min-height: 0; overflow: hidden; }
.samples { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; min-height: 0; }
.samples li { min-height: 0; }
.sample { position: relative; z-index: 2; display: block; height: 100%; overflow: hidden; color: var(--color-night-ink); text-decoration: none; }
.sample span { position: absolute; left: var(--space-sm); bottom: var(--space-sm); display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-night); font: 500 var(--text-sm)/1 var(--font-display); transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.sample:hover span, .sample:focus-visible span { background: var(--color-accent); color: var(--color-accent-ink); }
.sample:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; }
.card__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: baseline; padding: var(--space-lg) var(--space-xl) var(--space-xl); }
.card__title { font-size: var(--text-section); line-height: 1; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-card); }
.card__link:focus-visible { outline: none; }
.card:hover .card__link { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.1em; }
.card__what { color: var(--color-ink-2); }
.card__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: var(--space-xs) var(--space-md); font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); text-transform: lowercase; text-align: right; }
.card__source { position: relative; z-index: 2; }
.pager { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pager button { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); box-shadow: inset 0 0 0 1.5px var(--color-rule); font: 500 var(--text-sm)/1 var(--font-display); text-transform: lowercase; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.pager button:hover { background: var(--color-paper-2); color: var(--color-ink); }
.pager button[aria-current="true"] { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.pager button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pager button:active { transform: translateY(1px); }

/* writing: the featured post large beside two recent ones */
.writing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); overflow: hidden; transition: transform var(--dur-short) var(--ease-out); }
.feature:hover { transform: translateY(-3px); }
.feature:has(.feature__link:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.feature__cover { margin: 0; aspect-ratio: auto; min-height: 100%; }
.feature__text { display: grid; align-content: center; gap: var(--space-md); padding: var(--space-xl); }
.feature__text time, .feature__min { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-muted); text-transform: lowercase; }
.feature__text h3 { font-size: var(--text-title); line-height: 1.15; text-transform: none; }
.feature__text p:not([class]) { color: var(--color-ink-2); }
.feature__link { text-decoration: none; }
.feature__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.feature__link:focus-visible { outline: none; }
.feature:hover .feature__link { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.writing__more { display: grid; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.writing__more .post-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--space-lg); align-items: center; }
.writing__more .post-card .cover { grid-row: 1 / 3; }

@media (max-width: 60rem) {
  .head .slider__nav { grid-column: 1 / -1; }
  .slides { grid-auto-columns: 92%; }
  .card__art { aspect-ratio: 16 / 10; }
  .card__art--samples { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; aspect-ratio: auto; }
  .card__shot { aspect-ratio: 16 / 10; }
  .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .sample { aspect-ratio: 16 / 10; }
  .card__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-lg); }
  .card__meta { justify-content: flex-start; text-align: left; }
  .writing, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__cover { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 40rem) { .sample span { left: var(--space-2xs); bottom: var(--space-2xs); padding: 0 var(--space-xs); font-size: var(--text-xs); } }
@media (prefers-reduced-motion: reduce) { .card, .feature, .sample span, .pager button { transition: none; } .card:hover, .feature:hover, .pager button:active { transform: none; } }
