/* ------------------------------------------------
   Campo Collective — Styles
   ------------------------------------------------ */

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

:root {
  --cream: #f0ebe1;
  --black: #1a1a18;
  --gray: #8a857b;
  --rule: #d4cfc5;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'IBM Plex Mono', monospace;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------------------
   Nav
   ------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--cream);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-right a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--gray);
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: var(--black);
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */

.hero {
  padding: 180px 40px 100px;
  animation: heroFadeIn 0.8s ease 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 13vw, 11rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--black);
}

.hero-line {
  display: block;
}

.hero-sub {
  margin-top: 28px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray);
  max-width: 420px;
  animation: heroFadeIn 0.8s ease 0.6s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------
   Divider
   ------------------------------------------------ */

.divider {
  height: 1px;
  background: var(--rule);
  margin: 0 40px;
}

/* ------------------------------------------------
   Project
   ------------------------------------------------ */

.project {
  padding: 48px 40px 0;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-bottom: 24px;
}

.project-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0 0;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
}

.project-type {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--gray);
}

.photo-credit {
  padding: 20px 40px 0;
}

.project-credit {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--gray);
}

/* ------------------------------------------------
   Grid
   ------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 32px 40px 0;
}

.grid-item {
  overflow: hidden;
}

.grid-item.portrait {
  aspect-ratio: 4 / 5;
}

.grid-item.landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* ------------------------------------------------
   Scroll Reveal
   ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------
   Archive
   ------------------------------------------------ */

.archive-diary {
  padding: 60px 40px 32px;
}

.diary-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray);
  max-width: 680px;
}

.diary-date {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 0 40px 0;
}

.archive-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* ------------------------------------------------
   About
   ------------------------------------------------ */

.about {
  padding: 80px 40px;
}

.about p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray);
  max-width: 520px;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  margin: 0 40px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--gray);
}

/* ------------------------------------------------
   Responsive — 768px
   ------------------------------------------------ */

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .hero {
    padding: 120px 24px 48px;
  }

  .divider {
    margin: 0 24px;
  }

  .project {
    padding: 48px 24px 0;
  }

  .grid {
    padding: 32px 24px 0;
  }

  .photo-credit {
    padding: 20px 24px 0;
  }

  .archive-diary {
    padding: 60px 24px 32px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 0;
  }

  .about {
    padding: 80px 24px;
  }

  .footer {
    margin: 0 24px;
    padding: 24px 0 32px;
  }
}

/* ------------------------------------------------
   Responsive — 480px
   ------------------------------------------------ */

@media (max-width: 480px) {
  .nav-right {
    gap: 20px;
  }

  .hero-sub {
    max-width: 100%;
  }

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

  .grid-item.landscape {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }

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