/* Unified inner-page system — Editorial Spatial Atelier */
:root {
  --page-shell: min(1180px, calc(100vw - 40px));
  --page-ink: #292523;
  --page-muted: #766e69;
  --page-rose: #9f7478;
  --page-line: rgba(79,63,56,.14);
  --page-line-strong: rgba(79,63,56,.22);
  --page-dark: #332c29;
}

.site-page { min-height: 100vh; }
.site-page main { min-height: 70vh; }
.page-shell, .container { width: var(--page-shell); margin-inline: auto; }
.container-narrow { width: min(780px, calc(100vw - 40px)); margin-inline: auto; }

/* Shared inner-page hero */
.page-hero {
  position: relative;
  padding: 174px 0 72px;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--page-shell);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(110,85,77,.18), rgba(110,85,77,.06) 72%, transparent);
}
.page-kicker, .page-hero .eyebrow {
  margin: 0 0 16px;
  font: 500 10px/1.2 'Manrope', Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--page-rose);
}
.page-title {
  margin: 0;
  max-width: 920px;
  font: 500 clamp(58px,7vw,104px)/.86 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.042em;
  color: var(--page-ink);
}
.page-title em { color: var(--page-rose); font-weight: 500; }
.page-lead {
  max-width: 620px;
  margin: 27px 0 0;
  color: var(--page-muted);
  font-size: 14px;
  line-height: 1.9;
}
.page-meta {
  margin-top: 22px;
  color: #948782;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Gallery — varied editorial rhythm rather than equal rounded cards */
.collection-grid {
  width: var(--page-shell);
  margin: 66px auto 118px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 18px 16px;
  align-items: start;
}
.collection-card {
  position: relative;
  grid-column: span 2;
  margin: 0;
  aspect-ratio: .78;
  min-height: 420px;
  overflow: hidden;
  border-radius: 18px;
  background: #eadfd9;
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 18px 58px rgba(79,57,49,.08);
  cursor: zoom-in;
  isolation: isolate;
}
.collection-card:nth-child(5n+1),
.collection-card:nth-child(5n+2) { grid-column: span 3; }
.collection-card:nth-child(5n+1) { aspect-ratio: .96; }
.collection-card:nth-child(5n+2) { aspect-ratio: 1.08; margin-top: 42px; }
.collection-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(39,30,27,.30));
  pointer-events: none;
}
.collection-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.94) contrast(.99);
  transition: transform .30s cubic-bezier(.16,1,.3,1);
}
.collection-card:hover img,
.collection-card:focus-visible img { transform: scale(1.018); }
.collection-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.92);
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-shadow: 0 1px 9px rgba(0,0,0,.24);
}
.collection-card figcaption span:last-child { color: rgba(255,255,255,.72); }

.empty-state {
  grid-column: 1 / -1;
  padding: 68px 0;
  border-top: 1px solid var(--page-line-strong);
  border-bottom: 1px solid var(--page-line);
  color: var(--page-muted);
  text-align: left;
}

.pagination { display: flex; justify-content: center; gap: 8px; margin: -58px auto 104px; }
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--page-line);
  background: transparent;
  font-size: 11px;
}
.pagination .active { background: var(--page-dark); color: #fff; border-color: transparent; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(32,26,24,.82);
  backdrop-filter: blur(12px);
}
.gallery-lightbox.active { display: grid; }
.gallery-lightbox img {
  max-width: min(1100px,92vw);
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 44px 130px rgba(0,0,0,.34);
}
.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

