@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
/* Layout and styling adapted from jeff.henshaw.org */
/* ------------------------- DOCUMENT SETUP ------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background-color: #ffffff;
  color: #444444;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* ------------------------- ARTICLE PAGES ------------------------- */
.document-wrapper {
  max-width: 48em;
  width: 100%;
  min-height: 100%;
  margin: 40px auto;
  padding: 0 2em 2em;
  color: #444444;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.755;
  tab-size: 4;
  /* Headings */
}
.document-wrapper h1, .document-wrapper h2, .document-wrapper h3, .document-wrapper h4, .document-wrapper h5, .document-wrapper h6 {
  display: block;
  font-weight: 600;
  line-height: 1.521;
}
.document-wrapper h1 {
  font-size: 2em;
  padding-top: 0.8em;
  margin-bottom: 1em;
}
.document-wrapper h2 {
  font-size: 1.6em;
  padding-top: 0.66em;
  margin-bottom: 0.7em;
}
.document-wrapper h3 {
  font-size: 1.27em;
  padding-top: 0.53em;
  margin-bottom: 0.25em;
}
.document-wrapper h4, .document-wrapper h5, .document-wrapper h6 {
  padding-top: 0.4em;
  padding-bottom: 0.27em;
}
.document-wrapper {
  /* Body text */
}
.document-wrapper p {
  display: block;
  margin-bottom: 1.8em;
}
.document-wrapper a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.document-wrapper strong, .document-wrapper b, .document-wrapper th {
  font-weight: bold;
}
.document-wrapper em, .document-wrapper i {
  font-style: italic;
}
.document-wrapper {
  /* Lists */
}
.document-wrapper ul, .document-wrapper ol {
  display: block;
  padding-inline-start: 2.13em;
  margin-bottom: 1em;
}
.document-wrapper ul {
  list-style-type: disc;
}
.document-wrapper ul ul {
  list-style-type: circle;
}
.document-wrapper ul ul ul {
  list-style-type: disc;
}
.document-wrapper ol {
  list-style-type: decimal;
}
.document-wrapper li {
  display: list-item;
}
.document-wrapper li::marker {
  color: var(--accent);
}
.document-wrapper li > p {
  display: inline;
}
.document-wrapper {
  /* Quotes: an accent bar in the left gutter */
}
.document-wrapper blockquote {
  display: block;
  position: relative;
  padding-inline-start: 2.13em;
  margin-bottom: 1.8em;
}
.document-wrapper blockquote::before {
  content: "";
  position: absolute;
  top: -0.4em;
  left: 1em;
  width: 0.13em;
  height: calc(100% + 0.8em);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.33em;
}
.document-wrapper hr {
  display: block;
  margin: 2em 0 0.5em;
  border: none;
  border-top: 1px solid #d9d9d9;
}
.document-wrapper {
  /* Code */
}
.document-wrapper code, .document-wrapper pre {
  font-family: "Menlo", ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.91em;
}
.document-wrapper code {
  padding: 0.25em;
  color: #444444;
  background-color: #F3F5F7;
  border-radius: 0.25em;
}
.document-wrapper pre {
  display: block;
  white-space: pre-wrap;
}
.document-wrapper pre code {
  display: block;
}
.document-wrapper {
  /* Tables */
}
.document-wrapper table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.755em;
  border: 1px solid #d9d9d9;
  border-collapse: collapse;
}
.document-wrapper tr:nth-child(odd) {
  background-color: #F3F5F7;
}
.document-wrapper th, .document-wrapper td {
  min-width: 5em;
  padding: 0.37em 0.75em;
  text-align: left;
  border-right: 1px solid #d9d9d9;
}
.document-wrapper th:last-child, .document-wrapper td:last-child {
  border-right: none;
}
.document-wrapper {
  /* Media */
}
.document-wrapper img {
  display: inline;
  max-width: 100%;
}
.document-wrapper iframe {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border: none;
  aspect-ratio: 660/440;
}
.document-wrapper iframe.portrait {
  aspect-ratio: 440/782;
  margin: 0 auto 20px;
}
.document-wrapper {
  /* Image size hints from the markdown: ![alt](photo.jpg#half) */
}
.document-wrapper img {
  width: 100%;
}
.document-wrapper img[src*="#half"] {
  width: 49%;
}
.document-wrapper img[src*="#twothirds"] {
  width: 66%;
}
.document-wrapper img[src*="#third"] {
  width: 32%;
}
.document-wrapper {
  /* Date pill at the end of a bearnote */
}
.document-wrapper .date {
  display: inline-block;
  margin-bottom: 38px;
  padding: 6px 10px;
  font-size: 14px;
  background-color: lightgray;
  border-radius: 7px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.document-wrapper {
  /* Date under a post's title */
}
.document-wrapper .dateline {
  display: block;
  margin: -0.9em 0 1.8em;
  color: #888888;
}
.document-wrapper {
  /* Home link at the top and bottom of a post */
}
.document-wrapper #header {
  margin: 20px auto;
  text-align: center;
}
.document-wrapper #footer {
  margin-top: 30px;
  padding-top: 5px;
  font-size: 14.5px;
  color: #888888;
  text-align: center;
  border-top: 1px dotted #444444;
}
.document-wrapper .home-icon {
  display: inline-block;
  height: 38px;
  padding: 5px;
}
.document-wrapper .home-icon a {
  font-size: 30px;
  line-height: 1;
}
.document-wrapper .home-icon a:hover {
  opacity: 0.6;
}
/* ------------------------- HOME PAGE ------------------------- */
/* Depth: the microphone is small and far back on the wall; the type is in
   front of it, sharp, overlapping the edge of the mic's shadow, with a faint
   shadow of its own. Text is positioned in % of the stage and sized in
   container units so the whole composition scales as one piece.
   Identity-block structure adapted from jeff.henshaw.org. */
