/* ============================================================
   WYFI — gallery stylesheet
   Visual register: Tate / Whitechapel / White Cube institutional.
   Restrained, sober, generous whitespace, no decoration.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper:     #ffffff;
  --paper-2:   #fafaf8;
  --ink:       #111111;
  --ink-soft:  #555555;
  --ink-faint: #888888;
  --rule:      #e6e3dc;
  --rule-soft: #f0ede5;

  --serif: 'Source Serif 4', 'Times New Roman', Times, serif;
  --sans:  'Inter', -apple-system, system-ui, Helvetica, Arial, sans-serif;
  --mono:  'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}
a:hover { border-color: var(--ink); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 26px;
}
.site-header .inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  border: none;
  color: var(--ink);
}
.wordmark:hover { border: none; }

.primary {
  display: flex;
  gap: 32px;
  align-items: baseline;
}
.primary a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: none;
  padding-bottom: 2px;
}
.primary a:hover { color: var(--ink); }
.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 720px) {
  .site-header .inner { padding: 0 20px; gap: 16px; flex-wrap: wrap; }
  .primary { gap: 20px; }
  .wordmark { font-size: 17px; }
}

/* ============================================================
   GENERIC TYPOGRAPHY HELPERS
   ============================================================ */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
}

.meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

/* ============================================================
   FEATURED HOME PAGE
   ============================================================ */
.featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 36px 140px;
}
@media (max-width: 720px) {
  .featured { padding: 56px 20px 80px; }
}

.featured-link {
  display: block;
  border: none;
}
.featured-link:hover { border: none; }
.featured-link:hover .featured-image { background: var(--paper-2); }
.featured-link:hover .placard-title em {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.featured-image {
  background: var(--paper);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.15s ease;
}
.featured-image svg, .featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
}

