:root {
  --bg: #f4f0e9;
  --bg-soft: #fbf8f2;
  --panel: rgba(255, 252, 247, 0.78);
  --text: #211c18;
  --muted: #71655b;
  --line: rgba(42, 33, 25, 0.14);
  --accent: #8b6250;
  --accent-dark: #644438;
  --shadow: 0 24px 80px rgba(39, 29, 21, 0.16);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(177, 133, 96, 0.24), transparent 28rem),
    radial-gradient(circle at 82% 2%, rgba(205, 183, 157, 0.28), transparent 32rem),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 55%, #eee7dd 100%);
}

a {
  color: inherit;
}

.page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 16px 48px rgba(42, 33, 25, 0.08);
  backdrop-filter: blur(16px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  min-width: 0;
}

.brand,
.nav-link,
.social-link {
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-dark);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.68);
  color: var(--muted);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent-dark);
  border-color: rgba(100, 68, 56, 0.28);
  background: rgba(255, 250, 244, 0.94);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 10px 0 20px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(4.2rem, 8.8vw, 8.8rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 720;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf4;
  border-color: rgba(100, 68, 56, 0.55);
  background: linear-gradient(135deg, #8b6250, #654537);
  box-shadow: 0 18px 40px rgba(100, 68, 56, 0.26);
}

.button-secondary {
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(14px);
}

.feature-frame {
  position: relative;
  min-height: 680px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.88), rgba(242, 234, 223, 0.68));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) - 16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
}

.feature-frame img {
  width: 100%;
  height: 100%;
  min-height: 644px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 18px);
}

.feature-caption {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 38px;
  z-index: 2;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(33, 28, 24, 0.58);
  color: #fffaf4;
  backdrop-filter: blur(18px);
}

.feature-caption strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.feature-caption span {
  color: rgba(255, 250, 244, 0.8);
  font-size: 0.95rem;
}

.gallery-section {
  padding: 12px 0 104px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  justify-content: start;
  gap: 56px;
  margin-bottom: 56px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head > div {
  align-self: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-weight: 760;
  font-size: 0.84rem;
}

h2 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(2.5rem, 4.9vw, 4.6rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-copy {
  max-width: 680px;
  margin: 0;
  padding-left: 46px;
  border-left: 1px solid rgba(100, 68, 56, 0.24);
  color: var(--muted);
  line-height: 1.44;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: 1.52rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  grid-auto-flow: dense;
}

.pictures-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.pictures-grid .art-card {
  aspect-ratio: 4 / 5;
  grid-column: auto;
  min-height: 0;
}

.art-card > .image-preview-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.feature-frame > .image-preview-link {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.image-preview-link:focus-visible {
  outline: 3px solid rgba(255, 250, 244, 0.92);
  outline-offset: -8px;
}

.art-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 18px 50px rgba(42, 33, 25, 0.12);
  isolation: isolate;
}

.art-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.art-card:hover img {
  transform: scale(1.035);
}

.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 12, 0.02) 40%,
    rgba(20, 15, 12, 0.42) 100%
  );
  pointer-events: none;
}

.art-card > span:not(.availability-badge) {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fffaf4;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 760;
  pointer-events: none;
}

.availability-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 244, 0.54);
  border-radius: 999px;
  color: #fffaf4;
  cursor: help;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(20, 15, 12, 0.28);
  outline: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    width 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.availability-badge.is-available {
  background: rgba(74, 65, 58, 0.84);
}

.availability-badge.is-unavailable {
  background: rgba(74, 65, 58, 0.84);
}

.availability-badge > span {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 11px;
  margin-top: 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
  z-index: 1;
}

.availability-badge > span::before,
.availability-badge > span::after {
  content: "";
  position: absolute;
}

.availability-badge > span::before {
  left: -6px;
  top: -6px;
  width: 12px;
  height: 5px;
  border: 2px solid currentColor;
  border-right: 0;
  border-bottom: 0;
  border-radius: 999px 0 0 0;
  transform: rotate(12deg);
}

.availability-badge > span::after {
  left: 1px;
  right: 1px;
  bottom: -7px;
  height: 5px;
  background:
    radial-gradient(circle, currentColor 0 2px, transparent 2.2px) left center / 50% 100% no-repeat,
    radial-gradient(circle, currentColor 0 2px, transparent 2.2px) right center / 50% 100% no-repeat;
}

.availability-badge.is-unavailable::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  z-index: 2;
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  pointer-events: none;
  transform: translateY(-50%) rotate(-43deg);
}

.availability-badge::after {
  content: attr(data-tooltip);
  display: inline-block;
  width: 0;
  margin-left: 0;
  color: #fffaf4;
  white-space: nowrap;
  opacity: 0;
  transition:
    width 180ms ease,
    margin-left 180ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.availability-badge:hover,
.availability-badge:focus-visible {
  justify-content: flex-start;
  width: min(210px, calc(100% - 32px));
  border-color: rgba(255, 250, 244, 0.72);
  box-shadow: 0 16px 42px rgba(20, 15, 12, 0.34);
}

.availability-badge:hover::after,
.availability-badge:focus-visible::after {
  width: auto;
  margin-left: 9px;
  opacity: 1;
}

.availability-badge:focus-visible {
  box-shadow:
    0 14px 36px rgba(20, 15, 12, 0.28),
    0 0 0 3px rgba(255, 250, 244, 0.72);
}

.has-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  background: rgba(22, 17, 13, 0.84);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(100%, 1380px);
  max-height: calc(100vh - 84px);
  margin: 0;
}