body.home {
  min-height: 100vh;
  background: var(--wall);
  color: #282828;
  -webkit-font-smoothing: antialiased;
}
.stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 1600 / 1000;
  container-type: inline-size;
  overflow: hidden;
  --px: 0;
  --py: 0;
}
.stage-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -5px), 0);
  transition: transform .25s ease-out;
}
.stage-text {
  position: absolute;
  left: 37%;
  top: 31%;
  font-size: clamp(15px, 1.28cqw, 20px);
  line-height: 1.6;
  text-align: left;
  color: var(--ink);
  /* text stays still; only the microphone drifts with the mouse (2026-11-14) */
}
.nameField {
  font-size: 2.1em;
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: none;
  line-height: 1.2;
  margin: 0 0 1.1em;
  color: var(--ink);
}
/* The type floats above the wall: a tight contact shadow plus two longer, softer ones (light from the upper left, same as the mic's shadow). Sizes in em so it scales with the stage. */
.stage-text { text-shadow: .06em .1em .08em var(--s20), .30em .5em .7em var(--s26), .66em 1.1em 1.6em var(--s20); }
.stage-text .nameField { text-shadow: .03em .05em .05em var(--s22), .14em .22em .3em var(--s28), .31em .5em .75em var(--s22); }
.stage-text .menu-icon svg { filter: drop-shadow(.19em .3em .35em var(--s32)); }
.entry { margin: 0 0 .95em; line-height: 1.45; }
.titleline {
  display: inline-block;
  font-size: .72em;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: .15em;
}
.entry a { color: var(--ink); text-decoration: none; font-size: 1em; font-weight: 400; letter-spacing: .01em; transition: color .2s ease; }
.entry a:hover, .entry a:focus-visible { color: var(--accent); }
.menu { margin-top: 1.5em; margin-left: -6px; display: flex; gap: 6px; }
.menu-icon { display: inline-block; padding: 6px; color: var(--ink); }
.menu-icon a { display: inline-flex; align-items: center; text-decoration: none !important; color: inherit; transition: color .2s ease, transform .2s ease; }
.menu-icon a:hover { color: var(--accent); transform: translateY(-1px); }
.menu-icon svg { width: 20px; height: 20px; }

.subtitle { font-size: 1.15em; font-weight: 400; letter-spacing: .02em; margin-bottom: 1em; text-transform: lowercase; }
.roles { font-size: .8em; font-weight: 500; letter-spacing: .1em; text-transform: lowercase; color: var(--ink-soft); line-height: 1.9; }
.roles span { white-space: nowrap; }
.roles .dot { margin: 0 .7em; opacity: .7; }
.roles a { color: inherit; }   /* roles line links to About; keeps the muted grey until hover (2026-11-15) */

