/* The Museum of AI Slop.
   A full-bleed image hero on the home page (as real museum sites do), then white-cube galleries:
   a quiet serif for the institution, small sans for wall labels. Light only: the walls are white. */

:root {
  --wall: #ffffff;
  --ink: #1a1a1a;
  --muted: #6f6f6f;
  --rule: #e6e6e6;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 36rem;
}

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

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; padding: 0 var(--gutter); }

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

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

cite { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---- Header ---- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding: 1.75rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.logo { display: flex; align-items: center; gap: 0.9rem; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 3rem; height: auto; flex: none; }
.logo-text { font-size: 1.5rem; line-height: 1; letter-spacing: -0.005em; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.5rem clamp(1.25rem, 3vw, 2.75rem); font-size: 1.1875rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }

/* On the home page the header floats over the hero image. */
.home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  border-bottom: 0;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));  /* full bleed, out of main's gutter */
  min-height: clamp(560px, 92vh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2a2420;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;  /* keep the statue's face in frame as the viewport narrows */
}

/* Darken the left side so the type reads; the image stays vivid on the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(28, 22, 18, 0.82) 0%, rgba(28, 22, 18, 0.55) 34%, rgba(28, 22, 18, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem var(--gutter) 4rem;
  max-width: calc(36rem + 2 * var(--gutter));
}

.hero-title {
  font-weight: 500;
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-kicker { display: block; font-size: 0.72em; letter-spacing: -0.01em; margin-bottom: 0.1em; }

.hero-sub {
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  line-height: 1.5;
  max-width: 28rem;
  margin: 0 0 2.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid currentColor;
  font-size: 1.1875rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.button-outline:hover, .button-outline:focus-visible { background: #fff; color: var(--ink); text-decoration: none; }
.button-outline--dark:hover, .button-outline--dark:focus-visible { background: var(--ink); color: #fff; }

/* ---- Welcome (below the hero) ---- */

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 10vh, 7rem) 0;
  border-bottom: 1px solid var(--rule);
}
.welcome-title { font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; margin: 0; }
.mission { max-width: var(--measure); margin: 0 0 2.5rem; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: #333; }

.visitor-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(2rem, 6vw, 5rem);
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
}
.visitor-info dt, .info-table dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.visitor-info dd { margin: 0; }

/* ---- Page intros (exhibitions, simple pages) ---- */

.exhibition-intro, .page-intro {
  max-width: var(--measure);
  margin: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

.exhibition-intro h1, .exhibition-intro h2, .page-intro h1 {
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
}

.exhibition-intro p:not(.eyebrow), .page-intro p:not(.eyebrow) { margin: 0 0 1.1em; color: #333; }

/* ---- Visit: label/value table ---- */

.info-table { margin: 0; max-width: 48rem; border-top: 1px solid var(--rule); }
.info-table div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.info-table dt { margin: 0.35rem 0 0; }
.info-table dd { margin: 0; }
.page-cta { margin: 3rem 0 0; }

/* ---- Exhibitions list ---- */

.exhibition-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 4rem 3rem;
}
.exhibition-list a { display: block; }
.exhibition-list a:hover { text-decoration: none; }
.exhibition-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.25rem; }
.exhibition-list .eyebrow { display: block; margin-bottom: 0.4rem; }
.exhibition-list-title { display: block; font-size: 1.75rem; line-height: 1.15; }
.exhibition-list a:hover .exhibition-list-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.exhibition-list-count { display: block; margin-top: 0.4rem; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); }

/* ---- The wall: works hung on a shared centre line ---- */

.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.wall li { flex: 0 1 auto; }

.wall img {
  height: clamp(280px, 52vh, 520px);
  width: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}
.wall a:hover img { transform: translateY(-2px); }
.wall a:hover { text-decoration: none; }

.caption {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- A single work with its wall label ---- */

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
  margin-top: clamp(2.5rem, 8vh, 5rem);
}

.work-image { margin: 0; display: flex; justify-content: flex-end; }  /* hang the work beside its label */
.work-image img {
  max-height: calc(100vh - 12rem);
  width: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 20px 48px -16px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}

/* Wall labels: small, quiet, sans. */
.wall-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #2b2b2b;
  padding-bottom: 0.5rem;
}

.tombstone {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}
.tombstone cite { font-style: normal; }

.medium, .dimensions { margin: 0; color: var(--muted); }
.medium { font-style: italic; }

.note { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.note p { margin: 0 0 0.9em; }

.work-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}
.work-nav a:last-child { text-align: right; }
.work-nav a[href^="/rooms/"] { color: var(--ink); }

/* ---- Footer ---- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 3rem;
  margin-top: clamp(5rem, 12vh, 8rem);
  padding: 2.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
}
.site-footer p { margin: 0; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.25rem !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-legal { flex-basis: 100%; color: var(--muted); font-size: 0.75rem; }

/* ---- Narrow screens ---- */

@media (max-width: 959px) {
  .work { grid-template-columns: 1fr; align-items: start; }
  .work-image { justify-content: center; }
  .work-image img { max-height: 75vh; }
  .wall-label { max-width: var(--measure); }
  .welcome { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .logo-mark { width: 2.4rem; }
  .logo-text { font-size: 1.25rem; }
  .site-nav { font-size: 1rem; gap: 0.4rem 1.25rem; }
  .hero { align-items: flex-end; min-height: 100svh; }
  .hero::before {
    background: linear-gradient(0deg, rgba(28, 22, 18, 0.9) 0%, rgba(28, 22, 18, 0.65) 45%, rgba(28, 22, 18, 0.1) 75%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 25%);
  }
  .hero-content { padding-bottom: 3rem; }
  .info-table div { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 600px) {
  .wall { gap: 3.5rem; }
  .wall li { width: 100%; }
  .wall img { height: auto; width: 100%; }
  .work-nav { grid-template-columns: 1fr 1fr; }
  .work-nav a[href^="/rooms/"] { grid-column: 1 / -1; grid-row: 1; }
}
