/* Aljamal — a penetration tester's notebook.
   Paper and a red pen. One narrow column, a hand that writes the titles on its own and leaves notes in the
   margin, a smiley drawn in the same pen, and red marks the pen leaves on headings and the email address. */

/* ---------- fonts (self-hosted: no request ever leaves this site) ----------
   Instrument Sans and JetBrains Mono, both SIL Open Font License, from Google Fonts. Both are variable fonts,
   so one file per alphabet covers every weight. latin-ext only loads if a page uses one of its letters. */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url(../fonts/instrument-sans-latin.2ee17598a9.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.c4fcfea41f.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.83c005d49d.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.db5ff4db83.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --bg: #fcfcfb;
  --ink: #141413;
  --ink-2: #393937;
  --muted: #4c4c48;
  --faint: #62625d;
  --line: #ebebe8;
  --line-strong: #dadad5;
  --surface: #f3f3f1;
  --card: #ffffff;
  --pen: #ff4a4f;          /* the red pen: handwriting, marks, the smiley */
  --pen-deep: #d92f35;
  --pen-text: #b81c24;     /* the same red, dark enough for small text (6.4:1) */
  --ok: #1f7a3d;
  --action: #141413;
  --action-ink: #fcfcfb;
  --dot: rgb(0 0 0 / .07);
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 30px -14px rgb(0 0 0 / .16);

  --code-bg: #f9f9f7;
  --code-head: #f1f1ee;
  --code-inline: #24506a;      /* inline code: a calm slate blue, so the red pen stays the only accent */
  --code-inline-bg: #eef3f6;
  --code-inline-line: #dce6ec;
  --tok-comment: #51514c;
  --tok-keyword: #cc2129;
  --tok-selector: #b4306a;
  --tok-prop: #0b6e8c;
  --tok-value: #2b6cb0;
  --tok-string: #2a7a3b;
  --tok-number: #b35400;
  --tok-func: #2b6cb0;
  --tok-punct: #6a6a66;
  --tok-tag: #cc2129;
  --tok-attr: #b35400;

  --font-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --col: 580px;
  --pad: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* springs, sampled from a mass-spring */
  --spring: linear(0, 0.048, 0.126, 0.224, 0.329, 0.435, 0.536, 0.628, 0.709, 0.779, 0.851, 0.897, 0.933, 0.961, 0.982, 0.998, 1.008, 1.015, 1.019, 1.021, 1.02, 1.019, 1.017, 1.015, 1.013, 1.011, 1.009, 1.007, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1, 1, 1);
  --spring-soft: linear(0, 0.038, 0.105, 0.188, 0.28, 0.372, 0.461, 0.559, 0.633, 0.697, 0.754, 0.802, 0.843, 0.883, 0.909, 0.931, 0.949, 0.962, 0.973, 0.983, 0.989, 0.993, 0.997, 0.999, 1.001, 1.002, 1.002, 1.002, 1.003, 1.002, 1.002, 1.002, 1.002, 1.002, 1.001, 1.001, 1);
  --c-hi: var(--pen);
  --s-2: 8px;
  --r-btn: 999px;
  color-scheme: light;
}

/* night: warm black paper, the same red pen */
html[data-theme="night"] {
  --bg: #111110;
  --ink: #edece9;
  --ink-2: #cfceca;
  --muted: #a3a29d;
  --faint: #8d8c87;
  --line: #222220;
  --line-strong: #33332f;
  --surface: #181817;
  --card: #1b1b1a;
  --pen: #ff5a5f;
  --pen-deep: #ff7176;
  --pen-text: #ff7a7e;
  --ok: #6fd18f;
  --action: #edece9;
  --action-ink: #111110;
  --dot: rgb(255 255 255 / .06);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .7);
  --code-bg: #161615;
  --code-head: #1c1c1b;
  --code-inline: #a6cde3;
  --code-inline-bg: #16212a;
  --code-inline-line: #233440;
  --tok-comment: #a3a29c;
  --tok-keyword: #ff7b72;
  --tok-selector: #f38bb8;
  --tok-prop: #6cc6e3;
  --tok-value: #8fb8ff;
  --tok-string: #8fd49b;
  --tok-number: #f2a65e;
  --tok-func: #8fb8ff;
  --tok-punct: #9a9994;
  --tok-tag: #ff7b72;
  --tok-attr: #f2a65e;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17.5px/1.68 var(--font-text); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
::selection { background: color-mix(in oklab, var(--pen) 24%, transparent); color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pen-text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: var(--pad); top: 10px; z-index: 60; padding: 10px 14px;
  background: var(--ink); color: var(--bg); font: 500 14px/1 var(--font-text); border-radius: 8px; transform: translateY(-180%);
}
.skip-link:focus-visible { transform: none; }
.col { width: min(100% - var(--pad) * 2, var(--col)); margin-inline: auto; }

