:root {
  --bg: #faf9f6;
  --wall: #ffffff;
  --ink: #1d1c1a;
  --muted: #6f6b64;
  --line: #e6e2da;
  --accent: #1d1c1a;
  --sold: #a33b2b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 5vw, 64px);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
}
.brand span { font-weight: 400; color: var(--muted); }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-header nav a {
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.site-header nav a:hover { color: var(--ink); }

/* Intro */
.intro {
  max-width: 760px; margin: 0 auto;
  padding: clamp(56px, 10vw, 112px) 16px clamp(40px, 6vw, 72px);
  text-align: center;
}
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
.lede { color: var(--muted); font-size: 1.05rem; margin: 20px auto 0; max-width: 560px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  grid-auto-flow: dense;
  gap: clamp(28px, 4vw, 56px);
  padding: 0 clamp(16px, 5vw, 64px) 96px;
  max-width: 1320px; margin: 0 auto;
}
.card {
  all: unset; cursor: pointer; display: flex; flex-direction: column;
}
.card:focus-visible .frame { outline: 2px solid var(--ink); outline-offset: 4px; }
.frame {
  background: var(--wall);
  --pad: clamp(16px, 2.5vw, 28px);
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.frame img {
  position: absolute; inset: 0; margin: auto;
  max-width: calc(100% - 2 * var(--pad)); max-height: calc(100% - 2 * var(--pad));
  box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.12);
}
.card:hover .frame { box-shadow: 0 18px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }
.card--wide { grid-column: 1 / -1; }
.card--wide .frame { aspect-ratio: 2.6 / 1; }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.card-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.card-sub { font-size: 0.82rem; color: var(--muted); }
.card-price { font-size: 0.92rem; white-space: nowrap; }
.sold-tag {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sold);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.sold-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sold); }

/* About + contact */
.about, .contact {
  max-width: 680px; margin: 0 auto; padding: 72px 16px; text-align: center;
  border-top: 1px solid var(--line);
}
.about h2, .contact h2 { font-size: 2.2rem; margin-bottom: 18px; }
.about p, .contact p { color: var(--muted); font-size: 1.05rem; }
#about-text p { margin: 0 0 1.1em; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 28px; border: 1px solid var(--accent); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #3a3834; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.site-footer {
  text-align: center; padding: 32px 16px; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 56px clamp(16px, 6vw, 96px);
  animation: fade 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  width: 100%; max-width: 1280px; max-height: 100%;
}
.lb-image-wrap {
  position: relative; overflow: hidden; cursor: zoom-in;
  display: flex; justify-content: center; align-items: center;
  height: min(78vh, 820px);
}
.lb-image-wrap img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.18);
  transition: transform 0.25s ease;
}
.lb-image-wrap.zoomed { cursor: zoom-out; }
.lb-image-wrap.zoomed img { transform: scale(2.4); box-shadow: none; }
.zoom-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.85); padding: 5px 10px; color: var(--muted);
  pointer-events: none; transition: opacity 0.2s;
}
.lb-image-wrap.zoomed .zoom-hint { opacity: 0; }
.lb-info h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.lb-meta { color: var(--muted); font-size: 0.88rem; margin: 10px 0 22px; }
.lb-desc { margin: 0 0 26px; }
.lb-palette:empty { display: none; }
.lb-palette { margin: 0 0 26px; }
.lb-palette-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.lb-palette-note { font-size: 0.9rem; color: var(--muted); margin: 0 0 12px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.lb-price { font-family: var(--serif); font-size: 1.9rem; margin: 0 0 20px; }
.lb-price.is-sold { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sold); }
.lb-actions { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.lb-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink);
  font-size: 2.6rem; line-height: 1; padding: 8px 14px; opacity: 0.6;
}
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 860px) {
  .lightbox { align-items: flex-start; overflow-y: auto; padding: 56px 16px 32px; }
  .lb-inner { grid-template-columns: 1fr; max-height: none; }
  .lb-image-wrap { height: auto; }
  .lb-image-wrap img { max-height: 60vh; }
  .lb-nav { top: 8px; transform: none; font-size: 2.4rem; }
  .lb-next { right: 60px; }
  .lb-actions { max-width: none; }
}
@media (max-width: 520px) {
  .site-header { flex-direction: column; gap: 6px; }
}
