/* =========================================================
   nurisl.am
   Plain CSS, no framework. One narrow column, hairlines instead
   of boxes, and a glow of colour at the top of the page.

   Motion rules for this file:
   - animate only opacity and transform
   - nothing waits on anything else; the page is readable at once
   - no masks or filters on anything that moves
   ========================================================= */

/* ---------- fonts ---------- */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2?v=19f9c925") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2?v=684ad5b5") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2?v=5a51946d") format("woff2"); font-weight: 400; font-style: italic; font-display: swap }
/* Arial stretched to Geist's width. If Geist is a moment late, the text
   already takes up the same room, so nothing re-wraps when it arrives. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 103.4% }

/* ---------- tokens ----------
   The page follows the device: dark values here, light values just below.
   The toggle sets data-theme on <html>, which wins over the device setting. */
:root {
  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #08090C;
  --raise: #111318;
  --fg: #F3F4F6;
  --muted: #A2A8B6;
  --faint: #7C8292;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  /* the glow, all in the green family: lime, emerald, teal, sea */
  --a1: #A6F08A;
  --a2: #34D399;
  --a3: #12B5A0;
  --a4: #1E9FC2;
  /* green that is readable as text on this background */
  --ink-accent: #5FE3AC;
  --rainbow: linear-gradient(90deg, var(--a1), var(--a2), var(--a3), var(--a4));
  --glow: .52;
  --grid: rgba(255, 255, 255, .06);
  --bar-bg: rgba(8, 9, 12, .9);
  color-scheme: dark;

  --pad: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --bar: 68px;
  --gap: clamp(72px, 11vw, 150px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F7F9; --raise: #FFFFFF; --fg: #0B0C10; --muted: #555B6A; --faint: #6B7180;
    --line: rgba(11, 12, 16, .1); --line-2: rgba(11, 12, 16, .2);
    --glow: .55; --grid: rgba(11, 12, 16, .07); --bar-bg: rgba(246, 247, 249, .92); --ink-accent: #0A7F5A;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F7F9; --raise: #FFFFFF; --fg: #0B0C10; --muted: #555B6A; --faint: #6B7180;
  --line: rgba(11, 12, 16, .1); --line-2: rgba(11, 12, 16, .2);
  --glow: .55; --grid: rgba(11, 12, 16, .07); --bar-bg: rgba(246, 247, 249, .92); --ink-accent: #0A7F5A;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px) }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer }
svg { display: block }
h1, h2, h3, p, ul { margin: 0 }
ul { list-style: none; padding: 0 }
::selection { background: color-mix(in srgb, var(--a2) 38%, transparent) }
:focus-visible { outline: 2px solid var(--a3); outline-offset: 4px; border-radius: 6px }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)) }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
/* "Skip to content" is the first thing the Tab key reaches, and shows itself when it is reached */
a.vh:focus { position: fixed; z-index: 30; top: 12px; left: 12px; width: auto; height: auto; overflow: visible; clip-path: none; padding: 11px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14.5px; font-weight: 500 }
main:focus { outline: none }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint) }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; line-height: 1 }

/* ---------- small parts ---------- */
.arr { display: inline-block; width: .7em; height: .7em; flex: none; transition: transform .3s var(--ease) }
.arr svg { width: 100%; height: 100% }
a:hover .arr { transform: translate(.14em, -.14em) }
.arr.down { transform: rotate(135deg) }
a:hover .arr.down { transform: rotate(135deg) translate(.14em, -.14em) }
.arr.fwd { transform: rotate(45deg) }
a:hover .arr.fwd, button:hover:not(:disabled) .arr.fwd { transform: rotate(45deg) translate(.14em, -.14em) }
.arr.back { transform: rotate(-135deg) }
button:hover:not(:disabled) .arr.back { transform: rotate(-135deg) translate(.14em, -.14em) }
a:hover .arr.back { transform: rotate(-135deg) translate(.14em, -.14em) }

.link { position: relative; display: inline-flex; align-items: center; gap: .45em; font-weight: 500 }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; opacity: .35; transition: opacity .2s }
.link:hover::after { opacity: 1 }

.btn { display: inline-flex; align-items: center; gap: .55em; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .2s }
.btn:hover { transform: translateY(-2px) }
.btn:active { transform: none }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2) }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--fg) }

