:root {
  --ink: #181716;
  --muted: #6f6a64;
  --line: #e8e2dc;
  --paper: #ffffff;
  --soft: #f8f5f1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 26px;
  text-align: center;
}

.brand {
  display: inline-block;
  color: #24211f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.site-nav a {
  min-height: 34px;
  padding: 8px 13px;
  color: var(--ink);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.site-nav a.active {
  color: #ffffff;
  background: #050505;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-tile {
  position: relative;
  display: block;
  min-height: 520px;
  overflow: hidden;
  background: var(--soft);
  color: #ffffff;
  text-decoration: none;
}

.feature-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.34));
}

.feature-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.feature-tile span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.feature-tile:hover img,
.feature-tile:focus-visible img {
  transform: scale(1.025);
}

.feature-tile:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.detail-page {
  max-width: 900px;
}

.detail-intro,
.text-block {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.gallery-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.gallery-item {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.placeholder-copy {
  padding: 24px 0;
}

.placeholder-copy h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.placeholder-copy p,
.text-block p {
  margin: 0 auto 12px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.text-page {
  max-width: 780px;
  padding-top: 32px;
}

.text-block {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.text-block h1 {
  margin-bottom: 20px;
}

.text-block a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .site-header {
    width: min(720px, calc(100% - 28px));
    padding-top: 30px;
  }

  .page {
    width: min(720px, calc(100% - 28px));
  }

  .feature-grid,
  .portfolio-gallery,
  .gallery-preview {
    grid-template-columns: 1fr;
  }

  .feature-tile {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-preview {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-top: 24px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.72rem;
  }

  .feature-grid {
    gap: 14px;
  }

  .portfolio-gallery {
    gap: 14px;
  }

  .feature-tile span {
    font-size: 1.8rem;
  }
}
