:root {
  --bg: #e6e6e6;
  --text: #191919;
  --muted: #555555;
  --gap: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
}

a {
  color: var(--text);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
}

.brand {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 2.4rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--muted);
  border-bottom-color: var(--muted);
}

.nav a.active {
  color: var(--muted);
  border-bottom-color: var(--muted);
}

.nav a:focus {
  outline: none;
  color: var(--muted);
  border-bottom-color: var(--muted);
}

.home-link:hover {
  opacity: 0.65;
}

.home-link:focus {
  outline: none;
  opacity: 0.65;
  border-bottom-color: var(--muted);
}

.home-link {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

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

.menu-btn {
  display: none;
}

.gallery {
  width: calc(100% - 72px);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.tile {
  margin: 0;
}

.image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #ebe8e2;
  filter: grayscale(100%);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.image::after {
  content: "images coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover .image,
.tile:focus-within .image {
  background-color: #e4e0d8;
  transform: translateY(-2px);
}

.tile:hover .image::after,
.tile:focus-within .image::after {
  opacity: 1;
}

.image-1 {
  background-image: none;
}

.image-2 {
  background-image: none;
}

.image-3 {
  background-image: none;
}

.image-4 {
  background-image: none;
}

.image-5 {
  background-image: none;
}

.image-6 {
  background-image: none;
}

.caption {
  padding: 10px 0;
}

.caption .title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.4;
}

.caption .details {
  margin: 4px 0 0 0;
  font-size: 15px;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}

.note {
  width: min(36rem, calc(100% - 72px));
  margin: 24px 0 38px 36px;
}

.note.info-columns {
  width: calc(100% - 72px);
  max-width: none;
  column-count: 3;
  column-gap: 42px;
}

.note.info-columns > * {
  break-inside: avoid;
}

.note h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #3d3d3d;
}

.note p + p {
  margin-top: 14px;
}

.section-group {
  width: 100%;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--muted);
}

.section-group:first-of-type {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.section-group.no-divider {
  padding-top: 0;
  border-top: none;
}

.section-group h3 {
  margin: 0 0 14px 0;
  font-size: 15px;
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0;
  color: var(--text);
}

.item {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #3d3d3d;
}

.works-bullets .item {
  position: relative;
  padding-left: 16px;
}

.works-bullets .item::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--text);
}

.item:last-child {
  margin-bottom: 0;
}

.credit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.link {
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, background-size 0.3s ease;
  background: linear-gradient(to right, var(--muted) 0%, var(--muted) 100%);
  background-position: 0% bottom;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.link:visited {
  color: var(--text);
}

.link:hover,
.link:focus {
  color: var(--text);
  background-size: 100% 1px;
}

.link:focus {
  outline: none;
}

@media (max-width: 1000px) {
  .note.info-columns {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .header {
    padding: 14px 18px;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    gap: 1.6rem;
  }

  .gallery,
  .note {
    width: calc(100% - 36px);
  }

  .note {
    margin: 18px 0 32px 18px;
  }

  .note.info-columns {
    column-count: 1;
    width: calc(100% - 36px);
  }

  .gallery {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
}