/* Journal — content hierarchy first, surfaces removed */
.editorial-grid {
  width: var(--page-shell);
  margin: 62px auto 122px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 46px 34px;
}
.editorial-card {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  min-height: 310px;
  padding-top: 18px;
  border-top: 1px solid var(--page-line-strong);
}
.editorial-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
  min-height: 430px;
}
.editorial-media {
  min-height: 310px;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg,#e8d7d4,#efe6e0);
}
.editorial-card:first-child .editorial-media { min-height: 430px; }
.editorial-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.95) contrast(.99);
  transition: transform .30s cubic-bezier(.16,1,.3,1);
}
.editorial-card:hover img,
.editorial-card:focus-visible img { transform: scale(1.018); }
.editorial-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  font: 500 72px/1 'Cormorant Garamond',serif;
  color: rgba(255,255,255,.65);
}
.editorial-copy {
  padding: 22px 4px 8px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.editorial-copy small { color: var(--page-rose); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.editorial-copy h2 {
  margin: 12px 0 0;
  font: 500 36px/1.02 'Cormorant Garamond',serif;
  letter-spacing: -.028em;
  transition: color .18s ease;
}
.editorial-card:first-child .editorial-copy h2 { font-size: clamp(40px,4vw,58px); }
.editorial-card:hover .editorial-copy h2 { color: #5f4947; }
.editorial-copy p { margin: 16px 0 0; color: var(--page-muted); font-size: 11px; line-height: 1.7; }

/* Article */
.article-shell { width: min(860px,calc(100vw - 40px)); margin: 0 auto 120px; }
.article-hero-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 26px 76px rgba(78,56,49,.10);
  margin: 46px 0 48px;
}
.article-body { font-size: 15px; line-height: 2; color: #5e5551; white-space: pre-line; }
.article-body::first-letter { font: 500 64px/.75 'Cormorant Garamond',serif; float: left; margin: 10px 10px 0 0; color: var(--page-rose); }
.article-back { margin-top: 44px; }

/* 404 */
.not-found { min-height: 76vh; display: grid; place-items: center; padding: 150px 20px 70px; text-align: center; }
.not-found .code { font: 500 clamp(120px,24vw,280px)/.65 'Cormorant Garamond',serif; color: rgba(159,116,120,.16); letter-spacing: -.08em; }
.not-found h1 { margin: -10px 0 0; font: 500 clamp(42px,6vw,72px)/.95 'Cormorant Garamond',serif; }
.not-found p { color: var(--page-muted); margin: 18px auto 26px; }

/* Backward-compatible components for account / utility views */
.section { padding: 165px 0 90px; }
.section-title { margin: 0; font: 500 clamp(46px,6vw,72px)/.95 'Cormorant Garamond',serif; letter-spacing: -.03em; }
.center { text-align: center; }
.muted { color: var(--page-muted); }
.grid { display: grid; gap: 18px; }
.card { background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.88); border-radius: 24px; box-shadow: 0 22px 65px rgba(78,56,49,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--page-line); font: 600 11px/1 'Manrope',sans-serif; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--page-dark); color: #fff; border-color: transparent; }
.btn-outline { background: rgba(255,255,255,.5); color: var(--page-ink); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 7px; color: #6e625d; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 14px; border-radius: 13px; border: 1px solid rgba(93,72,65,.16); background: rgba(255,255,255,.72); font: inherit; color: inherit; }
.alert { padding: 12px 14px; border-radius: 13px; margin-bottom: 16px; }
.alert-error { color: #8e302c; background: #fff0ef; border: 1px solid #f2c7c3; }
.alert-success { color: #2b6635; background: #edf7ef; border: 1px solid #cce5d1; }
.ornament { color: var(--page-rose); margin-top: 12px; }

/* Shared footer */
.site-footer-wrap { border-top: 1px solid rgba(105,82,74,.1); margin-top: 70px; }
.site-footer { width: var(--page-shell); margin: auto; padding: 34px 0 42px; display: flex; justify-content: space-between; gap: 24px; color: #918680; font-size: 9px; letter-spacing: .1em; }

.brand-mark.has-media-logo { overflow: hidden; padding: 0; }
.brand-mark.has-media-logo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width:980px) {
  :root { --page-shell: min(100% - 28px,900px); }
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .collection-card,
  .collection-card:nth-child(5n+1),
  .collection-card:nth-child(5n+2) { grid-column: auto; aspect-ratio: .82; margin-top: 0; }
  .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial-card,
  .editorial-card:first-child { grid-column: auto; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); min-height: 320px; }
  .editorial-card:first-child .editorial-media { min-height: 320px; }
  .editorial-card:first-child .editorial-copy h2 { font-size: 40px; }
}

@media (max-width:680px) {
  :root { --page-shell: calc(100vw - 22px); }
  .page-hero { padding: 125px 0 48px; }
  .page-title { font-size: clamp(52px,17vw,78px); }
  .page-lead { font-size: 14px; line-height: 1.78; }

  .collection-grid { grid-template-columns: 1fr; margin-top: 38px; gap: 15px; }
  .collection-card,
  .collection-card:nth-child(5n+1),
  .collection-card:nth-child(5n+2) { min-height: 0; aspect-ratio: .8; border-radius: 15px; }
  .collection-card img { min-height: 0; }
  .collection-card figcaption { font-size: 9px; }

  .editorial-grid { margin-top: 38px; }
  .editorial-card,
  .editorial-card:first-child { grid-template-columns: 1fr; min-height: 0; }
  .editorial-media,
  .editorial-card:first-child .editorial-media { min-height: 280px; border-radius: 15px; }
  .editorial-copy { padding: 18px 0 4px; }
  .editorial-copy h2,
  .editorial-card:first-child .editorial-copy h2 { font-size: 34px; }

  .gallery-lightbox { padding: 16px; }
  .gallery-lightbox img { border-radius: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .article-shell { width: calc(100vw - 24px); }
  .article-hero-image { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card img,
  .editorial-media img,
  .editorial-copy h2 { transition: none; }
}
