:root {
  --bg: #f4efe7;
  --bg-strong: #e8dcc8;
  --surface: rgba(255, 250, 244, 0.72);
  --surface-strong: rgba(255, 250, 244, 0.9);
  --text: #1c1916;
  --muted: #5b5348;
  --accent: #9f4f2f;
  --accent-soft: #d8ab73;
  --line: rgba(28, 25, 22, 0.1);
  --shadow: 0 24px 60px rgba(52, 34, 18, 0.12);
  --radius: 24px;
  --content-width: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 171, 115, 0.36), transparent 32%),
    radial-gradient(circle at top right, rgba(159, 79, 47, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f1e9 0%, #efe4d6 48%, #f6efe6 100%);
}

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

button {
  font: inherit;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: end;
  padding: 4rem 0 3rem;
}

.eyebrow,
.section-label,
.meta-chip {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.gallery-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-top: 0.4rem;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  max-width: 12ch;
}

.hero__lede,
.intro__text,
.gallery-header__note,
.hero__card-text,
.lightbox figcaption {
  color: var(--muted);
  line-height: 1.65;
}

.hero__lede {
  margin: 1.2rem 0 0;
  max-width: 45rem;
  font-size: 1.05rem;
}

.hero__card,
.intro {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero__card {
  padding: 1.4rem;
}

.hero__card::before,
.intro::before {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 180px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 171, 115, 0.3), transparent 70%);
  pointer-events: none;
}

.hero__card-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__card-text {
  margin: 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.6rem;
  margin-bottom: 2.2rem;
}

.intro h2,
.gallery-header h2 {
  margin-top: 0.3rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro__text {
  margin: 0;
  font-size: 1rem;
}

.gallery-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.25rem;
}

.gallery-header__note {
  max-width: 24rem;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 12px;
  gap: 1rem;
  align-items: start;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  align-self: start;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--feature {
  grid-column: span 2;
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(159, 79, 47, 0.55);
  outline-offset: 6px;
  border-radius: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(28, 25, 22, 0.1);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(21, 17, 12, 0.68) 100%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.card img {
  width: 100%;
  height: auto;
}

.card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1rem;
  color: #fdf8f2;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.card__meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.meta-chip {
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.16);
  color: #f7ecdf;
  letter-spacing: 0.08em;
}

.gallery-item:hover .card,
.gallery-item:focus-visible .card {
  transform: translateY(-4px);
}

.gallery-item:hover .card::after,
.gallery-item:focus-visible .card::after,
.gallery-item:hover .card__body,
.gallery-item:focus-visible .card__body {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  width: min(1200px, calc(100vw - 1rem));
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(21, 17, 12, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox[open] {
  display: grid;
}

.lightbox__backdrop {
  display: contents;
}

.lightbox__close,
.lightbox__nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.9);
  color: var(--text);
  cursor: pointer;
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.8rem 1rem;
}

.lightbox__panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 0;
}

.lightbox__nav {
  width: 3rem;
  height: 3rem;
}

.lightbox__figure {
  margin: 0;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.14);
}

.lightbox__figure img {
  max-height: min(78vh, 980px);
  width: auto;
  margin: 0 auto;
  border-radius: 18px;
}

.lightbox figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: #f7ecdf;
}

.noscript-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: #fff3dd;
  color: #5e4520;
  border: 1px solid rgba(94, 69, 32, 0.18);
}

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

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

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

@media (max-width: 840px) {
  .page-shell {
    width: min(calc(100vw - 1.25rem), 100%);
  }

  .hero,
  .intro,
  .lightbox__panel {
    grid-template-columns: 1fr;
  }

  .gallery-header {
    flex-direction: column;
    align-items: start;
  }

  .lightbox__figure {
    order: 1;
  }

  .lightbox__nav {
    position: fixed;
    bottom: 1rem;
    z-index: 3;
  }

  .lightbox__nav--prev {
    left: 1rem;
  }

  .lightbox__nav--next {
    right: 1rem;
  }
}

@media (max-width: 700px) {
  .gallery-item--wide,
  .gallery-item--feature {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(calc(100vw - 1rem), 100%);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lightbox__figure {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