@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.stage-text .nameField, .stage-text .entry, .stage-text .menu-icon { opacity: 0; animation: slideIn .6s ease-out forwards; }
.stage-text .entry:nth-of-type(2) { animation-delay: .15s; }
.stage-text .entry:nth-of-type(3) { animation-delay: .3s; }
.stage-text .menu-icon:nth-of-type(1) { animation-delay: .6s; }
.stage-text .menu-icon:nth-of-type(2) { animation-delay: .7s; }
.stage-text .menu-icon:nth-of-type(3) { animation-delay: .8s; }
.stage-text .menu-icon:nth-of-type(4) { animation-delay: .9s; }
.stage-text .menu-icon:nth-of-type(5) { animation-delay: 1s; }
.stage-text .menu-icon:nth-of-type(6) { animation-delay: 1.1s; }
.stage-text .menu-icon:nth-of-type(7) { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .stage-text .nameField, .stage-text .entry, .stage-text .menu-icon { opacity: 1; animation: none; }
  .stage-photo, .stage-text { transform: none !important; transition: none; }
}

/* Phones and any tall (portrait) screen, tablets included: the picture is
   cropped to the mic and its shadow, and the text overlaps the bottom of the
   shadow so it still sits in front of it. Sizes use vw so it scales. */
@media (max-width: 544px), (max-aspect-ratio: 11/10) {
  .stage { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; }
  .stage-photo { position: relative; inset: auto; display: block; width: 168%; max-width: none; height: auto; margin: 0 0 -50vw -66%; transform: none !important; }
  .stage-text { position: relative; left: auto; top: auto; padding: 0 12vw 56px; font-size: clamp(16px, 2.9vw, 27px); transform: none !important; }
  .nameField { font-size: 2em; letter-spacing: .08em; }
  .roles { letter-spacing: .09em; }
  .roles .dot { margin: 0 .4em; }
}
@media (min-width: 545px) and (max-aspect-ratio: 11/10) {
  .stage-photo { width: 120%; margin: 0 0 -26vw -22%; }
}
@media (max-width: 544px) {
  .document-wrapper { width: 95%; margin: 40px auto; padding: 0; font-size: 17px; }
  .document-wrapper h1, .document-wrapper h2, .document-wrapper h3, .document-wrapper h4, .document-wrapper h5, .document-wrapper h6 { font-weight: 700; }
  .document-wrapper img[src*="#half"], .document-wrapper img[src*="#twothirds"], .document-wrapper img[src*="#third"] { width: 100%; }
}


.document-wrapper .home-icon img { display: block; }