.featured-placard {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.featured-explore {
  text-align: center;
  margin-top: 80px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.featured-explore a {
  color: var(--ink-soft);
  border: none;
}
.featured-explore a:hover { color: var(--ink); border: none; }

/* ============================================================
   GALLERY PLACARD TYPOGRAPHY
   Used on featured home, works-list rows, and single work.
   This is the wall-label style: artist roman, title italic,
   medium plain. No labels for the labels.
   ============================================================ */
.placard-number {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.placard-artist {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 4px;
}

.placard-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.placard-title em {
  font-style: italic;
}

.placard-medium {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
}

.placard-acquired {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* On the featured home page, the placard scales up slightly */
.featured-placard .placard-artist {
  font-size: 26px;
  margin-bottom: 6px;
}
.featured-placard .placard-title {
  font-size: 22px;
  margin-bottom: 6px;
}
.featured-placard .placard-medium {
  font-size: 16px;
}

/* ============================================================
   WORKS LIST PAGE — stacked rows
   ============================================================ */
.works-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 36px 120px;
}
.works-list-head {
  margin-bottom: 80px;
  max-width: 720px;
}
.works-list-head .meta { font-family: var(--mono); font-size: 14px; color: var(--ink-soft); }
.works-list-head .big-number {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.works-stack {
  list-style: none;
}
.works-stack > li {
  border-top: 1px solid var(--rule);
}
.works-stack > li:last-child { border-bottom: 1px solid var(--rule); }

.work-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border: none;
  transition: background 0.15s ease;
}
.work-row:hover { border: none; background: var(--paper-2); margin: 0 -16px; padding: 56px 16px; }
.work-row:hover .placard-title em {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.row-image {
  background: var(--paper);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.row-image svg, .row-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

.row-placard { padding: 0; }

@media (max-width: 800px) {
  .works-list { padding: 56px 20px 80px; }
  .works-list-head { margin-bottom: 48px; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .work-row:hover { margin: 0; padding: 40px 0; background: transparent; }
}

/* ============================================================
   SINGLE WORK PAGE — placard style replaces dl/dt/dd
   ============================================================ */
.single-work {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 36px 120px;
}
.work-back {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 56px;
  display: inline-block;
  border: none;
}
.work-back:hover { color: var(--ink); border: none; }

.work-stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

.work-display {
  background: var(--paper);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-display svg, .work-display img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

.work-info { padding-top: 8px; }

.single-placard {
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.single-placard .placard-artist { font-size: 24px; }
.single-placard .placard-title { font-size: 22px; }

.work-commentary {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 8px;
}
.work-commentary p { margin-bottom: 16px; }
.work-commentary p:last-child { margin-bottom: 0; }
.work-commentary .signature {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: 24px;
  font-style: normal;
}

@media (max-width: 900px) {
  .work-stage { grid-template-columns: 1fr; gap: 40px; }
  .single-work { padding: 56px 20px 80px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 36px 120px;
}
.page h1 { margin-bottom: 32px; }
.page .lede { margin-bottom: 48px; }
.page p { margin-bottom: 18px; max-width: 32em; }
.page h2 { margin-top: 56px; margin-bottom: 18px; }
.page .runin {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-top: 48px;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .page { padding: 56px 20px 80px; }
}

/* ============================================================
   VISIT PAGE — slightly more structured
   ============================================================ */
.visit-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px 48px;
  margin-top: 48px;
}
.visit-grid dt {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding-top: 4px;
}
.visit-grid dd {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}
.visit-grid dd p { margin-bottom: 8px; max-width: none; }
.visit-grid dd p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .visit-grid { grid-template-columns: 1fr; gap: 6px 0; }
  .visit-grid dt { padding-top: 24px; }
  .visit-grid > dt:first-child { padding-top: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 56px;
  margin-top: 0;
}
.site-footer .inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.site-footer p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.site-footer .foot-mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
}
.site-footer .foot-statement {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
  margin-bottom: 18px;
}
.site-footer .foot-address {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
}
.site-footer .foot-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 6px;
}
.site-footer li a {
  color: var(--ink);
  border: none;
}
.site-footer li a:hover {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 900px) {
  .site-footer .inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .site-footer .foot-left { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer .inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 32px;
  }
  .site-footer .foot-left { grid-column: auto; }
}

/* ============================================================
   HOME PAGE OPTIONS
   ============================================================ */

/* Option 1: exhibition title hero + small row of featured works */
.home-1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 36px 120px;
}
@media (max-width: 720px) {
  .home-1 { padding: 56px 20px 80px; }
}

.exhibition-hero {
  max-width: 760px;
  margin-bottom: 96px;
}
.exhibition-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.exhibition-dates {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.exhibition-blurb {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 36em;
}

.featured-row {
  border-top: 1px solid var(--rule);
  padding-top: 56px;
}
.featured-row-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.featured-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 36px;
  margin-bottom: 56px;
}
.featured-row-item {
  border: none;
  display: block;
}
.featured-row-item:hover { border: none; }
.featured-row-item:hover .featured-row-image { background: var(--paper-2); }
.featured-row-item:hover .placard-title em {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.featured-row-image {
  background: var(--paper);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: background 0.15s ease;
}
.featured-row-image svg {
  display: block; width: 100%; height: 100%;
  object-fit: contain; padding: 10%;
}
.featured-row-placard .placard-artist { font-size: 18px; }
.featured-row-placard .placard-title { font-size: 16px; }

@media (max-width: 800px) {
  .featured-row-grid { grid-template-columns: 1fr; gap: 40px; }
}

.view-all-link {
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 24px;
}
.view-all-link a { color: var(--ink-soft); border: none; }
.view-all-link a:hover { color: var(--ink); border: none; }

/* Option 2: very sparse splash */
.home-2 {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 36px;
}
.splash-wordmark {
  text-align: center;
  max-width: 720px;
}
.splash-mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(36px, 8vw, 80px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 48px;
}
.splash-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 24em;
  margin: 0 auto 32px;
}
.splash-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 56px;
}
.splash-enter {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.splash-enter a { color: var(--ink-soft); border: none; }
.splash-enter a:hover { color: var(--ink); border: none; }

/* Option 3: small grid of 6 featured works */
.home-3 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 36px 120px;
}
@media (max-width: 720px) {
  .home-3 { padding: 56px 20px 80px; }
}
.home-3-head {
  margin-bottom: 64px;
  max-width: 760px;
}
.home-3-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.home-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 36px;
  margin-bottom: 56px;
}
.home-3-item { display: block; border: none; }
.home-3-item:hover { border: none; }
.home-3-item:hover .home-3-image { background: var(--paper-2); }
.home-3-item:hover .placard-title em {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.home-3-image {
  background: var(--paper);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: background 0.15s ease;
}
.home-3-image svg {
  display: block; width: 100%; height: 100%;
  object-fit: contain; padding: 10%;
}
.home-3-placard .placard-artist { font-size: 18px; }
.home-3-placard .placard-title { font-size: 16px; }

@media (max-width: 900px) {
  .home-3-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (max-width: 600px) {
  .home-3-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VERSION STAMP (debug aid - remove for production)
   ============================================================ */
.version-stamp {
  text-align: center;
  padding: 16px 0 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(0,0,0,0.25);
  letter-spacing: 0.05em;
  user-select: none;
}
