/* imbored.fun on Split.
   Every page keeps Split's structure: a box on the left (sticky on desktop,
   half the width) and the page on the right. The box is a sheet of paper
   with the header on top (the logo is the small imbored.fun wordmark beside
   Projects / Blog) and the page's text at the bottom. On an article the
   paper becomes superlogical's gradient, which slides from lavender to lime
   as you read (on desktop; phones keep the paper). On phones the box stays
   on top of every page and closes into a bar as you scroll. The page uses superlogical's dark colours and type; the accent
   is the footer's sky blue. The footer is after natura.inc: the page
   fades into a sky that ends in pixel-art mountains. */

:root {
  --ink: #ececea;
  --ink-2: #ecece9b3;
  --paper: #10120f;
  --card: #161814;
  --muted: #737b6f;
  --muted-2: #8e9589;
  --rule: #ececea24;
  --rule-2: #ececea12;
  --sheet: #ececea;
  --box-ink: #10120f;
  --sky: #08a9fc;
  --sky-ink: #0a78c9;
  --sherbet: linear-gradient(to bottom, #d1b6fe 0%, #e9a6cf 18%, #ff9169 40%, #f2c46d 68%, #d6f87e 100%);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --glide: cubic-bezier(.32, .72, 0, 1);
  --calm: cubic-bezier(.4, 0, .1, 1);
}
html:root { --font-heading: var(--sans); --font-body: var(--sans); --font-sans: var(--sans); --font-mono: var(--mono); --color-ghost-accent: var(--sky); }
html, html.dark { color-scheme: dark; --bg-color: var(--paper); --text-color: var(--ink); background: var(--paper); }
body, .font-body { font-family: var(--sans) !important; background: var(--paper); color: var(--ink); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans) !important; letter-spacing: -.02em; }
code, pre, kbd, .post-content code, .post-content pre { font-family: var(--mono) !important; }
::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.imb-arrow { display: inline-block; transition: transform .6s var(--ease); }
a:hover .imb-arrow { transform: translate(3px, 0); }
.imb-muted { color: var(--muted-2); }
.imb-dot { width: 3px; height: 3px; flex: none; border-radius: 50%; background: currentColor; opacity: .7; }

/* ═══ Motion: calm reveals, and words that settle into place ═════════════ */
[data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 1s var(--calm), transform 1.2s var(--ease), filter 1s var(--calm); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .9s var(--calm), transform 1.1s var(--ease), filter .9s var(--calm); transition-delay: calc(var(--i) * var(--step, 30ms) + var(--wait, 0ms)); }
[data-words].in .w { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-words] .w { opacity: 1; transform: none; filter: none; transition: none; } }