/* ------------------------- LINKED POSTS, QUOTES, FOOTNOTES ------------------------- */
/* A post with `link:` in its front matter: the headline goes to the outside page (marked with an arrow), the date is the permalink to this site's own page. */
.document-wrapper h1.linked a { color: inherit; text-decoration: none; }
.document-wrapper h1.linked a:hover, .document-wrapper h1.linked a:focus-visible { color: var(--accent); }
.document-wrapper h1 .ext { font-size: .72em; font-weight: 500; margin-left: .3em; opacity: .75; position: relative; top: -.14em; }
.document-wrapper h1.linked a:hover .ext { opacity: 1; }
.document-wrapper .dateline a { color: inherit; text-decoration: none; }
.document-wrapper .dateline a:hover, .document-wrapper .dateline a:focus-visible { color: var(--accent); }
/* Quotes: a quiet hairline rule, set a little in from the text */
.document-wrapper blockquote { padding-inline-start: 1.4em; margin-inline: 0; color: #666; }
.document-wrapper blockquote::before { left: 0; width: 2px; height: calc(100% + .6em); top: -.3em; background-color: #cfcbc4; border: 0; border-radius: 1px; }
.document-wrapper blockquote p { margin-bottom: .8em; }
.document-wrapper blockquote p:last-child { margin-bottom: 0; }
/* Footnotes (kramdown): small numbers in the text, a quiet list at the end with a way back */
.document-wrapper sup a.footnote { text-decoration: none; font-size: .78em; padding: 0 .12em; }
.document-wrapper .footnotes { margin-top: 2.4em; padding-top: .8em; border-top: 1px solid #e3e0da; font-size: .88em; color: #777; }
.document-wrapper .footnotes ol { padding-left: 1.4em; }
.document-wrapper .footnotes li { margin-bottom: .5em; }
.document-wrapper .footnotes a.reversefootnote { text-decoration: none; margin-left: .3em; }

/* Easter egg: click the microphone and it sways on its boom (shadow with it); the subtitle briefly answers. */
/* The cutout's boom and wall shadow run off its top edge. Tilting (or the mouse parallax) swings that flat edge down into view, so the photo sits 1.8% higher and the stage clips the overhang. The lower half of the photo is empty, so nothing is lost. */
.stage-photo { transform-origin: 77.5% 0; translate: 0 -1.8%; }
.stage-photo.sway { animation: mic-sway 2.8s ease-in-out; }
@keyframes mic-sway {
  0%   { rotate: 0deg; }
  16%  { rotate: -2.4deg; }
  36%  { rotate: 1.7deg; }
  54%  { rotate: -1.1deg; }
  70%  { rotate: .6deg; }
  85%  { rotate: -.25deg; }
  100% { rotate: 0deg; }
}
.subtitle { transition: opacity .3s ease; }
.subtitle.swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .stage-photo.sway { animation: none; } }
/* The intro slide-in holds the subtitle at full opacity (animation fill), which would stop it fading; once the egg runs, hand opacity back to a plain transition. */
.stage-text .entry.subtitle.ready { animation: none; opacity: 1; transition: opacity .7s ease; }
.stage-text .entry.subtitle.ready.swap { opacity: 0; }
/* name links to the About page (2026-11-14) */
.nameField a { color: inherit; text-decoration: none; transition: color .2s ease; }
.nameField a:hover, .nameField a:focus-visible { color: var(--accent); }
/* "address copied" note under the icon row (2026-11-15) */
.menu { position: relative; }
.mail-note { position: absolute; left: 6px; top: 100%; margin-top: .7em; white-space: nowrap; font-size: .78em; letter-spacing: .1em; text-transform: lowercase; color: var(--ink-soft); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.mail-note.show { opacity: 1; }
/* link menu: one button that slides the icon row open (2026-11-15) */
.menu-toggle { display: none; padding: 6px; background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; transition: color .2s ease; }
.menu-toggle svg { width: 20px; height: 20px; }
.stage-text .menu-toggle svg { filter: drop-shadow(.19em .3em .35em var(--s32)); }
.menu-toggle:hover, .menu-toggle:focus-visible, .menu.is-open .menu-toggle { color: var(--accent); }
.menu-links { display: flex; gap: 6px; }
.menu.collapsible .menu-toggle { display: inline-flex; }
.stage-text .menu.collapsible .menu-toggle { opacity: 0; animation: slideIn .6s ease-out .6s forwards; }
.menu.collapsible .menu-links { max-width: 0; padding: 0 12px 12px 0; margin: 0 -12px -12px 0; overflow: hidden; visibility: hidden; opacity: 0; transition: max-width .4s ease, opacity .25s ease, visibility 0s linear .4s; }
.menu.collapsible.is-open .menu-links { max-width: 22rem; visibility: visible; opacity: 1; transition: max-width .4s ease, opacity .25s ease .05s, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .stage-text .menu.collapsible .menu-toggle { opacity: 1; animation: none; }
  .menu.collapsible .menu-links, .menu.collapsible.is-open .menu-links { transition: none; }
}
/* link menu, round 2 (2026-11-15): the row only spans its own contents, so hover/click opens it from the link button alone; the button is bolder */
.menu { display: inline-flex; }
.menu-toggle svg { width: 22px; height: 22px; stroke-width: 2.3px; }
.menu-toggle { padding: 5px; }
/* email fallback note: links are clickable while it shows (2026-11-15) */
.mail-note.show { pointer-events: auto; }
.mail-note a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.mail-note a:hover, .mail-note a:focus-visible { color: var(--accent); }
/* the address line may wrap on narrow screens (2026-11-15) */
.mail-note { white-space: normal; width: max-content; max-width: min(88vw, 26rem); line-height: 1.6; }

/* ------------------------- LIGHT / DARK, WITH A SLOW SUNRISE BETWEEN THEM (2026-11-16) ------------------------- */
/* Same tokens and behaviour as blog.hryb.org. Colours are registered so the browser can blend them; the blend only runs while html has .theme-anim. */
@property --wall { syntax: "<color>"; inherits: true; initial-value: #EBE1D3; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1f1b17; }
@property --ink-soft { syntax: "<color>"; inherits: true; initial-value: rgba(31, 27, 23, .6); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #2F6B4F; }
@property --s20 { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .20); }
@property --s22 { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .22); }
@property --s26 { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .26); }
@property --s28 { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .28); }
@property --s32 { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .32); }

