/* ============================================================
   fArt is Art — stylesheet
   White-cube gallery minimalism. The art is the only loud thing.
   ============================================================ */

/* ---- Palette & tokens (edit colours here) ---- */
:root {
  --bg:        #f5f1e8;   /* warm off-white / cream */
  --ink:       #1f1c17;   /* charcoal / near-black text */
  --ink-soft:  #4a443b;   /* softened body text */
  --muted:     #8a7f6c;   /* khaki — secondary text */
  --brown:     #6b5844;   /* muted brown accent */
  --olive:     #6f6d3f;   /* faded olive accent */
  --hairline:  rgba(31, 28, 23, 0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fluid spacing scale */
  --space-section: clamp(2.75rem, 6vw, 6rem);
  --measure: 40rem;      /* comfortable reading width */
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.4s ease, color 0.4s ease;
}
a:hover { color: var(--ink); border-color: var(--ink); }

::selection { background: rgba(111, 109, 63, 0.18); }

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border: 0;
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* ---- Layout containers ---- */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}
.wrap--narrow { max-width: calc(var(--measure) + 2 * clamp(1.5rem, 6vw, 5rem)); }

/* ---- Small caps section labels ---- */
.section-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(1.75rem, 4vh, 3rem);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ink);
}

.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: clamp(0.9rem, 2vw, 1.4rem) auto 0;
}

.hero__meta {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: clamp(0.9rem, 2vw, 1.4rem);
}

/* ============================================================
   2 · CURATORIAL STATEMENT
   ============================================================ */
.statement { padding-block: var(--space-section); }

.statement__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.statement__body { max-width: var(--measure); }

.statement__body p {
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.statement__body p:last-child { margin-bottom: 0; }

.statement__lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink) !important;
  margin-bottom: 1.6rem !important;
}

/* Editorial 2-column layout on desktop: label left, prose right */
@media (min-width: 760px) {
  .statement__wrap {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
  .statement .section-label { margin: 0.55rem 0 0; }
}

/* ============================================================
   3 · THE COLLECTION
   ============================================================ */
.collection {
  padding-top: clamp(1rem, 2.5vw, 2rem);   /* sits right under the masthead */
  padding-bottom: var(--space-section);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2-up on mobile */
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.75rem);  /* row / column */
}

/* One clean row of four on desktop */
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.piece { margin: 0; }

.piece__image {
  width: 100%;
  height: auto;
  background: var(--bg);
}

.piece__caption {
  display: block;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
}

.piece__title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.25;
  color: var(--ink);
}

.piece__meta {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--muted);
}

.noscript-note {
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   INSTALLATION VIEW  (wide in-situ feature image)
   ============================================================ */
.installation {
  padding-block: var(--space-section);
}

.installation__figure {
  margin: 0 auto;
  max-width: 1200px;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}

.installation__image {
  width: 100%;
  aspect-ratio: 3 / 2;           /* wide crop — shorter, fills the width */
  object-fit: cover;
  object-position: center 40%;   /* keep the hung canvas in frame */
  height: auto;
  display: block;
}

.installation__caption {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   IN THE STUDIO  (process film)
   ============================================================ */
.studio { padding-block: var(--space-section); }

.studio__intro {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 0 2.5rem;
}

.studio__figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.studio__video {
  width: 100%;
  max-width: 360px;     /* portrait 9:16 film — kept modest */
  height: auto;
  display: block;
  background: #14110c;
}

.studio__link {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.studio__link a { border-bottom-color: transparent; }
.studio__link a:hover { border-bottom-color: var(--ink); }

/* ============================================================
   4 · ABOUT THE ARTIST
   ============================================================ */
.artist { padding-block: var(--space-section); }

.artist p {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 1.6rem;
}

.artist__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 400;
  color: var(--ink) !important;
  margin-bottom: 1.75rem !important;
}

/* ============================================================
   5 · INQUIRIES / FOOTER
   ============================================================ */
.footer {
  padding-block: var(--space-section);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.footer__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  color: var(--ink);
  margin: 0;
}

.footer__email {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}
.footer__email a { color: var(--brown); }

.footer__copy {
  margin-top: clamp(3rem, 8vw, 5rem);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Scroll fade-in (progressive enhancement)
   No JS, or reduced-motion: content is fully visible.
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
