:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #74716b;
  --line: #dedbd4;
  --paper: #f8f7f3;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

main {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.intro { text-align: center; }

.pigeon {
  display: block;
  width: 225px;
  height: 300px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(20, 19, 16, .12);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 34px;
}

.socials a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}

.socials a:hover, .socials a:focus-visible { background: #ebe9e3; transform: translateY(-2px); }
.socials img { max-width: 42px; max-height: 42px; object-fit: contain; }
.socials svg { width: 27px; height: 27px; fill: var(--ink); }

.projects { margin-top: 76px; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading span { height: 1px; background: var(--line); }
.section-heading h1 { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.project-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 20px;
  color: inherit;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-card:hover, .project-card:focus-visible {
  transform: translateY(-3px);
  border-color: #aaa69c;
  box-shadow: 0 12px 26px rgba(20, 19, 16, .07);
}

.mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
}

.mark img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.project-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; text-align: left; }
.project-copy strong { font-size: 20px; font-weight: 400; }
.project-copy small { overflow: hidden; color: var(--muted); font: 12px/1.3 system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: var(--muted); font: 20px/1 system-ui, sans-serif; }

@media (max-width: 650px) {
  main { width: min(100% - 28px, 430px); padding-top: 38px; }
  .projects { margin-top: 60px; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