/* ---------- reveals ----------
   .reveal  fades up once, the first time it is seen
   .split   its words rise out of a mask, one after another
   .draw    a hairline that draws itself from the left
   All three are switched on by script.js adding .in. They are hidden beforehand only
   under .ready, which script.js itself puts on <html> once it is running. So without
   JavaScript, or if that script fails to arrive, everything is simply visible. */
.ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--d, 0s) }
.ready .reveal.in { opacity: 1; transform: none }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .09em .2em; margin: -.08em -.09em -.2em }
.w > span { display: inline-block }
.ready .split .w > span { transform: translateY(118%); transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 45ms) }
.ready .split.in .w > span { transform: none }

.draw { position: relative }
.draw::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left }
.ready .draw::before { transform: scaleX(0); transition: transform .9s var(--ease) }
.ready .draw.in::before { transform: none }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background-color .25s, box-shadow .25s }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--bar) }
.top.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line) }
.mark { font-weight: 600; font-size: 17px; letter-spacing: -.03em }
.mark i { font-style: normal; color: var(--a2) }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 14.5px; font-weight: 500; color: var(--muted) }
.nav a { position: relative; transition: color .2s }
.nav a:hover, .nav a[aria-current] { color: var(--fg) }
/* a dot under the part of the site you are in */
.nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--a2) }
.theme { width: 36px; height: 36px; margin-left: -4px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s }
.theme:hover { box-shadow: inset 0 0 0 1px var(--fg) }
.theme svg { width: 16px; height: 16px }
.theme .moon { display: none }
html:not(.js) .theme { display: none }
:root[data-theme="light"] .theme .moon { display: block }
:root[data-theme="light"] .theme .sun { display: none }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme .moon { display: block }
  :root:not([data-theme="dark"]) .theme .sun { display: none }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--bar) + clamp(72px, 17vh, 190px)) 0 clamp(64px, 12vh, 130px) }
/* four soft discs of colour, drifting slowly */
.aurora { position: absolute; inset: 0; z-index: -3; pointer-events: none }
.aurora i { position: absolute; border-radius: 50%; opacity: var(--glow) }
.aurora i:nth-child(1) { width: 62vmax; height: 62vmax; right: -16vmax; top: -34vmax; background: radial-gradient(closest-side, var(--a3), transparent); animation: drift-a 22s ease-in-out infinite alternate }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; right: 14vmax; top: -30vmax; background: radial-gradient(closest-side, var(--a2), transparent); animation: drift-b 27s ease-in-out infinite alternate }
.aurora i:nth-child(3) { width: 40vmax; height: 40vmax; right: 34vmax; top: -24vmax; background: radial-gradient(closest-side, var(--a1), transparent); opacity: calc(var(--glow) * .8); animation: drift-c 31s ease-in-out infinite alternate }
.aurora i:nth-child(4) { width: 50vmax; height: 50vmax; right: -24vmax; top: -14vmax; background: radial-gradient(closest-side, var(--a4), transparent); opacity: calc(var(--glow) * .85); animation: drift-b 25s ease-in-out infinite alternate-reverse }
@keyframes drift-a { to { transform: translate3d(-9vmax, 6vmax, 0) scale(1.1) } }
@keyframes drift-b { to { transform: translate3d(8vmax, 8vmax, 0) scale(.9) } }
@keyframes drift-c { to { transform: translate3d(11vmax, 5vmax, 0) scale(1.14) } }
/* a fine grid near the glow; it does not move, so a mask here costs nothing */
.hero-grid { position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; -webkit-mask-image: radial-gradient(75% 80% at 78% 0%, #000 10%, transparent 72%); mask-image: radial-gradient(75% 80% at 78% 0%, #000 10%, transparent 72%) }
/* the glow fades into the page: a plain gradient laid over it, not a mask */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--bg) 85%) }
/* motes: a few points of light rising slowly */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden }
.motes i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--fg); opacity: 0; animation: mote var(--t) ease-in-out var(--w) infinite }
@keyframes mote { 0% { opacity: 0; transform: translate3d(0, 0, 0) } 25%, 75% { opacity: var(--o) } 100% { opacity: 0; transform: translate3d(var(--dx), -90px, 0) } }
/* the glow and the motes rest while they are off screen (script.js adds .off), on every page */
.aurora.off i, .motes.off i { animation-play-state: paused }

