/* Monica Cohn - site styles. Plain values on purpose, no CSS variables.
   Type follows ysl.com: Helvetica, caps headings, tight tracking. */

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: #ffffff;
  color: #000000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, .wordmark {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 17px; letter-spacing: 0.01em; }

em { font-style: italic; }
h1 em, h2 em, h3 em { font-style: normal; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #767676;
  margin-bottom: 18px;
}

.lead { font-size: 20px; color: #333333; max-width: 34em; }

/* Header */

.site-header { padding: 28px 0; }

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark { font-size: 22px; letter-spacing: 0.02em; text-decoration: none; }

.nav { display: flex; gap: 28px; flex-wrap: wrap; }

.menu-btn { display: none; }

.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #333333;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: #000000; color: #000000; }

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #000000;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: transparent; color: #000000; }

.btn.light { background: transparent; color: #000000; }
.btn.light:hover { background: #000000; color: #ffffff; }

.link {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  padding-bottom: 3px;
}

/* Sections */

section { padding: 96px 0; }

.rule { border: 0; border-top: 1px solid #e6e6e6; }

/* Hero */

.hero { padding: 48px 0 96px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero paintings stack in one cell. The new one fades in on top of the
   old one, so the glow never dips. site.js moves the classes. */

.fader { display: grid; }
.fader > figure { grid-area: 1 / 1; opacity: 0; }
.fader > figure.on { opacity: 1; z-index: 2; transition: opacity 1.8s ease; }
.fader > figure.was { opacity: 1; z-index: 1; }
.fader > figure.was figcaption { opacity: 0; transition: opacity 0.6s ease; }

/* Artwork frames. Plain grey until the image loads, never a color wash. */

.art {
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 4 / 5;
}

.art.wide { aspect-ratio: 5 / 4; }
.art.tall { aspect-ratio: 3 / 4; }

.art img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.art::after {
  content: attr(data-file);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.45);
}

.art:has(img)::after { content: none; }

/* Paintings sit whole on a flat, plain mat. No glow, crisp edges. */

.art.mat { background: #f2f2f2; }

.art.mat img {
  object-fit: contain;
  padding: 9%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.caption { margin-top: 12px; font-size: 14px; color: #595959; }
.caption .title { display: block; font-size: 13px; line-height: 1.4; letter-spacing: 0.02em; text-transform: uppercase; color: #000000; }

/* Works grid */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.grid figure { margin: 0; }

.grid figcaption { margin-top: 12px; font-size: 14px; color: #595959; }

.gallery { columns: 3 280px; column-gap: 32px; }
.gallery figure { break-inside: avoid; margin: 0 0 32px; }

.rooms { columns: 2 320px; column-gap: 32px; }
.rooms figure { break-inside: avoid; margin: 0 0 32px; }
.rooms img { width: 100%; height: auto; background: #f2f2f2; }

/* Split blocks (about teaser, about page) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split p + p { margin-top: 18px; }
.split h2 { margin-bottom: 28px; }
.split .link { display: inline-block; margin-top: 32px; }

.quote {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  max-width: 22em;
  margin: 0 auto;
  text-align: center;
}

.quote-by {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #767676;
}

/* Exhibitions and memberships */

.shows { list-style: none; max-width: 820px; border-top: 1px solid #e6e6e6; }
.shows li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid #e6e6e6; }
.shows .year { font-size: 17px; line-height: 1.2; color: #767676; }
.shows h3 { margin-bottom: 4px; }
.shows p { font-size: 15px; color: #333333; }

.members { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 32px; }
.members a { text-decoration: none; }
.members strong { display: block; font-size: 24px; font-weight: 500; line-height: 1.1; text-transform: uppercase; }
.members span { font-size: 13px; color: #595959; }

/* Press */

.press-card { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.press-card h2 { margin-bottom: 14px; }
.press-card .translation { font-style: italic; color: #595959; margin-bottom: 24px; }
.press-card .link { display: inline-block; margin-top: 28px; }

/* Commission band */

.band { background: #000000; color: #ffffff; text-align: center; }
.band .eyebrow { color: #999999; }
.band h2 { margin-bottom: 20px; }
.band p { color: #cccccc; max-width: 32em; margin: 0 auto 36px; }
.band .btn { background: #ffffff; color: #000000; border-color: #ffffff; }
.band .btn:hover { background: transparent; color: #ffffff; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step { border-top: 1px solid #000000; padding-top: 22px; }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 18px;
  color: #767676;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 16px; color: #333333; }

/* FAQ */

.faq { max-width: 760px; }

.faq details { border-bottom: 1px solid #e6e6e6; padding: 22px 0; }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #767676; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: #333333; }

/* Page intro */

.page-intro { padding: 56px 0 72px; }
.page-intro h1 { margin-bottom: 24px; }

/* Contact */

.contact-email {
  font-size: clamp(22px, 2.8vw, 34px);
  text-decoration: none;
  border-bottom: 1px solid #000000;
  white-space: nowrap;
}

.contact-list { list-style: none; margin-top: 48px; display: grid; gap: 14px; color: #333333; }
.contact-list strong { color: #000000; font-weight: 500; }

/* Footer */

.site-footer { padding: 56px 0; border-top: 1px solid #e6e6e6; font-size: 14px; color: #595959; }

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { white-space: nowrap; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Phone */

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .press-card { grid-template-columns: 1fr; gap: 40px; }
  .nav { gap: 18px; }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
  }
  .site-header .wrap { align-items: center; }
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-btn span { display: block; height: 1.5px; background: #000000; transition: transform 0.25s, opacity 0.2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .menu-open .nav { display: flex; }
  .nav a, .nav a:hover, .nav a[aria-current="page"] {
    font-size: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #000000;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
  }
  .nav a[aria-current="page"] { color: #767676; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .shows li { grid-template-columns: 1fr; gap: 4px; }
  .wordmark { font-size: 19px; }
  section { padding: 56px 0; }
  .hero { padding: 28px 0 56px; }
  .page-intro { padding: 36px 0 48px; }
  .lead { font-size: 18px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; }
  .hero .actions { flex-direction: column; gap: 12px; }
  .actions .btn, .band .btn { display: block; text-align: center; }
  .btn { padding: 16px 24px; }
  .section-head { margin-bottom: 32px; }
  .grid { gap: 40px; }
  .gallery figure { margin-bottom: 40px; }
  .rooms figure { margin-bottom: 20px; }
  .split { gap: 32px; }
  .art.mat img { padding: 8%; }
  .members { gap: 24px 32px; }
  .faq summary { font-size: 16px; }
  .contact-list { margin-top: 32px; }
  .band p { margin-bottom: 28px; }
  .site-footer { padding: 40px 0; }
  .site-footer .wrap { flex-direction: column; gap: 14px; }
  .footer-links { gap: 6px 20px; }
  .footer-links a { padding: 6px 0; }
}
