/* ==========================================================================
   Armenouhi Jamgotchian — Gallery Site
   Design tokens: ivory paper, near-black ink, pomegranate accent, aged brass
   Type: Fraunces (display serif) + Work Sans (body/UI)
   ========================================================================== */

:root {
  --paper: #F7F4EE;
  --paper-deep: #EFEAE0;
  --ink: #1C1B18;
  --ink-soft: #4A473F;
  --line: #D9D2C2;
  --accent: #7A2331;      /* deep pomegranate */
  --accent-soft: #9C4B57;
  --brass: #9C7A3C;       /* aged brass, for dates/provenance */
  --white: #FFFDF9;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(156, 122, 60, 0.15);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark .mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-style: italic;
  color: var(--accent);
  flex-shrink: 0;
}

.wordmark .wm-text { display: flex; flex-direction: column; }

.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 2px;
}

nav.primary {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
}

nav.primary a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}

nav.primary a.current,
nav.primary a:hover { color: var(--ink); }

nav.primary a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 38px;
  height: 34px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  margin: 4px auto;
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 2px;
  transition: background 0.35s cubic-bezier(0.16,1,0.3,1), color 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: #611A25; border-color: #611A25; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------- Hero -------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: 78vh;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.eyebrow-line {
  font-size: 14px;
  color: var(--brass);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 74px);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-copy .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -80px 120px -60px rgba(0,0,0,0.35);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------- Placeholder artwork canvas -------------------- */
/* Swap the .ph-canvas div for a real <img> once photography is ready.
   Keep the same wrapping <figure class="artwork"> and <figcaption>. */

.ph-canvas {
  width: 100%;
  height: 100%;
  min-height: 260px;
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(28,27,24,0.035) 0px, rgba(28,27,24,0.035) 1px, transparent 1px, transparent 14px),
    linear-gradient(160deg, #E7E0CE 0%, #D9CFB6 55%, #C9BC9C 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.ph-canvas .ph-tag {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(28,27,24,0.45);
  font-size: 15px;
}

.hero-visual .ph-canvas { min-height: 100%; }

/* -------------------- Sections -------------------- */

