/* Glenn Jordan Art — typography and space lead; the work is the color. */
:root {
  --bg: #f3efe7;
  --bg-deep: #ece7dc;
  --ink: #1b1a17;
  --muted: #6a665d;
  --line: #d8d2c6;
  --paper: #faf8f3;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.6rem; flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav-toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  border: 0; background: none; padding: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1px; background: var(--ink);
  margin: 7px 4px; transition: transform .2s, opacity .2s;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.9rem; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-8px) rotate(-45deg); }
}

.hero {
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad) 1rem;
}
.hero-frame {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background: var(--bg-deep);
}
.hero-frame a { display: block; max-width: 100%; }
.hero-frame img {
  max-height: min(86vh, 920px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.hero-caption {
  max-width: 1280px;
  margin: 0.85rem auto 0;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.hero-caption a { text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-caption a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.hero-caption cite { font-style: italic; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

.intro {
  max-width: 36rem;
  margin: 3.5rem auto 1rem;
  padding: 0 var(--pad);
  text-align: center;
}
.intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
}
.intro p { margin: 0 auto; color: var(--muted); }
.intro-actions {
  display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
  margin: 1.6rem 0 0;
}

.btn, a.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover, a.btn:hover { background: #000; }
.btn-ghost, a.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover, a.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem var(--pad) 1.4rem;
}
.section-head h1, .section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.gallery {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.25rem;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.9rem; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 1.75rem; }
}

.card { display: block; text-decoration: none; color: inherit; }
.card-image {
  background: var(--bg-deep);
  display: block;
}
.card-image picture { width: 100%; display: block; }
.card-image img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.card figcaption {
  margin-top: 0.65rem;
}
.card-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}
.card-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.featured {
  max-width: var(--max);
  margin: 3.5rem auto 4.5rem;
  padding: 0 var(--pad);
}
.featured .kicker { text-align: center; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
}
@media (max-width: 800px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

.prose {
  max-width: 38rem;
  margin: 0 auto 5rem;
  padding: 3rem var(--pad) 0;
}
.prose h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1.25rem;
}
.prose p { margin: 0 0 1rem; }
.prose .placeholder {
  background: var(--bg-deep);
  border-left: 3px solid var(--ink);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.prose .placeholder p:last-child { margin-bottom: 0; }
.placeholder-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.detail {
  max-width: 1100px;
  margin: 0 auto 4.5rem;
  padding: 2rem var(--pad) 0;
}
.detail-image {
  background: var(--bg-deep);
  display: flex; justify-content: center;
}
.detail-image img {
  max-height: min(86vh, 980px);
  width: auto; max-width: 100%;
  margin: 0 auto;
}
.detail-info {
  max-width: 32rem;
  margin: 1.75rem auto 0;
  text-align: center;
}
.detail-info h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.detail-meta { color: var(--muted); margin: 0 0 0.25rem; }
.price { margin: 0.9rem 0 1.3rem; font-size: 0.95rem; }
.untitled-note { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.detail-nav {
  margin-top: 2.5rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.detail-nav a { text-decoration: none; border-bottom: 1px solid var(--line); }
.detail-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.contact-actions { margin-top: 1.5rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--pad);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem;
}
.footer-links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-links a:hover { color: var(--ink); }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(18, 17, 15, 0.94);
  color: #f3efe7;
  display: flex; flex-direction: column;
}
.lightbox-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.2rem; gap: 1rem;
}
.lightbox-bar p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.lightbox-close {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.lightbox-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 3rem 2rem; min-height: 0;
}
.lightbox-stage img {
  max-width: 100%; max-height: calc(100vh - 7rem);
  width: auto; height: auto; margin: 0 auto;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #f3efe7; cursor: pointer;
  font-size: 2rem; padding: 1rem; line-height: 1; opacity: 0.8;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-link {
  color: inherit; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgba(243,239,231,.4);
}
@media (max-width: 640px) {
  .lightbox-stage { padding: 0 0.75rem 1.5rem; }
  .lightbox-nav { font-size: 1.5rem; padding: 0.4rem; }
}
