@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #181916;
  --text: #f0eee4;
  --muted: #c3c2b5;
  --rule: #3e4037;
  --accent: #d6e796;
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-color: var(--muted);
}

a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }

.shell {
  width: min(100% - 3rem, 760px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  padding: .65rem .9rem;
  background: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  min-height: 76px;
  padding-block: .65rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.spark {
  width: 1rem;
  flex: none;
  aspect-ratio: 1;
  background: var(--accent);
  clip-path: polygon(50% 0%, 58% 34%, 85% 15%, 66% 42%, 100% 50%, 66% 58%, 85% 85%, 58% 66%, 50% 100%, 42% 66%, 15% 85%, 34% 58%, 0% 50%, 34% 42%, 15% 15%, 42% 34%);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.2rem;
}

.site-header nav a {
  padding-block: .35rem;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.home { padding-block: clamp(4rem, 12vw, 8rem); }
.page { padding-block: clamp(2.75rem, 7vw, 4.5rem); }

h1 {
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.045em;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

p { max-width: 55ch; color: var(--muted); }
h1 + p, p + p { margin-top: 1rem; }

.intro {
  font-size: clamp(1.12rem, 2.75vw, 1.35rem);
  line-height: 1.45;
}

.entries { margin-top: 2rem; }

.entry {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.entry:last-child { border-bottom: 1px solid var(--rule); }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
}

.project p { margin-top: .45rem; }

.app-icon {
  margin-bottom: .7rem;
  border-radius: 22%;
}

.project-screenshot {
  width: clamp(84px, 17vw, 116px);
  height: auto;
  border: 1px solid var(--rule);
  border-radius: .8rem;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .85rem;
  padding: 0;
  list-style: none;
  font-size: .94rem;
}

@media (max-width: 460px) {
  .shell { width: calc(100% - 2rem); }
  .site-header { row-gap: .2rem; }
  .project { gap: 1rem; }
}

@media (max-width: 350px) {
  .site-header { padding-block: .8rem; }
  .site-header nav { width: 100%; }
}
