:root {
  color-scheme: dark;
  --background: #0d0d0d;
  --surface: #171717;
  --surface-hover: #1c1c1c;
  --border: #2b2b2b;
  --text: #ffffff;
  --muted: #9d9d9d;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 88px 0 64px;
}

.intro {
  max-width: 760px;
  margin-bottom: 64px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.lede {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.website-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 12%);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #353535;
  background: var(--surface-hover);
}

.project-card:focus-within {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.project-link {
  display: block;
  text-decoration: none;
}

.project-link:focus {
  outline: none;
}

.project-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #111;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 22px;
}

.project-title {
  margin: 0 0 7px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-arrow {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-arrow {
  color: var(--text);
  transform: translateX(2px);
}

.site-footer {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 0 0 40px;
  color: #707070;
  font-size: 0.75rem;
}

.site-footer p,
.noscript-message {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 680px) {
  .site-shell {
    width: min(100% - 64px, 1200px);
    padding-top: 120px;
  }

  .website-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .site-footer {
    width: min(100% - 64px, 1200px);
  }
}

@media (min-width: 1024px) {
  .site-shell {
    width: min(100% - 96px, 1200px);
    padding-top: 152px;
  }

  .intro {
    margin-bottom: 88px;
  }

  .website-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    width: min(100% - 96px, 1200px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
