/* ============================================================
   SSSSSSL.ORG — Sloped Landscape Organism Research Group
   Lina Bondarenko
   style.css — shared across all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@100;200&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --bg:         #080f09;
  --sand:       #E6D9B8;
  --sand-dim:   rgba(230, 217, 184, 0.58);
  --sand-ghost: rgba(230, 217, 184, 0.28);
  --sand-faint: rgba(230, 217, 184, 0.04);
  --vermillion: #D44B1A;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Barlow', sans-serif;
  --ease-flow:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--sand);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HATCH BACKGROUND ── */
.hatch-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 0;
}

/* ── SHARED NAV (project pages) ── */
.back-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.back-link {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.35);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.back-link::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 0.5px;
  background: currentColor;
  transition: width 0.3s;
}

.back-link:hover { color: var(--sand); }
.back-link:hover::before { width: 30px; }

.site-id {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.18);
  text-decoration: none;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.site-footer .slorg-word {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.13);
  display: block;
}

.site-footer .slorg-full {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(230, 217, 184, 0.07);
  display: block;
  margin-top: 3px;
}

/* ── PROJECT PAGE LAYOUT ── */
.project-page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.project-category {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vermillion);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--sand);
  margin-bottom: 2.5rem;
}

.project-divider {
  width: 40px;
  height: 0.5px;
  background: rgba(230, 217, 184, 0.2);
  margin-bottom: 2.5rem;
}

/* ── MEDIA GRID ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-bottom: 3rem;
  background: rgba(230, 217, 184, 0.06);
}

.media-item {
  aspect-ratio: 4/3;
  background: rgba(230, 217, 184, 0.04);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s var(--ease-soft);
  opacity: 0.85;
}

.media-item:hover img,
.media-item:hover video { opacity: 1; }

/* placeholder before real media is added */
.media-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-item.placeholder::after {
  content: attr(data-label);
  font-family: var(--sans);
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.2);
}

/* ── PROJECT TEXT ── */
.project-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.project-meta-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta-block dt {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.3);
  margin-bottom: 4px;
}

.meta-block dd {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 13px;
  color: rgba(230, 217, 184, 0.6);
  line-height: 1.6;
}

.project-text-col p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  color: rgba(230, 217, 184, 0.6);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.project-text-col p:first-child {
  font-style: italic;
  font-size: 17px;
  color: rgba(230, 217, 184, 0.75);
}

/* ── RELATED NAV ── */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(230, 217, 184, 0.1);
  margin-top: 2rem;
}

.project-nav a {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.35);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.project-nav a:hover { color: var(--sand); }

.project-nav .prev::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 0.5px;
  background: currentColor;
}

.project-nav .next::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 0.5px;
  background: currentColor;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 9, 0.96);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 217, 184, 0.4);
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .project-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-page { padding: 7rem 1.25rem 3rem; }

  .back-nav { padding: 1rem 1.25rem; }

  .media-grid { grid-template-columns: 1fr; }
}
