:root{
  color-scheme:light dark;
  --bg:light-dark(#f4efe4,#0f1117);--fg:light-dark(#0f1117,#ece6d8);--muted:light-dark(#4f4a40,#b8b09f);
  --accent:light-dark(#1d5bc0,#3d8bff);--line:light-dark(#d9d1bf,#2a3040);
  --dot-1:light-dark(#1d5bc0,#3d8bff);--dot-2:light-dark(#8a6412,#d9b25f);--dot-3:light-dark(#1f7a6b,#4fc3a8);
  --surface:light-dark(#fffdf9,#181c26);--wash:light-dark(#e3ebfb,#161d33);
  --border:1px;--focus:3px solid var(--accent)
}
@media (prefers-contrast:more){
  :root{
    --bg:light-dark(#fff,#000);--fg:light-dark(#000,#fff);--muted:light-dark(#0f1117,#ece6d8);
    --accent:light-dark(#0a3a8a,#a9cbff);--line:light-dark(#4f4a40,#c0c8d8);
    --surface:light-dark(#fff,#000);--wash:light-dark(#fff,#000);
    --border:2px;--focus:4px solid var(--fg)
  }
  a{text-decoration-thickness:.12em}
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg) linear-gradient(to bottom,var(--wash),var(--bg) 24rem) no-repeat}
body{max-width:43rem;margin:0 auto;padding:0 1.5rem 3rem;color:var(--fg);font:1.0625rem/1.7 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow-wrap:break-word}
a{color:var(--accent);text-underline-offset:.2em;transition:color .15s ease,text-underline-offset .15s ease}
a:hover{text-underline-offset:.3em}
a:focus-visible{outline:var(--focus);outline-offset:3px;border-radius:2px}

.languages{display:flex;justify-content:flex-end;padding-top:.5rem}
.languages details{position:relative;font-size:.9rem}
.languages summary{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:0 .25rem;color:var(--muted);cursor:pointer;list-style:none}
.languages summary::-webkit-details-marker{display:none}
.languages summary::after{content:"";width:.4rem;height:.4rem;margin-top:-.2rem;border-right:var(--border) solid currentColor;border-bottom:var(--border) solid currentColor;transform:rotate(45deg);transition:transform .15s}
.languages details[open] summary::after{margin-top:.2rem;transform:rotate(-135deg)}
.languages summary:hover,.languages details[open] summary{color:var(--fg)}
.languages ul{position:absolute;right:0;top:100%;z-index:1;min-width:12.5rem;margin:.25rem 0 0;padding:.35rem;list-style:none;background:var(--bg);border:var(--border) solid var(--line);border-radius:.6rem;box-shadow:0 .75rem 2rem -1rem light-dark(rgb(15 17 23/.45),rgb(0 0 0/.9))}
.languages a{display:flex;align-items:center;min-height:44px;padding:0 .75rem;border-radius:.4rem;color:var(--fg);text-decoration:none}
.languages a:hover,.languages a:focus-visible{background:var(--line)}
.languages a[aria-current]{font-weight:600;color:var(--accent)}
.languages a[aria-current]:hover,.languages a[aria-current]:focus-visible{color:var(--fg)}
.languages summary:focus-visible{outline:var(--focus);outline-offset:3px;border-radius:2px}

.masthead{display:flex;align-items:center;gap:1.5rem;margin:3rem 0 4rem}
.masthead h1{margin:0;font-size:clamp(1.6rem,5vw,2.1rem);font-weight:600;line-height:1.2;letter-spacing:-.01em}
.masthead p{margin:.5rem 0 0;color:var(--muted);max-width:28rem}
.masthead>:last-child{min-width:0}

.scene{flex:none;position:relative;overflow:hidden;font-size:1rem;width:7em;height:7em;border-radius:22%;background:#0f1117 url(/avatar-bg.svg) no-repeat center/cover;box-shadow:0 .5em 1.5em -.75em light-dark(rgb(15 17 23/.55),rgb(0 0 0/.8)),0 0 0 var(--border) var(--line)}
.scene::after{content:"";position:absolute;left:11.7%;top:25%;width:15.6%;height:15.6%;border-radius:50%;background:#3d8bff;animation:drift 9s ease-in-out infinite alternate}
@keyframes drift{
  from{transform:translate(0,0)}
  to{transform:translate(14%,-38%)}
}

h2{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:3.5rem 0 1rem}
h3{font-size:1.1rem;font-weight:600;margin:0;overflow-wrap:anywhere}

.products{list-style:none;padding:0 1.1rem;margin:0;background:var(--surface);border:var(--border) solid var(--line);border-radius:.9rem}
.products li{position:relative;padding:.75rem 0 1rem 1.6rem}
.products li+li{border-top:var(--border) solid var(--line)}
.products li::before{content:"";position:absolute;left:0;top:calc(.75rem + 22px - .3125rem);width:.625rem;height:.625rem;border-radius:50%;background:var(--dot)}
.products li:nth-child(1){--dot:var(--dot-1)}
.products li:nth-child(2){--dot:var(--dot-3)}
.products h3 a{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;text-decoration:none}
.products h3 a::after{content:"→"/"";display:inline-block;transition:transform .15s ease}
.products h3 a:hover,.products h3 a:focus-visible{text-decoration:underline}
.products h3 a:hover::after,.products h3 a:focus-visible::after{transform:translateX(.25rem)}
.products p{margin:0;color:var(--muted)}

.contact{list-style:none;padding:0;margin:0;color:var(--muted)}
.contact a{display:inline-block;min-height:44px;padding:.6rem 0;overflow-wrap:anywhere}
footer{margin-top:4rem;padding-top:1rem;border-top:var(--border) solid var(--line);color:var(--muted);font-size:.9rem}
footer p{margin:0}
footer a{display:inline-block;min-height:44px;padding:.6rem 0}

.lost{text-align:center;padding-top:4rem}
.lost .scene{margin:0 auto 2rem}
.scene-lost::after{left:74%;top:8%;animation:none}

@media (max-width:30rem){
  body{padding:0 1rem 2.5rem}
  .masthead{gap:1rem;margin:2rem 0 3rem;flex-wrap:wrap}
  .masthead>:last-child{flex:1 1 9rem}
  .scene{font-size:.75rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