:root { --wall: #EBE1D3; --ink: #1f1b17; --ink-soft: rgba(31, 27, 23, .6); --accent: #2F6B4F; --s20: rgba(70, 52, 34, .20); --s22: rgba(70, 52, 34, .22); --s26: rgba(70, 52, 34, .26); --s28: rgba(70, 52, 34, .28); --s32: rgba(70, 52, 34, .32); color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wall: #181410; --ink: #EDE5D9; --ink-soft: rgba(237, 229, 217, .62); --accent: #7CC5A0; --s20: rgba(0, 0, 0, .34); --s22: rgba(0, 0, 0, .38); --s26: rgba(0, 0, 0, .44); --s28: rgba(0, 0, 0, .46); --s32: rgba(0, 0, 0, .5); color-scheme: dark; }
}
:root[data-theme="dark"] { --wall: #181410; --ink: #EDE5D9; --ink-soft: rgba(237, 229, 217, .62); --accent: #7CC5A0; --s20: rgba(0, 0, 0, .34); --s22: rgba(0, 0, 0, .38); --s26: rgba(0, 0, 0, .44); --s28: rgba(0, 0, 0, .46); --s32: rgba(0, 0, 0, .5); color-scheme: dark; }
body.home { background: var(--wall); color: var(--ink); }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }


:root.theme-anim { transition: --wall 2.6s cubic-bezier(.45, .05, .25, 1), --ink 2.6s cubic-bezier(.45, .05, .25, 1), --ink-soft 2.6s cubic-bezier(.45, .05, .25, 1), --accent 2.6s cubic-bezier(.45, .05, .25, 1), --s20 2.6s cubic-bezier(.45, .05, .25, 1), --s22 2.6s cubic-bezier(.45, .05, .25, 1), --s26 2.6s cubic-bezier(.45, .05, .25, 1), --s28 2.6s cubic-bezier(.45, .05, .25, 1), --s32 2.6s cubic-bezier(.45, .05, .25, 1); }

/* Horizon glow during the change: rises for dark to light, sinks away (dusk colours) for light to dark */
.dawn { position: fixed; top: -30%; left: 0; right: 0; height: 160%; z-index: 0; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.dawn.rise { background: radial-gradient(ellipse 110% 39% at 50% 81.25%, rgba(255, 196, 120, .95) 0%, rgba(255, 152, 96, .7) 28%, rgba(255, 120, 90, .28) 52%, rgba(255, 120, 90, 0) 74%); animation: dawn-rise 2.6s cubic-bezier(.45, .05, .25, 1) forwards; }
.dawn.set { background: radial-gradient(ellipse 110% 39% at 50% 81.25%, rgba(255, 150, 96, .9) 0%, rgba(214, 92, 120, .62) 30%, rgba(96, 70, 150, .34) 54%, rgba(60, 50, 120, 0) 76%); animation: dawn-set 2.6s cubic-bezier(.45, .05, .25, 1) forwards; }
@keyframes dawn-rise { 0% { opacity: 0; transform: translateY(46%); } 38% { opacity: .85; transform: translateY(14%); } 70% { opacity: .5; transform: translateY(-6%); } 100% { opacity: 0; transform: translateY(-24%); } }
@keyframes dawn-set { 0% { opacity: 0; transform: translateY(-24%); } 34% { opacity: .75; transform: translateY(-2%); } 70% { opacity: .45; transform: translateY(20%); } 100% { opacity: 0; transform: translateY(48%); } }
@media (prefers-reduced-motion: reduce) { .dawn { display: none; } :root.theme-anim { transition: none; } }

/* The switch: top left, quiet, same sun-to-moon morph as the blog */
.theme-toggle { display: none; position: fixed; z-index: 5; top: max(12px, env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); appearance: none; border: 0; background: transparent; color: var(--ink); opacity: .6; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; cursor: pointer; transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--accent); opacity: 1; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 22px; height: 22px; display: block; overflow: visible; }
.theme-toggle .orb, .theme-toggle .moon-cut, .theme-toggle .rays { transition: transform 1.3s cubic-bezier(.45, .05, .25, 1), opacity 1.3s cubic-bezier(.45, .05, .25, 1); transform-origin: 12px 12px; }
.theme-toggle .moon-cut { transform: translate(11px, -11px); }
:root[data-theme="dark"] .theme-toggle .orb { transform: scale(1.65); }
:root[data-theme="dark"] .theme-toggle .moon-cut { transform: translate(0, 0); }
:root[data-theme="dark"] .theme-toggle .rays { transform: rotate(90deg) scale(.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .orb { transform: scale(1.65); }
  :root:not([data-theme="light"]) .theme-toggle .moon-cut { transform: translate(0, 0); }
  :root:not([data-theme="light"]) .theme-toggle .rays { transform: rotate(90deg) scale(.4); opacity: 0; }
}

/* Pool of light (dark only): a faint, wide wash on the wall behind and above the microphone, as if a lamp sits out of frame to the upper left. It does not follow the mic's outline. Both tokens are fully transparent in the light theme, so the pool fades in with the theme change. */
@property --pool-a { syntax: "<color>"; inherits: true; initial-value: rgba(255, 206, 150, 0); }
@property --pool-b { syntax: "<color>"; inherits: true; initial-value: rgba(255, 206, 150, 0); }
:root { --pool-a: rgba(255, 206, 150, 0); --pool-b: rgba(255, 206, 150, 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pool-a: rgba(255, 206, 150, .13); --pool-b: rgba(255, 206, 150, .05); } }
:root[data-theme="dark"] { --pool-a: rgba(255, 206, 150, .13); --pool-b: rgba(255, 206, 150, .05); }
:root.theme-anim { transition-property: --wall, --ink, --ink-soft, --accent, --s20, --s22, --s26, --s28, --s32, --pool-a, --pool-b; }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 28% 44% at 77% 20%, var(--pool-a) 0%, var(--pool-b) 48%, rgba(255, 206, 150, 0) 100%); }
@media (max-width: 544px), (max-aspect-ratio: 11/10) { .stage::before { background: radial-gradient(ellipse 120vw 80vw at 64% 26vw, var(--pool-a) 0%, var(--pool-b) 48%, rgba(255, 206, 150, 0) 100%); } }

