:root {
  color-scheme: dark;
  --bg: #11151b;
  --surface: #181e26;
  --text: #e7ebf1;
  --muted: #a3aebb;
  --accent: #96bde9;
  --line: #2b3542;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #344c69; color: #fff; }
.shell { width: min(900px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
nav { display: flex; justify-content: space-between; align-items: center; min-height: 84px; gap: 24px; }
.brand { color: var(--text); font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 25px; font-size: 14px; }
.nav-links a { color: var(--muted); padding-block: 10px; }
.nav-links a:hover { color: var(--text); }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 58px 0 52px; }
.intro>div { max-width: 530px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { color: var(--text); font-weight: 600; }
h1 { font-size: 38px; letter-spacing: -1.1px; line-height: 1.2; margin-bottom: 16px; }
.intro p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.intro img { flex-shrink: 0; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.text-link { display: inline-block; font-size: 14px; }
.text-link span { margin-left: 4px; }
.section { padding: 36px 0; border-top: 1px solid var(--line); }
h2 { font-size: 22px; letter-spacing: -.4px; line-height: 1.4; margin-bottom: 12px; }
.section-description { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
#project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color .15s ease;
}
.project-card:hover { border-color: #53687f; }
.project-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.project-card h3 { font-size: 17px; line-height: 1.4; margin: 0; }
.private-tag { font-size: 10px; color: #d7c398; border: 1px solid #625841; border-radius: 4px; padding: 1px 7px; }
.project-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 17px; }
.tag { color: #b2c1d2; background: #232d3a; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.project-link { font-size: 13px; }
.project-link span { margin-left: 5px; }
.project-note { color: var(--muted); font-size: 12px; }
.about p,.contact p { color: var(--muted); max-width: 740px; font-size: 15px; margin-bottom: 16px; }
.about p:last-child { margin-bottom: 0; }
.contact-links { display: flex; gap: 24px; }
.footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 12px; }
.footer a { color: var(--muted); }

@media (max-width: 600px) {
  .shell { width: calc(100% - 40px); }
  nav { min-height: 72px; gap: 18px; }
  .nav-links { gap: 18px; font-size: 13px; }
  .intro { gap: 20px; padding: 34px 0 36px; align-items: flex-start; }
  h1 { font-size: 30px; }
  .intro p { font-size: 15px; }
  .intro img { width: 60px; height: 60px; }
  #project-grid { grid-template-columns: 1fr; }
  .section { padding-block: 30px; }
  .project-card { padding: 20px; }
  .footer { font-size: 11px; }
}
@media (max-width: 360px) {
  .nav-links { gap: 13px; }
  .intro { flex-direction: column-reverse; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
