/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ink: #0a0a0a;
  --paper: #fafaf7;
  --mute: #888;
  --hair: #e5e5e0;
  --hair-strong: #d0d0ca;
  --accent: #ff2e1f;
  --pad: clamp(1rem, 5vw, 1.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e8e3;
    --paper: #111110;
    --mute: #777;
    --hair: #252523;
    --hair-strong: #333330;
  }
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
}

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

ul {
  list-style: none;
}

/* ─── Utility classes ────────────────────────────────────── */
.label-mono {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.mute-mono {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.accent {
  color: var(--accent);
}

/* ─── Site header ────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--hair-strong);
  padding: 0.875rem var(--pad) 0.75rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}

/* ─── Site footer ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hair-strong);
  padding: 1.75rem var(--pad) 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ─── Main ───────────────────────────────────────────────── */
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Splash ─────────────────────────────────────────────── */
.splash {
  padding: 3rem 0 2.5rem;
}

.splash-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.splash-sub {
  margin-top: 1rem;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--mute);
  max-width: 32rem;
}

/* ─── Exhibition list (homepage) ─────────────────────────── */
.exhibition-list {
  padding-bottom: 3rem;
}

.exhibition-list .section-label {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hair);
}

.exhibition-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair);
  transition: opacity 150ms ease;
}

.exhibition-row:hover {
  opacity: 0.6;
}

.exhibition-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exhibition-row-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ─── Exhibition page ────────────────────────────────────── */
.exhibition-hero {
  padding: 2.5rem 0 2rem;
}

.exhibition-title {
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 1.5rem;
}

.exhibition-venue {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--mute);
  letter-spacing: -0.015em;
}

.exhibition-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hair-strong);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.section-label-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.section-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.exhibition-overview {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.exhibition-context {
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ─── Video card ─────────────────────────────────────────── */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ─── CTA button ─────────────────────────────────────────── */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1.125rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.cta-button:hover {
  opacity: 0.85;
}

/* ─── Resource list ──────────────────────────────────────── */
.resource-list {
  display: flex;
  flex-direction: column;
}

.resource-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--hair);
}

.resource-type {
  flex-shrink: 0;
  width: 5rem;
  color: var(--accent);
}

.resource-link {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: opacity 150ms ease;
}

.resource-link:hover {
  opacity: 0.6;
}

/* ─── Back link ──────────────────────────────────────────── */
.back-link {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--hair-strong);
}

.back-link a {
  transition: opacity 150ms ease;
}

.back-link a:hover {
  opacity: 0.6;
}
