:root {
  color-scheme: light;
  --background: #f5f2eb;
  --text: #171716;
  --muted: #686660;
  --line: #d8d3c9;
  --surface: rgb(255 255 255 / 48%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.home {
  display: flex;
  flex-direction: column;
  width: min(100% - 40px, 700px);
  min-height: 100vh;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.wordmark {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.intro {
  padding: 92px 0 94px;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.projects {
  display: grid;
  gap: 14px;
  padding-bottom: 80px;
}

.project {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease,
    transform 160ms ease;
}

.project:hover,
.project:focus-visible {
  border-color: #aaa399;
  background: rgb(255 255 255 / 76%);
  transform: translateY(-2px);
}

.project:focus-visible {
  outline: 2px solid #171716;
  outline-offset: 4px;
}

.project img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 13px;
}

.project-name {
  display: grid;
  gap: 2px;
}

.project-name strong {
  font-size: 1rem;
  font-weight: 650;
}

.project-name small,
.project-link,
footer {
  color: var(--muted);
  font-size: 0.8rem;
}

.project-link {
  white-space: nowrap;
}

footer {
  margin-top: auto;
  padding: 28px 0 36px;
}

@media (max-width: 560px) {
  .home {
    width: min(100% - 32px, 700px);
  }

  header {
    min-height: 76px;
  }

  .intro {
    padding: 68px 0 72px;
  }

  .projects {
    padding-bottom: 64px;
  }

  .project {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }

  .project img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .project-link {
    display: none;
  }
}

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