/* ============================================================
   Yared Nigussu — gallery-quiet design system
   White ground, restrained type, the work carries the color.
   ============================================================ */

:root {
  --ink: #141414;
  --muted: #8b8b86;
  --faint: #b9b9b4;
  --hairline: #eaeae6;
  --wash: #f5f5f2;
  --max: 1160px;
  --pad: clamp(20px, 4vw, 48px);
}

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

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: #e8e4d8; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark span { color: var(--muted); font-weight: 400; }

.site-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 30px);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- shared layout ---------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.prose { max-width: 640px; }

.prose p + p { margin-top: 1.2em; }

.section-label {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
}

/* ---------- home ---------- */

.hero { position: relative; }

.hero img {
  width: 100%;
  max-height: 88vh;
  object-fit: cover;
  object-position: center 40%;
  background: #fff;
  opacity: 0;                          /* fades in once loaded — see main.js */
  transition: opacity 1.4s ease;
}

.hero img.loaded { opacity: 1; }

.hero-caption {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.statement {
  max-width: 660px;
  margin: clamp(72px, 11vw, 140px) auto clamp(44px, 6vw, 72px);
  padding: 0 var(--pad);
  text-align: center;
}

.statement p {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
  font-weight: 400;
}

.statement .go {
  display: inline-block;
  margin-top: 28px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--faint);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.statement .go:hover { color: var(--ink); border-color: var(--ink); }

.home-pair {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* both images share one aspect ratio so their edges align exactly;
   the slightly wider photo cover-crops a sliver of wall, not painting */
.home-pair .work img {
  aspect-ratio: 1207 / 1486;
  object-fit: cover;
  width: 100%;
}

.home-wide {
  max-width: var(--max);
  margin: clamp(56px, 8vw, 104px) auto 0;
  padding: 0 var(--pad);
}

/* centered artist portrait, tucked below the statement */
.home-portrait {
  max-width: min(460px, 88vw);
  margin: 0 auto clamp(72px, 11vw, 140px);
  padding: 0 var(--pad);
}

.home-portrait figure { cursor: zoom-in; }
.home-portrait img { width: 100%; background: var(--wash); }

.press-line {
  max-width: 760px;
  margin: clamp(72px, 11vw, 140px) auto;
  padding: 0 var(--pad);
  text-align: center;
}

.press-line .lbl {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.press-line p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

.press-line a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}

.press-line a:hover { border-color: var(--ink); }

/* ---------- work grids ---------- */

.series { margin-bottom: clamp(64px, 9vw, 112px); }

.series-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.series-nav a {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.series-nav a:hover { color: var(--ink); border-color: var(--ink); }

.grid {
  column-gap: clamp(24px, 3.5vw, 48px);
}

.grid.cols-2 { column-count: 2; }
.grid.cols-3 { column-count: 3; }

.work {
  break-inside: avoid;
  margin: 0 0 clamp(28px, 4vw, 52px);
  cursor: zoom-in;
}

.work img {
  width: 100%;
  background: var(--wash);
}

.work figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.work figcaption .t { color: var(--ink); }

.work figcaption .st { color: var(--faint); }

/* ---------- generic article/figure pages ---------- */

.entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--hairline);
}

.entry:first-of-type { border-top: none; padding-top: 0; }

.entry.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.entry h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.entry .when {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.entry p { color: #3c3c38; font-size: 16px; }
.entry p + p { margin-top: 1em; }

.entry .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}

.entry .more:hover { color: var(--ink); border-color: var(--ink); }

.entry figure { cursor: zoom-in; }
.entry figure img { width: 100%; background: var(--wash); }
.entry figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
}

/* portrait beside two stacked landscapes, edges aligned */
.photo-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.photo-cluster .stack { display: grid; gap: 16px; }

@media (max-width: 620px) {
  .photo-cluster { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */

.about-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  margin-bottom: clamp(64px, 9vw, 112px);
}

.about-top img { width: 100%; background: var(--wash); }

blockquote.pull {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  margin: clamp(40px, 6vw, 64px) 0;
  padding-left: 26px;
  border-left: 2px solid var(--ink);
}

blockquote.pull cite {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 6vw, 72px);
  margin-top: clamp(48px, 7vw, 80px);
}

.cv h4 {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}

.cv ul { list-style: none; }

.cv li {
  font-size: 14.5px;
  color: #3c3c38;
  padding: 5px 0;
  line-height: 1.5;
}

.cv li .yr {
  display: inline-block;
  min-width: 52px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- collaborations: logo rows ---------- */

.logo-section { margin-top: clamp(64px, 9vw, 104px); }

.logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 72px);
  padding: 10px 0 6px;
}

.logo-row img {
  height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.52;
  transition: opacity 0.2s ease;
}

/* stacked marks (icon over wordmark) need extra height to match optically */
.logo-row img.stacked { height: 42px; }

.logo-row img:hover { opacity: 0.85; }

.logo-also {
  margin-top: 22px;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.logo-also b {
  font-weight: 400;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}


.contact-block { margin-bottom: 40px; }

.contact-block h4 {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-block p { font-size: 16.5px; line-height: 1.75; color: #3c3c38; }

.contact-block a {
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}

.contact-block a:hover { border-color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--hairline);
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad) 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.site-footer a { border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}

.lb.open { display: flex; }

.lb img {
  max-width: min(1400px, 100%);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb .lb-cap {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  min-height: 1.4em;
}

.lb button {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px;
  transition: color 0.15s ease;
}

.lb button:hover { color: var(--ink); }

.lb .lb-close { top: 18px; right: 22px; }
.lb .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid.cols-3 { column-count: 2; }
  .entry, .entry.flip, .about-top, .contact-grid { grid-template-columns: 1fr; }
  .entry figure { order: -1; }
}

@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3 { column-count: 1; }
  .home-pair { grid-template-columns: 1fr; }
  .site-header .bar { padding-top: 16px; padding-bottom: 14px; }
  .wordmark span { display: none; }   /* drop "— Art Lab Studio" so the wordmark fits */
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* belt-and-braces: never allow sideways scroll */
html, body { overflow-x: clip; }

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