:root{
  --bg:#dff3e4; --bg2:#f6e9f2; --panel:#fffdf7; --ink:#2f3b32; --accent:#7cc79a;
  --accent-ink:#1f4a32; --line:#b9d9c3; --shadow:rgba(47,59,50,.18);
}
[data-theme="dark"]{
  --bg:#161922; --bg2:#1b242b; --panel:#1f232c; --ink:#e4f1e8; --accent:#4f5e9c;
  --accent-ink:#f0fff5; --line:#3a4b56; --shadow:rgba(0,0,0,.5);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'Nunito',system-ui,sans-serif; color:var(--ink);
  background:radial-gradient(circle at 20% 20%,var(--bg2),transparent 45%),
             radial-gradient(circle at 85% 80%,var(--bg2),transparent 40%),var(--bg);
  background-attachment:fixed; overflow:hidden; transition:background .3s,color .3s;
}
a{color:var(--accent-ink);font-weight:600}

.hero h1 .name {
  color: #22651d;             
}
[data-theme="dark"] .hero h1 .name {
  color: #7eaaf0;             
}

.toggles{
  position:fixed;
  top:14px;
  right:14px;
  display:flex;
  gap:8px;
  z-index:900
}

.round-btn{
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid var(--line);
  background:var(--panel);
  font-size:18px;cursor:pointer;
  box-shadow:0 3px 0 var(--line)
}

li {
  text-align: justify;
}

.round-btn:active{
  transform:translateY(2px);
  box-shadow:none
}

.desktop{
  position:relative;
  height:calc(100% - 44px);
  padding:24px
}

.icons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  margin-top:28px;
  max-width:640px;
  pointer-events:auto
}

.icon{
  background:none;
  border:none;
  color:var(--ink);
  font:600 14px 'Nunito',sans-serif;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:8px 4px;
  border-radius:12px;
  cursor:pointer
}

.icon:hover,
.icon:focus-visible{
  background:color-mix(in srgb,var(--accent) 30%,transparent);
  outline:none
}

.glyph{
  font-size:36px;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  background:var(--panel);
  border:2px solid var(--line);
  border-radius:16px
}

.hero{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
  padding:0 24px
}
.hero h1{
  font-size:clamp(2.2rem,6vw,4.4rem);
  font-weight:800;
  letter-spacing:-.02em
}
.hero-pic{
  position:relative;
  width:150px;
  height:150px;
  border-radius:50%;
  border:3px solid var(--line);
  background:var(--panel);
  box-shadow:5px 5px 0 var(--shadow);
  overflow:hidden;
  display:grid;
  place-items:center;
  font-size:64px;
  margin-bottom:18px;
  pointer-events:auto
}
.hero-pic img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.hero h2{
  font-size:clamp(1rem,2.2vw,1.5rem);
  font-weight:600;
  opacity:.8;
  margin-top:6px
}
.hint{
  margin-top:18px;
  font-size:.85rem;
  opacity:.55
}

.window{
  position:absolute;
  background:var(--panel);
  border:2px solid var(--line);
  border-radius:14px;
  box-shadow:6px 6px 0 var(--shadow);
  max-width:calc(100vw - 20px);
  z-index:10
}
.window[hidden]{display:none}
.titlebar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 12px;
  background:var(--accent);
  color:var(--accent-ink);
  border-radius:11px 11px 0 0;
  font-weight:800;
  cursor:grab;
  user-select:none
}
.titlebar:active{
  cursor:grabbing
}
.close{
  background:var(--panel);
  color:var(--ink);
  border:2px solid var(--line);
  border-radius:8px;
  width:26px;
  height:26px;
  font:800 13px 'Nunito';
  cursor:pointer
}
.content{
  padding:16px;
  max-height:min(70vh,560px);
  overflow:auto;
  line-height:1.55;
  font-size:.95rem
}

.content p,
.content ul,
.content h3{
  margin-bottom:10px
}

.content ul{
  padding-left:20px
}

