/* The Vanishing Cultures Project */

@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d6;
  --ink: #1d1a16;
  --ink-soft: #5a5248;
  --rule: #d4c9b8;
  --accent: #9a4a2a;
  --night: #14120f;
  --serif: "Zodiak", Georgia, "Times New Roman", serif;
  --sans: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font: 500 0.78rem/1.2 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--measure); margin: 0 auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; }

/* Header */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem var(--gutter);
  color: #fff;
  font: 500 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
}
.site-head a { text-decoration: none; }
.site-head nav { display: flex; gap: 1.75rem; }
.site-head nav a { opacity: 0.85; }
.site-head nav a:hover, .site-head nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; }
.site-head.on-paper { position: static; color: var(--ink); border-bottom: 1px solid var(--rule); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--night);
  overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(12,10,8,.62) 0%, rgba(12,10,8,.35) 40%, rgba(12,10,8,0) 70%),
    linear-gradient(to bottom, rgba(12,10,8,.4) 0%, rgba(12,10,8,0) 20%, rgba(12,10,8,0) 40%, rgba(12,10,8,.75) 100%);
}
.hero-text { text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.hero-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(2.5rem, 8vh, 5rem); max-width: 56rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -0.015em; margin-bottom: 1.5rem; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 36rem; opacity: 0.92; }
.hero .dates { font: 500 0.8rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.25rem; opacity: 0.85; }

/* Sections */
.section { padding: clamp(4.5rem, 11vw, 9rem) 0; }
.section.tint { background: var(--paper-2); }
.statement { font: 400 clamp(1.6rem, 3.2vw, 2.4rem)/1.3 var(--serif); }
.statement em { color: var(--accent); }
.lede { color: var(--ink-soft); margin-top: 1.75rem; }

.trio {
  display: grid; gap: clamp(0.5rem, 1.2vw, 1rem);
  grid-template-columns: 1fr 0.72fr 1fr; align-items: center;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.trio img { width: 100%; }

.pillars { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(3, 1fr); }
.pillars h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.pillars h3::after { content: ""; display: block; width: 2rem; height: 1px; background: var(--accent); margin-top: 1rem; }
.pillars p { color: var(--ink-soft); font-size: 1.05rem; }

/* Projects */
.projects-head { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.projects-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.project { padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.project-photo { width: 100%; max-height: 88vh; object-fit: cover; }
.project-body {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.project h3 { font-size: clamp(2rem, 4vw, 3rem); }
.project .place { font: 500 0.8rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.9rem; }
.project-body p { color: var(--ink-soft); }
.project-body cite { font-style: italic; font-family: var(--serif); color: var(--ink); }

.text-link {
  display: inline-block; margin-top: 1.25rem;
  font: 500 0.82rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.35rem; color: var(--accent);
}
.text-link:hover { color: var(--ink); }

/* Archive call to action */
.cta { position: relative; color: #fff; background: var(--night); text-align: center; overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta .wrap { position: relative; padding-top: clamp(6rem, 16vw, 12rem); padding-bottom: clamp(6rem, 16vw, 12rem); }
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 1.25rem; }
.cta p { max-width: 32rem; margin: 0 auto 2.25rem; opacity: 0.9; }
.button {
  display: inline-block; padding: 1rem 2.1rem;
  font: 500 0.82rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; transition: background-color .2s, color .2s;
}
.cta .button:hover { background: #fff; color: var(--ink); }

/* Footer */
.site-foot { background: var(--night); color: #cfc6b8; padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.site-foot h2 { font-size: 1.6rem; color: #fff; margin-bottom: 1rem; }
.site-foot .eyebrow { color: #a89c8a; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.4rem; }
.site-foot a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.site-foot a:hover { color: #fff; border-color: #fff; }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; color: #8d8374; }

/* Archive page */
.archive-intro { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.archive-intro h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 1.25rem; }
.archive-intro p { color: var(--ink-soft); }
.gallery { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
.gallery h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.5rem; }
.gallery .place { color: var(--ink-soft); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem); }
.grid a { display: block; background: var(--paper-2); cursor: zoom-in; }
.grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.grid a:hover img { opacity: 0.88; }
.grid .wide { grid-column: span 2; }
.grid .wide img { aspect-ratio: auto; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10,9,8,.96); color: #fff; }
.lightbox::backdrop { background: rgba(10,9,8,.96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); width: auto; height: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 400 2rem/1 var(--sans); padding: 1rem; opacity: 0.75;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 0.5rem; right: 0.5rem; }
.lb-prev { left: 0.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.25rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: 0.85rem; letter-spacing: 0.12em; opacity: 0.7; }

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

@media (max-width: 860px) {
  .pillars, .project-body, .foot-grid { grid-template-columns: 1fr; }
  .project-photo { max-height: none; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .site-head { font-size: 0.72rem; }
  .site-head { flex-wrap: wrap; row-gap: 0.9rem; }
  .site-head nav { gap: 1.25rem; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio img:last-child { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid .wide { grid-column: auto; }
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { width: 28px; height: 28px; flex: none; }
