/* ─────────────────────────────────────────────────────────
   interior.css
   Overrides for all non-homepage pages (games, archive, about).
   Load after style.css — inherits all custom properties.
   ───────────────────────────────────────────────────────── */

/* Release the homepage viewport lock */
html,
body {
  height: auto;
  min-height: 100vh;
  overflow: auto;
}

body {
  display: block;
}

/* ─── Header — logo + tagline, same as homepage ───────── */

.site-header {
  /* No z-index needed — no blob animation on interior pages */
  position: static;
  /* Padding, logo-img sizing, and tagline styles all inherit
     from style.css to match the homepage header exactly. */
}

/* ─── Layout shell ────────────────────────────────────── */

.page-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Main — scrollable, padded above fixed footer ───── */

.page-main {
  padding-top: 2rem;
  /* Reserve space so content clears the fixed nav plus the wave overhang */
  padding-bottom: 7.5rem;
}

/* ─── Footer nav — fixed at viewport bottom ──────────── */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 10;
  overflow: visible;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  background: transparent;
  padding: 0.5rem 1.25rem 0.9rem;
  margin-top: -2px;
}

.footer-wave-wrap {
  max-width: 100rem;
  margin: 0 auto -3.75rem; /* negative bottom pulls nav up into the SVG box area */
  padding: 0;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 7.5rem;
  margin-top: -3.75rem; /* wave floats 3.75rem above; SVG bottom extends 3.75rem below */
  pointer-events: none;
}

/* ─── Images — all interior content images ───────────── */

.page-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--fg);
  border-radius: 6px;
  overflow: hidden;
}

/* ─── Detail page title ───────────────────────────────── */

.project-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.project-title--italic {
  font-style: italic;
}

/* ─── Metadata ────────────────────────────────────────── */

.game-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.5rem;
  margin-bottom: 1.75rem;
}

.game-meta dt {
  opacity: 0.45;
  text-transform: lowercase;
}

.game-meta dd {
  margin: 0;
}

/* ─── Participants ────────────────────────────────────── */

.game-participants {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin-bottom: 1.75rem;
}

.game-participants li::after {
  content: ',\00a0';
}

.game-participants li:last-child::after {
  content: '';
}

.participant-role {
  opacity: 0.45;
}

/* ─── Description ─────────────────────────────────────── */

.game-description {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.game-description p + p {
  margin-top: 1em;
}

/* ─── Links ───────────────────────────────────────────── */

.game-links {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.game-links a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.game-links a:hover {
  opacity: 1;
}

/* ─── Photography ─────────────────────────────────────── */

.game-photography {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-photo {
  margin: 0;
}

.game-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  opacity: 0.4;
  margin-top: 0.4rem;
}

/* ─── Exhibition pages ────────────────────────────────── */

.ex-dates,
.ex-curator,
.ex-weather {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.ex-curator a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.ex-curator a:hover {
  opacity: 0.6;
}

.ex-artists {
  list-style: none;
  margin-top: 2rem;
}

.ex-artists li {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0;
}

.ex-artists li:first-child {
  border-top: none;
}

/* ─── Project cards (games + archive index) ──────────── */

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card a:hover .project-card-title {
  opacity: 0.6;
}

.project-card figure {
  margin: 0;
}

.project-card figcaption {
  padding-top: 0.75rem;
}

.project-card-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
  margin-bottom: 0.2rem;
}

.project-card-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

/* ─── Photo pair — two images side by side ───────────── */

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.photo-pair .game-photo {
  margin: 0;
}

@media (max-width: 480px) {
  .photo-pair {
    grid-template-columns: 1fr;
  }
}

/* ─── list of works ───────────── */

.list-of-works {
  text-align: right;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.list-of-works a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Video embeds ────────────────────────────────────── */

.video-embed {
  margin: 0;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border: 1.5px solid var(--fg);
  border-radius: 6px;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── About ─────────────────────────────────────────────── */

.about {
  max-width: 60ch;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
}

.about a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.about a:hover {
  opacity: 0.6;
}

.about address {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal; /* override browser default italic on <address> */
  letter-spacing: 0.06em;
  margin-top: 2rem;
}

.about-photo {
  margin: 0 0 2rem 0;
}

/* ─── Desktop ─────────────────────────────────────────── */

@media (min-width: 768px) {
  .page-wrap {
    padding: 0 2rem;
  }
}
