:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f4f4;
  background: #080808;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #aaa;
  --line: #303030;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #080808; }
button, a { font: inherit; }
a { color: inherit; }

.site-header { display: flex; justify-content: center; padding: 24px 16px 0; }
.pill-nav { display: flex; gap: 6px; }
.nav-button, .tab-button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #aaa;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-button:hover, .tab-button:hover { color: #fff; }
.nav-button.active, .tab-button.active { color: #fff; border-color: #555; background: #202020; }

main { width: min(100% - 36px, 760px); margin: 0 auto; }
.page { animation: page-in .32s ease both; }
.page.hidden { display: none !important; }
.page.reenter { animation: page-in .32s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

.home-page { display: flex; flex-direction: column; align-items: center; padding-top: 72px; }
.hero { width: 100%; padding: 0 0 30px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(3rem, 9vw, 5rem); font-weight: 700; letter-spacing: -.055em; }
.tagline { margin: 12px 0 0; color: var(--muted); font-size: 1rem; }
.spotify-card { width: min(100%, 420px); margin-top: 24px; text-align: center; }
.spotify-card iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }
.spotify-link { display: inline-block; margin-top: 9px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.spotify-link:hover { color: #fff; text-decoration: underline; }
.social-links { display: flex; gap: 16px; margin-top: 23px; }
.social-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #444;
  border-radius: 50%;
  color: #ddd;
  background: #111;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.social-link:hover { color: #fff; background: #242424; border-color: #777; }
.social-link svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-link .fill-dot { fill: currentColor; stroke: none; }

.projects-page { padding-top: 54px; }
.page-title { margin: 0 0 22px; text-align: center; font-size: 2.5rem; letter-spacing: -.04em; }
.pill-tabs { display: flex; justify-content: center; gap: 5px; margin-bottom: 24px; }
.tab-button { min-width: 84px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.project-card { min-height: 160px; padding: 21px 0; border-top: 1px solid var(--line); }
.project-card h2 { margin: 0 0 9px; font-size: 1.15rem; font-weight: 600; }
.project-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.project-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.primary-link, .secondary-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #555;
  border-radius: 4px;
  color: #eee;
  background: #171717;
  font-size: .88rem;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.primary-link:hover, .secondary-link:hover { background: #282828; border-color: #888; }
footer { padding: 48px 16px 28px; color: #888; text-align: center; font-size: .88rem; }

@media (max-width: 600px) {
  .site-header { padding-top: 16px; }
  .home-page { padding-top: 58px; }
  .projects-page { padding-top: 42px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  footer { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