/* ---------- header ---------- */
.nav { padding-top: 28px; view-transition-name: site-nav; }
.nav .col { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; white-space: nowrap; font: 600 16px/1 var(--font-text); letter-spacing: -0.02em; }
.wordmark__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pen); transition: transform .5s var(--spring); }
.wordmark:hover .wordmark__dot { transform: scale(1.6); }
.nav__right { display: flex; align-items: center; gap: 2px; }
.nav__links { display: flex; gap: 2px; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; white-space: nowrap; font-size: 15px; color: var(--muted); transition: color .15s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
/* the current page: a red marker stroke, wiped in */
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 7px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.2C14 3.4 26 6.6 38 4.6S53 3.4 58 4' fill='none' stroke='%23ff4a4f' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); animation: wipe .5s var(--ease-io) .35s forwards;
}
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.lamp { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s var(--ease), background-color .15s var(--ease), transform .3s var(--spring); }
.lamp:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.lamp:active { transform: scale(.92); }
.lamp svg { width: 18px; height: 18px; }
.lamp .lamp__moon { display: none; }
html[data-theme="night"] .lamp .lamp__sun { display: none; }
html[data-theme="night"] .lamp .lamp__moon { display: block; }

/* ---------- the hand: single-stroke letters that write themselves ----------
   The dash pattern is one length of ink and two of gap. A stroke rests half way into the gap (offset 1.5),
   so nothing of it shows, not even the round cap of a zero-length dash, until the pen reaches it. */
.hand { height: var(--hand-h, 56px); width: auto; max-width: none; overflow: visible; color: var(--pen); flex: 0 1 auto; min-width: 0; }
.hand path {
  fill: none; stroke: currentColor; stroke-width: var(--hand-w, 3.2); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1.5;
  animation: pen var(--t) cubic-bezier(.45, .05, .55, .95) calc(var(--d) + var(--hand-delay, .3s)) forwards;
}
@keyframes pen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hand.is-driven path { animation: none; }
html.js [data-draw]:not(.is-drawn) .hand path { animation-play-state: paused; }
/* with scripts on, the cycling lines are written by scribe.js alone: CSS never starts a line the script would restart */
html.js [data-scribe] .hand path { animation: none; }

/* ---------- the smiley: drawn in the same red pen; it is also the pause button ---------- */
[data-scribe].hero__hand, [data-scribe].page-hand, [data-scribe].post-hand { display: inline-flex; align-items: center; gap: 0; max-width: 100%; }
[data-scribe] .hand { --hand-delay: 1.2s; }
.smiley {
  position: relative; flex: none; width: calc(var(--hand-h, 64px) * .52); height: calc(var(--hand-h, 64px) * .52);
  margin-left: calc(var(--hand-h, 64px) * .14); margin-top: calc(var(--hand-h, 64px) * -.12); padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--pen); cursor: pointer; transition: transform .45s var(--spring); -webkit-tap-highlight-color: transparent;
}
.smiley svg { width: 100%; height: 100%; overflow: visible; }
.smiley path { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.5; }
.smiley__eye { transform-box: fill-box; transform-origin: 50% 60%; transition: transform .12s var(--ease); }
.smiley.is-wink .smiley__eye:last-child { transform: scaleY(.15); }
.smiley.is-asleep .smiley__eye { transform: scaleY(.15) translateY(4px); transition-duration: .35s; }
.smiley:hover { transform: rotate(-8deg) scale(1.06); }
.smiley:active { transform: scale(.92); transition-duration: .12s; }
.smiley::after {
  content: "pause"; position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; white-space: nowrap;
  font: 500 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted);
  opacity: 0; transform: translateY(-3px); transition: opacity .18s var(--ease), transform .25s var(--spring); pointer-events: none;
}
.smiley[aria-pressed="true"]::after { content: "play"; }
.smiley:hover::after, .smiley:focus-visible::after { opacity: 1; transform: none; }

