@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Tokens. Monochrome; the one extra color is --bounds, used only by the
   layout-bounds developer mode (Android's "Show layout bounds" magenta).
   Depth comes from light, not color: panels sit a step above the page
   (--surface), lit from above (--hi edge, --spot) with layered shadows. */
:root {
  --bg: #efefed;
  --surface: #f8f8f7;
  --ink: #111111;
  --sub: #5a5a5a;
  --line: #d6d6d3;
  --edge: rgba(17, 17, 17, 0.12);
  --tint: #e6e6e3;
  --dot: #cdcdca;
  --frame: #d6d6d3;
  --bounds: #c2185b;
  --hi: rgba(255, 255, 255, 0.85);
  --spot: rgba(255, 255, 255, 0.85);
  --vignette: rgba(17, 17, 17, 0.07);
  --grain: 0.05;
  --bar: rgba(239, 239, 237, 0.72);
  --elev-1: 0 1px 1px rgba(17, 17, 17, 0.04), 0 8px 18px -8px rgba(17, 17, 17, 0.12);
  --elev-2: 0 1px 2px rgba(17, 17, 17, 0.05), 0 14px 30px -14px rgba(17, 17, 17, 0.18), 0 40px 80px -36px rgba(17, 17, 17, 0.22);

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-micro: 220ms;
  --t-macro: 600ms;
  --bar-h: 64px;
  --sticky: var(--bar-h); /* space the sticky bar takes over content */
  --measure: 1160px;
  --target: 48px;
  --side: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090909;
    --surface: #131313;
    --ink: #ededec;
    --sub: #a3a3a0;
    --line: #262626;
    --edge: rgba(255, 255, 255, 0.09);
    --tint: #1c1c1c;
    --dot: #232322;
    --frame: #232323;
    --bounds: #ff5fa2;
    --hi: rgba(255, 255, 255, 0.07);
    --spot: rgba(255, 255, 255, 0.075);
    --vignette: rgba(0, 0, 0, 0.7);
    --grain: 0.07;
    --bar: rgba(9, 9, 9, 0.66);
    --elev-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 24px -8px rgba(0, 0, 0, 0.6);
    --elev-2: 0 2px 4px rgba(0, 0, 0, 0.45), 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 48px 96px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* One surface for the whole page, header included: the 8dp dot grid scrolls
   with the document; light from above, a vignette and film grain stay fixed. */
html { background: var(--bg) radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 16px 16px; }
body { position: relative; isolation: isolate; margin: 0; color: var(--ink); font: 500 1rem/1.55 var(--font-display); -webkit-font-smoothing: antialiased; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: radial-gradient(ellipse 70% 55% at 72% -8%, var(--spot), transparent 70%), radial-gradient(ellipse 130% 95% at 50% 35%, transparent 55%, var(--vignette) 100%); }
body::after { background: url("grain.svg") 0 0 / 200px 200px; opacity: var(--grain); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--bg); }
.skip:focus { top: 16px; }

.lbl { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--sub); }
.strong { font-weight: 700; }
.small { font-size: 0.8125rem; }

.frame { max-width: var(--measure); margin-inline: auto; padding-inline: var(--side); }

/* Header and footer */
/* The one glass surface: content scrolls under a blurred bar. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bar); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--edge); view-transition-name: site-header; }
.header-row { max-width: var(--measure); margin-inline: auto; padding-inline: var(--side); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.site-name { display: inline-flex; align-items: center; min-height: var(--bar-h); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--target); }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 20px 40px; font: 400 0.8125rem/1.4 var(--font-mono); color: var(--sub); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

[hidden] { display: none !important; }

/* Links: the underline fades in and settles onto the text. */
.site-nav a, .latest-name a, .rel-name a, .back a, .toc a, .empty a, .activity a {
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: 8px;
  transition: text-decoration-color var(--t-micro) ease, text-underline-offset var(--t-macro) var(--ease-out);
}
.latest-name a, .rel-name a { text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .latest-name a:hover, .rel-name a:hover, .back a:hover, .toc a:hover, .empty a:hover, .activity a:hover { text-decoration-color: currentColor; text-underline-offset: 4px; }
}

/* Buttons: ink outline, inverted on hover (pointer devices only). */
/* Buttons: on hover a fill sweeps up from the bottom edge (pointer devices only). */
.btn, .stats a, .mail {
  position: relative; isolation: isolate; overflow: hidden;
  transition: color var(--t-micro) var(--ease-out), transform 160ms var(--ease-out);
}
.btn::before, .stats a::before, .mail::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 420ms var(--ease-out);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target); padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink::before { background: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .stats a:hover, .mail:hover { color: var(--bg); }
  .btn-ink:hover { color: var(--ink); }
  .btn:hover::before, .stats a:hover::before, .mail:hover::before { transform: scaleY(1); }
}
.btn:active { transform: scale(0.97); }

