:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #101512;
  color: #edf2eb;
  --muted: #b0bcb0;
  --accent: #b4ea97;
  --line: #35443a;
  --panel: #171e19;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 72% 10%, #243829 0%, transparent 37rem);
}

.shell { width: min(66rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.handle { font: 600 0.95rem/1.5 var(--mono); }
.handle span, h1 span { color: var(--accent); }
a { color: inherit; text-underline-offset: 0.24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.profile-link { font-size: 0.875rem; color: var(--muted); }
main { padding-bottom: clamp(3rem, 8vw, 6rem); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7.6vw, 6rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.02;
}
.intro {
  max-width: 35ch;
  margin: 1.4rem 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}
.browse {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.3rem;
  background: var(--accent);
  color: #101512;
  font-weight: 700;
  text-decoration: none;
}
.browse:hover { background: #cbf5b6; color: #101512; }

.profile {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-inline-end: 0.65rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  box-shadow: 0.7rem 0.7rem 0 #0c100e;
  transform: rotate(3deg);
}
.avatar {
  display: block;
  width: clamp(9rem, 19vw, 11.5rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
}
.profile span { color: var(--muted); font: 0.875rem/1.5 var(--mono); }

.repository-panel {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  scroll-margin-block-start: 1rem;
}
.list-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 0.875rem/1.5 var(--mono);
}
h2 { font: inherit; color: var(--accent); margin: 0; }
.projects { list-style: none; margin: 0; padding: 0; }
.project {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
}
.project + .project { border-top: 1px solid var(--line); }
.project h3 { margin: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { margin: 0.35rem 0 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.project .meta { margin: 0; font-size: 0.875rem; white-space: nowrap; }
noscript p { padding-inline: 1rem; }

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .profile { grid-row: 1; justify-self: start; margin: 0; padding: 0.8rem; transform: none; }
  .avatar { width: 8rem; }
  .project { flex-direction: column; }
}