.image-lightbox-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(84vh, 900px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.image-lightbox-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: clamp(26px, 3vw, 42px);
  border-left: 1px solid rgba(255, 250, 244, 0.18);
  color: #fffaf4;
}

.image-lightbox-date {
  margin: 0 0 34px;
  color: rgba(255, 250, 244, 0.56);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.image-lightbox-kicker {
  margin: 0 0 18px;
  color: rgba(255, 250, 244, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 760;
}

.image-lightbox-copy h3 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  font-weight: 500;
}

.image-lightbox-description {
  margin: 24px 0 0;
  color: rgba(255, 250, 244, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.image-lightbox-sale {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 244, 0.18);
}

.image-lightbox-availability {
  margin: 0;
  color: #fffaf4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-lightbox-price {
  margin: 10px 0 0;
  color: rgba(255, 250, 244, 0.78);
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: 2rem;
  line-height: 1;
}

.image-lightbox-close {
  position: fixed;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 250, 244, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.12);
  color: #fffaf4;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  border-color: rgba(255, 250, 244, 0.74);
  background: rgba(255, 250, 244, 0.2);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px 0 12px;
  border: 1px solid rgba(100, 68, 56, 0.22);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.82);
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(42, 33, 25, 0.14);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  backdrop-filter: blur(16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.back-to-top span:first-child {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(139, 98, 80, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(100, 68, 56, 0.36);
  background: rgba(255, 252, 247, 0.96);
  transform: translateY(-2px);
}

/* Balanced collage for exactly 7 images */
.card-1 {
  grid-column: span 4;
  min-height: 620px;
}

.card-2 {
  grid-column: span 4;
  min-height: 420px;
}

.card-3 {
  grid-column: span 4;
  min-height: 420px;
}

.card-4 {
  grid-column: span 5;
  min-height: 520px;
}

.card-5 {
  grid-column: span 3;
  min-height: 520px;
}

.card-6 {
  grid-column: span 4;
  min-height: 520px;
}

.card-7 {
  grid-column: span 12;
  min-height: 560px;
}

.card-1 img {
  object-position: center;
}

.card-2 img {
  object-position: center;
}

.card-3 img {
  object-position: center;
}

.card-4 img {
  object-position: center;
}

.card-5 img {
  object-position: center;
}

.card-6 img {
  object-position: center;
}

.card-7 img {
  object-position: center 38%;
}

.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 78px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 64px rgba(42, 33, 25, 0.1);
  backdrop-filter: blur(16px);
}

.coming-soon h3 {
  margin: 0 0 10px;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.coming-soon p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.seal {
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.76);
  text-align: center;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

footer {
  padding: 0 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 760;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }

  .feature-frame {
    min-height: 620px;
  }

  .feature-frame img {
    min-height: 584px;
  }

  .section-head {
    display: block;
    padding: 28px 0 34px;
    margin-bottom: 36px;
  }

  .section-copy {
    margin-top: 16px;
    padding-left: 0;
    border-left: 0;
    font-size: 1.24rem;
    line-height: 1.48;
  }

  .image-lightbox-frame {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    overflow: auto;
  }

  .image-lightbox-frame img {
    max-height: 62vh;
    margin: 0 auto;
  }

  .image-lightbox-copy {
    min-height: 0;
    padding: 20px 4px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 250, 244, 0.18);
  }

  .image-lightbox-copy h3 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .image-lightbox-description {
    margin-top: 14px;
  }

  .card-1,
  .card-2,
  .card-3,
  .card-4,
  .card-5,
  .card-6,
  .card-7 {
    grid-column: span 6;
    min-height: 520px;
  }

  .card-7 {
    grid-column: span 12;
  }

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

  .pictures-grid .art-card {
    grid-column: auto;
    min-height: 0;
  }
}

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

  .site-header {
    display: none;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .feature-frame {
    min-height: 520px;
    padding: 14px;
    border-radius: 30px;
  }

  .feature-frame::before {
    inset: 14px;
    border-radius: 18px;
  }

  .feature-frame img {
    min-height: 492px;
    border-radius: 18px;
  }

  .feature-caption {
    left: 28px;
    right: 28px;
    bottom: 28px;
  }

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

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

  .pictures-grid .art-card {
    min-height: 0;
  }

  .card-1,
  .card-2,
  .card-3,
  .card-4,
  .card-5,
  .card-6,
  .card-7 {
    grid-column: auto;
    min-height: 440px;
  }

  .card-2,
  .card-3 {
    min-height: 360px;
  }

  .card-7 {
    min-height: 500px;
  }

  .pictures-grid .art-card {
    min-height: 0;
  }

  .coming-soon {
    grid-template-columns: 1fr;
  }

  .seal {
    width: 132px;
    height: 132px;
  }
}
