/* Artist website: home (index.html), work pages (works/) and about.html.
   A quiet, gallery-white page so the work carries the color; the same
   IBM Plex type as the resources page. The home page opens with the
   reel intro (js/intro.js). */

:root {
  --paper: #fafaf7;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #000087; /* the navy from the resources page */

  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

}

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

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

img {
  max-width: 100%;
}

/* ---------- intro: the demo reel, full screen ---------- */

.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.reel {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* name, scroll cue and sound toggle over the reel */
.intro-ui {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  font-family: var(--mono);
}
.intro-name {
  margin: 0 auto 0 0;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-cue,
.sound {
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.scroll-cue:hover,
.sound:hover {
  color: #fff;
  text-decoration: underline;
}


/* ---------- page ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px 0;
}
.site-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.section-title {
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work {
  display: block;
  text-decoration: none;
}
.work img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 14px;
  transition: opacity 0.2s;
}
.work:hover img {
  opacity: 0.88;
}
.work-title {
  display: block;
  font-weight: 600;
  font-size: 1.25rem;
}
.work-meta {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- work page ---------- */

.back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
}
.back:hover {
  color: var(--ink);
  text-decoration: underline;
}
.hero-btn {
  display: block;
  width: 100%;
  margin: 0 0 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.hero-btn .hero {
  margin: 0;
}
.work-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px 56px;
  align-items: start;
}
.work-parts {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.work-parts li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.exhibited {
  margin-top: 1.6em !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.exhibited a {
  color: var(--ink);
}
.piece-label .view-work {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.work-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.work-head h1 {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}
.work-head .work-meta {
  margin-bottom: 20px;
}
.hero {
  display: block;
  width: 100%;
  margin: 0 0 48px;
}
.prose {
  max-width: 680px;
}
.prose p {
  margin: 0 0 1em;
}

.piece {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.piece-label h2 {
  margin: 0 0 4px;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
}
.piece-label p {
  margin: 0 0 0.6em;
  color: var(--muted);
  font-size: 0.95rem;
}
.piece-label .materials {
  font-family: var(--mono);
  font-size: 0.8rem;
}
.piece-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.piece-photos button {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.piece-photos .wide {
  grid-column: 1 / -1;
}
.piece-photos img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.credit {
  margin-top: 40px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(10, 10, 10, 0.94);
  cursor: zoom-out;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 4px 10px;
  border: none;
  background: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px 64px;
}
.about h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .site-header,
  .page,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .piece,
  .about,
  .work-body {
    grid-template-columns: 1fr;
  }
  .intro-ui {
    padding: 20px;
  }
}

