:root{
  --bg:#ffffff; --ink:#000000; --link:#1a3deb;
  --p-ink:#000000; --p-face:#ffffff; --blush:#d42a32;
  color-scheme:light;
}
html.is-night{
  --bg:#1a1a1a; --ink:#ececec; --link:#8ea2ff;
  --p-ink:#050505; --p-face:#ececec;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}
body{background:var(--bg);color:var(--ink);transition:background-color .3s ease,color .3s ease;-webkit-tap-highlight-color:transparent}

/* one screen, content a bit above centre */
.screen{height:100vh;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:0 20px 96px;overflow:hidden}
.portrait{display:block;width:218px;height:272px;flex:none;overflow:visible;transform-origin:50% 55%}
.portrait .face{fill:var(--p-face);transition:fill .3s ease}
.portrait .ink{fill:var(--p-ink);transition:fill .3s ease}
.portrait .blush{fill:none;stroke:var(--blush);stroke-width:13;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .2s ease}
.portrait .smile{opacity:0;transition:opacity .2s ease}
.portrait .mouth{transition:opacity .2s ease}
.portrait .lid{transition:d .25s cubic-bezier(.3,.7,.4,1)}
.portrait .hit{fill:transparent;pointer-events:all;cursor:pointer}
.portrait.is-shy .blush,.portrait.is-shy .smile{opacity:1}
.portrait.is-shy .mouth{opacity:0}

.info{display:flex;flex-direction:column;align-items:center;gap:16px}
.info p{margin:0}
.t{font:700 20px/20px "Comfortaa",system-ui,sans-serif;letter-spacing:.03em;text-transform:uppercase;
  -webkit-text-stroke:.5px currentColor;font-kerning:normal;white-space:nowrap}
.tz{padding-bottom:3px}
.links{display:flex;gap:20px;padding-top:4px}
.links a{color:var(--link);text-decoration:none;text-underline-offset:4px;transition:color .3s ease}
.links a:hover{text-decoration:underline}
::selection{background:var(--ink);color:var(--bg);-webkit-text-stroke-color:var(--bg)}
.links a::selection{color:var(--bg)}
a:focus-visible,button:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:2px}

/* theme switch: rocker light switch */
.switch{position:fixed;right:16px;top:16px;width:40px;height:51px;padding:0;margin:0;border:0;background:none;
  color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center;touch-action:manipulation;z-index:5}
.switch svg{display:block;width:24px;height:35px;overflow:visible;transform-origin:50% 50%}
.switch path{fill:currentColor;stroke:currentColor;stroke-width:9;stroke-linejoin:round}

@media (max-width:809.98px){
  .screen{padding-bottom:160px}
  .switch{right:8px;top:8px}
}

/* custom cursor (mouse only) */
@media (hover:hover) and (pointer:fine){ html.dot-cursor, html.dot-cursor *{cursor:none !important} }
#dot-cursor{position:fixed;left:0;top:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;
  background:var(--ink);pointer-events:none;z-index:2147483647;opacity:0;transition:opacity .25s ease,background-color .3s ease;will-change:transform}
#dot-cursor.is-on{opacity:1}
@media (prefers-reduced-motion:reduce){
  body,.portrait *,.switch svg,#dot-cursor{transition:none !important}
}