.hero .mono { display: flex; align-items: center; gap: 12px }
.hero .mono::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a2) }
.name { margin-top: clamp(18px, 2.6vw, 30px); font-weight: 500; font-size: clamp(60px, 13vw, 172px); line-height: .92; letter-spacing: -.06em; white-space: nowrap }
.name .ln { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .04em .1em 0; margin: -.06em 0 -.1em }
.name .ch { display: inline-block; animation: letter .8s var(--ease) both; animation-delay: calc(var(--i) * 30ms) }
@keyframes letter { from { transform: translateY(112%) } }
.name .dot { display: inline-block; width: .13em; height: .13em; margin-left: .01em; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2) 48%, var(--a3)); animation: pop .6s cubic-bezier(.3, 1.7, .4, 1) .45s both }
@keyframes pop { from { opacity: 0; transform: scale(0) } }
.lead { margin-top: clamp(24px, 3.4vw, 44px); max-width: 27ch; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.3; letter-spacing: -.02em; color: var(--muted) }
.lead .it { color: var(--fg) }
.actions { margin-top: clamp(28px, 3.6vw, 46px); display: flex; flex-wrap: wrap; gap: 10px }
/* the opening: three quick steps, done in under a second */
.rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms) }
@keyframes rise { from { opacity: 0; transform: translateY(16px) } }

/* ---------- ticker: the three topics, passing by ----------
   Two identical groups side by side; the track slides left by exactly one
   group and starts again, so the loop has no visible seam. It runs only while it
   is on screen (script.js adds .play). */
.ticker { overflow: hidden; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite }
.ticker-group { display: flex; align-items: center; justify-content: space-around; gap: 34px; min-width: 100vw; padding: 0 17px; flex-shrink: 0 }
.ticker-group span { white-space: nowrap }
.ticker-group svg { flex: none; width: 10px; height: 10px; color: var(--a2) }
.ticker-group svg:nth-of-type(3n + 2) { color: var(--a3) }
.ticker-group svg:nth-of-type(3n) { color: var(--a4) }
@keyframes ticker { to { transform: translateX(-50%) } }
.ready .ticker:not(.play) .ticker-track { animation-play-state: paused }

/* ---------- sections: a label on the left, content on the right ---------- */
.sec { padding-bottom: var(--gap) }
.ticker + .sec { padding-top: var(--gap) }
.sec-grid { display: grid; gap: 26px clamp(32px, 6vw, 96px); padding-top: clamp(24px, 3vw, 36px) }
.sec-body h2 { font-weight: 500; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance }
.sec-label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 10px }
.sec-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--a2) }
.sec-note { margin-top: 12px; color: var(--muted); font-size: 15px }

/* ---------- exploring ---------- */
.xs { margin-top: clamp(32px, 4.5vw, 60px); display: grid; gap: 0 clamp(24px, 3vw, 44px) }
.x a { display: block; padding-bottom: 30px }
.x h3 { font-weight: 500; font-size: 21px; letter-spacing: -.025em; line-height: 1.2 }
.x p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 32ch }
.x-more { margin-top: 20px; display: inline-flex; align-items: center; gap: .45em; font-size: 14.5px; font-weight: 500; color: var(--faint); transition: color .2s }
.x a:hover .x-more { color: var(--fg) }

/* ---------- the three small scenes ----------
   Each is a few shapes on one shared 7 second timeline. They run only while
   the card is on screen (script.js adds .play), and they only move and fade. */
.vig { position: relative; aspect-ratio: 16 / 10; margin-bottom: 24px; border-radius: 16px; overflow: hidden; container-type: size; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .2s }
.x a:hover .vig { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2) }
.vig::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; right: -40%; top: -70%; border-radius: 50%; background: radial-gradient(closest-side, var(--tint, var(--a3)), transparent); opacity: .3 }
.vig * { position: absolute; animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: var(--ease); animation-fill-mode: both }
.ready .x:not(.play) .vig * { animation-play-state: paused }

