:root { --bg:#f7f8fa; --ink:#1b2430; --muted:#5b6675; --accent:#3a5bd9; --card:#fff; --line:#e3e7ee; }
@media (prefers-color-scheme: dark) { :root { --bg:#0b111b; --ink:#e6edf5; --muted:#93a1b3; --accent:#8fb0ff; --card:#121a26; --line:#223044; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
main { max-width:760px; margin:0 auto; padding:32px 16px 64px; }
article { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:24px 20px; }
h1 { font-size:clamp(1.25rem, 5.4vw, 1.6rem); line-height:1.25; margin:0 0 16px; overflow-wrap:break-word; hyphens:auto; }
h2 { font-size:1.15rem; margin:28px 0 8px; }
ul { padding-left:1.3em; }
a { color:var(--accent); word-break:break-word; }
code { font-size:.9em; background:rgba(127,127,127,.15); padding:1px 4px; border-radius:4px; }
footer { color:var(--muted); font-size:.9rem; margin-top:24px; display:flex; flex-wrap:wrap; gap:8px 20px; }

/* Landing page: personal card and projects */
main.home { max-width:560px; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; justify-content:center; padding-top:48px; }
.home .card { text-align:center; margin-bottom:40px; }
.avatar {
  width:88px; height:88px; margin:0 auto 18px; border-radius:50%; display:grid; place-items:center;
  font-size:1.9rem; font-weight:700; letter-spacing:.02em; color:var(--card);
  background:linear-gradient(135deg, var(--accent), #b06be0);
}
.home h1 { font-size:clamp(1.9rem, 8vw, 2.4rem); letter-spacing:-.02em; margin:0; }
.home .role { margin:2px 0 14px; color:var(--accent); font-weight:600; }
.home .about { margin:0 auto; max-width:30em; color:var(--muted); }
.home .contacts { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:22px 0 0; }
.home .contacts a {
  padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:var(--card);
  text-decoration:none; font-size:.92rem;
}
.home h2 { font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); margin:0 0 12px; }
.projects { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.project {
  display:flex; align-items:center; gap:14px; padding:14px; border-radius:16px; min-height:44px;
  background:var(--card); border:1px solid var(--line); color:var(--ink); text-decoration:none;
  transition:border-color .2s, transform .2s;
}
a.project:hover { border-color:var(--accent); transform:translateY(-2px); }
.project img { flex:none; width:56px; height:56px; border-radius:14px; }
.project > span:not(.arrow) { flex:1; min-width:0; }
.project strong { display:block; font-size:1.05rem; }
.project .status { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.project .status span { padding:0 8px; border-radius:999px; font-size:.75rem; color:var(--muted); border:1px solid var(--line); white-space:nowrap; }
.project .desc { display:block; color:var(--muted); font-size:.9rem; line-height:1.45; margin-top:2px; }
.project .arrow { flex:none; font-size:1.6rem; color:var(--muted); }
.home footer { justify-content:center; margin-top:32px; }
@media (max-width:420px) { main.home { justify-content:flex-start; padding-top:40px; } .project img { width:48px; height:48px; } }
