:root {
  color-scheme: dark;
  --background: #050505;
  --text: #fafafa;
  --muted: #bdbdbd;
  --edge: #ffffff17;
  --blue: #9bd4f5;
  --lavender: #d0bcff;
  font-family: system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin: 0;
  padding-block: 22px clamp(24px, 5vh, 52px);
  background: var(--background);
}

.background {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px clamp(14px, 3vw, 24px);
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: #ffffff05;
  backdrop-filter: blur(8px);
}

.brand { font: 600 0.875rem ui-monospace, monospace; }
.brand span { color: var(--blue); }

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.github-link:hover {
  border-color: #ffffff2b;
  background: #ffffff0d;
}

.github-link:active { background: #ffffff1c; }
.hero {
  padding-block: clamp(54px, 13svh, 126px) clamp(48px, 11svh, 108px);
}

h1 {
  font-size: clamp(2.55rem, 7.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: 0.025em;
}

h1 span { color: var(--blue); }
.hero p { max-width: 37ch; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.6; }

h2 { margin-bottom: 14px; font-size: 1rem; font-weight: 600; }

.project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding-block: 17px;
  border-top: 1px solid var(--edge);
}

h3 { color: var(--lavender); font-size: 1.15rem; }
.project p { margin-top: 4px; color: var(--muted); line-height: 1.5; }

.project-type { color: var(--muted); font: 0.75rem ui-monospace, monospace; }

@media (max-width: 640px) {
  .frame { width: calc(100% - 36px); }
  .hero p { margin-top: 12px; }
  .project { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .github-link { transition: none; }
}