/* 1. AI: a prompt is typed, a spark appears, an answer writes itself */
.v-ai { --tint: var(--a2) }
.v-prompt { left: 9%; top: 15%; width: 58%; height: 17%; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); animation-name: v-show }
.v-prompt b { left: 9%; top: 50%; width: 62%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--muted); transform-origin: left; animation-name: ai-type }
.v-spark { right: 10%; top: 13%; width: 21cqh; height: 21cqh; color: var(--a1); animation-name: ai-spark }
.v-l { left: 9%; height: 4.5%; border-radius: 99px; background: var(--line-2); transform-origin: left }
.v-l.l1 { top: 46%; width: 78%; background: var(--rainbow); animation-name: ai-l1 }
.v-l.l2 { top: 60%; width: 62%; animation-name: ai-l2 }
.v-l.l3 { top: 74%; width: 40%; animation-name: ai-l3 }
@keyframes v-show { 0% { opacity: 0; transform: translateY(6px) } 7%, 90% { opacity: 1; transform: none } 97%, 100% { opacity: 0 } }
@keyframes ai-type { 0%, 6% { transform: scaleX(0); opacity: 1 } 24%, 90% { transform: none; opacity: 1 } 97%, 100% { transform: none; opacity: 0 } }
@keyframes ai-spark { 0%, 26% { opacity: 0; transform: scale(0) rotate(-120deg) } 33% { opacity: 1; transform: scale(1.25) rotate(0deg) } 38% { transform: scale(1) rotate(10deg) } 90% { opacity: 1; transform: scale(1) rotate(100deg) } 97%, 100% { opacity: 0; transform: scale(.6) rotate(120deg) } }
@keyframes ai-l1 { 0%, 34% { transform: scaleX(0); opacity: 1 } 47%, 90% { transform: none; opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes ai-l2 { 0%, 40% { transform: scaleX(0); opacity: 1 } 53%, 90% { transform: none; opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes ai-l3 { 0%, 46% { transform: scaleX(0); opacity: 1 } 59%, 90% { transform: none; opacity: 1 } 97%, 100% { opacity: 0 } }

/* 2. Web: a page assembles, the pointer arrives and presses the button */
.v-web { --tint: var(--a3) }
.v-bar { left: 0; right: 0; top: 0; height: 14%; box-shadow: inset 0 -1px 0 var(--line) }
.v-bar i { top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--line-2) }
.v-bar i:nth-child(1) { left: 5% } .v-bar i:nth-child(2) { left: calc(5% + 10px) } .v-bar i:nth-child(3) { left: calc(5% + 20px) }
.v-hero { left: 8%; top: 27%; width: 36%; height: 54%; border-radius: 10px; background: linear-gradient(140deg, var(--a2), var(--a3) 60%, var(--a4)); animation-name: web-pop }
.v-t { left: 52%; height: 4.5%; border-radius: 99px; background: var(--line-2); transform-origin: left }
.v-t.t1 { top: 31%; width: 38%; background: var(--muted); animation-name: web-t1 }
.v-t.t2 { top: 43%; width: 27%; animation-name: web-t2 }
.v-btn { left: 52%; top: 60%; width: 25%; height: 16%; border-radius: 99px; background: var(--fg); animation-name: web-btn }
.v-ring { left: 52%; top: 60%; width: 25%; height: 16%; border-radius: 99px; box-shadow: 0 0 0 1.5px var(--a3); animation-name: web-ring }
.v-cur { left: 86%; top: 84%; width: 15px; height: 15px; color: var(--fg); animation-name: web-cur }
@keyframes web-pop { 0%, 5% { opacity: 0; transform: scale(.88) } 15%, 90% { opacity: 1; transform: none } 97%, 100% { opacity: 0 } }
@keyframes web-t1 { 0%, 12% { transform: scaleX(0); opacity: 1 } 23%, 90% { transform: none; opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes web-t2 { 0%, 18% { transform: scaleX(0); opacity: 1 } 29%, 90% { transform: none; opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes web-btn { 0%, 24% { opacity: 0; transform: scale(.7) } 32% { opacity: 1; transform: scale(1.06) } 36%, 62% { opacity: 1; transform: none } 66% { transform: scale(.9) } 71%, 90% { opacity: 1; transform: none } 97%, 100% { opacity: 0 } }
@keyframes web-ring { 0%, 65% { opacity: 0; transform: none } 67% { opacity: .9 } 84%, 100% { opacity: 0; transform: scale(1.5, 1.9) } }
@keyframes web-cur { 0%, 36% { opacity: 0; transform: none } 42% { opacity: 1; transform: none } 60%, 63% { opacity: 1; transform: translate(-22cqw, -17cqh) } 66% { transform: translate(-22cqw, -17cqh) scale(.82) } 70%, 90% { opacity: 1; transform: translate(-22cqw, -17cqh) } 97%, 100% { opacity: 0; transform: translate(-22cqw, -17cqh) } }

/* 3. Automation: a signal runs through three steps and ends in a tick */
.v-auto { --tint: var(--a4) }
.v-line { left: 18%; right: 18%; top: 46%; height: 1.5px; background: var(--line-2) }
.v-line i { inset: 0; background: var(--rainbow); transform-origin: left; animation-name: au-fill; animation-timing-function: linear }
.v-n { top: 46%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--raise); box-shadow: inset 0 0 0 1.5px var(--line-2) }
.v-n.n1 { left: 18% } .v-n.n2 { left: 50% } .v-n.n3 { left: 82% }
.v-n i { inset: 0; border-radius: 50% }
.v-n.n1 i { background: var(--a1); animation-name: au-n1 }
.v-n.n2 i { background: var(--a2); animation-name: au-n2 }
.v-n.n3 i { background: var(--a3); animation-name: au-n3 }
.v-dot { left: 18%; top: 46%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--a2); animation-name: au-dot; animation-timing-function: linear }
.v-check { left: 82%; top: 70%; width: 16px; height: 16px; margin-left: -8px; color: var(--fg) }
.v-check path { stroke-dasharray: 1; animation-name: au-check }
@keyframes au-fill { 0%, 10% { transform: scaleX(0); opacity: 1 } 60%, 90% { transform: none; opacity: 1 } 97%, 100% { transform: none; opacity: 0 } }
@keyframes au-dot { 0%, 6% { opacity: 0; transform: none } 10% { opacity: 1; transform: none } 60% { opacity: 1; transform: translateX(64cqw) } 64%, 100% { opacity: 0; transform: translateX(64cqw) } }
@keyframes au-n1 { 0%, 8% { opacity: 0; transform: scale(.4) } 12% { opacity: 1; transform: scale(1.25) } 17%, 90% { opacity: 1; transform: none } 97%, 100% { opacity: 0 } }
@keyframes au-n2 { 0%, 33% { opacity: 0; transform: scale(.4) } 37% { opacity: 1; transform: scale(1.25) } 42%, 90% { opacity: 1; transform: none } 97%, 100% { opacity: 0 } }
@keyframes au-n3 { 0%, 58% { opacity: 0; transform: scale(.4) } 62% { opacity: 1; transform: scale(1.25) } 67%, 90% { opacity: 1; transform: none } 97%, 100% { opacity: 0 } }
@keyframes au-check { 0%, 64% { stroke-dashoffset: 1; opacity: 1 } 74%, 90% { stroke-dashoffset: 0; opacity: 1 } 97%, 100% { stroke-dashoffset: 0; opacity: 0 } }

/* ---------- journal ---------- */
.notes { margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line) }
.note a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: border-color .2s }
.note a:hover { border-bottom-color: var(--line-2) }
.note .title { font-weight: 500; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; line-height: 1.25; transition: transform .3s var(--ease) }
.note .meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--faint) }
.note .meta time { font-variant-numeric: tabular-nums }
.note[hidden] { display: none }
.more { margin-top: 26px; font-size: 15.5px; color: var(--muted) }
.more:hover { color: var(--fg) }
.note .arr { grid-row: 1 / span 2; grid-column: 2; width: 14px; height: 14px; color: var(--faint); transition: transform .3s var(--ease), color .2s }
.note a:hover .title { transform: translateX(8px) }
.note a:hover .arr { color: var(--fg) }

/* ---------- about ---------- */
.about-text { font-size: clamp(22px, 2.9vw, 36px); line-height: 1.28; letter-spacing: -.03em; font-weight: 400; max-width: 24em; text-wrap: pretty }
.about-text span { color: var(--muted) }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(40px, 6vw, 80px) }
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(20px, 2.6vw, 32px); padding: clamp(28px, 6vw, 84px); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line) }
/* two still glows in the corner of the card */
.card::before, .card::after { content: ""; position: absolute; z-index: -1; border-radius: 50% }
.card::before { width: 70vmax; height: 70vmax; right: -30vmax; top: -44vmax; background: radial-gradient(closest-side, var(--a3), transparent); opacity: calc(var(--glow) * .55) }
.card::after { width: 50vmax; height: 50vmax; right: 4vmax; top: -40vmax; background: radial-gradient(closest-side, var(--a2), transparent); opacity: calc(var(--glow) * .5) }
.card h2 { margin-top: 18px; font-weight: 500; font-size: clamp(32px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.045em; max-width: 13em; text-wrap: balance }
.card-row { margin-top: clamp(30px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px }

/* the address is assembled from pieces, see script.js */
.mail { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px 16px }
.mail-link { font-weight: 500; font-size: clamp(24px, 4vw, 46px); letter-spacing: -.035em; line-height: 1.1; padding-bottom: 4px; background: var(--rainbow) left bottom / 100% 1.5px no-repeat }
/* inside running text the address is the size of the text around it */
.prose .mail-link { font-size: 1.15em; letter-spacing: -.02em }
.mail-link .a::before { content: "\40" }
.mail-link .p::before { content: "\2e" }
.copy { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, box-shadow .2s }
.copy:hover, .copy.done { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg) }
html:not(.js) .copy { display: none }
.card-links { margin-left: auto; display: flex; gap: 22px; font-size: 15.5px; color: var(--muted) }
.card-links a:hover { color: var(--fg) }

/* ---------- footer ---------- */
.foot { padding: 26px 0 max(30px, env(safe-area-inset-bottom, 0px)) }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--faint) }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px }
.foot a, .motion { transition: color .2s }
.foot a:hover, .motion:hover { color: var(--fg) }
/* .show-s: a link the header has no room for on a phone, so the footer carries it there */
.show-s, html:not(.js) .motion { display: none }

