:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #181818;
  background: #fff;
  line-height: 1.45;
  --muted: #696969;
  --line: #cecece;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }

a {
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: .06em;
}

a:hover { text-decoration-thickness: .12em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.shell {
  width: min(100% - 2.75rem, 47.5rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.875rem;
  border-bottom: 1px solid var(--line);
}

.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.site-header a:hover { text-decoration: underline; }

.wordmark {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

.intro { padding-block: 1.0625rem 1.125rem; }

h1 {
  font-size: clamp(2rem, 9vw, 2.25rem);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -.032em;
}

.intro p {
  max-width: 52ch;
  margin-top: .5625rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -.012em;
}

.projects {
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.projects h2,
.project h3 {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.projects h2 { margin-bottom: .6875rem; }

.project { padding-block: .875rem .8125rem; }
.project:first-of-type { padding-top: 0; }
.project + .project { border-top: 1px solid var(--line); }
.project p { margin-block: .0625rem .3125rem; }

.project a,
.site-footer a {
  display: inline-block;
  line-height: 1.35;
}

.project-art {
  width: 100%;
  margin-bottom: .4375rem;
  border: 1px solid #dedede;
}

.project-art img {
  display: block;
  height: auto;
}

.napmath-art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  aspect-ratio: 2.47;
  max-height: 16rem;
  overflow: hidden;
  padding-top: clamp(.625rem, 3vw, 1rem);
  background: #e2e3e4 radial-gradient(ellipse at 50% 85%, #f1f1f0, #e2e3e4 92%);
}

.napmath-phone {
  width: min(50%, 20rem);
  padding: 2px;
  border: 3px solid #b8b8b8;
  border-radius: clamp(1.375rem, 7vw, 2.75rem);
  overflow: hidden;
  background: #252525;
  box-shadow: 0 0 0 1px #d0d0cf;
}

.napmath-phone img {
  width: 100%;
  border-radius: inherit;
}

.mymoneymaps-art {
  padding-block: .375rem;
  border-color: #d9e4e1;
  background: #f0f5f4;
}

.mymoneymaps-art img { width: 100%; }

.nikki-mann-art {
  padding-block: clamp(.75rem, 2vw, 1.125rem);
  border-color: #dedbd8;
  background: #f0efed;
}

.nikki-mann-art img {
  width: min(64%, 23rem);
  margin-inline: auto;
  filter: grayscale(1) contrast(.82);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: .75rem 1rem;
  scroll-margin-top: 1rem;
}

.site-footer h2 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

.site-footer small {
  display: block;
  margin-top: .625rem;
  color: var(--muted);
  font-size: .8125rem;
}

@media (min-width: 42rem) {
  .shell { width: min(100% - 5rem, 47.5rem); }
  .site-header { min-height: 4rem; }
  .wordmark { font-size: 1.25rem; }
  .intro { padding-block: 2rem; }
  h1 { font-size: 3rem; }
  .intro p { font-size: 1.125rem; }
  .projects { padding-top: 1.125rem; }
  .projects h2 { margin-bottom: 1.125rem; }
  .projects h2, .project h3 { font-size: 1.625rem; }
  .project { padding-block: 1.25rem; }
  .project-art { margin-bottom: .625rem; }
  .site-footer { padding-block: 1.25rem 1.5rem; }
}
