:root {
  color-scheme: light;
  --background: #f7f7f6;
  --surface: #ffffff;
  --text: #171717;
  --muted: #5f5f5f;
  --line: #d8d8d5;
  --focus: #111111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

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

html {
  background: var(--background);
  color: var(--text);
  font-size: 100%;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--background);
}

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

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.125rem;
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  display: grid;
  min-height: 48vh;
  align-content: end;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.site-label {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.intro {
  max-width: 55rem;
  margin-bottom: 0;
  color: #333333;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
}

.index-section {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

h2 {
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.section-number {
  color: #767676;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.muted {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
}

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

.project-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

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

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

.site-footer {
  padding-block: 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0;
}

@media (max-width: 42rem) {
  .page-shell {
    width: min(100% - 2rem, 60rem);
  }

  .site-header {
    min-height: 42vh;
    padding-block: 5rem 3rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.25rem);
  }

  .wide-break {
    display: none;
  }

  .index-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 2.5rem;
  }

  .project-list li {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .site-footer p {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
