:root {
  --bg: #f7f7f5;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e0e0dc;
  --accent: #1a1a1a;
  --max: 38rem;
  --space: clamp(1.5rem, 4vw, 2.5rem);
  --headshot-max: 5.75rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  padding: 2rem var(--space) 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.site-header::after {
  content: "";
  position: absolute;
  left: var(--space);
  right: var(--space);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.header-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.375rem);
}

.headshot-frame {
  display: flex;
  height: min(100%, var(--headshot-max));
  max-height: var(--headshot-max);
  min-width: 0;
}

.headshot {
  height: 100%;
  width: auto;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  max-width: var(--headshot-max);
}

.header-text {
  min-width: 0;
}

.name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--space) 1rem;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

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

.project-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-desc {
  margin: 0 0 0.875rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.project-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.project-link:hover {
  border-bottom-color: currentColor;
}

.project-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem var(--space) 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer a:hover {
  color: var(--fg);
  border-bottom-color: var(--line);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.footer-sep {
  margin: 0 0.25rem;
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #ececec;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --accent: #ececec;
  }

}