/* Moving between pages: the box stays put and its contents cross over */
@view-transition { navigation: auto; }
.imb-box { view-transition-name: imb-box; }
::view-transition-group(imb-box) { animation-duration: .6s; animation-timing-function: cubic-bezier(.65, 0, .2, 1); }
::view-transition-old(imb-box), ::view-transition-new(imb-box) { height: 100%; object-fit: none; object-position: top left; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ═══ The box: paper or gradient, Split's size ══════════════════════════ */
.imb-side-inner { padding: 12px 12px 0; }
@media (min-width: 1024px) { .imb-side-inner { padding: 12px; } }
.imb-box {
  --fg: var(--box-ink); --fg-2: #10120fbf; --fg-3: #10120f99; --fg-line: #10120f24; --fg-wash: #10120f0d;
  position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; background: var(--sheet); color: var(--fg); min-height: 62svh;
}
@media (max-width: 1023px) { .imb-box { min-height: min(calc(100svh - 24px), 27rem); } }
@media (min-width: 1024px) { .imb-box { height: calc(100vh - 24px); min-height: 0; } }
.imb-box-content { position: relative; display: flex; flex-direction: column; gap: 2rem; min-height: inherit; height: 100%; padding: 1.25rem 1.25rem 1.5rem; container-type: inline-size; }
@media (min-width: 640px) { .imb-box-content { padding: 1.75rem 2.25rem 2.25rem; } }
.imb-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* On desktop the bar and the body are only groupings; phones use them below */
.imb-bar, .imb-box-body { display: contents; }
.imb-bar-title { display: none; }

/* The gradient on articles (desktop), after superlogical.com: a WebGL field
   (field.js) over the same ramp in CSS, with a little grain on top */
@media (min-width: 1024px) { .imb-box.has-field { background: var(--sherbet); } }
@media (max-width: 1023px) { .imb-box > canvas, .imb-grain { display: none; } }
.imb-box > canvas { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.imb-grain { position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay; pointer-events: none; background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.has-field .imb-icon-btn { background: #10120f12; }
.has-field .imb-icon-btn:hover { background: #10120f24; }
.has-field .imb-cats a { border-color: #10120f38; }

/* Header row: the wordmark with Projects / Blog beside it, search, sign in */
.imb-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.imb-header-left { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 28px); min-width: 0; }
/* The logo: a heavy-lidded eye (bored) and the name. The eye blinks when you point at it */
.imb-wordmark { display: inline-flex; align-items: center; gap: .3em; padding: 4px 0; font-family: "Poppins", var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -.05em; line-height: 1; white-space: nowrap; color: var(--fg); }
.imb-mark { width: .92em; height: .92em; flex: none; }
.imb-lid { transform-box: fill-box; transform-origin: 50% 0; }
.imb-wordmark:hover .imb-lid { animation: imb-blink .7s var(--ease); }
@keyframes imb-blink { 0%, 100% { transform: none; } 35%, 55% { transform: scaleY(1.85); } }
.imb-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); }
.imb-nav::before { content: ""; width: 1px; height: 18px; background: var(--fg-line); }
.imb-nav-link { position: relative; padding: 6px 0; font-size: 16px; font-weight: 500; color: var(--fg-3); transition: color .3s; }
.imb-nav-link sup { top: -.7em; margin-left: 3px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0; opacity: .8; }
.imb-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.imb-nav-link:hover, .imb-nav-link.is-on { color: var(--fg); }
.imb-nav-link:hover::after, .imb-nav-link.is-on::after { transform: scaleX(1); transform-origin: left; }
.imb-header-right { display: flex; align-items: center; gap: 8px; }
.imb-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 99px; background: var(--fg-wash); color: var(--fg); transition: background .3s; }
.imb-icon-btn:hover { background: #10120f1c; }
.imb-pill-btn { height: 38px; padding: 0 16px; border-radius: 99px; background: var(--box-ink); color: var(--sheet); font-size: 14px; font-weight: 550; white-space: nowrap; transition: opacity .3s; }
.imb-pill-btn:hover { opacity: .85; }
.imb-signin-icon { display: none; }
@media (max-width: 560px) {
  .imb-wordmark { font-size: 19px; }
  .imb-header-left { gap: 14px; } .imb-nav { gap: 14px; }
  .imb-nav-link { font-size: 15px; } .imb-nav-link sup { display: none; }
  .imb-header-right { gap: 4px; } .imb-icon-btn { width: 34px; height: 34px; }
  .imb-header .imb-pill-btn { display: none; } .imb-signin-icon { display: grid; }
}
@media (max-width: 370px) { .imb-wordmark { font-size: 17px; } .imb-nav::before { display: none; } .imb-header-left, .imb-nav { gap: 11px; } }

/* The text that changes with the page */
.imb-context { display: flex; flex-direction: column; gap: 1.1rem; container-type: inline-size; }
.imb-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.imb-kicker a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fg-line); text-underline-offset: 3px; }
.imb-kicker a:hover { text-decoration-color: currentColor; }
.imb-title { --step: 45ms; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 14em; text-wrap: balance; }
.imb-title.is-post { --step: 35ms; font-size: clamp(30px, 3.3vw, 50px); line-height: 1.03; letter-spacing: -.045em; font-weight: 600; max-width: 15em; }
.imb-lede { font-size: 18px; line-height: 1.5; color: var(--fg-2); max-width: 30em; text-wrap: pretty; }
.imb-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.imb-cats a { padding: 6px 14px; border-radius: 99px; border: 1px solid #10120f2e; font-size: 14px; color: #10120fcc; transition: background .3s, color .3s, border-color .3s; }
.imb-cats a:hover { border-color: #10120f73; color: var(--box-ink); }
.imb-cats a.is-on { background: var(--box-ink); border-color: var(--box-ink); color: var(--sheet); }
.imb-panel-foot { display: flex; gap: 18px; margin-top: .5rem; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #10120f8c; }
.imb-panel-foot a { transition: color .3s; }
.imb-panel-foot a:hover { color: var(--box-ink); }

/* How far you've read, as a line under the title */
.imb-readbar { flex-shrink: 0; height: 2px; margin-top: .4rem; border-radius: 2px; overflow: hidden; background: var(--fg-line); }
.imb-readbar i { display: block; height: 100%; background: currentColor; transform: scaleX(var(--read, 0)); transform-origin: 0 50%; }

/* Phones and tablets: the box comes apart in two cards. The bar with the
   header is fixed to the top of the screen for the whole page, footer
   included. The rest of the box is a card just below it, part of the page, so
   the browser itself scrolls it up under the bar, exactly as smooth as the
   page; its text fades as it gets there, and the page's shade under the bar
   rides along at the bar's edge (both sticky). site.js only switches
   .is-titled on an article once its title has gone (the bar then shows a back
   button, a small title and the progress line) and .is-foot over the footer
   (the bar floats on the sky). */
@media (max-width: 1023px) {
  .imb-side, .imb-side-inner, .imb-box, .imb-box-content { display: contents; }
  .imb-box { view-transition-name: none; }
  .imb-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: block; padding: 12px 12px 0; view-transition-name: imb-bar;
    background: linear-gradient(var(--paper), var(--paper)) 0 0 / 100% 12px no-repeat, linear-gradient(var(--paper), var(--paper)) 0 0 / 12px 100% no-repeat, linear-gradient(var(--paper), var(--paper)) 100% 0 / 12px 100% no-repeat;
  }
  .imb-side.is-foot .imb-bar { background: none; }
  /* No rubber-band at the ends: it would pull the box away from the bar */
  html { overscroll-behavior-y: none; }
  /* The bar's last 14px are see-through: the box shows there while it's under
     the bar, then its round bottom (.imb-main::before) slides into that spot,
     so the closed bar is exactly the header, logo in the middle */
  .imb-bar > .imb-header, .imb-bar-title { background: linear-gradient(var(--sheet), var(--sheet)) 0 0 / 100% calc(100% - 14px) no-repeat; }
  .imb-bar > .imb-header { position: relative; z-index: 2; height: 62px; min-height: 0; padding: 0 1.25rem; border-radius: 14px 14px 0 0; }
  .imb-side.is-titled .imb-bar > .imb-header { background: var(--sheet); }
  .imb-side.is-foot .imb-bar > .imb-header { background: var(--sheet); border-radius: 14px; }
  .imb-bar-title {
    position: relative; z-index: 1; display: none; align-items: center; gap: 12px;
    height: 50px; padding: 0 1.25rem 10px .85rem;
  }
  /* The strip's paper comes and goes at once (so its shape never lags the
     scroll); only what's on it fades in */
  .imb-side.is-titled .imb-bar-title { display: flex; }
  .imb-bar-title > * { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--calm), transform .45s var(--ease); }
  .imb-side.is-titled .imb-bar-title > * { opacity: 1; transform: none; }
  @starting-style { .imb-side.is-titled .imb-bar-title > * { opacity: 0; transform: translateY(-6px); } }
  .imb-back { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: var(--fg-wash); color: var(--fg); transition: background .3s; }
  .imb-back:hover { background: #10120f1c; }
  .imb-bar-title-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .imb-bar-title p { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .imb-bar-title .imb-readbar { margin: 0; }
  /* One progress line at a time: the one under the big title steps back once the bar has its own */
  .imb-context > .imb-readbar { transition: opacity .25s; }
  .imb-side.is-titled .imb-context > .imb-readbar { opacity: 0; }
  /* The rest of the box hangs right under the bar, square where they meet, so
     nothing dark ever shows between them; it slides under the bar. Its round
     bottom is the page's first thing (.imb-main::before below), which then
     stays at the bar's edge, so the bar keeps a round bottom once the box has
     gone: all done by the browser's scrolling, nothing switched late */
  .imb-box-body {
    position: relative; display: flex; flex-direction: column; margin: 60px 12px 0; min-height: calc(min(100svh - 24px, 27rem) - 62px);
    padding: calc(2rem + 14px) 1.25rem 1.5rem; background: var(--sheet);
  }
  /* The fade under the bar: it rides along at the bar's edge (sticky), so
     the text dissolves into the paper as it slides under; on an article the
     paper first reaches down to where the small title will be */
  .imb-box-body::before {
    content: ""; position: sticky; top: 60px; z-index: 1; flex: none; height: 44px; margin: calc(-2rem - 14px) -1.25rem calc(2rem + 14px - 44px);
    background: linear-gradient(var(--sheet) 14px, #ececea00); pointer-events: none; opacity: 0; transition: opacity .35s;
  }
  .imb-side.is-post .imb-box-body::before { height: 108px; margin-bottom: calc(2rem + 14px - 108px); background: linear-gradient(var(--sheet) 64px, #ececea00); }
  .imb-side.is-scrolled .imb-box-body::before { opacity: 1; }
  /* The box's round bottom, and the page's shade under it: sticky at the
     bar's edge, so it reaches the bar only once the box has gone */
  .imb-side + .imb-main::before {
    content: ""; position: sticky; top: 60px; z-index: 5; display: block; height: 14px; margin: -2rem calc(12px - 1.5rem) calc(2rem - 14px);
    background: var(--sheet); border-radius: 0 0 14px 14px; box-shadow: 0 14px 18px -4px var(--paper); pointer-events: none;
  }
  .imb-side.is-post + .imb-main::before { top: 110px; }
  .imb-side.is-foot + .imb-main::before { visibility: hidden; }
  .imb-side + .imb-home::before { margin-bottom: calc(2rem - 14px - var(--home-gap)); }
  html:has(.imb-side) { scroll-padding-top: 9rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .imb-bar > .imb-header { padding-left: 2.25rem; padding-right: 2.25rem; }
  .imb-bar-title { padding-left: 1.85rem; padding-right: 2.25rem; }
  .imb-box-body { padding: calc(2rem + 14px) 2.25rem 2.25rem; }
  .imb-box-body::before { margin-left: -2.25rem; margin-right: -2.25rem; }
  .imb-side + .imb-main::before { margin: -2.5rem calc(12px - 2.5rem) calc(2.5rem - 14px); }
  .imb-side + .imb-home::before { margin-bottom: calc(2.5rem - 14px - var(--home-gap)); }
}

/* This week's launch, under the links in the home box (after superlogical) */
.imb-launch { display: flex; align-items: center; gap: 12px; margin-top: .25rem; padding: 10px 16px 10px 10px; border: 1px solid #10120f1f; border-radius: 16px; color: var(--box-ink); transition: border-color .3s, background-color .3s; }
.imb-launch:hover { border-color: #10120f3d; background-color: #10120f05; }
.imb-launch img { width: 38px; height: 38px; flex: none; border-radius: 9px; }
.imb-launch-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; line-height: 1.3; }
.imb-launch-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.imb-launch-when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--sky-ink); }
.imb-launch-when::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: imb-beat 2.4s ease-in-out infinite; }
@keyframes imb-beat { 50% { opacity: .3; } }
.imb-launch-desc { font-size: 13px; color: var(--fg-2); }
.imb-launch-arrow { flex: none; color: var(--fg-3); transition: transform .6s var(--ease), color .3s; }
.imb-launch:hover .imb-launch-arrow { transform: translate(2px, -2px); color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .imb-launch-when::before { animation: none; } }
@media (max-width: 400px) { .imb-launch { gap: 10px; padding-right: 12px; } .imb-launch img { width: 34px; height: 34px; border-radius: 8px; } .imb-launch-arrow { display: none; } }

/* Home headline with the word wheel (after superlogical.com). Always two
   lines: the size follows the box so the longest word still fits. */
.imb-hero { --step: 55ms; --pick: var(--sky-ink); --pick-dim: #0a78c980; font-size: min(46px, 100cqi / 13.9); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; }
.imb-line { display: block; white-space: nowrap; }
.imb-hero .imb-slot { opacity: 0; transition: opacity .9s var(--calm) .55s, width .8s var(--ease); }
.imb-hero.in .imb-slot { opacity: 1; }
.imb-slot { position: relative; display: inline-block; height: 1.1em; white-space: nowrap; vertical-align: top; transition: width .8s var(--ease); }
.imb-sizer { position: absolute; visibility: hidden; white-space: nowrap; }
.imb-selected { position: absolute; left: 0; top: 0; white-space: nowrap; padding-right: 2px; color: var(--pick, #fff); transition: opacity .35s; }
.imb-slot.spinning .imb-selected { opacity: 0; }
.imb-wheel { --r: 4.966em; --half: 5.164em; position: absolute; left: 0; top: calc(50% - var(--half)); height: calc(2 * var(--half)); width: 16em; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }
.imb-slot.spinning .imb-wheel { -webkit-mask-image: linear-gradient(to bottom, transparent calc(50% - .5em), #000 calc(50% - .1em), #000 calc(50% + .5em), transparent calc(50% + 1.4em)); mask-image: linear-gradient(to bottom, transparent calc(50% - .5em), #000 calc(50% - .1em), #000 calc(50% + .5em), transparent calc(50% + 1.4em)); }
.imb-stage { position: absolute; inset: 0; perspective: calc(var(--r) * 6); perspective-origin: 30% 50%; }
.imb-drum { position: absolute; inset: 0; transform-style: preserve-3d; }
.imb-wheel-row { position: absolute; left: 0; top: 50%; height: 1.1em; margin-top: -.55em; white-space: nowrap; color: var(--pick-dim, #ffffffa6); backface-visibility: hidden; transform-origin: 0 50%; }

/* ═══ The page (right column) ════════════════════════════════════════════ */
.imb-main { min-width: 0; padding: 2rem 1.5rem 1.5rem; background: var(--paper); }
@media (min-width: 640px) { .imb-main { padding: 2.5rem 2.5rem 2rem; } }
.imb-main .canvas { padding-left: 0 !important; padding-right: 0 !important; }
.imb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 1.75rem; }
.imb-crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: #ececea33; text-underline-offset: 3px; }
.imb-crumbs a:hover { text-decoration-color: currentColor; }
.imb-empty { grid-column: 1 / -1; font-size: 19px; }
.imb-empty p + p { margin-top: .4rem; }
.imb-empty a { color: var(--ink-2); }
.imb-label { color: var(--muted); margin: 0 0 1rem; font-size: 19px; }
.imb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.imb-head .imb-label { margin: 0; }
.imb-head a { font-size: 14px; color: var(--muted-2); transition: color .3s; }
.imb-head a:hover { color: var(--ink); }

/* Home (right): one screen tall on desktop, so the footer is the next thing */
.imb-home { --home-gap: clamp(2.25rem, 6vh, 4rem); display: flex; flex-direction: column; gap: var(--home-gap); font-size: 19px; line-height: 1.35; }
/* Phones and tablets: the home and the footer read in the same centred
   column as the articles */
@media (max-width: 1023px) {
  .imb-home > :not(.imb-main-shade) { width: 100%; max-width: 680px; margin-inline: auto; }
  .imb-foot-inner { max-width: calc(680px + 2 * clamp(1.5rem, 6cqw, 6rem)); }
}
@media (min-width: 1024px) { .imb-home { min-height: 100vh; justify-content: space-between; padding-top: calc(12px + 1.75rem - 7px); padding-bottom: calc(12px + 2rem); } }
.imb-me { display: flex; align-items: center; gap: 14px; }
.imb-me-photo { width: 52px; height: 52px; flex: none; overflow: hidden; border-radius: 50%; background: var(--rule); }
.imb-me-photo img { width: 100%; height: 100%; object-fit: cover; }
.imb-me-who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.imb-me-who b { font-size: 17px; font-weight: 550; letter-spacing: -.02em; white-space: nowrap; }
.imb-me-who span { font-size: 14px; color: var(--muted-2); }
.imb-me-x { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--rule); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .3s, border-color .3s; }
.imb-me-x:hover { background: #ececea0f; border-color: #ececea47; }
@media (max-width: 380px) { .imb-me { gap: 10px !important; } .imb-me-photo { width: 40px !important; height: 40px !important; } .imb-me-who b { font-size: 15px !important; } .imb-me-x { padding: 0 10px !important; font-size: 12px !important; gap: 5px !important; } }
@media (max-width: 420px) { .imb-me { gap: 12px; } .imb-me-photo { width: 44px; height: 44px; } .imb-me-who b { font-size: 16px; } .imb-me-x { height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; } }
.imb-intro-text { --step: 9ms; display: flex; flex-direction: column; gap: 1em; font-size: clamp(19px, min(1.62vw, 2.75vh), 25px); line-height: 1.3; letter-spacing: -.018em; max-width: 31em; text-wrap: pretty; }
.imb-intro-text p + p { color: var(--ink-2); }
.imb-now { display: flex; flex-direction: column; gap: 1.5rem; }
.imb-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.imb-links li + li { border-left: 1px solid var(--rule); }
.imb-links a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1rem 1rem .25rem 0; transition: color .3s; }
.imb-links li + li a { padding-left: 1.1rem; }
.imb-links a > span { font-size: 13px; line-height: 1.35; color: var(--muted-2); transition: color .3s; }
.imb-links a:hover > span { color: var(--ink-2); }
.imb-links b { font-size: 17px; font-weight: 550; letter-spacing: -.02em; }
@media (max-width: 520px) { .imb-links a > span { font-size: 12px; } .imb-links li + li a { padding-left: .8rem; } .imb-links a { padding-right: .6rem; } }

/* Articles: the page on the right, next to the box with the title */
.imb-main .canvas { --gap: 0px; --main: min(680px, 100%); }
.imb-read .imb-crumbs { margin-bottom: 2.25rem; }
/* No footer on projects and articles: room under "Keep reading" on phones */
@media (max-width: 1023px) { .imb-read .imb-main { padding-bottom: 3.5rem; } }
.imb-page-pic { margin: 0 0 2.5rem; }
.imb-page-pic img { width: 100%; border-radius: 16px; }
.imb-related { margin-top: 5rem; }
.imb-related-in { grid-column: wide; padding-top: 2.5rem; border-top: 1px solid var(--rule); }

/* Split's cards and article content, in superlogical's type, on dark */
.imb-card-body { display: flex; flex-direction: column; gap: .7rem; }
.imb-card-title { margin: .1rem 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
.imb-card-title a { display: flex; justify-content: space-between; gap: 1rem; }
.imb-card-title a > span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .6s var(--ease); }
.imb-card:hover .imb-card-title a > span:first-child { background-size: 100% 1.5px; }
.imb-card-arrow { flex: none; font-weight: 400; color: var(--muted-2); transition: transform .6s var(--ease), color .3s; }
.imb-card:hover .imb-card-arrow { transform: translate(3px, -3px); color: var(--ink); }
.imb-card-excerpt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.imb-card-meta { display: flex; align-items: center; gap: .55rem; margin: .1rem 0 0; font-size: 13px; color: var(--muted-2); }
.imb-grid .trex_post img { border-radius: 16px; }
.trex_post .aspect-3\/2 { outline: 1px solid var(--rule-2); outline-offset: -1px; border-radius: 16px; }
.split-tag, .split-tag-circle { background-color: #ececea0f !important; border-color: var(--rule) !important; color: var(--muted-2) !important; }
.split-tag-featured { background-color: #08a9fc1f !important; border-color: #08a9fc47 !important; color: #5cc6ff !important; }
/* Articles: calm reading type. Headings in the page's ink, body text a
   step softer, inline code as small chips, code blocks with their language
   and a copy button (site.js), pictures and diagrams with soft corners */
.imb-article { font-size: 18px; }
.imb-article h1, .imb-article h2 { margin: 2.4em 0 .1em; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.imb-article h3 { margin: 2em 0 .1em; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.imb-article h1 + *, .imb-article h2 + *, .imb-article h3 + * { margin-top: .6em; }
.imb-article p, .imb-article li { color: var(--ink-2); line-height: 1.72; }
.imb-article li + li { margin-top: .35em; }
.imb-article ul > li::marker { color: var(--muted); }
.imb-article ol > li::marker { color: var(--muted-2); font-family: var(--mono); font-size: .8em; }
.imb-article strong { color: var(--ink); font-weight: 600; }
.imb-article em { color: var(--ink); }
.imb-article mark { padding: .05em .25em; border-radius: 4px; background: #d6f87e29; color: var(--ink); }
.imb-article :not(pre) > code { padding: .14em .42em; border: 1px solid #ececea1a; border-radius: 6px; background: #ececea0f; color: var(--ink); font-size: .84em; font-weight: 450; }
.imb-article :not(pre) > code::before, .imb-article :not(pre) > code::after { content: none; }
.imb-article hr { display: block; height: 0; margin: 3.2em 0; border: 0; border-top: 1px solid var(--rule); }
.imb-article hr::after { content: none; }
.imb-article .kg-image-card img, .imb-article .kg-gallery-image img, .imb-article p > img { border-radius: 16px; }
.imb-article .kg-image-card { margin: 2.4em 0; }
.imb-article figcaption { margin-top: .9em; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.imb-article blockquote:not([class]) { margin: 2em 0; padding: .1em 0 .1em 1.2em; border-left: 2px solid var(--sky); color: var(--ink); }
.imb-article blockquote:not([class]) p { color: var(--ink); }
.imb-article .kg-callout-card { margin: 2em 0; padding: 1.1em 1.3em; border: 1px solid var(--rule); border-radius: 14px; background: var(--card) !important; }
.imb-article .kg-callout-text { font-size: 17px; color: var(--ink-2); }
.imb-article table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 15px; }
.imb-article th, .imb-article td { padding: .6em .8em; border-bottom: 1px solid var(--rule); text-align: left; }
.imb-article th { color: var(--ink); font-weight: 600; }
.imb-code { position: relative; margin: 1.9em 0; }
.imb-code > pre { margin: 0 !important; }
.imb-article pre { padding: 2.6em 1.4em 1.3em !important; font-size: 14.5px !important; line-height: 1.65 !important; }
.imb-code-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: .75em 1.1em 0 1.4em; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.imb-code-bar button { pointer-events: auto; padding: 3px 8px; border: 1px solid var(--rule); border-radius: 6px; background: none; color: var(--muted-2); font: inherit; letter-spacing: .06em; cursor: pointer; transition: color .3s, border-color .3s; }
.imb-code-bar button:hover { color: var(--ink); border-color: #ececea52; }
@media (max-width: 640px) {
  .imb-article { font-size: 17px; }
  .imb-article h1, .imb-article h2 { font-size: 24px; }
  .imb-article h3 { font-size: 19px; }
  .imb-article pre { font-size: 13.5px !important; padding-left: 1.1em !important; padding-right: 1.1em !important; }
  .imb-code-bar { padding-left: 1.1em; padding-right: .8em; }
}
.post-content a { text-decoration-color: #ececea40; text-underline-offset: 3px; }
.post-content a:hover { text-decoration-color: currentColor; }
.kg-btn { border-radius: 99px !important; padding: 0 22px !important; height: 48px !important; font-weight: 600 !important; background: var(--ink) !important; color: var(--paper) !important; }
.imb-lost p { font-size: 20px; }
.imb-lost-links { display: flex; gap: 18px; margin-top: 1rem; }
.imb-lost-links a { text-decoration: underline; text-underline-offset: 4px; }

/* Code: Prism's light theme comes from Ghost's code injection; dark it here */
/* Long lines scroll inside the block instead of widening the page */
.imb-article > * { min-width: 0; }
.post-content pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.imb-article { overflow-wrap: break-word; }
.imb-article :not(pre) > code { overflow-wrap: anywhere; }
.post-content pre[class*="language-"], .post-content :not(pre) > code[class*="language-"] { background: var(--card) !important; border: 1px solid var(--rule) !important; border-radius: 12px; }
.post-content pre[class*="language-"] code, .post-content code[class*="language-"] { color: #e6e6e3; text-shadow: none; background: none; }
.post-content .token.comment, .post-content .token.prolog, .post-content .token.doctype, .post-content .token.cdata { color: #7d8679; }
.post-content .token.punctuation { color: #a9b0a5; }
.post-content .token.property, .post-content .token.tag, .post-content .token.boolean, .post-content .token.number, .post-content .token.constant, .post-content .token.symbol, .post-content .token.deleted { color: #ffa07a; }
.post-content .token.selector, .post-content .token.attr-name, .post-content .token.string, .post-content .token.char, .post-content .token.builtin, .post-content .token.inserted { color: #b5e48c; }
.post-content .token.operator, .post-content .token.entity, .post-content .token.url { color: #e6e6e3; background: none; }
.post-content .token.atrule, .post-content .token.attr-value, .post-content .token.keyword { color: #c9a7ff; }
.post-content .token.function, .post-content .token.class-name { color: #8ecbff; }
.post-content .token.regex, .post-content .token.important, .post-content .token.variable { color: #ffd479; }

/* Share and comments under an article */
.imb-share-label { margin-bottom: .6rem; font-size: 14px; color: var(--muted-2); }
.imb-share-btn { background: #ececea0d; color: var(--ink); transition: background .3s; }
.imb-share-btn:hover { background: #ececea1f; }
.imb-comments { margin-top: 1rem; color-scheme: light; }

/* GitHub, compact: the year of contributions and a line of numbers */
.imb-gh { max-width: none !important; }
.imb-gh-fallback { color: var(--ink-2); }
.imb-gh-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; white-space: nowrap; margin-bottom: .9rem; font-size: 15px; color: var(--muted-2); }
.imb-gh-top a { color: var(--ink); font-weight: 550; letter-spacing: -.01em; }
.imb-gh-top b { color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }
.imb-gh-graph { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.imb-gh-graph i { aspect-ratio: 1; border-radius: 2px; background: var(--rule-2); opacity: 0; transition: opacity .7s var(--calm); transition-delay: calc(var(--w) * 12ms); }
.imb-gh.in .imb-gh-graph i { opacity: 1; }
.imb-gh-graph i[data-l="1"], .imb-gh-legend i[data-l="1"] { background: #0c3a63; }
.imb-gh-graph i[data-l="2"], .imb-gh-legend i[data-l="2"] { background: #0a5d9c; }
.imb-gh-graph i[data-l="3"], .imb-gh-legend i[data-l="3"] { background: #0989d8; }
.imb-gh-graph i[data-l="4"], .imb-gh-legend i[data-l="4"] { background: #5cc6ff; }
.imb-gh-legend { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0; }
.imb-gh-legend > span:last-child { display: flex; align-items: center; gap: 3px; flex: none; }
.imb-gh-facts { display: flex; flex-wrap: wrap; gap: 0 .6em; }
.imb-gh-facts span + span::before { content: "·"; margin-right: .6em; }
.imb-gh-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--rule-2); display: inline-block; }
@media (max-width: 520px) { .imb-gh-legend > span:last-child, .imb-gh-span { display: none; } .imb-gh-top { font-size: 14px; } .imb-gh-graph { gap: 2px; } }

/* Email form (in the footer), after superlogical */
.imb-email { position: relative; display: flex; align-items: center; max-width: 28rem; border-bottom: 1px solid var(--rule); transition: border-color .3s; margin: 0 0 1rem; }
.imb-email:focus-within { border-color: var(--ink); }
.imb-email input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: .55rem 0; font: inherit; color: inherit; }
.imb-email input::placeholder { color: var(--muted); }
.imb-email button { padding: .5rem 0 .5rem .75rem; color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .3s; }
.imb-email:focus-within button, .imb-email button:hover { color: var(--ink); }
.imb-email p { position: absolute; left: 0; top: calc(100% + .5rem); margin: 0; font-size: 14px; color: var(--muted-2); }
.imb-email-ok, .imb-email-err { display: none; }
.imb-email.success .imb-email-hint, .imb-email.error .imb-email-hint { display: none; }
.imb-email.success .imb-email-ok, .imb-email.error .imb-email-err { display: block; }
.imb-email.loading { opacity: .6; }

/* Load more (Split's infinite scroll) */
.infinite-scroll-action { margin-top: 3rem; }
.infinite-scroll-button { height: 44px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--rule); background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); }
.infinite-scroll-button:hover { background: #ececea0d; }

/* ═══ Footer, after natura.inc: the page fades into a sky, the sky ends in
       "Glacial Mountains" with the wordmark in the clouds, and the links sit
       at the bottom, on the sea of clouds below the peaks ═══════════════════ */
.imb-foot { --art: clamp(380px, 54cqw, 100svh); --cloud: #c7f0fd; --deep: #0b2d4d; position: relative; z-index: 30; margin-top: 6rem; container-type: inline-size; overflow: hidden; background: var(--cloud); color: var(--deep); }
.imb-foot-sky { height: clamp(10rem, 22cqw, 22rem); background: linear-gradient(to bottom, var(--paper) 0, #0d1a26 16%, #0c3156 40%, #0a5d9c 66%, #0989d8 88%, var(--sky) 100%); }
.home-template .imb-foot { margin-top: 0; }

.imb-foot-land { position: relative; height: calc(var(--art) + 6cqw); background: var(--sky); pointer-events: none; }
.imb-foot-land canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--art); image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.imb-foot-back { transform: translateY(calc(var(--rise, 0) * 40px)); }
.imb-foot-front { transform: translateY(calc(var(--rise, 0) * 14px)); }
.imb-giant {
  position: absolute; left: 0; right: 0; bottom: calc(var(--art) * .765); margin: 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: "Poppins", var(--sans); font-weight: 600; font-size: 15cqw; line-height: .78; letter-spacing: -.05em; color: #fff;
  text-shadow: 0 .022em 0 #d4ecfb, 0 .044em 0 #a9d6f6, 0 .07em .06em #0a5d9c40;
  transform: translateY(calc(var(--rise, 0) * 90px));
}
.imb-giant .ch { display: inline-block; opacity: 0; transform: translateY(35%); transition: opacity 1.1s var(--calm), transform 1.4s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.imb-foot.in .imb-giant .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .imb-giant .ch { opacity: 1; transform: none; transition: none; } }

/* The links, on the clouds: the band starts over the lowest clouds and
   carries on in their colour */
.imb-foot-ground { position: relative; z-index: 3; margin-top: calc(var(--art) * -.13); padding-top: calc(var(--art) * .13); background: linear-gradient(to bottom, #c7f0fd00 0, var(--cloud) calc(var(--art) * .1)); }
.imb-foot-inner { padding: 0 clamp(1.5rem, 6cqw, 6rem); max-width: 92rem; margin: 0 auto; }
.imb-foot-top { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@container (min-width: 900px) { .imb-foot-top { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.imb-foot-big { margin: 0 0 1.75rem; font-size: clamp(30px, 3.6cqw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; color: var(--deep); }
.imb-email.is-cloud { border-color: #0b2d4d40; color: var(--deep); }
.imb-email.is-cloud:focus-within { border-color: var(--deep); }
.imb-email.is-cloud input::placeholder, .imb-email.is-cloud button, .imb-email.is-cloud p { color: #0b2d4d99; }
.imb-email.is-cloud:focus-within button, .imb-email.is-cloud button:hover { color: var(--deep); }
.imb-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; font-size: 15px; }
.imb-foot-cols > div { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.imb-foot-cols h4 { margin: 0 0 .5rem; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #0b2d4d8c; }
.imb-foot-cols a, .imb-foot-cols span { color: #0b2d4dd9; }
.imb-foot-cols a { transition: color .3s; }
.imb-foot-cols a:hover { color: var(--deep); }
.imb-foot-cols span { font-variant-numeric: tabular-nums; }
.imb-out { font-size: .8em; opacity: .6; }
.imb-foot-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: clamp(3rem, 6cqw, 5rem); padding: 1.4rem 0 1.6rem; border-top: 1px solid #0b2d4d26; font-size: 13px; color: #0b2d4dcc; }
.imb-foot-legal > button { margin-left: auto; }
.imb-foot-legal a { color: inherit; text-decoration: underline; text-decoration-color: #0b2d4d59; text-underline-offset: 3px; }
.imb-foot-legal a:hover, .imb-foot-legal button:hover { color: var(--deep); }
.imb-foot-legal button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.imb-foot ::selection { background: var(--deep); color: #fff; }
@container (max-width: 640px) {
  .imb-foot-cols { grid-template-columns: 1fr 1fr; }
  .imb-foot-legal > button { margin-left: 0; }
  .imb-giant { font-size: 14cqw; }
}

/* Lists load as you scroll: no "Load more" button, just a quiet dot while the next cards come */
.infinite-scroll-action, .infinite-scroll-status { display: none !important; }
.imb-list-end { height: 1px; margin-top: 2rem; }
.imb-list-end.is-loading::after { content: ""; display: block; width: 6px; height: 6px; margin: 0 auto; border-radius: 50%; background: var(--muted); animation: imb-beat 1.2s ease-in-out infinite; }

/* Phones and tablets: the home's intro and the footer are centred */
@media (max-width: 1023px) {
  .imb-intro-text { text-align: center; text-wrap: balance; }
  .imb-me { margin-top: 1rem; }
  .imb-foot-inner { text-align: center; }
  .imb-foot-top { justify-items: center; }
  .imb-email { width: 100%; margin-left: auto; margin-right: auto; }
  .imb-email input { text-align: center; }
  .imb-foot-cols { width: 100%; max-width: 28rem; }
  .imb-foot-cols > div { align-items: center; }
  .imb-foot-cols > div:last-child { grid-column: 1 / -1; }
  .imb-foot-legal { justify-content: center; }
  .imb-foot-legal > button { margin-left: 0; }
}
