@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500&family=Archivo:wght@600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --bg:        #0D0D0B;
  --text:      #F2F0EA;
  --mid:       #8A8A86;
  --dim:       #2A2A28;
  --plate:     #181816;
  --gap:       2px;
  --page-pad:  40px;
  --row-h:     340px;
}

/* ── Base ── */
html { background: var(--bg); color: var(--text); }

body {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Header ── */
.site-header {
  padding: 28px var(--page-pad) 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
}

.wordmark a { color: inherit; }

/* ── Intro ── */
.intro {
  padding: 60px var(--page-pad) 48px;
  max-width: 900px;
}

.intro-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}

.intro-sub {
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.04em;
  line-height: 1.7;
  max-width: 560px;
}

/* ── Grid ── */
.grid { flex: 1; }

.act-row {
  display: flex;
  gap: var(--gap);
  margin-bottom: var(--gap);
  height: var(--row-h);
}

.act-row + .act-row {
  margin-top: 0;
}

/* Extra breathing room between acts */
.act-break {
  height: 3px;
  background: var(--bg);
}

/* ── Piece cell ── */
.piece {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--plate);
  cursor: pointer;
  flex-shrink: 0;
}

/* Each piece sized by aspect ratio to fill row height */
.piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

/* Placeholder when no image */
.piece-placeholder {
  width: 100%;
  height: 100%;
  background: var(--plate);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover overlay — title bleeds like the prints */
.piece-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 -20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.piece-overlay-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 3.5vw, 48px);
  letter-spacing: 0.02em;
  color: rgba(242, 240, 234, 0.82);
  line-height: 1;
  padding: 0 20px;
  white-space: nowrap;
  /* Bleed effect — text can overflow visually */
  margin-left: -8px;
}

.piece:hover .piece-overlay { opacity: 1; }
.piece:hover img { filter: brightness(0.75); }
.piece:hover .piece-placeholder { filter: brightness(1.4); }

/* ULTRAVIOLENCE pivot — centered, narrower */
.pivot-row {
  display: flex;
  justify-content: center;
  gap: var(--gap);
  margin-bottom: var(--gap);
  height: calc(var(--row-h) * 1.6);
  padding: 0 var(--page-pad);
}

.piece--pivot {
  max-width: 320px;
  width: 100%;
}

/* ── Footer ── */
.site-footer {
  padding: 48px var(--page-pad) 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--dim);
  margin-top: 60px;
}

.footer-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mid);
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

.footer-sep {
  width: 1px;
  height: 12px;
  background: var(--dim);
}

/* ── Piece page ── */
.piece-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.piece-image-wrap {
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  max-height: 70vh;
  overflow: hidden;
}

.piece-image-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.piece-image-placeholder {
  width: 100%;
  height: 500px;
  background: var(--plate);
}

.piece-info {
  padding: 52px var(--page-pad) 80px;
  max-width: 860px;
}

.piece-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--mid);
  margin-bottom: 16px;
}

.piece-title-large {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 32px;
}

.piece-meta {
  font-size: 14px;
  color: var(--mid);
  line-height: 2;
  margin-bottom: 32px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.piece-rule {
  width: 40px;
  height: 1px;
  background: var(--dim);
  margin-bottom: 28px;
}

.piece-statement {
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
  max-width: 640px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --row-h: 180px;
    --page-pad: 20px;
  }

  .intro { padding: 40px var(--page-pad) 32px; }

  .piece-overlay { opacity: 1; }
  .piece-overlay-title { font-size: 14px; }

  .pivot-row { height: calc(var(--row-h) * 2); }
  .piece--pivot { max-width: 200px; }

  .site-footer { flex-wrap: wrap; gap: 20px; }

  .piece-info { padding: 36px var(--page-pad) 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .piece img,
  .piece-overlay { transition: none; }
}
