:root {
  color: #111;
  background: #fff;
  font-family: "Manrope", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; min-width: 320px; background: #fff; }
img, video { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.home {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.profile {
  position: relative;
  width: 310px;
  margin-left: auto;
  text-align: right;
  font-size: .875rem;
  line-height: 1.3;
}

.profile:focus-visible { outline: 1px solid #111; outline-offset: 6px; }
.profile-about {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
  text-align: left;
  font-style: normal !important;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.profile:hover .profile-about, .profile:focus-within .profile-about {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile h1 { margin: 0 0 10px; font-size: 1rem; line-height: 1.1; font-weight: 700; }
.profile p, .profile address { margin: 0; font-style: italic; }
.profile address { margin-top: 12px; }
.profile address a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.project-section { margin-top: 72px; }
.project-section--other { margin-top: 96px; }
.project-section h2 { margin: 0 0 28px; font-size: 1rem; font-weight: 700; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 34px; }
.project { min-width: 0; text-decoration: none; }
.art { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; }
.art--empty { background: #fff; border: 1px solid #e5e5e5; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.project:hover .art img, .project:focus-visible .art img { transform: scale(1.018); filter: brightness(.9); }
.project:focus-visible { outline: 1px solid #111; outline-offset: 6px; }
.project-id { display: block; margin-top: 12px; font-size: .875rem; font-style: italic; }

@media (max-width: 840px) {
  .home { width: min(100% - 40px, 720px); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 24px; }
}

@media (max-width: 540px) {
  .home { width: calc(100% - 32px); padding-top: 18px; }
  .profile { width: auto; }
  .project-section { margin-top: 56px; }
  .project-section--other { margin-top: 72px; }
  .projects { grid-template-columns: 1fr; gap: 38px; }
}

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