section { padding: clamp(64px, 9vw, 132px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head .section-note { color: var(--ink-soft); font-size: 15px; max-width: 34ch; text-align: right; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* -------------------- Intro / statement blocks -------------------- */

.statement {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.statement .kicker {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.statement .body { color: var(--ink-soft); }
.statement .body p { max-width: 54ch; }

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

.works-grid {
  columns: 3 220px;
  column-gap: 28px;
}

.works-grid.featured { columns: 3 260px; }

.artwork {
  margin: 0 0 40px;
  background: transparent;
  border: none;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  vertical-align: top;
}

.artwork .ph-canvas { aspect-ratio: 4 / 5; min-height: 0; }
.artwork img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  box-shadow: 0 1px 3px rgba(28,27,24,0.08), 0 12px 28px -14px rgba(28,27,24,0.18);
}
.artwork { overflow: visible; transition: transform 0.4s ease; }
.artwork:hover img { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(28,27,24,0.1), 0 24px 44px -16px rgba(28,27,24,0.3); }

.artwork figcaption {
  padding: 18px 2px 0;
}

.artwork .work-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  margin-bottom: 5px;
}

.artwork .work-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.artwork .work-status {
  font-size: 12px;
  color: var(--brass);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.artwork a.inquire-link {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  margin-top: 10px;
  display: inline-block;
  width: fit-content;
}

/* -------------------- Timeline -------------------- */

.timeline { border-top: 1px solid var(--line); }

.tl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.tl-row .tl-year {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 19px;
}

.tl-row .tl-body h4 { font-size: 17px; margin-bottom: 4px; font-family: var(--sans); font-weight: 600; }
.tl-row .tl-body p { color: var(--ink-soft); font-size: 15px; }

/* -------------------- Pull quote -------------------- */

.pull {
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 62ch;
}

.pull cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* -------------------- Press / list -------------------- */

.press-list {
  columns: 2;
  column-gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.press-list li { break-inside: avoid; margin-bottom: 14px; font-size: 15.5px; color: var(--ink-soft); }
.press-list strong { color: var(--ink); font-weight: 600; }

/* -------------------- Filter tabs (Collection page) -------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters button {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 16px 22px;
  cursor: pointer;
  transition: color 0.25s ease;
  position: relative;
}
.filters button:last-child { border-right: none; }
.filters button::after {
  content: '';
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.filters button.active,
.filters button:hover { color: var(--ink); }
.filters button.active::after { transform: scaleX(1); }

.collection-grid {
  columns: 4 200px;
  column-gap: 28px;
}

.collection-group { margin-bottom: 88px; }
.collection-group h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.collection-group .group-note {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 26px;
  max-width: 60ch;
}

/* -------------------- CTA band -------------------- */

.cta-band {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  max-width: 22ch;
}
.cta-band p { color: var(--ink-soft); font-size: 15px; }
.cta-band .btn-ghost { border-color: var(--ink); color: var(--ink); }
.cta-band .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* -------------------- Form (Inquire) -------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 18px; }

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

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner nav a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-meta { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
  nav.primary { display: none; }
  .nav-toggle { display: block; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; aspect-ratio: 4 / 3; }

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

  .works-grid, .works-grid.featured { columns: 2 180px; }

  .collection-grid { columns: 2 160px; }

  .press-list { columns: 1; }

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

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .section-note { text-align: left; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .works-grid, .works-grid.featured, .collection-grid { columns: 1; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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

.highlight-band{background:#f3ece0;border-top:1px solid #d9d2c2;border-bottom:1px solid #d9d2c2;padding:22px 0}
.highlight-band p{margin:0;max-width:860px;font-size:1.02rem;line-height:1.55}
.highlight-band strong{font-family:'Fraunces',serif;font-weight:600}
.highlight-band a{color:#7a2331;text-decoration:underline}

/* -------------------- 1974 opening photographs -------------------- */
.photo-feature { margin: 0 0 56px; }
.photo-feature img { width: 100%; height: auto; display: block; box-shadow: 0 1px 3px rgba(28,27,24,0.08), 0 14px 32px -14px rgba(28,27,24,0.25); }
.photo-feature figcaption, .photo-grid figcaption { padding: 14px 2px 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.photo-feature figcaption strong { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); font-size: 17px; display: block; margin-bottom: 3px; }
.photo-grid { columns: 2; column-gap: 32px; }
.photo-grid figure { margin: 0 0 32px; break-inside: avoid; }
.photo-grid img { width: 100%; height: auto; display: block; box-shadow: 0 1px 3px rgba(28,27,24,0.08), 0 10px 24px -14px rgba(28,27,24,0.22); }
@media (max-width: 640px) { .photo-grid { columns: 1; } .photo-feature { margin-bottom: 36px; } }

.work-meta{gap:4px 14px;flex-wrap:wrap}

/* Visitors' notes */
.note-quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-bottom:48px}
.note-quotes blockquote{margin:0;padding:0 0 0 20px;border-left:2px solid var(--line)}
.note-quotes blockquote p{font-family:'Fraunces',serif;font-style:italic;font-size:17px;line-height:1.55;margin:0 0 12px}
.note-quotes cite{font-style:normal;font-size:13px;opacity:.7;letter-spacing:.02em}
.note-grid{columns:2;column-gap:32px}
.note-grid figure{break-inside:avoid;margin:0 0 32px}
.note-grid img{width:100%;height:auto;display:block;border:1px solid var(--line);background:#fff}
.note-grid figcaption{font-size:13px;opacity:.7;margin-top:8px}
@media (max-width:820px){.note-quotes{grid-template-columns:1fr}}
@media (max-width:640px){.note-grid{columns:1}}

/* Press cutting */
.press-cutting{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px;align-items:start}
.press-cutting figure{margin:0}
.press-cutting img{width:100%;height:auto;display:block;border:1px solid var(--line);background:#fff}
.press-cutting figcaption{font-size:13px;opacity:.7;margin-top:8px}
.press-translation h3{font-size:clamp(24px,3vw,32px);margin:0 0 6px}
.press-translation .kicker-line{font-size:13px;letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin:0 0 22px}
.press-translation p{font-size:17px;line-height:1.65;margin:0 0 16px}
.press-translation cite{display:block;font-style:normal;font-size:13px;opacity:.7;margin-top:20px}
@media (max-width:820px){.press-cutting{grid-template-columns:1fr;gap:28px}}

/* Colour palette on each painting */
.palette{display:flex;gap:3px}
.palette span{width:13px;height:13px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(28,27,24,.12);display:block}
.work-foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.artwork .work-foot a.inquire-link{margin-top:0}

/* Size-ordered "All works" view: read left to right, row by row */
.collection-group[data-category="bysize"] .collection-grid {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 28px;
  align-items: start;
}
.collection-group[data-category="bysize"] .artwork { margin-bottom: 0; break-inside: auto; }
@media (max-width: 900px) { .collection-group[data-category="bysize"] .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (max-width: 520px) { .collection-group[data-category="bysize"] .collection-grid { grid-template-columns: 1fr; } }
