/* ==========================================================================
   art.christhompkins.com — site styles
   One typeface (Archivo), charcoal gallery wall, the artwork supplies the color.
   Edit the tokens below to change the whole site.
   ========================================================================== */

:root {
  --bg: #161514;          /* gallery wall (charcoal) */
  --bg-raised: #1E1D1B;   /* panels, image mats */
  --fg: #F2EEE7;          /* text */
  --muted: #ABA49A;       /* secondary text (passes 4.5:1 on --bg) */
  --line: #3A3835;        /* hairlines and borders */
  --room-wall: #DCD6CC;   /* "view in a room" wall */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:hover { opacity: .75; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--bg); padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  margin: 0;
  font-weight: 500;
  font-stretch: 112%;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.015em;
}
.h2 {
  margin: 0;
  font-weight: 500;
  font-stretch: 112%;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.lead { margin: 0; font-size: 18px; line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.placeholder { color: #E0B25A; } /* bracketed content still to be filled in */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg);
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.text-link { display: inline-block; padding: 12px 0; font-weight: 600; letter-spacing: .04em; }

/* ---------- Header ---------- */

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 40px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}
.site-header--overlay { border-bottom: 0; }
.wordmark {
  text-decoration: none; font-weight: 600; font-stretch: 125%;
  font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 14px; letter-spacing: .06em; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-cta { padding: 12px 16px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */

.venue-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding: 16px var(--pad);
  border-top: 1px solid var(--line); font-size: 14px;
}
.venue-strip p { margin: 0; display: flex; align-items: center; gap: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); flex: none; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px;
  padding: 40px var(--pad) 48px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { text-decoration: none; padding: 8px 0; }
.site-footer p { margin: 0; }

/* ---------- Home ---------- */

.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.home-hero { position: relative; flex: 1 1 auto; min-height: 420px; margin: 0; }
.home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-band {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; padding: 32px var(--pad) 28px;
}
.home-band h1 {
  margin: 0; font-weight: 300; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -.01em;
}

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 12px 32px; margin-bottom: 32px;
}

/* ---------- Works grid ---------- */

.works-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px;
  margin: 0; padding: 0; list-style: none;
}
.work-card a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.work-card a:hover { opacity: 1; }
.work-card a:hover img { opacity: .88; }
.work-card .frame {
  aspect-ratio: 4 / 5; background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.work-card img { max-height: 100%; width: auto; object-fit: contain; transition: opacity .2s; }
.work-card h3 { margin: 0; font-size: 20px; font-weight: 500; font-stretch: 112%; }
.work-card p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Artwork page ---------- */

.crumbs { margin: 28px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs span[aria-current] { color: var(--fg); }

.art-stage-wrap { margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.art-stage { display: flex; justify-content: center; }
.art-stage img { width: auto; max-width: 100%; max-height: 80vh; object-fit: contain; }
.art-stage.is-zoomed { display: block; max-height: 85vh; overflow: auto; background: #0E0D0C; }
.art-stage.is-zoomed img { max-width: none; max-height: none; width: 230%; }
.art-stage-wrap figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; font-size: 13px; color: var(--muted);
}
.zoom-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--fg); border: 1px solid var(--line); cursor: pointer;
  font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}

.art-main { display: flex; flex-wrap: wrap; gap: 48px 72px; padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.art-main > * { min-width: 0; }
.art-col { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }

/* Vertical and square works sit beside their details */
.art-main--side { padding-top: 32px; }
.art-main--side .art-stage-wrap { flex: 1 1 480px; margin: 0; }
.art-main--side .art-stage img { max-height: 82vh; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }

.picker { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.picker legend { padding: 0 0 12px; }
.picker legend span { font-weight: 400; letter-spacing: .04em; text-transform: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--line);
  font: inherit; font-size: 15px;
}
.pill[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.selection { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); }
.selection .summary { margin: 0; font-size: 22px; font-weight: 500; }

.studio-link {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.studio-link p { margin: 0; font-size: 15px; }

/* View in a room: an 18 ft x 10.5 ft wall (216 x 126 in) */
.room {
  position: relative; width: 100%; aspect-ratio: 12 / 7;
  background: var(--room-wall); overflow: hidden;
}
.room-art { position: absolute; box-sizing: content-box; box-shadow: 0 6px 14px rgba(0,0,0,.32); transition: all .35s ease; }
.room-art img { width: 100%; height: 100%; object-fit: cover; }
.room-art.frame--floater { background: #121212; padding: .35%; border: 3px solid #1A1A1A; }
.room-sofa { position: absolute; left: 30.55%; width: 38.9%; bottom: 0; height: 25.4%; display: flex; flex-direction: column; }
.room-sofa::before { content: ""; flex: 0 0 38%; margin: 0 4%; background: #47524C; border-radius: 10px 10px 0 0; }
.room-sofa::after { content: ""; flex: 1 1 auto; background: #3C4640; border-radius: 6px; }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 1.6%; background: #BDB5A8; }

.original { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.original img { flex: 1 1 520px; min-width: 0; max-width: 760px; }
.original > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.original p { margin: 0; }

/* ---------- Steps ---------- */

.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.steps li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--fg); }
.steps .num { font-size: 13px; color: var(--muted); }
.steps strong { font-weight: 600; }
.steps span:last-child { color: var(--muted); }

.shapes { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; margin-top: 8px; }
.shape { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.shape i { display: block; border: 1px solid var(--fg); }

/* ---------- Prose pages ---------- */

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose p { margin: 0; font-size: 18px; line-height: 1.7; }
.page-head { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.page-head p { margin: 0; }

.split { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.split > * { flex: 1 1 360px; min-width: 0; }

.photo-placeholder {
  aspect-ratio: 4 / 5; background: var(--bg-raised); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  color: var(--muted); font-size: 14px;
}

.quote { margin: 0; padding-left: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.3; }

.list-plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.list-plain li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Studio Editions */
.editions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; margin: 0; padding: 0; list-style: none; }
.edition-card { display: flex; flex-direction: column; gap: 14px; }
.edition-card .frame { aspect-ratio: 1 / 1; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; padding: 28px; }
.edition-card .frame img { max-height: 100%; width: auto; background: #fff; padding: 4%; }
.edition-card h3 { margin: 0; font-size: 20px; font-weight: 500; font-stretch: 112%; }
.edition-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.edition-card li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* Visit */
.venue { display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.venue p { margin: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--bg-raised); filter: grayscale(.4) contrast(1.05); }

/* ---------- Forms ---------- */

.form-wrap { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.form-wrap > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.form {
  flex: 2 1 560px; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; min-height: 48px; padding: 0 14px;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 0;
}
.field select { background: var(--bg); padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8A847B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup .field { flex: 1 1 260px; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .home-band .btn { width: 100%; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .room-art, .work-card img { transition: none; }
}

.prose .eyebrow { font-size: 13px; line-height: 1.4; }
