:root {
  --bg: #ffffff;
  --fg: #222222;
  --muted: #6a6a6a;
  --border: #dddddd;
  --surface: #f7f7f7;
  --accent: #ff385c;
  --sans: "Barlow", system-ui, sans-serif;
  --grotesk: "Space Grotesk", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ededed;
    --muted: #a6a6a6;
    --border: #2b2b2b;
    --surface: #141414;
    --accent: #ff4d6d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.site-header,
main,
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.site-header nav a:hover { color: var(--fg); }

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--grotesk);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 24px;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.intro {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  color: var(--muted);
}

.index-heading {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fg);
  font-family: var(--grotesk);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.index-heading span { color: var(--muted); }

.projects {
  list-style: none;
  margin: 0 0 96px;
  padding: 0;
}

.project {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.num {
  font-family: var(--grotesk);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-top: 6px;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 8px;
}

h3 {
  margin: 0;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.tag {
  font-family: var(--grotesk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.desc { margin: 0 0 12px; max-width: 600px; }

.use {
  margin: 0;
  max-width: 600px;
  padding: 12px 16px;
  background: var(--surface);
  font-size: 15px;
  color: var(--muted);
}

.use strong { color: var(--fg); font-weight: 600; }

.repo {
  align-self: start;
  padding-top: 6px;
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 200ms var(--ease-out);
}

.repo:hover { color: var(--accent); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.site-footer p { margin: 0; }

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site-header, main, .site-footer { padding-left: 16px; padding-right: 16px; }
  .site-header nav { gap: 16px; }
  .hero { padding: 64px 0 48px; }
  .intro { font-size: 16px; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .num { padding-top: 0; }
  .repo { justify-self: start; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