/* Hero surface: an 8dp dot grid (Android/Material baseline) and the outlines
   of three common phone sizes (360, 390, 430 wide). */
.hero { position: relative; overflow: hidden; padding-block: 64px 88px; }
.surface { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.frames { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Ink dots lit around the cursor (fine pointers only, set by site.js). */
.surface-glow { position: absolute; inset: 0; background-image: radial-gradient(var(--ink) 1.2px, transparent 1.7px); background-size: 16px 16px; background-position: var(--gx, 0) var(--gy, 0); opacity: 0; transition: opacity 300ms ease; -webkit-mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 70%); mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 70%); }
.glow-on .surface-glow { opacity: 0.45; }
.frames rect { fill: none; stroke: var(--frame); stroke-width: 1.5; }
.hero-frame { position: relative; z-index: 1; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(470px, 560px); gap: 40px; align-items: center; }
.display { margin: 0; max-width: 12ch; font-size: clamp(3rem, 6.4vw, 5.125rem); line-height: 0.94; font-weight: 800; letter-spacing: -0.05em; text-wrap: balance; }
.display .w { display: inline-block; }
.hero-meta { margin-top: 24px; font-size: 0.875rem; color: var(--sub); }

/* GitHub heatmap: one column per week, newest on the right. When the column is
   narrower than a year, the oldest weeks are the ones cut off. */
