@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #080908;
  --surface: rgba(12, 14, 12, 0.76);
  --text: #ecefe8;
  --muted: #9aa096;
  --faint: #62675f;
  --line: rgba(236, 239, 232, 0.14);
  --accent: #dfff3f;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(236, 239, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 239, 232, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: radial-gradient(
      300px circle at var(--mouse-x) var(--mouse-y),
      rgba(223, 255, 63, 0.06),
      transparent 70%
    );
  }
}

a {
  color: inherit;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.25em;
}

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img { display: block; max-width: 100%; }

.shell {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.94);
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: lowercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }

main { background: var(--surface); }

.profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: clamp(72px, 12vw, 128px) 0 76px;
}

.avatar {
  width: 132px;
  height: 132px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  object-fit: cover;
}

.label {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
}

.intro {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.plain-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.plain-links a { color: var(--text); }
.plain-links a:hover { color: var(--accent); }

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
}

.section h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.section-copy p {
  max-width: 680px;
  margin: 0 0 16px;
  color: var(--muted);
}

.section-copy p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.facts div { min-width: 0; }
.facts dt { color: var(--faint); font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; }
.facts dd { margin: 5px 0 0; font-size: 0.9rem; }

.page-head {
  padding: clamp(60px, 9vw, 96px) 0 52px;
}

.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }

.page-head p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
}

.project-group { border-top: 1px solid var(--line); }

.group-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  padding: 38px 0 24px;
}

.group-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.group-head p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-list { border-top: 1px solid var(--line); }

.project-row {
  display: grid;
  grid-template-columns: 54px minmax(170px, 0.55fr) minmax(260px, 1fr) 82px;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.project-row:last-child { border-bottom: 0; }
.project-index { color: var(--faint); font-family: var(--mono); font-size: 0.68rem; }
.project-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.project-description { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.project-status { margin-top: 7px; color: var(--accent); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.project-link { font-family: var(--mono); font-size: 0.68rem; text-align: right; }

.repo-list { border-top: 1px solid var(--line); }

.repo-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(260px, 1fr) 90px;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.repo-row h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.repo-row p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.repo-row a { font-family: var(--mono); font-size: 0.68rem; text-align: right; }

.site-footer {
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: rgba(8, 9, 8, 0.96);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 720px) {
  body { background-size: 48px 48px; }
  .shell { width: min(100% - 28px, 960px); }
  .header-inner { min-height: 58px; }
  .nav { gap: 14px; }
  .profile { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 58px 0; }
  .avatar { width: 88px; height: 88px; }
  .section-grid, .group-head { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .project-row { grid-template-columns: 34px minmax(0, 1fr) 62px; gap: 14px; }
  .project-description { grid-column: 2 / -1; }
  .project-link { grid-column: 3; grid-row: 1; }
  .repo-row { grid-template-columns: minmax(0, 1fr) 62px; gap: 8px 14px; }
  .repo-row p { grid-column: 1 / -1; }
  .repo-row a { grid-column: 2; grid-row: 1; }
  .footer-inner { display: grid; }
}

@media (max-width: 460px) {
  .profile { grid-template-columns: 1fr; }
  .avatar { width: 82px; height: 82px; }
  h1 { font-size: 2.25rem; }
}
