:root {
  --bg: #fcfaf6;
  --surface: #fffdf9;
  --text: #171410;
  --muted: #6f665d;
  --line: rgba(23, 20, 16, 0.18);
  --line-strong: rgba(23, 20, 16, 0.78);
  --shadow: 0 18px 48px rgba(35, 27, 18, 0.08);
  --site-width: 1248px;
  --page-padding: clamp(20px, 3vw, 34px);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(180, 152, 110, 0.09), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 55%, #faf7f0 100%);
  color: var(--text);
  font-family: var(--serif);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--site-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 10px;
}

.site-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  font-size: clamp(2.5rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 0;
}

.site-nav a,
.social-link {
  font-size: 1.02rem;
  line-height: 1.2;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.social-link:hover {
  border-color: var(--line-strong);
}

.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 6px;
  border-bottom: 0;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.page {
  padding: 44px 0 88px;
}

.cards-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
  max-width: 960px;
  margin: 0 auto;
}

.category-card,
.gallery-item,
.about-photo,
.media-placeholder {
  animation: rise 420ms ease both;
}

.category-card__media,
.gallery-item__media,
.about-photo__media {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-card__media {
  aspect-ratio: 4 / 2.6;
}

.gallery-item__media,
.about-photo__media {
  padding: 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item__media {
  width: 100%;
  border: 0;
  cursor: zoom-in;
}

.category-card__media img,
.gallery-item__media img,
.about-photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__media img,
.about-photo__media img {
  height: auto;
  object-fit: contain;
}

.category-card__title {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 2vw, 1.95rem);
  line-height: 1.05;
}

.gallery-grid {
  padding-top: 18px;
}

.gallery-heading {
  margin: 0 0 8px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gallery-intro {
  margin: 0 0 26px;
  max-width: 740px;
  font-size: 1.05rem;
  color: var(--muted);
}

.empty-state {
  width: min(100%, 780px);
  margin: 46px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(208, 194, 170, 0.12), rgba(255, 255, 255, 0.55)),
    repeating-linear-gradient(
      -45deg,
      rgba(33, 24, 17, 0.04),
      rgba(33, 24, 17, 0.04) 12px,
      rgba(255, 255, 255, 0.08) 12px,
      rgba(255, 255, 255, 0.08) 24px
    );
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

.category-card__media > .media-placeholder,
.about-photos > .media-placeholder {
  min-height: 100%;
  height: 100%;
}

.media-placeholder strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 5vw, 52px);
}

.about-copy p {
  margin: 0 0 22px;
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.9;
}

.about-copy h2 {
  margin: 36px 0 16px;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-copy ul {
  margin: 0;
  padding-left: 22px;
}

.about-copy li {
  margin-bottom: 14px;
  font-size: 1.04rem;
  line-height: 1.6;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.about-photos .about-photo:first-child {
  grid-column: 1 / 2;
}

.about-photos .about-photo:nth-child(2) {
  grid-column: 2 / 3;
}

.about-photos .about-photo:nth-child(3) {
  grid-column: 1 / 2;
}

.about-photos .about-photo:nth-child(4) {
  grid-column: 2 / 3;
}

.contact-panel {
  width: min(100%, 760px);
  margin: 42px auto 0;
  text-align: center;
}

.contact-panel h1 {
  margin: 0 0 26px;
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-panel p {
  margin: 0 0 30px;
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.7;
}

.contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: min(100%, 360px);
  padding: 18px 26px;
  border: 2px solid var(--line-strong);
  background: transparent;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-weight: 600;
  line-height: 1.45;
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-button:hover {
  background: rgba(23, 20, 16, 0.05);
  transform: translateY(-1px);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(15, 12, 10, 0.82);
  z-index: 30;
}

.lightbox.is-open {
  display: grid;
}

.lightbox__frame {
  position: relative;
  max-width: min(100%, 1200px);
  max-height: 100%;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 56px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.5rem;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}

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

  .site-header__top {
    align-items: center;
  }

  .site-brand {
    font-size: 2.2rem;
  }

  .cards-grid,
  .gallery-grid,
  .about-photos {
    grid-template-columns: 1fr;
  }

  .contact-panel h1 {
    margin-bottom: 18px;
  }

  .page {
    padding-top: 28px;
  }
}