/* ---------- shared bits ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: var(--r-btn); font: 500 15px/1 var(--font-text); letter-spacing: -0.01em; cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); transition: border-color .15s var(--ease), transform .3s var(--spring); }
.link { display: inline-flex; align-items: center; gap: var(--s-2); padding-block: 10px; font-weight: 500; line-height: 24px; background-origin: content-box; }
.link::after { content: "→"; display: inline-block; }
.label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.label::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--pen); }
.hi { color: var(--pen-text); }

/* ---------- home ---------- */
.hero { position: relative; padding-block: clamp(56px, 10vh, 112px) 44px; }
.hero .col { position: relative; }
.hero__hand { --hand-h: clamp(60px, 15vw, 112px); --hand-w: 3.4; position: relative; display: inline-block; margin: 0 0 16px -4px; }
.hero h1 { margin: 0; font-size: clamp(2.05rem, 1.4rem + 2.6vw, 2.85rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.032em; text-wrap: balance; }
.section { padding-block: 28px 56px; }
.section--tight { padding-top: 24px; padding-bottom: 40px; }
.section h2 { margin: 0 0 22px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }

/* the writeups list: number, title, date; the whole row is the link */
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.note-row { border-bottom: 1px solid var(--line); }
.note-row a {
  position: relative; display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 2px 14px; align-items: baseline; min-height: 44px;
  margin-inline: -12px; padding: 17px 12px; border-radius: 12px;   /* a wider, rounded press area; the text stays on the column */
  transition: opacity .25s var(--ease), background-color .2s var(--ease), scale .3s var(--spring);
}
.note-row__no { font: 500 12.5px/1.7 var(--font-mono); color: var(--pen-text); }
.note-row__title { font-weight: 550; letter-spacing: -0.015em; line-height: 1.4; text-wrap: pretty; }
.note-row__date { font: 400 12.5px/1.7 var(--font-mono); color: var(--faint); white-space: nowrap; }


/* ---------- work with me ---------- */
.page-head { position: relative; padding-block: 72px 24px; }
.page-head .col { position: relative; }
.page-hand { position: relative; display: inline-block; --hand-h: clamp(56px, 14vw, 102px); --hand-w: 3.4; margin: 0 0 16px -4px; }
.page-head h1 { margin: 0; font-size: clamp(1.9rem, 1.35rem + 2vw, 2.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
.page-head p { margin: 16px 0 0; color: var(--muted); text-wrap: pretty; }
/* ---------- let's work together ---------- */
.page-hand--long { --hand-h: clamp(40px, 11.5vw, 80px); }

/* how it goes: four handwritten numbers on one red thread, written left to right */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps::before {
  content: ""; position: absolute; left: 18px; right: 12%; top: 21px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--pen) 0 5px, transparent 5px 12px); opacity: .4;
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease-io) .25s;
}
.steps.is-drawn::before, html:not(.js) .steps::before { transform: none; }
.step { position: relative; }
.step__no { display: inline-flex; height: 44px; padding-right: 8px; background: var(--bg); transition: background-color .3s var(--ease); }
.step__no .hand { --hand-h: 44px; --hand-w: 3.2; }
.step:nth-child(2) .hand { --hand-delay: .55s; }
.step:nth-child(3) .hand { --hand-delay: .85s; }
.step:nth-child(4) .hand { --hand-delay: 1.15s; }
.step__title { margin: 8px 0 2px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.step__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

/* home: a red note pointing at the button */
.hero .btn-row { position: relative; column-gap: 12px; }
.cta-note { position: absolute; left: 150px; top: calc(100% - 2px); display: flex; align-items: flex-end; color: var(--pen); pointer-events: none; }
.cta-note .hand { --hand-h: 36px; --hand-w: 2.8; --hand-delay: 1.9s; }
.cta-note__arrow { width: 50px; height: 33px; overflow: visible; margin-bottom: 16px; }
.cta-note__arrow path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.5; animation: pen .5s cubic-bezier(.45, .05, .55, .95) 1.5s forwards; }
html.js .cta-note:not(.is-drawn) .cta-note__arrow path { animation-play-state: paused; }