/* ---------- a journal note ---------- */
.post { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--bar) + clamp(40px, 8vw, 96px)) 0 var(--gap) }
.post .aurora { height: 70vh; opacity: .55 }
.post .aurora::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(transparent, var(--bg) 85%) }
.post .wrap { max-width: calc(760px + var(--pad) * 2) }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px }
.crumbs a { transition: color .2s }
.crumbs a:hover { color: var(--fg) }
.crumbs a::after { content: "/"; margin-left: 10px; opacity: .5 }
.post-meta { margin-top: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 4px 18px }
.post-meta a { color: var(--ink-accent); transition: color .2s }
.post-meta a:hover { color: var(--fg) }
.post-title { margin-top: 14px; font-weight: 500; font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance }
.prose { margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); font-size: 18px; line-height: 1.7 }
.prose > * + * { margin-top: 1.15em }
.prose h2 { margin-top: 2em; font-weight: 500; font-size: 1.5em; letter-spacing: -.03em; line-height: 1.2 }
.prose h3 { margin-top: 1.7em; font-weight: 500; font-size: 1.2em; letter-spacing: -.02em }
.prose a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s }
.prose a:hover { text-decoration-color: currentColor }
.prose ul, .prose ol { padding-left: 1.2em; list-style: revert }
.prose li + li { margin-top: .4em }
.prose blockquote { margin: 1.7em 0; padding-left: 22px; border-left: 2px solid var(--a3); font-family: var(--serif); font-style: italic; font-size: 1.5em; line-height: 1.3 }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); padding: .15em .4em; border-radius: 6px }
.prose pre { padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: .82em; line-height: 1.6; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line) }
.prose pre code { background: none; box-shadow: none; padding: 0; font-size: 1em }
.prose img { max-width: 100%; height: auto; border-radius: 14px }
.flag { display: inline-flex; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2) }
.next { margin-top: var(--gap); padding-top: 24px; display: block; border-top: 1px solid var(--line) }
.next-title { margin-top: 8px; display: flex; align-items: baseline; gap: 14px; font-weight: 500; font-size: clamp(24px, 4vw, 40px); letter-spacing: -.04em; line-height: 1.1; transition: transform .3s var(--ease) }
.next:hover .next-title { transform: translateX(8px) }