/* Dim the microphone in the dark so it sits back into the room instead of standing out (1 = as photographed, in the light). */
@property --mic-b { syntax: "<number>"; inherits: true; initial-value: 1; }
:root { --mic-b: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mic-b: .92; } }
:root[data-theme="dark"] { --mic-b: .92; }
.stage-photo { filter: brightness(var(--mic-b)); }
:root.theme-anim { transition-property: --wall, --ink, --ink-soft, --accent, --s20, --s22, --s26, --s28, --s32, --pool-a, --pool-b, --mic-b; }

/* Mic 30% smaller (2026-11-16): scaled about the point it hangs from, so the boom stays attached to the top edge and the click-the-mic area scales with it. */
.stage-photo { scale: .7; }

/* ------------------------- STUDIO LIGHT: A BROAD BEAM ON THE MIC + A PULL CORD (prototype, 2026-11-16) ------------------------- */
/* In the dark the room goes dim and a studio light above the frame throws a broad beam down onto the mic, so you can see where the light comes from. The beam is drawn as a soft-edged cone (blurred inside the SVG), laid over the photo with the screen blend so it lights the mic itself. --beam is 0 in the light, 1 in the dark; it rises a beat after the room dims, like a lamp warming up. */
@property --beam { syntax: "<number>"; inherits: true; initial-value: 0; }
:root { --beam: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --beam: 1; } }
:root[data-theme="dark"] { --beam: 1; }
:root.theme-anim { transition-property: --wall, --ink, --ink-soft, --accent, --s20, --s22, --s26, --s28, --s32, --pool-a, --pool-b, --mic-b, --beam; transition-duration: 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 2.6s, 1.5s; transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s, .7s; transition-timing-function: cubic-bezier(.45, .05, .25, 1); }
.stage-photo { z-index: 0; }
.stage-text { z-index: 2; }
.stage::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: var(--beam); mix-blend-mode: screen;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe8c4' stop-opacity='.30'/%3E%3Cstop offset='.3' stop-color='%23ffdcae' stop-opacity='.13'/%3E%3Cstop offset='.72' stop-color='%23ffd2a0' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='24'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23b)'%3E%3Cpolygon points='1090,-60 1330,-60 1560,660 1000,660' fill='url(%23g)'/%3E%3Cellipse cx='1215' cy='-30' rx='200' ry='80' fill='%23fff0d8' fill-opacity='.34'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
@media (max-width: 544px), (max-aspect-ratio: 11/10) {
  .stage::after { height: 82cqw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 820' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe8c4' stop-opacity='.30'/%3E%3Cstop offset='.3' stop-color='%23ffdcae' stop-opacity='.13'/%3E%3Cstop offset='.72' stop-color='%23ffd2a0' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='24'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23b)'%3E%3Cpolygon points='440,-50 760,-50 1000,520 330,520' fill='url(%23g)'/%3E%3Cellipse cx='590' cy='-30' rx='170' ry='60' fill='%23fff0d8' fill-opacity='.34'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
}


