:root {
  --bg: #fafafa;
  --text: #09090b;
  --muted: #3f3f46;
  --line: #e4e4e7;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --header: 4.5rem;
  --max: 68rem;
  --space: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
.mark,
.work-title {
  font-family: Archivo, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-ink);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
  color: var(--bg);
}

.wrap {
  width: min(var(--max), calc(100% - var(--space) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  font-size: 1rem;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  cursor: pointer;
}

.nav-list a:hover {
  color: var(--text);
}

.hero {
  padding-block: clamp(4.5rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 0.95;
}

.lede {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.section {
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.work-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease;
}

.work-item:hover .work-title {
  color: var(--accent);
}

.index,
.year,
.work-summary {
  color: var(--muted);
}

.work-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.work-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  transition: color 200ms ease;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.about-grid p {
  margin: 0;
  max-width: 38rem;
}

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

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
}

.contact-value {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  height: auto;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 720px) {
  .section-head,
  .about-grid,
  .work-item,
  .contact-list a {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head,
  .contact-list a,
  .header-inner {
    align-items: start;
  }

  .header-inner {
    height: auto;
    padding-block: 0.85rem;
  }

  .site-header {
    height: auto;
  }

  .year {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-title {
    transition: none;
  }
}