/* ---------- the journal page ---------- */
.jr { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--bar) + clamp(48px, 10vw, 120px)) 0 var(--gap) }
.jr .aurora { height: 70vh; opacity: .6 }
.jr .aurora::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(transparent, var(--bg) 85%) }
.jr-title { margin-top: 16px; font-weight: 500; font-size: clamp(48px, 9vw, 112px); line-height: .95; letter-spacing: -.055em }
.jr-lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 30ch; font-size: clamp(19px, 2vw, 25px); line-height: 1.35; letter-spacing: -.02em; color: var(--muted) }
/* search */
.search { position: relative; margin-top: clamp(22px, 2.6vw, 32px); max-width: 560px; display: flex; align-items: center }
html:not(.js) .search, html:not(.js) .chips { display: none }
.search svg { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--faint); pointer-events: none }
.search input { width: 100%; height: 52px; padding: 0 92px 0 48px; border: 0; border-radius: 999px; background: var(--raise); color: var(--fg); font: inherit; font-size: 16.5px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; -webkit-appearance: none; appearance: none }
.search input::placeholder { color: var(--faint) }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--a2) }
.search kbd { position: absolute; right: 16px; padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none }
.search input:focus ~ kbd, .search-clear:not([hidden]) ~ kbd { display: none }
/* the keyboard hint means nothing on a touch screen */
@media (hover: none) { .search kbd { display: none } .search input { padding-right: 76px } }
.search-clear { position: absolute; right: 10px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .2s }
.search-clear:hover { color: var(--fg) }
.search-clear[hidden] { display: none }
.search-status { margin-top: 22px }
.search-status[hidden] { display: none }
.search-status button { margin-left: 10px; letter-spacing: inherit; text-transform: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: 3px }
/* where the words were found, under the title of a matching note */
.note .hit { grid-column: 1 / -1; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 70ch }
.note .hit mark { background: color-mix(in srgb, var(--a2) 30%, transparent); color: var(--fg); border-radius: 3px; padding: 0 2px }
.chips { margin-top: clamp(22px, 2.2vw, 28px); display: flex; flex-wrap: wrap; gap: 8px }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background-color .2s, box-shadow .2s }
.chip span { margin-left: 4px; font-family: var(--mono); font-size: 12px; opacity: .7 }
.chip:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg) }
.chip.on { background: var(--fg); color: var(--bg); box-shadow: none }
.jr-list { margin-top: clamp(36px, 5vw, 64px) }
.jr-year + .jr-year { margin-top: clamp(40px, 6vw, 72px) }
.jr-year[hidden] { display: none }
.jr-year h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--faint) }
.jr-year .notes { margin-top: 14px }
/* pages of notes: shown by journal.js only when there are more notes than fit on one page.
   Newer and Older at the ends, the page numbers between them. */