.activity { --cell: 7px; --gap: 3px; margin: 20px 0 0; }
.activity-grid { display: flex; justify-content: flex-end; gap: var(--gap); overflow: hidden; width: fit-content; max-width: 100%; }
.aw { display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); flex: none; }
.aw i { width: var(--cell); height: var(--cell); border-radius: 2px; background: var(--ink); }
.aw .l0 { background: var(--line); }
.aw .l1 { opacity: 0.28; }
.aw .l2 { opacity: 0.5; }
.aw .l3 { opacity: 0.74; }
.aw .pad { visibility: hidden; }
.activity figcaption { margin-top: 10px; font-size: 0.8125rem; }
.bounds-toggle { margin-top: 20px; min-height: 40px; padding: 0 12px; border: 1px solid var(--edge); background: var(--surface); box-shadow: var(--elev-1); color: var(--ink); cursor: pointer; }
.bounds-toggle[aria-pressed="true"] { background: var(--bounds); border-color: var(--bounds); color: #ffffff; }

/* Git graph: branches merge into the release tag. */
.hero-visual { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: center; }
.git-wrap { position: relative; }
.git { display: block; width: 100%; height: auto; overflow: visible; }
.commit.lit { fill: var(--ink); }
.tag-chip { position: absolute; left: 0; top: 0; z-index: 4; padding: 4px 10px; border-radius: 4px; background: var(--ink); color: var(--bg); font-size: 0.9375rem; font-weight: 600; line-height: 20px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.tag-chip.dragging { cursor: grabbing; }
/* Fixed height so showing the hint or the button never moves the stage. */
.stage-foot { min-height: var(--target); display: grid; place-items: center; }
.drag-hint { margin: 0; text-align: center; font-size: 0.6875rem; }
.lane { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.commit { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; }
.traveler { fill: var(--ink); opacity: 0; }
.tag-node, .tag-box { fill: var(--ink); }
.tag-text { fill: var(--bg); font: 600 15px var(--font-mono); }

/* Panels: a lifted surface with a lit top edge and layered shadows. */
.panel { border: 1px solid var(--edge); background: var(--surface); box-shadow: inset 0 1px 0 var(--hi), var(--elev-2); }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-pad { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.panel-foot { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.panel-foot .btn { flex: 1 1 auto; border: 0; }
.panel-foot .btn + .btn { border-left: 1px solid var(--line); }

.latest { margin-top: 56px; }
.latest-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.history { padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line); }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { display: flex; flex-direction: column; gap: 2px; padding-block: 14px; }
.history-list li + li { border-top: 1px solid var(--line); }
.history-list li:first-child { padding-top: 0; }
.history-list time { font-size: 0.8125rem; }
.hv { font-size: 1.125rem; font-weight: 600; }
.history-list .history-more { font-size: 0.8125rem; }
.hv-first { font-weight: 700; }

.stage { position: relative; z-index: 2; padding: 28px 20px 22px; border: 1px solid var(--edge); background: var(--surface); box-shadow: inset 0 1px 0 var(--hi), var(--elev-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ring-wrap { position: relative; width: 168px; height: 168px; }
.ring-svg { position: absolute; inset: 0; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 4; }
.ring { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 490.1; stroke-dashoffset: 0; }
.app-icon { position: absolute; inset: 22px; display: grid; place-items: center; border-radius: 34px; background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); font-weight: 800; font-size: 2.75rem; letter-spacing: -0.04em; will-change: transform; }
.latest-head { display: flex; align-items: center; gap: 16px; }
.app-icon-slot { position: static; flex: none; width: 56px; height: 56px; border-radius: 14px; font-size: 1.25rem; will-change: auto; box-shadow: none; view-transition-name: none; }
.slot-covered .app-icon-slot { visibility: hidden; }
.install-status { position: relative; width: 100%; height: 20px; }
.s { position: absolute; left: 0; right: 0; text-align: center; }
.s1, .s2 { opacity: 0; }
.ver { margin: 0; font-size: 3.25rem; line-height: 0.9; font-weight: 600; letter-spacing: -0.06em; }
.latest-info { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.latest-name { font-size: 2.25rem; line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.latest-name a, .rel-name a { text-decoration: none; }
.latest-name a:hover, .rel-name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { padding: 4px 8px; border: 1px solid var(--line); color: var(--sub); }
.status { padding: 4px 8px; border: 1px solid var(--sub); color: var(--sub); }
.status-live { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.status-maintained { border-color: var(--ink); color: var(--ink); }

/* Platform counts */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 28px; border: 1px solid var(--edge); background: var(--surface); box-shadow: inset 0 1px 0 var(--hi), var(--elev-1); }
.stats a { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; color: var(--ink); text-decoration: none; }
.stats a + a { border-left: 1px solid var(--line); }
.stats a[aria-current="page"] { color: var(--bg); }
.stats a[aria-current="page"]::before { transform: scaleY(1); }
.stat-num { font-size: 2.5rem; line-height: 1; font-weight: 600; }

/* Sections */
.section { border-top: 1px solid var(--line); padding-block: 64px 88px; scroll-margin-top: calc(var(--sticky) - 24px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; }
.section-head p { max-width: 44ch; }
/* Tabs: the current tab is filled; with JS the fill is one indicator that slides. */
.tabs { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; border: 1px solid var(--edge); background: var(--surface); box-shadow: inset 0 1px 0 var(--hi), var(--elev-1); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; transition: color var(--t-micro) var(--ease-out), background-color var(--t-micro) ease; }
.tabs a + a { border-left: 1px solid var(--line); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.tab-ind { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; width: 0; background: var(--ink); pointer-events: none; }
.has-ind a[aria-current="page"] { background: transparent; }
@media (hover: hover) and (pointer: fine) { .tabs a:not([aria-current]):hover { background: var(--tint); } }

/* Release list */
.rel-list { overflow: hidden; }
.rel { display: grid; grid-template-columns: 140px minmax(0, 1fr) 220px; scroll-margin-top: calc(var(--sticky) + 24px); background: var(--surface); }
.rel + .rel { border-top: 1px solid var(--line); }
.rel:target { background: var(--tint); }
.rel-when { padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; }
.rel-main { padding: 24px 16px 24px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rel-name { display: flex; align-items: center; gap: 12px; font-size: 1.625rem; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.rel-pinned .rel-name { font-size: 2.25rem; }
.rel-side { border-left: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.rel-side .status { align-self: flex-start; }
.icon { flex: none; border-radius: 8px; }
.empty { color: var(--sub); }

/* Release pipeline: the path each release took. Final state without JS. */
.pipe { position: relative; max-width: 420px; margin-top: 8px; }
.pipe-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--sub); }
.pipe-step:first-child { align-items: flex-start; }
.pipe-step:last-child { align-items: flex-end; }
.pipe-dot { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); }
.pipe-track { position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: var(--line); }
.pipe-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; }
.pipe-packet { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); opacity: 0; }
/* A stage still ahead (beta): hollow dot, quiet label, track filled up to it. */
.pipe-pending { color: var(--sub); }
.pipe-pending .pipe-dot { border-style: dashed; border-color: var(--sub); background: transparent; }
.pipe:has(.pipe-pending) .pipe-fill { transform: scaleX(0.5); }
.status-beta { border-style: dashed; border-color: var(--ink); color: var(--ink); }
.js .pipe-dot { background: var(--bg); }
.js .pipe-step.done .pipe-dot { background: var(--ink); }
.js .pipe-step.done { color: var(--ink); }

/* Contributions */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 16px; padding: 18px 16px; text-decoration: none; transition: background-color 360ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rows a:hover { background: var(--tint); } }
.rows time { font-size: 0.8125rem; }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-weight: 700; font-size: 1.125rem; }

/* About and email */
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.about h2 { font-size: 2.5rem; line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 20px; }
.prose { max-width: 62ch; color: var(--sub); font-size: 1.1875rem; }
.prose p + p { margin-top: 12px; }
.prose h3, .prose h4 { margin: 20px 0 8px; color: var(--ink); font-size: 1.0625rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose code { font-family: var(--font-mono); font-size: 0.875rem; }
.prose img { max-width: 100%; height: auto; }
.contact h2 { font-size: 1.625rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.mail { display: flex; align-items: center; min-height: 76px; padding: 0 24px; border-top: 1px solid var(--line); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; }

/* Case study */
.work-head { padding-block: 32px 48px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; }
.work-title { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.app-icon-lg { position: static; flex: none; width: 112px; height: 112px; border-radius: 28px; font-size: 2.5rem; view-transition-name: work-icon; }
.display-sm { font-size: clamp(2.5rem, 6vw, 4.75rem); max-width: none; view-transition-name: work-title; }
.lede { margin: 20px 0 16px; max-width: 60ch; font-size: 1.25rem; color: var(--sub); }
.case { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; padding-block: 48px 88px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--side)) 1px no-repeat; }
.case aside { position: sticky; top: calc(var(--sticky) + 24px); align-self: start; }
.case article { min-width: 0; max-width: 66ch; }
.sheet { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.sheet div { display: contents; }
.sheet dt, .sheet dd { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sheet dt { color: var(--sub); line-height: 1.9; }
.sheet dd { margin: 0; overflow-wrap: anywhere; }
.sheet div:last-child > * { border-bottom: 0; }
.toc { list-style: none; margin: 20px 0 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 44px; padding-left: 16px; }
.chapter { scroll-margin-top: calc(var(--sticky) + 24px); }
.chapter + .chapter { margin-top: 48px; }
.chapter h2 { margin-bottom: 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.75rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.log li + li { border-top: 1px solid var(--line); }
.log-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 0.875rem; }

.message-page { padding-block: 96px; }
.message-page h1 { margin-bottom: 16px; font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; }

/* Layout bounds: Android's developer option, on demand or while hovering the release panel. */
.bounds-on [data-bound] { position: relative; outline: 1px solid var(--bounds); outline-offset: -1px; }
.bounds-on [data-dim]::after { content: attr(data-dim); position: absolute; top: 0; right: 0; z-index: 3; padding: 1px 5px; background: var(--bounds); color: #ffffff; font: 600 10px/1.5 var(--font-mono); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .latest:hover [data-bound] { outline: 1px dashed var(--bounds); outline-offset: -1px; }
}

/* Until the motion script runs, hide what it is about to animate. If it never
   runs, the reveal animation shows everything after a short wait. */
@media (prefers-reduced-motion: no-preference) {
  .js .display[data-split], .js .git, .js .stage .ring-wrap, .js .install-status, .js .stage .ver, .js .activity-grid { visibility: hidden; animation: reveal 0s 2.5s forwards; }
  .display .line-mask { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
  .js.vt-in .work .display[data-split] { visibility: visible; animation: none; }
}
@keyframes reveal { to { visibility: visible; } }

@media (max-width: 900px) {
  .hero { padding-block: 40px 64px; }
  .hero-top { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { grid-template-columns: minmax(0, 1fr); }
  .git, .tag-chip { display: none; }
  .latest-grid { grid-template-columns: minmax(0, 1fr); }
  .history { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats a:nth-child(odd) { border-left: 0; }
  .stats a:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rel { grid-template-columns: minmax(0, 1fr); }
  .rel-when { padding-bottom: 0; flex-direction: row; gap: 12px; }
  .rel-main { padding: 12px 16px 16px; }
  .rel-side { border-left: 0; border-top: 1px solid var(--line); }
  .rows a { grid-template-columns: minmax(0, 1fr); }
  .duo, .case { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case aside { position: static; }
  .mail { font-size: 1.375rem; }
  .work-title { gap: 16px; }
  .app-icon-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .stats a, .rows a, .mail, .tabs a, .btn::before, .stats a::before, .mail::before,
  .site-nav a, .latest-name a, .rel-name a, .back a, .toc a, .empty a { transition: none; }
}

/* Drop target while the tag is dragged over the app. */
.app-icon.drop-target { outline: 2px dashed var(--bounds); outline-offset: 6px; }

/* Page-to-page: the old page lifts away, the new one settles in; the header
   stays put and a case study's icon and title travel from the release list. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 260ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 560ms var(--ease-out) 60ms both; }
::view-transition-group(work-title), ::view-transition-group(work-icon) { animation-duration: 620ms; animation-timing-function: var(--ease-io); }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* On phones the bar wraps to two rows; let it scroll away instead of covering content. */
@media (max-width: 600px) {
  :root { --sticky: 0px; }
  .site-header { position: relative; }
}
