/* ============================================================
   Wendi Agosta | Dover Yard Fine Art
   Two-column architecture: left 25vw = text, right = content/images
   ============================================================ */

/*
@font-face {
  font-family: 'Univers';
  src: url('fonts/Univers-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Univers';
  src: url('fonts/Univers-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
*/

:root {
  --bg:         #dedede;
  --text:       #555;
  --text-hover: #111;
  --text-dim:   #999;

  --font:  'Univers', 'Univers LT Std', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* The column divider — used everywhere for consistency */
  --split:      25vw;
  --pad:        28px;   /* inner padding within each column */
  --pad-r:      36px;   /* right edge padding */
  --pad-bottom: 80px;
  --nav-h:      68px;

  --type-base:  16px;
  --type-small: 14px;
  --lh:         1.5;
  --tracking:   0.005em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--type-base);
  line-height: var(--lh);
  letter-spacing: var(--tracking);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--text-hover); }
img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   Navigation
   Brand in left column (25vw), links in right column — both
   aligned to the same vertical rule that divides every page.
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: var(--split) 1fr;
}

.nav .brand {
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  font-size: var(--type-base);
  letter-spacing: 0.01em;
  color: var(--text-hover);
  white-space: nowrap;
  overflow: hidden;
}
.nav .brand a { color: inherit; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0 var(--pad);
}
.nav li a {
  font-size: var(--type-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav li a.active { color: var(--text-hover); }

/* ============================================================
   Page wrapper — transparent; structural work is per-section
   ============================================================ */
.page { margin: 0; padding: 0; }

/* ============================================================
   Split layout — artist & exhibition pages
   Left cell (sidebar) = 25vw, right cell (stream) = remainder.
   Matches nav columns exactly.
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: var(--split) 1fr;
  min-height: calc(100vh - var(--nav-h));
}

.sidebar {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 24px var(--pad) var(--pad-bottom);
  font-size: var(--type-base);
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar h1 {
  font-size: var(--type-base);
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--text-hover);
}
.sidebar .meta { margin-bottom: 22px; color: var(--text-dim); }
.sidebar h2 {
  font-size: var(--type-small);
  font-weight: 400;
  margin: 22px 0 5px;
  color: var(--text-hover);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar p { margin: 0 0 1em; }
.sidebar ul.cv {
  list-style: none;
  margin: 0; padding: 0;
}
.sidebar ul.cv li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--text-dim);
}
.sidebar ul.cv li span,
.sidebar ul.cv li a { color: var(--text); }
.sidebar ul.cv li a:hover { color: var(--text-hover); }

.stream {
  padding: 24px var(--pad-r) var(--pad-bottom) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.stream figure { margin: 0; }
.stream figure img { width: 100%; height: auto; }
.stream figcaption {
  margin-top: 10px;
  color: var(--text);
  font-size: var(--type-small);
}
.stream figcaption .row { display: block; }
.stream figcaption .title { font-style: italic; }
.stream figcaption .dim { color: var(--text-dim); }

/* ============================================================
   Artists index — names in right column, hover preview centre
   ============================================================ */
.index-grid {
  margin-left: var(--split);
  padding: 24px var(--pad-r) var(--pad-bottom) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 28px;
  row-gap: 6px;
  align-content: start;
}
.index-grid .item {
  display: block;
  padding: 4px 0;
  color: var(--text);
}
.index-grid .item:hover { color: var(--text-hover); }

.hover-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(42vw, 580px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 10;
}
.hover-preview img { width: 100%; height: auto; object-fit: cover; }
.hover-preview.visible { opacity: 1; }

/* ============================================================
   Works — 2-col grid in right column, height-standardised
   ============================================================ */
.works-grid {
  margin-left: var(--split);
  padding: 24px var(--pad-r) var(--pad-bottom) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 36px;
}
.works-grid figure { margin: 0; cursor: zoom-in; }
.works-grid .img-wrap {
  height: clamp(340px, 54vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.works-grid .img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 160ms ease;
}
.works-grid figure:hover .img-wrap img { opacity: 0.82; }
.works-grid figcaption {
  margin-top: 10px;
  font-size: var(--type-small);
}
.works-grid figcaption .title { font-style: italic; }
.works-grid figcaption .dim { color: var(--text-dim); }

/* ============================================================
   Lightbox / shadowbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 10;
  background: none; border: none;
  color: var(--text-dim); font-size: 20px;
  cursor: pointer;
  font-family: var(--font);
  transition: color 160ms;
}
.lb-close:hover { color: var(--text-hover); }

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 36px 88px;
  z-index: 1;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  transition: opacity 180ms ease;
}
.lb-stage img.fading { opacity: 0; }

.lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-dim); font-size: 28px;
  cursor: pointer;
  padding: 12px 16px;
  transition: color 160ms;
  font-family: var(--font);
  line-height: 1;
}
.lb-arrow:hover { color: var(--text-hover); }
.lb-arrow.prev { left: 10px; }
.lb-arrow.next { right: 10px; }

.lb-bottom {
  width: 100%;
  padding: 10px 88px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.lb-meta {
  color: var(--text); font-size: 13px;
  letter-spacing: 0.01em;
  font-family: var(--font);
}
.lb-meta .lb-title { font-style: italic; color: var(--text-hover); margin-right: 6px; }
.lb-counter {
  color: var(--text-dim); font-size: 12px;
  letter-spacing: 0.06em;
  font-family: var(--font);
}

/* ============================================================
   Landing — full-bleed carousel
   ============================================================ */
.carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: #111;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 600ms cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 28px; left: 32px;
  color: rgba(255,255,255,0.68);
  font-size: var(--type-small);
  font-family: var(--font);
  pointer-events: none;
  letter-spacing: 0.01em;
}
.carousel-caption em { font-style: italic; }
.carousel-controls {
  position: absolute;
  bottom: 22px; right: var(--pad-r);
  display: flex;
  align-items: center;
  gap: 18px;
}
.carousel-controls button {
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  font-size: 20px; cursor: pointer;
  padding: 4px 6px;
  font-family: var(--font);
  transition: color 160ms; line-height: 1;
}
.carousel-controls button:hover { color: rgba(255,255,255,0.9); }
.carousel-dots {
  display: flex; gap: 7px; align-items: center;
}
.carousel-dots span {
  display: block; width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 280ms;
}
.carousel-dots span.active { background: rgba(255,255,255,0.82); }

/* ============================================================
   Contact page text in right column
   ============================================================ */
.prose {
  margin-left: var(--split);
  padding: 32px var(--pad-r) var(--pad-bottom) var(--pad);
  max-width: 480px;
}
.prose p { margin: 0 0 1.1em; }
.prose .group { margin-bottom: 32px; }
.prose .label {
  color: var(--text-dim);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--type-small);
}

/* ============================================================
   Contact overlay — fixed, bottom corners, no background
   ============================================================ */
.c-overlay {
  position: fixed;
  bottom: 20px;
  font-size: var(--type-small);
  color: var(--bg);
  pointer-events: none;
  z-index: 90;
  letter-spacing: 0.01em;
}
.c-overlay.left  { left: 32px; }
.c-overlay.right { right: var(--pad-r); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .index-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --split: 0px; --pad: 20px; }
  .nav { grid-template-columns: 1fr; height: auto; padding: 16px 20px; }
  .nav .brand { padding: 0; margin-bottom: 8px; }
  .nav ul { padding: 0; flex-wrap: wrap; gap: 14px; }
  .split { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; padding: 20px; }
  .stream { padding: 20px; }
  .index-grid { margin-left: 0; padding: 20px; grid-template-columns: 1fr 1fr; }
  .works-grid { margin-left: 0; padding: 20px; grid-template-columns: 1fr; }
  .prose { margin-left: 0; padding: 20px; }
  .hover-preview { display: none; }
  .c-overlay { display: none; }
}
