:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #dedede;
  --text: #2e3440;
  --muted: #5f6773;
  --link: #2f7de1;
  --link-hover: #1d63bd;
  --shadow: 0 10px 24px rgba(18, 24, 32, 0.06);
  --site-width: 1180px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.site {
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.page-header {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.projects {
  display: grid;
}

.project-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--border);
}

.project-shot {
  width: 96px;
  max-width: 96px;
  flex: 0 0 96px;
}

.project-shot img {
  width: 96px;
  max-width: 96px;
  height: auto;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-copy {
  min-width: 0;
}

.project-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.project-description {
  margin: 8px 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.project-actions {
  margin-top: 8px;
}

.project-link {
  color: var(--link);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-link:hover {
  color: var(--link-hover);
}

.project-link:focus-visible {
  outline: 2px solid rgba(47, 125, 225, 0.28);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .site {
    width: min(var(--site-width), calc(100% - 20px));
    padding: 28px 0 40px;
  }

  .page-header {
    padding-bottom: 16px;
  }

  .project-card {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 24px 8px;
  }

  .project-shot {
    width: 96px;
    max-width: 96px;
    margin-top: 0;
  }

  .project-copy h2 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .project-description {
    margin-top: 8px;
    max-width: 36ch;
  }

  .project-link {
    display: inline-block;
    margin-top: 0;
  }
}
