* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: #181b22;
  --line: #2a2e38;
  --text: #eef0f4;
  --muted: #a2a8b4;
  --soft: #737b89;
  --accent: #9eb8ff;
}
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -25%, #202633 0, var(--bg) 58%);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(1080px, calc(100% - 64px)); margin: 0 auto; }
.topbar {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font: inherit; }
.wordmark { color: var(--text); font-size: 17px; font-weight: 650; letter-spacing: -.025em; text-decoration: none; }
.github-link, .project-links a { color: var(--muted); text-decoration: none; }
.github-link:hover, .project-links a:hover { color: var(--text); }
.section-heading {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 35px 0 14px; color: var(--soft); text-transform: uppercase;
  letter-spacing: .15em; font-size: 11px; font-weight: 700;
}
.section-heading h2 { margin: 0; font: inherit; }
.project {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.project-mark {
  width: 148px; height: 116px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #303541; border-radius: 9px; background: #1b2029; overflow: hidden;
}
.project-mark img { display: block; width: 66px; height: 66px; object-fit: contain; }
.spotify-mark img { width: 74px; height: 74px; border-radius: 14px; }
.project-titleline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.project h3 { margin: -3px 0 5px; font-size: 20px; line-height: 1.3; letter-spacing: -.035em; }
.project-type { color: var(--soft); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.description { max-width: 790px; margin: 0 0 12px; color: #c5cad3; font-size: 13px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px; }
.tags span {
  padding: 2px 7px; border: 1px solid #303541; border-radius: 4px;
  color: #aeb6c4; background: #1a1e26; font-size: 10px; line-height: 1.5; white-space: nowrap;
}
.project-links { display: flex; flex-wrap: wrap; gap: 7px 17px; font-size: 12px; font-weight: 600; }
.project-links a { color: var(--accent); }
.project-links a span { font-size: 11px; }
.demo-note { margin: 7px 0 0; color: var(--soft); font-size: 11px; }
footer {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 17px;
  padding: 15px 0 23px; border-top: 1px solid var(--line);
  color: #68707d; font-size: 9px; font-weight: 700; letter-spacing: .15em;
}
@media (max-width: 650px) {
  .shell { width: min(100% - 36px, 540px); }
  .topbar { height: 66px; }
  .section-heading { margin-top: 27px; }
  .project { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .project-mark { width: 86px; height: 86px; }
  .project-mark img { width: 52px; height: 52px; }
  .spotify-mark img { width: 58px; height: 58px; }
  .project h3 { font-size: 18px; }
  .description { font-size: 12px; }
  .tags span { font-size: 9px; }
  footer { font-size: 8px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 28px); }
  .project { grid-template-columns: 1fr; gap: 11px; }
  .project-mark { width: 100%; height: 72px; justify-content: flex-start; padding-left: 17px; }
  .project-mark img { width: 46px; height: 46px; }
  .spotify-mark img { width: 48px; height: 48px; }
}


/* Keep experiments visually secondary to the selected portfolio projects. */
.experiments {
  margin-top: 8px;
  opacity: .78;
}
.experiments .section-heading {
  margin: 17px 0 8px;
  font-size: 9px;
  letter-spacing: .13em;
  color: #68717e;
}
.experiments .section-heading span { font-size: 9px; }
.experiments .project {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top-color: #222630;
}
.experiments .project-mark {
  width: 76px;
  height: 64px;
  border-color: #292e38;
  background: #171a21;
  border-radius: 6px;
}
.experiments .project-mark img { width: 38px; height: 38px; }
.experiments .project h3 {
  margin: -2px 0 3px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.experiments .project-type { font-size: 9px; color: #747d8a; }
.experiments .description {
  margin-bottom: 8px;
  color: #9da5b1;
  font-size: 11px;
  line-height: 1.45;
}
.experiments .tags { gap: 4px; margin-bottom: 8px; }
.experiments .tags span {
  padding: 1px 5px;
  border-color: #292e38;
  color: #858e9c;
  background: #171a21;
  font-size: 9px;
}
.experiments .project-links { gap: 6px 13px; font-size: 10px; }
.experiments .project-links a { color: #8d9fc9; }
@media (max-width: 650px) {
  .experiments .project {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 0;
  }
  .experiments .project-mark { width: 58px; height: 54px; }
  .experiments .project-mark img { width: 32px; height: 32px; }
  .experiments .project h3 { font-size: 14px; }
  .experiments .description { font-size: 10px; }
}
@media (max-width: 420px) {
  .experiments .project { grid-template-columns: 1fr; gap: 8px; }
  .experiments .project-mark {
    width: 100%;
    height: 48px;
    padding-left: 12px;
  }
  .experiments .project-mark img { width: 30px; height: 30px; }
}