.pager { margin-top: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 16px }
.pager[hidden] { display: none }
.pager > button { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, opacity .2s }
.pager > button:hover { box-shadow: inset 0 0 0 1px var(--fg) }
.pager > button:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1px var(--line-2) }
.pages { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none }
.pages button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .2s, box-shadow .2s }
.pages button:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2) }
.pages button[aria-current] { background: var(--fg); color: var(--bg); box-shadow: none }
.pages .gap { width: 22px; text-align: center }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .xs { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .note a { grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; padding: 26px 0 }
  /* fixed columns, so the dates line up down the list */
  .note .meta { grid-column: auto; display: grid; grid-template-columns: 10.5em 14em; gap: 0 }
  .note .arr { grid-row: auto; grid-column: auto }
}
@media (min-width: 960px) {
  .sec-grid { grid-template-columns: 170px minmax(0, 1fr) }
  .sec-label { align-self: start; padding-top: .9em }
}
@media (max-width: 520px) {
  .nav .hide-s { display: none }
  .foot .show-s { display: inline }
  /* the page numbers get a row of their own above Newer and Older */
  .pager { flex-wrap: wrap }
  .pages { order: -1; width: 100%; justify-content: center; margin-bottom: 4px }
  /* the narrowest phones: keep a gap between the name and the menu */
  .top .wrap { gap: 14px }
  .nav { gap: clamp(9px, 3vw, 14px) }
  .card-links { margin-left: 0; width: 100% }
}

/* ---------- for people who ask their device for less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  .motes, .motion { display: none }
  .ready .reveal, .ready .split .w > span, .ready .draw::before { opacity: 1; transform: none }
}
/* ---------- Pause motion ----------
   The same again for a visitor who pressed "Pause motion" in the footer: theme.js and
   script.js put data-motion="off" on <html>. A rule written for reduced motion anywhere
   on the site needs a twin for [data-motion="off"]; tools/check.mjs looks for it. */
[data-motion="off"] { scroll-behavior: auto }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important }
[data-motion="off"] .motes { display: none }
[data-motion="off"] .reveal, [data-motion="off"] .split .w > span, [data-motion="off"] .draw::before { opacity: 1; transform: none }
