:root {
  color-scheme: light;
  --background: #fff9eb;
  --text: #171513;
  --muted: #56534d;
  --link: #0f766e;
  --link-hover: #0b5f59;
  --willow: #2dd4bf;
}

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

html {
  background: var(--background);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
}

.site-shell {
  width: min(36em, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4rem 0 8rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.16em;
  font-weight: 550;
  line-height: 1.2;
}

.site-name {
  color: var(--text);
}

.avatar {
  display: grid;
  width: 5rem;
  height: 5rem;
  flex: 0 0 5rem;
  place-items: center;
}

.avatar-image {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  transform: scale(1.35);
  transform-origin: center;
}

main {
  margin-top: 3rem;
}

p {
  margin: 0;
}

.intro {
  color: var(--muted);
}

.intro p + p {
  margin-top: 1.35rem;
}

.projects {
  margin-top: 3.1rem;
}

.projects h2 {
  margin: 0 0 1rem;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.projects ul {
  margin: 0;
  padding-inline-start: 1.55rem;
}

.projects li {
  padding-inline-start: 0.12rem;
}

.projects li + li {
  margin-top: 0.38rem;
}

.projects li::marker {
  color: #87847d;
}

.project-description {
  color: var(--muted);
}

.flow-link {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease;
}

.flow-link::after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% -0.22em 0);
  color: transparent;
  content: attr(data-text) / "";
  pointer-events: none;
  text-decoration-color: var(--willow);
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.08em;
  transition: clip-path 280ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.projects .flow-link {
  font-weight: 650;
}

.flow-link:hover,
.flow-link:focus-visible {
  color: var(--link-hover);
}

.flow-link:hover::after,
.flow-link:focus-visible::after {
  clip-path: inset(0 0 -0.22em 0);
}

.flow-link:focus-visible {
  border-radius: 0.08em;
  outline: 2px solid var(--link-hover);
  outline-offset: 0.22em;
}

.site-footer {
  margin-top: 5.5rem;
  font-size: 0.76em;
  line-height: 1.5;
  text-align: center;
}

.commit-link {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

::selection {
  background: rgb(45 212 191 / 28%);
  color: var(--text);
}

@media (hover: none) {
  .flow-link::after {
    clip-path: inset(0 0 -0.22em 0);
    text-decoration-thickness: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-link,
  .flow-link::after {
    transition: none;
  }
}

@media (max-width: 30em) {
  body {
    font-size: 1.0625rem;
  }

  .site-shell {
    padding: 2.75rem 0 5rem;
  }

  main {
    margin-top: 2.5rem;
  }

  .projects {
    margin-top: 2.7rem;
  }

  .site-footer {
    margin-top: 4.5rem;
  }
}
