/* ============================================================
   GRAYSON CONTEMPORARY
   Design: Paula Cooper (classical serif, whitespace, restraint)
           + Gagosian (institutional authority, grid precision)
           + Pace (editorial confidence)

   Palette  : Pure white · #111 near-black · zero UI color
   Body/UI  : EB Garamond (serif display + captions)
   Utility  : Inter (nav, labels, micro-text)
============================================================ */

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background: #ffffff;
  color: #111111;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark: EB Garamond, tracked, refined */
.wordmark {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111111;
}

/* Nav: Inter small caps */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}
.main-nav a {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #666666;
  transition: color 0.18s;
}
.main-nav a:hover { color: #111111; }

/* ============================================================
   HERO
============================================================ */
.hero {
  width: 100%;
  background: #f2f2f2;
  position: relative;
}
.hero-img-wrap {
  width: 100%;
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-meta {
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
}
.hero-meta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 52px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}
.hero-artist {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111111;
  letter-spacing: 0.02em;
}
.hero-sep {
  color: #bbbbbb;
  font-size: 0.875rem;
}
.hero-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #444444;
}
.hero-medium {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.8rem;
  color: #999999;
}
.hero-medium::before { content: "·"; margin-right: 0.45rem; color: #cccccc; }

/* ============================================================
   SHARED SECTION SCAFFOLDING
============================================================ */
.page-section {
  padding: 88px 0 96px;
}
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 52px;
}
.section-header {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8d8d8;
}
.section-label {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #888888;
}
.rule-break {
  height: 1px;
  background: #e8e8e8;
  margin: 0;
}

/* ============================================================
   WORKS GRID
============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.25rem;
  row-gap: 4.5rem;
  margin-bottom: 3.5rem;
}

/* Card */
.work-card { display: flex; flex-direction: column; }
.work-img-link { display: block; }

/* Image container — neutral gallery-wall grey, contain aspect */
.work-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}
.work-img-link:hover .work-img-wrap img { opacity: 0.87; }

/* Caption — Paula Cooper precision, left-aligned stack */
.work-caption {
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.cap-artist {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111111;
  letter-spacing: 0.01em;
}
.cap-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #333333;
}
.cap-medium {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.8rem;
  color: #888888;
  margin-top: 0.1rem;
}
.cap-dims {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.78rem;
  color: #aaaaaa;
}
.cap-inquire {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777777;
  display: inline-block;
  margin-top: 0.65rem;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.18s, border-color 0.18s;
}
.cap-inquire:hover { color: #111111; border-color: #111111; }

/* Works disclaimer note */
.works-disclaimer {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.82rem;
  color: #aaaaaa;
  max-width: 640px;
  line-height: 1.65;
  padding-top: 1.5rem;
  border-top: 1px solid #ebebeb;
}

/* ============================================================
   ARTISTS SECTION
============================================================ */
.artists-section { background: #fafafa; }

.artists-preamble {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: #555555;
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.artists-preamble strong { color: #111111; font-weight: 500; }

/* 4-column artist index */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2.5rem;
}
.artists-col { display: flex; flex-direction: column; }

.artist-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e6e6e6;
}
.a-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #222222;
  letter-spacing: 0.01em;
}
.a-tag {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaaaaa;
}

/* Represented row distinction */
.artist-represented .a-name {
  font-weight: 500;
  color: #111111;
}

/* ============================================================
   ABOUT
============================================================ */
.about-wrap { max-width: 1280px; }
.about-body {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.about-body p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.82;
  color: #333333;
}
.about-body strong { font-weight: 500; color: #111111; }

/* ============================================================
   CONTACT
============================================================ */
.contact-section { background: #fafafa; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
}
.contact-label {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 0.65rem;
  display: block;
}
.contact-col p,
.contact-col address {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: #333333;
  line-height: 1.65;
}
.contact-col a {
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 1px;
  transition: border-color 0.18s;
}
.contact-col a:hover { border-color: #111111; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid #e0e0e0;
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888888;
}
.footer-nav {
  display: flex;
  gap: 2.25rem;
}
.footer-nav a {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  transition: color 0.18s;
}
.footer-nav a:hover { color: #111111; }
.footer-copy {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  color: #cccccc;
  letter-spacing: 0.05em;
}

/* Instagram link */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: #333333;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.instagram-link:hover {
  color: #111111;
  border-color: #111111;
}
.ig-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #666666;
}
.footer-instagram {
  color: #aaaaaa;
  transition: color 0.18s;
}
.footer-instagram:hover { color: #111111; }

/* ============================================================
   RESPONSIVE — Tablet ≤ 1024px
============================================================ */
@media (max-width: 1024px) {
  .header-inner,
  .section-wrap,
  .hero-meta-inner,
  .footer-inner { padding-left: 32px; padding-right: 32px; }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 3.5rem;
  }
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — Mobile ≤ 640px
============================================================ */
@media (max-width: 640px) {
  .header-inner,
  .section-wrap,
  .hero-meta-inner,
  .footer-inner { padding-left: 20px; padding-right: 20px; }

  .wordmark { font-size: 0.75rem; letter-spacing: 0.14em; }
  .main-nav { gap: 1.5rem; }
  .main-nav a { font-size: 0.62rem; }

  .page-section { padding: 56px 0 64px; }

  .works-grid {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }
  .artists-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-nav { flex-wrap: wrap; gap: 1.5rem; }

  .hero-img-wrap { max-height: 55vw; }
  .hero-img { max-height: 55vw; }
}

@media (max-width: 420px) {
  .artists-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-form-wrap {
  margin-top: 3rem;
  max-width: 680px;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
}

.form-group input,
.form-group textarea {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: #111111;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #111111;
  padding: 0.5rem 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaaaaa;
  font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #555555;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row--submit {
  margin-top: 1.75rem;
}

.form-submit {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  background: #111111;
  border: none;
  padding: 0.85rem 2.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: #444444;
}

/* Success / error banners (managed by @formspree/ajax data attributes) */
.form-status {
  display: none; /* hidden until library toggles visibility */
  margin-top: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
}

.form-status--success {
  color: #2a6b3c;
  background: #edf7f1;
  border-left: 2px solid #2a6b3c;
}

.form-status--error {
  color: #8b1a1a;
  background: #fdf2f2;
  border-left: 2px solid #8b1a1a;
}

/* Field-level error messages */
.field-error {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #8b1a1a;
  margin-top: 0.3rem;
  min-height: 1em;
}

@media (max-width: 600px) {
  .form-row--two {
    grid-template-columns: 1fr;
  }
  .contact-form-wrap {
    max-width: 100%;
  }
}
