/* Space Lasso — shared design system
   Tokens and components lifted directly from the V3 design brief. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #717171;
  --line: #d7d7d7;
  --soft: #f3f3f3;
  --measure: 760px;
  --nav-h: 68px;
  --pad: clamp(34px, 6vw, 92px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(4rem, 11vw, 10.5rem); line-height: .86; }
h2 { font-size: clamp(2.4rem, 5.5vw, 5.5rem); line-height: .95; }
h3 { font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Site nav ---------- */
.sitenav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
}
.sitenav .brand { display: grid; gap: 2px; align-content: center; }
.sitenav .brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.sitenav .brand-sub { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.sitenav ul { display: flex; gap: clamp(14px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.sitenav a {
  color: var(--muted);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.sitenav a:hover { color: var(--ink); }
.sitenav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Sections ---------- */
.section {
  padding: var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section:last-child { border-bottom: 0; }
.section-label {
  display: flex; justify-content: space-between; gap: 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(44px, 8vw, 110px);
  border-bottom: 1px solid var(--ink);
  font-size: 11px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
}
.spacer { height: clamp(38px, 7vw, 96px); }
.lead { max-width: 1020px; font-size: clamp(1.55rem, 3.1vw, 3.25rem); line-height: 1.09; letter-spacing: -.03em; }
.body-copy { max-width: var(--measure); font-size: 1.05rem; }
.body-copy.large { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.3; }

/* ---------- Page head (shared by Collection + Artists) ---------- */
.page-head {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: clamp(30px, 6vw, 90px); align-items: end;
  margin-bottom: 48px;
}
.page-head p { color: var(--muted); max-width: 48ch; margin: 0; }

/* ---------- Hero (landing) ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  padding: var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.eyebrow { display: flex; justify-content: space-between; gap: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-title { padding: 10vh 0 6vh; }
.mission { max-width: 980px; font-size: clamp(1.6rem, 3.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin: 0; }
.mission span { color: var(--muted); }
.signoff { color: var(--muted); margin-top: 1.6rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.pillar { min-height: 260px; padding: 18px 18px 22px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.pillar + .pillar { padding-left: 18px; }
.pillar:last-child { border-right: 0; }
.pillar-index { color: var(--muted); font-size: 11px; }
.pillar-name { font-size: clamp(1.3rem, 2vw, 2.2rem); letter-spacing: -.035em; }
.pillar p { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); min-height: 190px; padding: 24px; display: block; }
.card .num { color: var(--muted); font-size: 11px; margin-bottom: 54px; }
.card p { color: var(--muted); max-width: 42ch; margin-top: 12px; margin-bottom: 0; }
a.card:hover { background: var(--soft); }

/* ---------- Index rows (artists, lists) ---------- */
.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: 76px minmax(160px, 290px) 1fr auto;
  gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.index-row .index { color: var(--muted); font-size: 11px; }
.index-row .name { font-weight: 550; }
.index-row .description { color: var(--muted); max-width: 62ch; }
.index-row .meta { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
a.index-row:hover { background: var(--soft); }
a.index-row:hover .name { text-decoration: underline; text-underline-offset: 3px; }

/* Artist rows scale the name up — this is a whole page now, not a list in a brief */
.index-row.major { grid-template-columns: 76px minmax(200px, 1fr) minmax(0, 1.1fr) auto; padding: 30px 0; }
.index-row.major .name { font-size: clamp(1.5rem, 2.6vw, 2.6rem); letter-spacing: -.035em; font-weight: 500; line-height: 1.05; }

/* ---------- Gallery ---------- */
.gallery { columns: 4 210px; column-gap: 12px; }
.gallery.wide { columns: 3 280px; }
.work { break-inside: avoid; margin: 0 0 12px; border: 1px solid var(--line); background: var(--soft); position: relative; overflow: hidden; }
.work img { width: 100%; height: auto; display: block; }
.work figcaption { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; background: rgba(255,255,255,.92); font-size: 9px; letter-spacing: .08em; }

/* Placeholder block for works with no image yet */
.work.placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Closing ---------- */
.closing { min-height: 70vh; display: flex; flex-direction: column; justify-content: space-between; }
.closing-line { font-size: clamp(2.6rem, 7.3vw, 8rem); line-height: .96; letter-spacing: -.05em; max-width: 1150px; }
.closing-meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 22px; }
  .hero { padding: 56px 22px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .page-head { grid-template-columns: 1fr; }
  .index-row, .index-row.major { grid-template-columns: 42px 1fr; }
  .index-row .description, .index-row .meta { grid-column: 2; }
}

@media (max-width: 620px) {
  .sitenav { flex-direction: column; height: auto; padding: 12px 22px; gap: 8px; align-items: flex-start; }
  :root { --nav-h: 116px; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery, .gallery.wide { columns: 2 140px; }
  .section-label span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