/* the nav says it in full where there is room */
.nav__short, .nav__tiny { display: none; }
@media (max-width: 560px) { .nav__full { display: none; } .nav__short { display: inline; } }
@media (max-width: 420px) { .nav .col { gap: 4px; } .nav__link { padding-inline: 7px; } .lamp { margin-left: 0; } }
@media (max-width: 359px) { .nav__short { display: none; } .nav__tiny { display: inline; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .steps::before { display: none; }
}

/* ---------- footer ---------- */
.footer { padding-block: 48px 40px; font-size: 14px; color: var(--muted); }
.footer .col { display: grid; gap: 14px; }   /* no rule above the footer: the signature starts it */
.footer__sign { --hand-h: min(54px, 14vw); --hand-w: 2.8; --hand-delay: 0s; }
.footer__fine { margin: 0; font: 400 12.5px/1.6 var(--font-mono); color: var(--faint); }

/* ---------- a writeup ---------- */
.post-head { position: relative; padding-block: 72px 28px; }
.post-head .col { position: relative; }
.post-hand { position: relative; display: inline-block; --hand-h: clamp(56px, 14vw, 102px); --hand-w: 3.4; margin: 0 0 16px -4px; }
.post-head h1 { margin: 0; font-size: clamp(1.9rem, 1.35rem + 2vw, 2.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
.post-meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 0; font: 500 12.5px/1.6 var(--font-mono); color: var(--muted); }
.post-meta > span + span::before { content: "\00b7"; margin: 0 .7em; color: var(--faint); }
.post-credit { margin: 8px 0 0; font: 500 13px/1.6 var(--font-mono); color: var(--muted); }
.post-credit span { color: var(--ink); }
.post-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: .18em; }
.post-credit a:hover { text-decoration-color: currentColor; }
.prose { padding-bottom: 56px; }
.prose > * { width: min(100% - var(--pad) * 2, var(--col)); margin-inline: auto; }
.prose > p { position: relative; margin: 0 auto 1.1em; text-wrap: pretty; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { margin: 2.4em auto .55em; font-size: 1.22rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; color: var(--pen-text); }
.prose h2 .h-no { font: 500 .62em/1 var(--font-mono); margin-right: .7em; vertical-align: .2em; }
.prose > :is(ul, ol) { padding-left: 1.2em; margin-block: 0 1.3em; color: var(--ink-2); }
.prose > :is(ul, ol) > li { position: relative; margin-bottom: .4em; padding-left: .2em; }
.prose > :is(ul, ol) > li::marker { color: var(--pen); }
.prose :not(pre) > code { font: 500 .84em/1 var(--font-mono); color: var(--code-inline); background: var(--code-inline-bg); border: 1px solid var(--code-inline-line); padding: .18em .42em; border-radius: 6px; }

/* code: a header with the language and a copy button, then coloured tokens */
.prose > pre, .code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 400 13.5px/1.75 var(--font-mono); color: var(--ink); tab-size: 2; background: var(--code-bg); }
.prose > pre { margin: 1.6em auto 1.8em; border: 1px solid var(--line-strong); border-radius: 14px; }
.code { margin: 1.6em auto 1.8em; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--code-bg); }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 0 14px; min-height: 44px; background: var(--code-head); border-bottom: 1px solid var(--line); font: 500 12px/1 var(--font-mono); color: var(--muted); }
.code__file { display: inline-flex; align-items: center; gap: 8px; }
.code__file::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lang, var(--pen)); }
.code[data-lang="css"] { --lang: #2b6cb0; }
.code[data-lang="js"] { --lang: #e3b341; }
.code[data-lang="html"] { --lang: #e8743b; }
.code[data-lang="http"] { --lang: #1f9d55; }
.code__copy { display: inline-flex; align-items: center; gap: 6px; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; transition: color .15s var(--ease), background-color .15s var(--ease); }
.code__copy:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.code__copy svg { width: 14px; height: 14px; }
.code__copy .i-check { display: none; color: var(--tok-string); }
.code__copy.is-done .i-copy { display: none; }
.code__copy.is-done .i-check { display: block; animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(.4); } }
.code pre code { font: inherit; }
.tk-c { color: var(--tok-comment); font-style: italic; }
.tk-k { color: var(--tok-keyword); }
.tk-s { color: var(--tok-string); }
.tk-n { color: var(--tok-number); }
.tk-f { color: var(--tok-func); }
.tk-p { color: var(--tok-punct); }
.tk-sel { color: var(--tok-selector); }
.tk-prop { color: var(--tok-prop); }
.tk-v { color: var(--tok-value); }
.tk-at { color: var(--tok-keyword); }
.tk-tag { color: var(--tok-tag); }
.tk-attr { color: var(--tok-attr); }

/* margin notes: handwritten in red beside the paragraph on wide screens, small type under it on narrow ones */
.sidenote { display: block; margin-top: .6em; font: 500 13px/1.5 var(--font-mono); color: var(--ink-2); }
.sidenote__text::before { content: "\270E  "; color: var(--pen-text); }
.sidenote__ink { display: none; }
@media (min-width: 1180px) {
  .sidenote { position: absolute; top: .2em; left: calc(100% + 44px); width: 210px; margin: 0; }
  .sidenote__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidenote__ink { display: grid; gap: 0; justify-items: start; }
  .sidenote__ink .hand { --hand-h: 36px; --hand-w: 2.4; }
  .sidenote__ink .hand + .hand { --hand-delay: 1.1s; }
  .sidenote__ink::before { content: ""; position: absolute; left: -30px; top: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--pen); opacity: .55; }
}


/* the margin: contents and a red ink line that fills as you read */
.toc { display: none; }
@media (min-width: 1180px) {
  .toc { display: block; position: fixed; top: 228px; left: max(24px, calc(50% - var(--col) / 2 - 250px)); width: 190px; z-index: 5; font: 500 12.5px/1.45 var(--font-text); opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .6s var(--spring); }
  .toc.is-on, .toc:focus-within { opacity: 1; transform: none; }
  .toc__title { margin: 0 0 12px 16px; font: 500 11.5px/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
  .toc__rail { position: relative; padding-left: 16px; }
  .toc__rail::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: var(--line-strong); border-radius: 2px; }
  .toc ol { list-style: none; margin: 0; padding: 0; }
  .toc__ink { position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: var(--pen); border-radius: 2px; transform-origin: 0 0; transform: scaleY(var(--read, 0)); z-index: 1; }
  .toc a { display: block; padding: 6px 0; font-size: 13px; color: var(--faint); transition: color .2s var(--ease), transform .45s var(--spring); }
  .toc a:hover { color: var(--ink); }
  .toc a.is-active { color: var(--ink); transform: translateX(4px); }
}
.post-foot .col { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-foot { padding-bottom: 8px; }

/* ---------- moving between pages ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--spring-soft) both; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--spring); }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html.is-theming::view-transition-old(root), html.is-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.is-theming::view-transition-group(*) { animation: none; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .note-row a { grid-template-columns: 1.9rem 1fr; gap: 3px 10px; padding-block: 14px; }
  .note-row__date { grid-column: 2; line-height: 1.4; }
  .post-head, .page-head { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .hand path { animation: none !important; stroke-dashoffset: 0 !important; }
  .nav__link[aria-current="page"]::after { animation: none; clip-path: none; }
  .code__copy.is-done .i-check { animation: none; }
  .smiley, .smiley::after, .smiley__eye { transition: none; }
}
@media print { .nav, .footer, .toc, .smiley { display: none; } }
.section h2.label { margin: 0 0 18px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; }

/* prose-like code (a report template) wraps; real code scrolls inside its own focusable region */
.code[data-lang="text"] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code pre:focus-visible { outline-offset: -3px; }
@media (max-width: 480px) {
  .code pre, .prose > pre { font-size: 12.5px; padding: 14px; }
  .code[data-lang="http"] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code:is([data-lang="js"], [data-lang="css"], [data-lang="html"]) pre { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

html[data-theme="night"] :is(h1, h3, .note-row__title) { font-weight: 560; }
.post-foot .link { display: inline-block; }
.post-foot .link::after { margin-left: .4em; }

.redact {
  border-radius: 3px; color: transparent; cursor: help; padding: 0 .2em;
  background: linear-gradient(var(--ink), var(--ink)) right / 100% 100% no-repeat;
  transition: background-size .3s var(--ease-io), color .2s var(--ease) .1s;
}
.redact:is(:hover, :focus-visible) { background-size: 0% 100%; color: var(--pen-text); }
.redact:is(:hover, :focus-visible)::after { content: " nice try"; font-style: italic; color: var(--muted); }
.not-found__echo { margin: 18px 0 0; font: 500 13px/1.6 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.not-found__echo b { color: var(--pen-text); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .redact { transition: none; }
  .steps::before { transition: none; transform: none; }
  .cta-note__arrow path { animation: none !important; stroke-dashoffset: 0; }
}

/* ---------- the red pen, everywhere ---------- */

/* a word in a heading the pen underlines or circles, once the line above has been written */
.pen-mark { position: relative; white-space: nowrap; }
.pen-mark svg { max-width: none; position: absolute; left: -1%; bottom: -.17em; width: 102%; height: .3em; overflow: visible; color: var(--pen); pointer-events: none; }
.pen-mark--ring svg { left: -8%; top: -12%; bottom: auto; width: 116%; height: 126%; }
.pen-mark path { fill: none; stroke: currentColor; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.5; }
.pen-mark.is-drawn path, html:not(.js) .pen-mark path { animation: pen .8s cubic-bezier(.45, .05, .55, .95) 1.5s forwards; }

/* the writeup list: hover one and the others step back, the title leans in */
.note-row__title span { display: block; transition: translate .4s var(--spring); }
@media (hover: hover) {
  .notes:has(.note-row a:hover) .note-row a:not(:hover) { opacity: .4; }
  .note-row a:hover .note-row__title span { translate: 5px 0; }
}
.note-row a:focus-visible .note-row__title span { translate: 5px 0; }
.more { margin: 14px 0 0; }

/* ---------- home: the introduction ---------- */
.intro { margin-top: 24px; max-width: 34em; color: var(--muted); }
.intro p { margin: 0 0 14px; text-wrap: pretty; }
.intro p:last-child { margin-bottom: 0; }
.intro strong { color: var(--ink); font-weight: 600; }
.intro a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--pen) 75%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s var(--ease), text-underline-offset .3s var(--spring); }
.intro a:hover { color: var(--pen-text); text-underline-offset: 5px; }

/* LinkedIn: in the nav, the hero and the footer */
.li-icon { width: 17px; height: 17px; flex: none; }
.btn--li .li-icon { color: #0a66c2; }
html[data-theme="night"] .btn--li .li-icon { color: #4c9be3; }
.btn--secondary:hover { border-color: var(--ink); }
.nav__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .15s var(--ease), background-color .15s var(--ease), transform .3s var(--spring); }
.nav__icon:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav__icon:active { transform: scale(.92); }
.nav__li .li-icon { width: 16px; height: 16px; }
.nav__li:hover { color: #0a66c2; }
html[data-theme="night"] .nav__li:hover { color: #4c9be3; }
@media (max-width: 420px) { .nav__li { display: none; } }

/* ---------- let's work together: the address, big, underlined by the pen ---------- */
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 30px; }
.mail__address {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 clamp(1.3rem, 1rem + 1.8vw, 1.9rem)/1.3 var(--font-text); letter-spacing: -0.025em; color: var(--ink); overflow-wrap: anywhere; padding-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cpath d='M3 7C60 4 120 3 180 5S270 7 297 4' fill='none' stroke='%23ff4a4f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 9px no-repeat;
  transition: color .15s var(--ease), background-size .9s cubic-bezier(.45, .05, .55, .95) 1.3s;
}
html.js .mail__address:not(.is-drawn) { background-size: 0% 9px; }
.mail__address:hover { color: var(--pen-text); }
.mail__copy { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--ink); font: 500 13px/1 var(--font-mono); cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease), transform .3s var(--spring); }
.mail__copy:hover { border-color: var(--ink); }
.mail__copy:active { transform: scale(.95); }
.mail__copy.is-done { color: var(--ok); border-color: var(--ok); }
.mail__hint { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }

@media (prefers-reduced-motion: reduce) {
  .pen-mark path { animation: none !important; stroke-dashoffset: 0; }
  .mail__address { transition: none; background-size: 100% 9px !important; }
  .note-row a, .note-row__title span { transition: none; }
}
@media (max-width: 420px) { .hero .btn { padding-inline: 18px; } .cta-note { left: 120px; } }
main > :last-child { padding-bottom: 0; }
/* bigger fingertips: the hit area grows, the look doesn't */
.more .link { min-height: 44px; }
.smiley::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
@media (max-width: 400px) { .wordmark__last { display: none; } }
/* a section's label with its "see all" link on the same line, at the right */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.section .section-head h2.label { margin: 0; }
.section-head__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .15s var(--ease); }
.section-head__link::after { content: "\2192"; transition: translate .3s var(--spring); }
.section-head__link:hover { color: var(--pen-text); }
.section-head__link:hover::after { translate: 3px 0; }

/* ---------- alive on a phone too ---------- */
/* scroll: things arrive, one after another (the script sets .r-wait, so nothing hides without it) */
.r-wait { opacity: 0; translate: 0 18px; }
.r-wait.is-in { opacity: 1; translate: 0 0; transition: opacity .55s var(--ease) calc(var(--i, 0) * 70ms), translate .8s var(--spring) calc(var(--i, 0) * 70ms); }

/* taps answer: no grey flash, a red press instead */
a, button { -webkit-tap-highlight-color: transparent; }
.note-row a:active { background: color-mix(in oklab, var(--pen) 7%, transparent); scale: .985; }
.note-row a:active .note-row__no { color: var(--pen); }
.btn:active, .mail__copy:active, .nav__link:active { scale: .96; }

/* the handwriting: tap it for the next line; on a phone it leads the page */
[data-scribe].is-tappable { cursor: pointer; -webkit-user-select: none; user-select: none; }
.scribe-hint { position: absolute; right: -2px; top: calc(100% - 4px); color: var(--pen); line-height: 0; pointer-events: none; transition: opacity .35s var(--ease), translate .35s var(--ease); }
.scribe-hint .hand { --hand-h: 24px; --hand-w: 2.6; }
.scribe-hint.is-gone { opacity: 0; translate: 0 -6px; }
@media (max-width: 480px) {
  .hero__hand { --hand-h: 19vw; margin-bottom: 22px; }
  .page-hand, .post-hand { --hand-h: 16vw; }
  .page-hand--long { --hand-h: 12.5vw; }
}

/* margin notes: in red handwriting on phones and tablets too, under their paragraph */
@media (max-width: 1179px) {
  .sidenote { display: flex; align-items: flex-start; gap: 10px; margin-top: .5em; color: var(--pen); }
  .sidenote::before { content: ""; flex: none; width: 16px; height: 2px; margin-top: 15px; border-radius: 2px; background: var(--pen); opacity: .55; }
  .sidenote__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidenote__ink { display: grid; justify-items: start; }
  .sidenote__ink .hand { --hand-h: 30px; --hand-w: 2.4; --hand-delay: .2s; }
  .sidenote__ink .hand + .hand { --hand-delay: 1s; }
}

/* how it goes, on a phone: a timeline, its red thread drawn down as it comes into view */
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; row-gap: 20px; }
  .steps::before {
    display: block; left: 21px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--pen) 0 5px, transparent 5px 12px);
    transform-origin: 50% 0; transform: scaleY(0); transition: transform 1.6s var(--ease-io) .2s;
  }
  .steps.is-drawn::before, html:not(.js) .steps::before { transform: none; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .step__no { grid-row: span 2; justify-content: center; padding: 0; height: 40px; }
  .step__title { margin-top: 6px; }
}

