/* kurolight.dev v0.14: cream like the umbrella picture. The home page and every inner page share this file. */

:root {
  --bg: #f8efde;          /* the profile picture's background */
  --ink: #0f0f0f;
  --muted: #6b6458;
  --faint: #a39b8c;
  --line: rgba(15, 15, 15, 0.12);
  --hover: rgba(99, 102, 248, 0.07);
  --accent: #4f46e5;
  --rain: 99, 102, 248;
  --kuro-fill: var(--ink);   /* KURO is solid in light mode */
  --light-fill: var(--bg);   /* LIGHT is hollow */
  --grad: linear-gradient(90deg, #3478ff, #6366f8 50%, #a855f0);
  --gutter: clamp(20px, 5vw, 72px);
  --bar-h: 64px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="kuro"] {
  --bg: #000;
  --ink: #f8efde;
  --muted: #a09888;
  --faint: #6c665c;
  --line: rgba(248, 239, 222, 0.14);
  --hover: rgba(99, 102, 248, 0.12);
  --accent: #9a9bff;
  --rain: 140, 150, 255;
  --kuro-fill: var(--bg);    /* in kuro mode the words swap */
  --light-fill: var(--ink);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}
a { color: inherit; }
::selection { background: #6366f8; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-200%); z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid #6366f8; outline-offset: 3px; border-radius: 4px; }
svg use { pointer-events: none; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.bar.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px/1 var(--mono); letter-spacing: .02em; justify-self: start; }
.mark-icon { width: 26px; height: 23px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.mark:hover .mark-icon { transform: rotate(-14deg); }
.bar-nav { display: flex; gap: 4px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.bar.show-nav .bar-nav { opacity: 1; transform: none; pointer-events: auto; }
.bar-nav a { position: relative; padding: 8px 14px; text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.bar-nav a:hover, .bar-nav a[aria-current="true"], .bar-nav a[aria-current="page"] { color: var(--ink); }
.bar-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.bar-nav a[aria-current="true"]::after, .bar-nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.clock { font: 400 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.theme { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), background-color .2s; }
.theme:hover { background: var(--hover); }
.theme svg { width: 20px; height: 20px; }
:root[data-theme="kuro"] .theme { transform: rotate(180deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0 clamp(24px, 4vw, 64px);
  padding: calc(var(--bar-h) + 24px) var(--gutter) 72px;
  overflow: hidden;
}
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0 38%, rgba(0, 0, 0, .22) 68%);
  mask-image: linear-gradient(90deg, #000 0 38%, rgba(0, 0, 0, .22) 68%); }
.stage { position: relative; z-index: 3; height: min(70vh, 620px); pointer-events: none; }
.brolly {
  position: absolute; left: 0; top: 0;
  width: clamp(260px, 41vw, 600px); aspect-ratio: 1;
  transform-origin: 50% 49.2%;
  pointer-events: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.brolly.held { cursor: grabbing; }
.brolly svg { display: block; width: 100%; height: 100%; overflow: visible; }
.eye { fill: #000; transform-box: fill-box; transform-origin: center; }
.wink { stroke: #000; opacity: 0; }
.brolly.winking .eye-l { opacity: 0; }
.brolly.winking .wink { opacity: 1; }

.hero-text { position: relative; z-index: 2; max-width: 560px; }
.wordmark { margin: 0 0 28px; line-height: 0; }
.wordmark svg { width: clamp(220px, 27vw, 420px); height: auto; overflow: visible; }
.wordmark .o { stroke: var(--ink); stroke-width: 12; transition: stroke .5s ease; }
.wordmark .i { stroke-width: 8.2; transition: stroke .5s ease; }
.wordmark .g { stroke: url(#kl-sweep); stroke-width: 8.2; opacity: 0; transition: opacity .6s ease; }
.w-kuro .i { stroke: var(--kuro-fill); }
.w-light .i { stroke: var(--light-fill); }
.wordmark:hover .w-light .g { opacity: 1; }
:root[data-theme="kuro"] .wordmark:hover .w-light .g { opacity: 0; }
:root[data-theme="kuro"] .wordmark:hover .w-kuro .g { opacity: 1; }
.lede { margin: 0 0 40px; max-width: 30ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink); }
.index ol { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 34px auto 1fr; align-items: baseline; gap: 12px; padding: 7px 0; text-decoration: none; }
.index .n { font: 400 12px/1 var(--mono); color: var(--faint); }
.index .t { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 400; background: linear-gradient(var(--ink), var(--ink)) no-repeat; background-clip: text; -webkit-background-clip: text; transition: color .25s; }
.index .c { font: 400 12px/1 var(--mono); color: var(--faint); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.index a:hover .t, .index a:focus-visible .t { color: transparent; background-image: var(--grad); }
.index a:hover .c, .index a:focus-visible .c { opacity: 1; transform: none; }
.hint { position: absolute; left: var(--gutter); bottom: 26px; margin: 0; font: 400 12px/1 var(--mono); color: var(--faint); letter-spacing: .04em; transition: opacity .6s; }
.hint.gone { opacity: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.scroll-cue svg { width: 18px; height: 18px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vh, 140px) var(--gutter) 0; max-width: calc(1360px + 2 * var(--gutter)); margin: 0 auto; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.sec-title { margin: 0; line-height: 0; }
.sec-title svg { height: clamp(34px, 4.2vw, 52px); width: auto; overflow: visible; }
.sec-title .o { stroke: var(--ink); stroke-width: 12; transition: stroke .5s; }
.sec-title .i { stroke: var(--bg); stroke-width: 6; transition: stroke .5s; }
.sec-note { margin: 0; max-width: 40ch; color: var(--muted); font-size: 15px; }

/* projects: a clean index, no pictures */
.projects { list-style: none; margin: 0; padding: 0; }
.p {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.9fr) minmax(0, .8fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: 8px 28px; align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.p::before { content: ""; position: absolute; left: -16px; right: -16px; top: 0; bottom: 0; z-index: -1; border-radius: 14px; background: var(--hover); opacity: 0; transition: opacity .3s; }
.p:hover::before, .p:focus-within::before { opacity: 1; }
.p-n { position: relative; height: 22px; overflow: hidden; font: 400 13px/22px var(--mono); color: var(--faint); }
.p-n > span, .p-n svg { display: block; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.p-n svg { position: absolute; left: 0; top: 0; width: 25px; height: 22px; transform: translateY(110%) rotate(25deg); }
.p:hover .p-n > span, .p:focus-within .p-n > span { transform: translateY(-110%); }
.p:hover .p-n svg, .p:focus-within .p-n svg { transform: none; }
.p h3 { margin: 0 0 8px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.p-title { text-decoration: none; background: var(--grad) no-repeat 0 100% / 0 2px; padding-bottom: 3px; transition: background-size .45s ease; }
.p:hover .p-title, .p-title:focus-visible { background-size: 100% 2px; }
.p-main p { margin: 0; color: var(--muted); max-width: 52ch; }
.p-stack, .p-status { margin: 6px 0 0; font: 400 13px/1.7 var(--mono); color: var(--muted); }
.p-status { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.dot.dev { background: none; box-shadow: inset 0 0 0 1.5px #6366f8; }
.p-links { margin: 2px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.p-links a, .elsewhere a, .contact-alt a { text-decoration: none; }
.p-links a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; font-size: 15px; color: var(--ink); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.p-links a:hover { color: var(--accent); border-color: currentColor; }
.p-links svg, .elsewhere svg { width: 14px; height: 14px; flex: none; transition: transform .25s; }
.p-links a:hover svg, .elsewhere a:hover svg { transform: translate(2px, -2px); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 110px); padding-top: 44px; }
.about-copy p { margin: 0 0 18px; max-width: 58ch; color: var(--muted); }
.about-copy .big { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.35; color: var(--ink); max-width: 26ch; margin-bottom: 28px; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; }
.tools li { font: 400 13px/1 var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.log h3 { margin: 4px 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li { position: relative; padding: 0 0 22px 22px; border-left: 1px solid var(--line); }
.log li:last-child { padding-bottom: 0; }
.log li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px #6366f8; }
.log li:first-child::before { background: var(--grad); box-shadow: none; }
.log time { display: block; font: 400 12px/1.4 var(--mono); color: var(--faint); margin-bottom: 4px; }
.log p { margin: 0; font-size: 15px; color: var(--muted); }
.log b { color: var(--ink); font-weight: 500; }

/* contact */
.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact-body { padding-top: 44px; }
.contact-line { margin: 0 0 18px; color: var(--muted); }
.email {
  display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 28px); max-width: 100%;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left;
  font: 400 clamp(30px, 5.6vw, 76px)/1.1 var(--sans); letter-spacing: -.02em;
}
.email-text { background: linear-gradient(var(--ink), var(--ink)) no-repeat; background-clip: text; -webkit-background-clip: text; overflow-wrap: anywhere; }
.email:hover .email-text, .email:focus-visible .email-text { color: transparent; background-image: var(--grad); }
.email-act { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: 400 13px/1 var(--mono); letter-spacing: 0; color: var(--muted); transition: border-color .2s, color .2s; }
.email-act svg { width: 15px; height: 15px; }
.email:hover .email-act { border-color: #6366f8; color: var(--ink); }
.contact-alt { margin: 14px 0 0; font-size: 15px; }
.contact-alt a { color: var(--muted); border-bottom: 1px solid var(--line); }
.contact-alt a:hover { color: var(--ink); border-color: currentColor; }
.elsewhere { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.elsewhere li + li { border-left: 1px solid var(--line); }
.elsewhere a { display: flex; align-items: baseline; gap: 10px; padding: 22px 20px; font-size: 18px; transition: background-color .25s; }
.elsewhere li:first-child a { padding-left: 0; }
.elsewhere a:hover { background: var(--hover); }
.elsewhere .h { font: 400 13px/1 var(--mono); color: var(--faint); }
.elsewhere svg { margin-left: auto; align-self: center; color: var(--muted); }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 26px var(--gutter) 32px; border-top: 1px solid var(--line); font: 400 13px/1.4 var(--mono); color: var(--muted); }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot p a { border-bottom: 1px solid var(--line); }
.foot p a:hover { color: var(--ink); }
.top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.top svg { width: 15px; height: 15px; transition: transform .25s; }
.top:hover svg { transform: translateY(-3px); }

.toast { position: fixed; z-index: 30; margin: 0; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 400 13px/1 var(--mono); pointer-events: none; opacity: 0; transform: translate(-50%, 0); transition: opacity .2s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.toast.on { opacity: 1; transform: translate(-50%, -12px); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }


/* ---------- inner pages ---------- */
.page { padding: calc(var(--bar-h) + clamp(40px, 8vh, 96px)) var(--gutter) clamp(80px, 12vh, 140px); max-width: calc(1360px + 2 * var(--gutter)); margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.page-head h1 { margin: 0; line-height: 0; }
.page-head h1 svg { height: clamp(44px, 6vw, 76px); width: auto; max-width: 100%; overflow: visible; }
.page-head .o { stroke: var(--ink); stroke-width: 12; transition: stroke .5s; }
.page-head .i { stroke: var(--bg); stroke-width: 6.5; transition: stroke .5s; }
.page-lede { margin: 0; max-width: 46ch; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font: 400 13px/1.6 var(--mono); }
.jump a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.jump a:hover { color: var(--ink); border-color: currentColor; }
.jump span { color: var(--faint); margin-right: 6px; }

.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px clamp(32px, 6vw, 96px); padding: clamp(40px, 6vh, 64px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 16px); }
.entry-side { align-self: start; position: sticky; top: calc(var(--bar-h) + 24px); }
.entry-side { grid-column: 1; grid-row: 1; }
.entry-main { grid-column: 2; grid-row: 1; min-width: 0; }
.entry-side .n { display: block; font: 400 13px/1 var(--mono); color: var(--faint); margin-bottom: 18px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; font: 400 14px/1.5 var(--mono); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.entry h2 { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 500; letter-spacing: -.015em; }
.entry-main > .entry-lede { margin: 0 0 18px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.entry-main > p { margin: 0 0 16px; max-width: 64ch; color: var(--muted); }
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.points li { position: relative; padding-left: 22px; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; border-radius: 2px; background: var(--grad); }
.points b { color: var(--ink); font-weight: 500; }
.entry .p-links { flex-direction: row; flex-wrap: wrap; gap: 6px 26px; margin-top: 26px; }
.entry .p-links a:first-child { padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); }
.entry .p-links a:first-child:hover { background: #4f46e5; color: #fff; }
.note-box { margin: 26px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--muted); max-width: 64ch; }
.note-box b { color: var(--ink); font-weight: 500; }

.contact-page .contact-body { padding-top: 48px; }
.empty { padding: 56px 0 0; max-width: 52ch; }
.empty p { margin: 0 0 14px; color: var(--muted); }
.empty .big { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); }

.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px clamp(40px, 6vw, 110px); padding-top: 48px; }
.dev-block h2 { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dev-block + .dev-block { margin-top: 40px; }
.count { margin: 0; display: flex; align-items: baseline; gap: 14px; }
.count b { font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.count span { font: 400 13px/1.4 var(--mono); color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: 400 13px/1 var(--mono); text-decoration: none; transition: border-color .2s, background-color .2s; }
.chips a:hover { border-color: #6366f8; background: var(--hover); }
.notes-list { list-style: none; margin: 0; padding: 0; }
.notes-list > li { padding: 0 0 26px 22px; border-left: 1px solid var(--line); position: relative; }
.notes-list > li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.notes-list h3 { margin: 0 0 8px; font: 500 15px/1.4 var(--mono); }
.notes-list ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.notes-list ul li { margin-bottom: 4px; }

.lost { min-height: 100svh; display: grid; align-content: center; padding: calc(var(--bar-h) + 24px) var(--gutter) 64px; max-width: calc(900px + 2 * var(--gutter)); margin: 0 auto; }
.lost .code { margin: 0 0 18px; font: 400 13px/1 var(--mono); letter-spacing: .12em; color: var(--faint); }
.lost h1 { margin: 0 0 22px; line-height: 0; }
.lost h1 svg { height: clamp(70px, 12vw, 140px); width: auto; overflow: visible; }
.lost .o { stroke: var(--ink); stroke-width: 12; }
.lost .i { stroke: var(--bg); stroke-width: 7.5; }
.lost p { margin: 0 0 28px; font-size: clamp(19px, 1.8vw, 23px); max-width: 32ch; }
.lost .chips a { font-size: 14px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .p { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); }
  .p-main { grid-column: 2 / -1; }
  .p-stack { grid-column: 2; }
  .p-status { grid-column: 3; }
  .p-links { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 22px; }
}
@media (max-width: 860px) {
  :root { --bar-h: 58px; }
  .entry { grid-template-columns: 1fr; }
  .entry-side { position: static; grid-column: 1; grid-row: 2; }
  .entry-main { grid-column: 1; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .dev-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; align-content: start; padding-top: calc(var(--bar-h) + 8px); padding-bottom: 80px; }
  .stage { height: clamp(180px, 25svh, 260px); }
  .rain { -webkit-mask-image: linear-gradient(180deg, #000 0 30%, rgba(0, 0, 0, .2) 52%); mask-image: linear-gradient(180deg, #000 0 30%, rgba(0, 0, 0, .2) 52%); }
  .brolly { width: clamp(200px, 54vw, 290px); }
  .wordmark svg { width: clamp(180px, 50vw, 290px); }
  .wordmark { margin-bottom: 20px; }
  .lede { margin-bottom: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .clock { display: none; }
  .hint { display: none; }
}
@media (max-width: 620px) {
  .bar { grid-template-columns: auto 1fr auto; gap: 6px; }
  .bar-nav { justify-self: center; gap: 0; }
  .bar-nav a { padding: 8px 9px; font-size: 14px; }
  .bar-nav a::after { left: 9px; right: 9px; }
  .mark span { display: none; }
  .p { grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 26px 0; }
  .p-n { grid-column: 1 / -1; }
  .p-main, .p-links { grid-column: 1 / -1; }
  .p-stack { grid-column: 1; }
  .p-status { grid-column: 2; }
  .p::before { left: -10px; right: -10px; }
  .sec-head { align-items: flex-start; flex-direction: column; }
  .elsewhere { grid-template-columns: 1fr; }
  .elsewhere li + li { border-left: 0; border-top: 1px solid var(--line); }
  .elsewhere a { padding: 18px 0; }
  .email { flex-wrap: wrap; }
  .foot { flex-direction: column-reverse; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* "More on each project" under the home page's list */
.more { margin: 28px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.more a:hover { border-color: currentColor; color: var(--accent); }
.more svg { width: 14px; height: 14px; }