/* ------------------------- THEME SWITCH LIVES IN THE LINK MENU (2026-11-16) ------------------------- */
/* The sun/moon is the first icon that folds out of the link button, drawn in the same thin outline as its neighbours. Sun and moon cross-fade and turn into each other. */
.theme-slot { display: none; }
.js .theme-slot { display: inline-block; }
.menu-icon .theme-toggle { position: static; top: auto; left: auto; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; opacity: 1; color: inherit; display: inline-flex; align-items: center; cursor: pointer; transition: color .2s ease, transform .2s ease; }
.menu-icon .theme-toggle:hover, .menu-icon .theme-toggle:focus-visible { color: var(--accent); background: none; transform: translateY(-1px); }
.menu-icon .theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
.theme-toggle .sun, .theme-toggle .moon { transform-origin: 12px 12px; transition: transform 1.2s cubic-bezier(.45, .05, .25, 1), opacity 1s cubic-bezier(.45, .05, .25, 1); }
.theme-toggle .sun { transform: none; opacity: 1; }
.theme-toggle .moon { transform: rotate(-50deg) scale(.55); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .sun { transform: rotate(70deg) scale(.5); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .moon { transform: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { transform: rotate(70deg) scale(.5); opacity: 0; }
  :root:not([data-theme="light"]) .theme-toggle .moon { transform: none; opacity: 1; }
}
/* eight icons now: let the row wrap on narrow phones instead of running off the edge */
@media (max-width: 420px) { .menu-links { flex-wrap: wrap; } .menu.collapsible.is-open .menu-links { max-width: 17rem; } }

/* ------------------------- LINK MENU: A STAGGERED WELCOME AND A CLASSY RETREAT (2026-11-16) ------------------------- */
/* Opening: the icons slide out of the link button one after another. Closing (after the pointer has been away a moment, see the script in index.html): the last icon leaves first and each slides back into the link button as it fades, then the row folds shut. */
.menu.collapsible .menu-icon { animation: none; opacity: 0; transform: translateX(-16px) scale(.86); transition: opacity .3s ease calc((8 - var(--i, 1)) * 45ms), transform .45s cubic-bezier(.5, 0, .75, 0) calc((8 - var(--i, 1)) * 45ms); }
.menu.collapsible.is-open .menu-icon { opacity: 1; transform: none; transition: opacity .35s ease calc(var(--i, 1) * 45ms + 60ms), transform .55s cubic-bezier(.2, .9, .25, 1) calc(var(--i, 1) * 45ms + 60ms); }
.menu-links .menu-icon:nth-child(1) { --i: 1; } .menu-links .menu-icon:nth-child(2) { --i: 2; } .menu-links .menu-icon:nth-child(3) { --i: 3; } .menu-links .menu-icon:nth-child(4) { --i: 4; }
.menu-links .menu-icon:nth-child(5) { --i: 5; } .menu-links .menu-icon:nth-child(6) { --i: 6; } .menu-links .menu-icon:nth-child(7) { --i: 7; } .menu-links .menu-icon:nth-child(8) { --i: 8; }
.menu.collapsible .menu-links { opacity: 1; transition: max-width .5s cubic-bezier(.5, 0, .2, 1) .42s, visibility 0s linear .95s; }
.menu.collapsible.is-open .menu-links { opacity: 1; transition: max-width .5s cubic-bezier(.2, .9, .25, 1), visibility 0s; }
.menu-icon a:hover, .menu-icon .theme-toggle:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .menu.collapsible .menu-icon, .menu.collapsible.is-open .menu-icon, .menu.collapsible .menu-links, .menu.collapsible.is-open .menu-links { transition: none; transform: none; } }
/* eight icons on a narrow phone: one tidy row */
@media (max-width: 420px) { .menu-links { flex-wrap: nowrap; gap: 2px; } .menu-icon { padding: 5px; } .menu.collapsible.is-open .menu-links { max-width: 22rem; } }