/* a writeup: a thin red line along the top fills as you read (where the margin rail is not shown) */
@supports (animation-timeline: scroll()) {
  @media (max-width: 1179px) {
    body:has(.post-head)::before {
      content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--pen); border-radius: 0 2px 2px 0;
      transform-origin: 0 50%; transform: scaleX(0); animation: read linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes read { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .r-wait { opacity: 1; translate: none; }
  .note-row a, .scribe-hint { transition: none; }
  .steps::before { transition: none; transform: none; }
  body:has(.post-head)::before { display: none; }
}
/* every small link and button gets a full fingertip (44px) to hit, without looking any bigger */
.post-foot .link, .btn-row .link, .section-head__link { min-height: 44px; }
main > .page-head:last-child { padding-bottom: 40px; }   /* a page that is only its header (the 404) keeps room under its buttons */
main > section.hero:last-child { padding-bottom: 64px; }  /* the home page with no writeups yet: room for the "say hi!" note */

/* ---------- work page: how I test, what I test, what you get (two columns, one on phones) ---------- */
.offer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.offer > li { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.offer__title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.offer__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.cta-end h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.025em; }
.cta-end p { margin: 10px 0 0; color: var(--muted); text-wrap: pretty; }
.cta-end .btn-row { margin-top: 22px; }
@media (max-width: 600px) { .offer { grid-template-columns: 1fr; } }

/* ---------- writeup titles: the list row and the post title morph into each other (a class, not style="",
   because the CSP forbids inline styles). Add a line for each new writeup number. ---------- */
.vt-w-01 { view-transition-name: w-01; }
.vt-w-02 { view-transition-name: w-02; }
.vt-w-03 { view-transition-name: w-03; }

/* ---------- hand timings: written by tools/hands.mjs, do not edit by hand ---------- */
.hd-0{--d:0s}.hd-90{--d:.09s}.hd-93{--d:.093s}.hd-101{--d:.101s}.hd-102{--d:.102s}.hd-106{--d:.106s}.hd-112{--d:.112s}.hd-122{--d:.122s}.hd-124{--d:.124s}.hd-139{--d:.139s}.hd-152{--d:.152s}.hd-157{--d:.157s}.hd-180{--d:.18s}.hd-183{--d:.183s}.hd-196{--d:.196s}.hd-202{--d:.202s}.hd-206{--d:.206s}.hd-225{--d:.225s}.hd-242{--d:.242s}.hd-250{--d:.25s}.hd-257{--d:.257s}.hd-270{--d:.27s}.hd-273{--d:.273s}.hd-283{--d:.283s}.hd-286{--d:.286s}.hd-289{--d:.289s}.hd-290{--d:.29s}.hd-292{--d:.292s}.hd-299{--d:.299s}.hd-302{--d:.302s}.hd-315{--d:.315s}.hd-323{--d:.323s}.hd-329{--d:.329s}.hd-340{--d:.34s}.hd-357{--d:.357s}.hd-360{--d:.36s}.hd-361{--d:.361s}.hd-385{--d:.385s}.hd-391{--d:.391s}.hd-395{--d:.395s}.hd-405{--d:.405s}.hd-413{--d:.413s}.hd-414{--d:.414s}.hd-418{--d:.418s}.hd-419{--d:.419s}.hd-427{--d:.427s}.hd-436{--d:.436s}.hd-450{--d:.45s}.hd-451{--d:.451s}.hd-458{--d:.458s}.hd-490{--d:.49s}.hd-491{--d:.491s}.hd-497{--d:.497s}.hd-503{--d:.503s}.hd-504{--d:.504s}.hd-509{--d:.509s}.hd-518{--d:.518s}.hd-527{--d:.527s}.hd-530{--d:.53s}.hd-541{--d:.541s}.hd-548{--d:.548s}.hd-554{--d:.554s}.hd-558{--d:.558s}.hd-581{--d:.581s}.hd-594{--d:.594s}.hd-599{--d:.599s}.hd-606{--d:.606s}.hd-607{--d:.607s}.hd-608{--d:.608s}.hd-616{--d:.616s}.hd-617{--d:.617s}.hd-632{--d:.632s}.hd-638{--d:.638s}.hd-644{--d:.644s}.hd-664{--d:.664s}.hd-665{--d:.665s}.hd-666{--d:.666s}.hd-671{--d:.671s}.hd-684{--d:.684s}.hd-689{--d:.689s}.hd-697{--d:.697s}.hd-698{--d:.698s}.hd-706{--d:.706s}.hd-707{--d:.707s}.hd-733{--d:.733s}.hd-760{--d:.76s}.hd-761{--d:.761s}.hd-774{--d:.774s}.hd-790{--d:.79s}.hd-792{--d:.792s}.hd-797{--d:.797s}.hd-798{--d:.798s}.hd-799{--d:.799s}.hd-814{--d:.814s}.hd-818{--d:.818s}.hd-821{--d:.821s}.hd-845{--d:.845s}.hd-846{--d:.846s}.hd-852{--d:.852s}.hd-864{--d:.864s}.hd-872{--d:.872s}.hd-890{--d:.89s}.hd-911{--d:.911s}.hd-921{--d:.921s}.hd-935{--d:.935s}.hd-942{--d:.942s}.hd-952{--d:.952s}.hd-954{--d:.954s}.hd-955{--d:.955s}.hd-972{--d:.972s}.hd-982{--d:.982s}.hd-1009{--d:1.009s}.hd-1011{--d:1.011s}.hd-1017{--d:1.017s}.hd-1020{--d:1.02s}.hd-1044{--d:1.044s}.hd-1072{--d:1.072s}.hd-1081{--d:1.081s}.hd-1082{--d:1.082s}.hd-1083{--d:1.083s}.hd-1101{--d:1.101s}.hd-1110{--d:1.11s}.hd-1126{--d:1.126s}.hd-1147{--d:1.147s}.hd-1156{--d:1.156s}.hd-1172{--d:1.172s}.hd-1176{--d:1.176s}.hd-1180{--d:1.18s}.hd-1191{--d:1.191s}.hd-1199{--d:1.199s}.hd-1200{--d:1.2s}.hd-1262{--d:1.262s}.hd-1276{--d:1.276s}.hd-1281{--d:1.281s}.hd-1289{--d:1.289s}.hd-1290{--d:1.29s}.hd-1293{--d:1.293s}.hd-1319{--d:1.319s}.hd-1330{--d:1.33s}.hd-1380{--d:1.38s}.hd-1391{--d:1.391s}.hd-1403{--d:1.403s}.hd-1419{--d:1.419s}.hd-1420{--d:1.42s}.hd-1437{--d:1.437s}.hd-1470{--d:1.47s}.hd-1481{--d:1.481s}.hd-1510{--d:1.51s}.hd-1531{--d:1.531s}.hd-1560{--d:1.56s}.hd-1576{--d:1.576s}.hd-1600{--d:1.6s}.hd-1606{--d:1.606s}.hd-1666{--d:1.666s}.hd-1690{--d:1.69s}.hd-1711{--d:1.711s}.hd-1756{--d:1.756s}.hd-1822{--d:1.822s}.hd-1833{--d:1.833s}.hd-1964{--d:1.964s}.hd-1977{--d:1.977s}.hd-2065{--d:2.065s}.hd-2081{--d:2.081s}.hd-2171{--d:2.171s}.hd-2195{--d:2.195s}.hd-2285{--d:2.285s}.hd-2343{--d:2.343s}.hd-2498{--d:2.498s}
.ht-50{--t:.05s}.ht-53{--t:.053s}.ht-55{--t:.055s}.ht-56{--t:.056s}.ht-60{--t:.06s}.ht-61{--t:.061s}.ht-62{--t:.062s}.ht-64{--t:.064s}.ht-65{--t:.065s}.ht-66{--t:.066s}.ht-68{--t:.068s}.ht-69{--t:.069s}.ht-70{--t:.07s}.ht-72{--t:.072s}.ht-73{--t:.073s}.ht-75{--t:.075s}.ht-76{--t:.076s}.ht-78{--t:.078s}.ht-82{--t:.082s}.ht-84{--t:.084s}.ht-86{--t:.086s}.ht-87{--t:.087s}.ht-90{--t:.09s}.ht-91{--t:.091s}.ht-95{--t:.095s}.ht-96{--t:.096s}.ht-97{--t:.097s}.ht-98{--t:.098s}.ht-99{--t:.099s}.ht-100{--t:.1s}.ht-101{--t:.101s}.ht-102{--t:.102s}.ht-103{--t:.103s}.ht-106{--t:.106s}.ht-108{--t:.108s}.ht-110{--t:.11s}.ht-112{--t:.112s}.ht-114{--t:.114s}.ht-115{--t:.115s}.ht-116{--t:.116s}.ht-117{--t:.117s}.ht-118{--t:.118s}.ht-123{--t:.123s}.ht-126{--t:.126s}.ht-132{--t:.132s}.ht-152{--t:.152s}.ht-166{--t:.166s}.ht-175{--t:.175s}.ht-176{--t:.176s}
/* ---------- end of hand timings ---------- */

/* ---------- the one writeup, featured on the home page ---------- */
.feature {
  display: grid; gap: 12px; margin-inline: -12px; padding: 24px 12px 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 12px; text-decoration: none;
}
.feature__meta { display: flex; flex-wrap: wrap; font: 500 12.5px/1.6 var(--font-mono); color: var(--muted); }
.feature__meta > span:first-child { color: var(--pen-text); }
.feature__meta > span + span::before { content: "\00b7"; margin: 0 .7em; color: var(--faint); }
.feature__title {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.05rem); line-height: 1.15; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink); text-wrap: balance;
  transition: color .15s var(--ease);
}
.feature__lede { max-width: 38em; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.feature__cta { font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--pen-text); }
.feature__cta::after { content: "\2192"; margin-left: 7px; transition: translate .3s var(--spring); }
@media (hover: hover) {
  .feature:hover .feature__title { color: var(--pen-text); }
  .feature:hover .feature__cta::after { translate: 3px 0; }
}

/* ---------- the story: the short version, the numbers, a pull quote ---------- */
.tldr {
  margin: 1.6em auto 1.8em; padding: 18px 20px;
  border: 1px solid var(--line-strong); border-left: 4px solid var(--pen);
  border-radius: 0 14px 14px 0; background: var(--surface);
}
.tldr .label { margin: 0 0 10px; }
.tldr p:last-child { margin: 0; color: var(--ink-2); }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.7em auto 2.1em; }
.number { padding: 14px 15px 13px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.number b { display: block; font: 600 1.45rem/1 var(--font-text); letter-spacing: -0.03em; color: var(--pen-text); }
.number span { display: block; margin-top: 6px; font: 500 11.5px/1.4 var(--font-mono); color: var(--muted); }
.prose > blockquote {
  margin: 1.9em auto 2em; padding-left: 16px; border-left: 3px solid var(--pen);
  font-size: 1.12rem; line-height: 1.55; font-weight: 500; color: var(--ink);
}
.prose > blockquote p { margin: 0; color: inherit; }
@media (max-width: 640px) { .numbers { grid-template-columns: 1fr; } }
