:root {
  color-scheme: dark;
  --paper: #050505;
  --ink: #f5f5f5;
  --sub: #757575;
  --readable-sub: #a3a3a3;
  --large-floor: #626262;
  --small-floor: #969696;
  --shine: #fff;
  --halo: rgb(255 255 255 / .28);
  /* Motion durations. Close values share one token so the site can be
     retimed in one place. */
  --dur-nudge: .25s;   /* small arrow nudges */
  --dur-quick: .35s;   /* hover, focus and defocus */
  --dur-theme: .45s;   /* colour changes and the profile entrance */
  --dur-slow: .6s;     /* veils and the theme symbol's turn */
  --dur-view: .74s;    /* the logo moving between home and About */
  --dur-unfold: .92s;  /* the logo unfolding from s to ssnvve */
  --defocus-in: var(--dur-quick);
  --defocus-out: var(--dur-quick);
  --defocus-tint: rgb(245 245 245 / .24);
  --defocus-shadow: 0 0 4px var(--defocus-tint);
  --shadow: 5 5 5;
  --side: clamp(2rem, 9vw, 8rem);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mixed: 'Archivo', 'Zen Kaku Gothic New', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --japanese: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --logo-size: clamp(5.3rem, min(10.4vw, 15svh), 11rem);
  --front-top: clamp(3rem, 13svh, 9rem);
  --menu-gap: clamp(1.8rem, 7.5svh, 5.8rem);
  --header-top: clamp(1.25rem, 4.7svh, 3.25rem);
  --ease: cubic-bezier(.22,.69,.18,1);
  /* The flash on hover and focus: a light glow here, a dark one in the light theme. */
  --flash-tint: rgb(255 255 255 / .9);
  --focus-flash: 0 0 2px var(--flash-tint), 0 0 9px rgb(255 255 255 / .52), 0 0 24px rgb(255 255 255 / .3);
  background: var(--paper);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #0b0b0b;
  --paper: #efefef;
  --sub: #6e6e6e;
  --readable-sub: #515151;
  --large-floor: #818181;
  --small-floor: #5b5b5b;
  --shine: #000;
  --halo: rgb(0 0 0 / .17);
  --defocus-tint: rgb(11 11 11 / .22);
  --flash-tint: rgb(0 0 0 / .45);
  --focus-flash: 0 0 2px var(--flash-tint), 0 0 9px rgb(0 0 0 / .26), 0 0 24px rgb(0 0 0 / .15);
  --defocus-shadow: 0 0 4px var(--defocus-tint);
  --shadow: 239 239 239;
}
* { box-sizing: border-box; }
::selection { color: var(--paper); background-color: var(--ink); }
body {
  margin: 0; color: var(--ink); background: radial-gradient(ellipse at 86% 16%,#282828,#161616 29%,#050505 81%);
  font-family: var(--mixed);
  -webkit-font-smoothing: antialiased; isolation: isolate;
}
[data-theme="light"] body { background: radial-gradient(ellipse at 85% 15%,#dcdcdc,#efefef 71%); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(var(--shadow) / .80); opacity: 0; transition: opacity var(--dur-slow), background-color var(--dur-slow) ease;
}
[data-view="about"] body::before { opacity: 1; }
#atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: block; width: 100%; height: 100%; }
#exposure { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
#exposure > span { position: absolute; inset: 0; opacity: 0; }
#exposure > [data-tone="light"] { background-color: #f5f5f3 !important; }
#exposure > [data-tone="dark"] { background-color: #050506 !important; }
main { position: relative; z-index: 2; }
button, a { font: inherit; color: inherit; letter-spacing: inherit; -webkit-tap-highlight-color: transparent; }
button { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; cursor: pointer; text-align: left; }
a { text-decoration: none; }
body :where(:not(canvas)) {
  background: transparent !important; background-color: transparent !important;
  border: none !important; outline: none !important; box-shadow: none !important;
}
button, a { -webkit-appearance: none; appearance: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
.js:not(.enhanced)[data-view="about"] #home, .js:not(.enhanced)[data-view="home"] #about { display: none; }
:focus-visible { outline: none; text-decoration: underline; text-underline-offset: .17em; text-decoration-thickness: 2px; }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; pointer-events: none; }
.sr-only:not(textarea) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
textarea.sr-only { opacity: 0; caret-color: transparent; }
#status { position: fixed; top: 0; left: 0; }
.mast { position: absolute; inset: 0 0 auto; z-index: 5; }
.mast h1 { margin: 0; }
.brand {
  position: absolute; left: var(--side); top: var(--front-top); display: inline-flex; align-items: baseline;
  font: 700 var(--logo-size)/1 var(--sans); letter-spacing: -.055em; color: var(--ink); white-space: nowrap;
  transition: top var(--dur-view) var(--ease), font-size var(--dur-view) var(--ease), opacity var(--dur-view) ease, color var(--dur-theme) ease;
}
:where(.js) .brand { opacity: 0; }
.ready .brand { opacity: 1; }
.brand[href] { cursor: pointer; }
.brand, .brand span,
.brand:is(:hover, :focus, :focus-visible, :active),
.brand:is(:hover, :focus, :focus-visible, :active) span {
  text-decoration: none !important;
  border-bottom: none !important;
}
.wordmark { position: relative; display: inline-flex; align-items: baseline; transition: transform var(--dur-unfold) var(--ease); }
:where(.js) .wordmark { transform: translateX(.45em); }
.open-word .wordmark, [data-view="about"] .wordmark { transform: translateX(0); }
.fold {
  display: inline-block; box-sizing: content-box; overflow: clip; white-space: nowrap;
  width: 0; padding-right: 0; margin-right: 0;
}
.fold > span { display: block; width: max-content; letter-spacing: -.055em; }
.open-word[data-view="home"] .fold {
  /* Extend the clip edge beyond the measured text without moving the next letter. */
  width: var(--full-width); padding-right: .14em; margin-right: -.14em;
}
[data-view="about"] .wordmark > .fold {
  width: auto; margin: 0; padding: 0; transition: none;
  overflow: visible;
}
/* Returning from About, the full word is already on screen: keep it whole
   while the brand moves and grows, instead of clipping and unfolding it again. */
.word-returning .wordmark > .fold { transition: none; }
.glyph-vv {
  position: relative;
  display: inline-block;
  width: calc(var(--vv-height, .54em) * 338 / 189);
  height: var(--vv-height, .54em);
  margin: 0 .03em 0 .07em;
  vertical-align: calc(var(--vv-drop, 0em) * -1);
  /* Fade the vv through its own color, the same way as the letters, so theme
     switches and link highlights change it at the same pace. */
  transition: color var(--defocus-out);
}
.glyph-vv::before, .glyph-vv::after { content: ''; position: absolute; pointer-events: none; }
/* The sharp outline, painted in the text colour, on top of the blurred one. */
.glyph-vv::after {
  inset: 0;
  background-color: currentColor;
  -webkit-mask: url("icons/wordmark-vv.svg") center / 100% 100% no-repeat;
  mask: url("icons/wordmark-vv.svg") center / 100% 100% no-repeat;
}
/* The blurred outline (built in app.js), shown while a link is highlighted:
   the counterpart of the letters' defocus text-shadow. */
.glyph-vv::before {
  inset: calc(var(--vv-blur-pad, 0em) * -1);
  background-color: var(--defocus-tint);
  -webkit-mask: var(--vv-blur) center / 100% 100% no-repeat;
  mask: var(--vv-blur) center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity var(--defocus-out);
}
.wordmark > .fold {
  transition: width var(--dur-unfold) var(--ease), padding-right var(--dur-unfold) var(--ease),
              margin-right var(--dur-unfold) var(--ease);
}
/* Defocus like the other links, without filter (it caused artifacts in Safari).
   Only the letters turn transparent, never the whole wordmark: the vv takes its
   colour from the wordmark and would blank out while it faded back. Each rule's
   own transition sets the speed into that state: blur over --defocus-in, come
   back into focus over --defocus-out. */
.wordmark .glyph-text { transition: color var(--defocus-out), text-shadow var(--defocus-out); }
.link-active .glyph-text { color: transparent; text-shadow: var(--defocus-shadow); transition-duration: var(--defocus-in); }
.link-active .glyph-vv { color: var(--defocus-tint); transition-duration: var(--defocus-in); }
/* With the blurred outline ready, the vv defocuses exactly like the letters:
   the sharp shape fades out and the blurred one fades in. */
.vv-blur-ready.link-active .glyph-vv { color: transparent; }
.vv-blur-ready.link-active .glyph-vv::before { opacity: 1; transition-duration: var(--defocus-in); }
/* The arrow hangs left of the brand, so showing or hiding it never moves the word. */
.return { position: absolute; top: 0; bottom: 0; right: 100%; align-items: center; display: inline-flex; width: 0; overflow: hidden; opacity: 0; font: 400 .76em/1 var(--sans); transition: width var(--dur-slow) var(--ease), opacity var(--dur-quick), transform var(--dur-nudge) var(--ease), color var(--dur-theme) ease; }
[data-view="about"] .brand { top: var(--header-top); font-size: 2.25rem; min-height: 44px; align-items: center; }
[data-view="about"] .wordmark { letter-spacing: -.025em; }
[data-view="about"] .return {
  font-size: .875rem; letter-spacing: 0; color: var(--sub);
  width: 1.1em; margin-inline-end: .35em; opacity: 1;
}
.ready[data-view="about"] .brand { opacity: .88; }
.ready[data-view="about"] .brand:focus-visible { opacity: 1; }
[data-view="about"] .brand:focus-visible .return { transform: translateX(-3px); }
@media (hover: hover) {
  .hover-input[data-view="about"] .brand:hover .return { transform: translateX(-3px); }
}
/* Hover and keyboard focus flash like the links (halation). The vv glows
   through its blurred outline, since text-shadow cannot reach the mask. */
@keyframes vv-halation {
  0%, 100% { opacity: 0; }
  24% { opacity: 1; }
}
[data-view="about"] .brand:focus-visible .glyph-text { animation: halation var(--dur-quick) ease-out; }
.vv-blur-ready[data-view="about"] .brand:focus-visible .glyph-vv::before { background-color: var(--flash-tint); animation: vv-halation var(--dur-quick) ease-out; }
@media (hover: hover) {
  .hover-input[data-view="about"] .brand:hover .glyph-text { animation: halation var(--dur-quick) ease-out; }
  .vv-blur-ready.hover-input[data-view="about"] .brand:hover .glyph-vv::before { background-color: var(--flash-tint); animation: vv-halation var(--dur-quick) ease-out; }
}
/* Keyboard focus is an underline everywhere, placed like the links' one
   (2px, .15em under the baseline measured in app.js). */
.wordmark::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  top: calc(var(--wordmark-baseline, .8em) + .15em);
  background-color: currentColor; opacity: 0; pointer-events: none;
}
[data-view="about"] .brand:focus-visible .wordmark::after { opacity: 1; }
:root:not(.js) .theme { display: none; }
.theme { position: absolute; right: var(--side); top: var(--header-top); width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); font: 400 1.65rem/1 Georgia,serif; }
.theme span { transition: transform var(--dur-slow) var(--ease), color var(--defocus-out), text-shadow var(--defocus-out); text-shadow: 0 1px 2px rgb(var(--shadow) / .55); }
/* Defocus with the wordmark and the other links while a link is highlighted. */
.link-active .theme span { color: transparent; text-shadow: var(--defocus-shadow); transition-duration: var(--dur-slow), var(--defocus-in), var(--defocus-in); }
.theme[aria-pressed="true"] span, [data-theme="light"] .theme:not([aria-pressed]) span { transform: rotate(180deg); }
@keyframes theme-halation {
  0%, 100% { text-shadow: 0 1px 2px rgb(var(--shadow) / .55); }
  24% { text-shadow: var(--focus-flash); }
}
.theme:focus-visible span { animation: theme-halation var(--dur-quick) ease-out; }
@media (hover: hover) {
  .hover-input .theme:hover span { animation: theme-halation var(--dur-quick) ease-out; }
}
.theme:focus-visible { text-decoration: none; }
/* Underline under the symbol, outside the span so it stays below when the symbol turns. */
.theme::after {
  content: ''; position: absolute; left: 50%; width: .9em; height: 2px;
  top: calc(50% + .5em); transform: translateX(-50%);
  background-color: currentColor; opacity: 0; pointer-events: none;
}
.theme:focus-visible::after { opacity: 1; }
.home { min-height: 100svh; padding: calc(var(--front-top) + var(--logo-size) + var(--menu-gap)) var(--side) max(1.25rem, env(safe-area-inset-bottom)); }
.links {
  --label-column: clamp(9.6875rem, 13vw, 10.9375rem);
  --link-gap: clamp(1.25rem, 2.4vw, 2.75rem);
  display: flex; flex-direction: column; align-items: flex-start;
  margin-left: -12px;
}
@media (hover: none), (pointer: coarse) {
  .links { --hit-width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  .links { --hit-width: fit-content; }
}
/* An attached trackpad and a finger can alternate on the same screen. */
.links[data-hit-input="touch"] { --hit-width: 100%; }
.links[data-hit-input="fine"] { --hit-width: fit-content; }
.links, .links *, .links::before, .links::after, .links *::before, .links *::after {
  -webkit-filter: none !important;
  filter: none !important;
}
.link-row {
  position: relative;
  display: grid; grid-template-columns: max(var(--label-column), var(--widest-label, 0px)) minmax(0, max-content);
  column-gap: var(--link-gap); align-items: baseline; justify-content: start;
  width: var(--hit-width, fit-content); max-width: 100%; min-width: 0;
  padding: .02em 16px .02em 12px;
  color: var(--ink); font-family: var(--sans); font-size: clamp(2.25rem, min(3.7vw, 6.45svh), 4.4rem); font-weight: 400;
  letter-spacing: -.058em; line-height: 1.16; min-height: 1.23em;
  cursor: pointer;
}
/* Hold one-finger pans only after the script has enabled scrubbing. */
:where(.enhanced) :is(.links, .link-row) { touch-action: pinch-zoom; }
:is(.is-zoomed, .native-touch-only, .page-scrolls) :is(.links, .link-row) { touch-action: auto; }
:where(.enhanced) .link-row, :where(.enhanced) .link-row * {
  -webkit-user-select: none; user-select: none;
}
:where(.enhanced) button.link-row { -webkit-touch-callout: none; }
:where(.enhanced) .link-row > * { pointer-events: none; }
button.link-row { caret-color: transparent; }
.link-row:focus-visible { text-decoration: none; }
/* Tied to keyboard focus itself, so it stays after Escape clears the effect. */
.link-row:focus-visible .link-label { text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.link-label { display: block; width: max-content; transition: transform var(--dur-quick) var(--ease), color var(--defocus-out), text-shadow var(--defocus-out); }
.link-meta .sub { transition: color var(--defocus-out), text-shadow var(--defocus-out), opacity var(--defocus-out); }
.link-row.is-focused .link-label { color: var(--ink); transform: translateX(4px); animation: halation var(--dur-quick) ease-out; }
@keyframes halation {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  24% { text-shadow: var(--focus-flash); }
}
.links.has-focus .link-row:not(.is-focused) .link-label,
.links.has-focus .link-row:not(.is-focused, button.copied, button.copy-error) .sub {
  color: transparent; text-shadow: var(--defocus-shadow);
}
.links.has-focus .link-row:not(.is-focused) .link-label { transition-duration: var(--dur-quick), var(--defocus-in), var(--defocus-in); }
.links.has-focus .link-row:not(.is-focused, button.copied, button.copy-error) .sub { transition-duration: var(--defocus-in); }
.links.has-focus .link-row:not(.is-focused, button.copied, button.copy-error) .sub { opacity: .6; }
.link-meta { display: inline-flex; width: fit-content; max-width: 100%; gap: .7em; align-items: center; position: relative; top: -.12em;
  color: var(--readable-sub); font: 400 .82rem/1.2 var(--sans); letter-spacing: .012em;
  transition: transform var(--dur-quick) var(--ease), opacity var(--dur-quick), color var(--dur-theme) ease; }
:where(.js) .link-meta { opacity: 0; transform: translateX(-3px); }
.sub { overflow-wrap: anywhere; }
.link-row.is-focused .link-meta, button.link-row:is(.copied, .copy-error) .link-meta { opacity: 1; transform: translateX(4px); }
.meta-symbol { flex: none; opacity: 1; font-family: var(--sans); font-size: 1.14em; }
:where(.js) .meta-symbol { opacity: 0; }
button.link-row .copy-symbol { flex: none; opacity: 0; }
/* Without JavaScript the Discord row is text to select, not a control. */
.link-static { cursor: auto; }
a.link-row.is-focused .meta-symbol, button.link-row:is(.is-focused, .copied) .copy-symbol { opacity: 1; }
button.link-row .copy-check, button.link-row.copied .copy-outline { display: none; }
button.link-row.copied .copy-check { display: inline; }
.links.is-scanning :is(.link-label, .sub) {
  animation: scan-focus 640ms ease-out both;
  animation-delay: calc(60ms + var(--scan-order) * 140ms);
}
@keyframes scan-focus {
  0% { opacity: .55; color: transparent; text-shadow: var(--defocus-shadow); }
  17% { opacity: 1; color: var(--shine); text-shadow: var(--focus-flash); }
  48% { opacity: 1; text-shadow: 0 0 7px var(--halo); }
  100% { opacity: 1; text-shadow: none; }
}
.resetting-links .link-label, .resetting-links .link-meta, .resetting-links .link-meta > * { transition: none; animation: none; }
/* A view switch also clears any defocus at once instead of fading it back. */
.resetting-links :is(.glyph-text, .glyph-vv, .theme span), .resetting-links .glyph-vv::before { transition: none; }
.about-page h2:focus { outline: none; }
.about-page {
  min-height: 100svh;
  padding: clamp(8rem, 24svh, 15.5rem) var(--side) max(3rem, env(safe-area-inset-bottom));
}
.about-intro {
  max-width: 460px; opacity: .85;
  font: 400 .9375rem/2 var(--japanese);
}
.about-intro p { margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.about-intro p + p { margin-top: .6em; }
.current {
  display: grid; gap: 14px; width: fit-content; max-width: 100%;
  margin: 0; padding: 0;
}
.about-intro:not(:empty):not([hidden]) + .current { margin-top: clamp(48px, 5vw, 64px); }
.current-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  opacity: .88; transition: opacity var(--dur-quick) ease;
}
.current dt { color: var(--readable-sub); font: normal 400 .82rem/1.55 var(--sans); letter-spacing: .04em; }
.current dd { margin: 0; color: var(--ink); font: 400 1rem/1.55 var(--sans); overflow-wrap: anywhere; }
body, .theme, .link-row, .current dt, .current dd { transition: color var(--dur-theme) ease; }
.about-page.entered .about-intro p, .about-page.entered .current-row {
  animation: profile-arrive var(--dur-theme) var(--ease) backwards;
  animation-delay: calc(var(--order) * .05s);
}
@keyframes profile-arrive {
  from { opacity: 0; transform: translateY(4px); }
}
@media (hover: hover) and (pointer: fine) {
  .hover-input .current:has(.current-row:hover) .current-row { opacity: .45; }
  .hover-input .current:has(.current-row:hover) .current-row:hover { opacity: 1; }
}
@media (max-width: 42rem) {
  :root { --side: clamp(1.5rem,7.5vw,2.75rem); --logo-size: clamp(3.65rem,16.35vw,5.8rem); --menu-gap: clamp(2rem,8svh,4.8rem); --front-top: clamp(4rem,14svh,8.8rem); --header-top: max(1rem,env(safe-area-inset-top)); }
  .links {
    --label-column: clamp(7.5rem, 33.333vw, 8.4375rem);
    --link-gap: 1rem;
  }
  .link-row { min-height: 50px; font-size: clamp(1.9rem,7.7vw,2.8rem); align-items: center; }
  .link-meta { margin-left: 0; top: 0; font-size: .8rem; }
  [data-theme="dark"] .link-meta { color: #c6c6c6; }
  .about-page { padding-top: clamp(7.5rem, 21svh, 11rem); }
  .theme { right: calc(var(--side) - 9px); }
}
@media (hover:none), (max-width:42rem) {
  .link-meta { opacity: 1; transform: none; }
}
@media (max-height:620px) and (min-width:42.01rem) {
  :root { --front-top: 1.85rem; --menu-gap: 1.3rem; --logo-size: clamp(3.7rem,13svh,5.6rem); --header-top: .9rem; }
  .link-row { font-size: clamp(1.4rem,6.2svh,2.3rem); min-height: 1.2em; }
}
@media (max-height:600px) and (max-width:42rem) {
  :root { --front-top: 2.5rem; --menu-gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  #exposure { display: none; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .link-row.is-focused .link-label, .link-row.is-focused .link-meta { transform: none; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .links.has-focus .link-row:not(.is-focused) .link-label,
  .links.has-focus .link-row:not(.is-focused, button.copied, button.copy-error) .sub { color: inherit; text-shadow: none; opacity: 1; }
  .link-active .glyph-text { color: inherit; text-shadow: none; }
  .link-active .glyph-vv, .vv-blur-ready.link-active .glyph-vv { color: inherit; }
  .vv-blur-ready.link-active .glyph-vv::before { opacity: 0; }
  .link-active .theme span { color: inherit; text-shadow: 0 1px 2px rgb(var(--shadow) / .55); }
  .link-row.is-focused .link-label { animation: none; }
}
@media (prefers-contrast: more) {
  :root { --large-floor: var(--ink); --small-floor: var(--ink); --readable-sub: var(--ink); }
}
@media (forced-colors: active) {
  .theme::after { forced-color-adjust: none; background-color: ButtonText; }
  .wordmark::after { forced-color-adjust: none; background-color: LinkText; }
  /* Forced colours replace the vv's background fill with the page background. Paint
     it in the system colour of the letters around it (a link on About). */
  .wordmark .glyph-vv::after { forced-color-adjust: none; background-color: CanvasText; }
  [data-view="about"] .glyph-vv::after { background-color: LinkText; }
  .glyph-vv::before { display: none; }
  #atmosphere,body::before { display: none; }
  .brand:focus-visible .return { font-weight: 700; }
}