.content h3{
  font-size:.85rem;
  letter-spacing:.06em;
  margin-top:14px
}

.content h3.big{
  font-size:1.5rem;
  letter-spacing:0;
  margin:0 0 8px
}

.content hr{
  border:none;
  border-top:2px dashed var(--line);
  margin:14px 0
}

.center{
  text-align:center
}

.about-top{
  display:flex;
  gap:14px;
  align-items:center
}

.avatar{
  font-size:44px;
  width:80px;
  height:80px;
  border-radius:50%;
  border:3px solid var(--line);
  background:var(--panel);
  box-shadow:5px 5px 0 var(--shadow);
  overflow:hidden;
  display:grid;
  place-items:center;
  font-size:64px;
  margin-bottom:18px;
  pointer-events:auto
}

.avatar img{
  position:relative;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}

.link-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px
}

.link-grid a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:2px solid var(--line);
  border-radius:12px;
  text-decoration:none;
  color:var(--ink);
  background:var(--bg)
}

.link-grid a:hover{
  background:var(--accent)
}

.link-grid span{
  font-size:22px
}

.note{
  margin-top:12px;
  font-size:.8rem;
  opacity:.6
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px
}

.chips span{
  padding:3px 10px;
  border-radius:999px;
  background:var(--bg);
  border:1.5px solid var(--line);
  font-size:.8rem
}

.gallery{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px
}

figure .ph{
  aspect-ratio:4/3
}

figcaption{
  font-size:.78rem;
  opacity:.75;
  margin-top:4px
}

.ph{
  display:grid;
  place-items:center;
  font-size:34px;
  background:var(--bg);
  border:2px solid var(--line);
  border-radius:12px;
  min-height:70px;
  flex:none
}

.ph.wide{
  margin:10px auto;
  width:150px;
  height:100px
}

.project,.dl{
  display:flex;
  gap:12px;
  margin-bottom:14px
}

.project .ph,.dl .ph{
  width:96px;
  height:96px
}

h4{
  font-size:1rem
}

.btn{
  display:inline-block;
  margin-top:6px;
  padding:7px 16px;
  border-radius:999px;
  border:2px solid var(--line);
  background:var(--accent);
  color:var(--accent-ink);
  font:800 .85rem 'Nunito';
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 3px 0 var(--line)
}

.btn:active{
  transform:translateY(2px);
  box-shadow:none
}

details{
  border:2px solid var(--line);
  border-radius:10px;
  padding:8px 12px;
  margin-bottom:8px
}

summary{
  cursor:pointer;
  font-weight:800
}

details p{
  margin:8px 0 0
}

.footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:44px;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0 18px;
  background:var(--panel);
  border-top:2px solid var(--line);
  font-size:.85rem;
  z-index:800
}

.social a{
  text-decoration:none;
  margin-left:12px;
  font-size:18px
}


.notice{
  position:fixed;
  left:50%;
  bottom:64px;
  transform:translateX(-50%);
  width:min(340px,92vw);
  background:var(--panel);
  border:2px solid var(--line);
  border-radius:14px;
  box-shadow:6px 6px 0 var(--shadow);
  padding:16px;
  text-align:center;
  z-index:1000
}

.notice[hidden]{
  display:none
}
.notice h3{
  margin-bottom:6px
}
.notice p{
  font-size:.9rem
}


@media (max-width:700px){
  body{overflow:auto}
  .window{position:fixed!important;top:60px!important;left:10px!important;width:calc(100vw - 20px)!important}
  .hero{position:static;min-height:100%;padding:70px 16px 130px}
  .desktop{height:auto}
  .taskbar{display:flex;position:fixed;bottom:44px;left:0;right:0;justify-content:center;gap:10px;padding:8px;z-index:790}
  .taskbar button{padding:6px 14px;border-radius:999px;border:2px solid var(--line);background:var(--panel);color:var(--ink);font:700 .85rem 'Nunito'}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
