:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #252525;
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}
nav {
  display: flex;
  gap: 24px;
}
header a {
  text-decoration: none;
}
header a:hover,
header a[aria-current="page"] {
  text-decoration: underline;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.home-page main {
  display: grid;
  grid-template-columns: 250px minmax(0, 520px);
  gap: 0 56px;
  margin-top: 112px;
}
.about {
  max-width: 520px;
  margin-top: 4px;
}
.about h2 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
}
.about p + p {
  margin-top: 20px;
}
.projects-link {
  grid-column: 2;
  margin-top: 36px;
}
.gallery-page main {
  margin-top: 72px;
}
.gallery-page h1 {
  font-size: 30px;
  margin-bottom: 48px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}
.project {
  display: block;
  text-decoration: none;
}
.project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 20px;
}
.project h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.project-card > p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.project:hover h2 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  font-size: 14px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  padding: 8px 12px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.not-found {
  max-width: 560px;
  margin: 140px auto;
  padding-inline: 24px;
}
.not-found a {
  display: inline-block;
  margin-top: 32px;
}
@media (max-width: 700px) {
  .page {
    padding: 30px 24px 64px;
  }
  .home-page main {
    display: block;
    margin-top: 80px;
  }
  .about {
    margin-top: 36px;
  }
  .projects-link {
    display: inline-block;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .gallery-page main {
    margin-top: 56px;
  }
  .gallery-page h1 {
    margin-bottom: 32px;
    font-size: 28px;
  }
  .project-card > p {
    max-width: 48ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
