/* ─────────────────────────────────────────────
   DIEGO ROTA — PORTFOLIO
   Editorial minimal. Inspired by Pieter Hugo.
   ───────────────────────────────────────────── */

@font-face {
  font-family: font; /* set name */
  src: url(/font/MonumentGrotesk-Regular.otf); /* url of the font */
}
* {
   font-family: font;
}
:root {
  --bg: #ffffff;
  --fg: #000000;
  --fg-muted: #000000;
  --fg-year: #494747;
  --fg-faint: #000000;
  --accent: #000000;
  --nav-width: 300px;
  --gap: 2rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

p {
  font-family: font;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: font;
  font-weight: 300;
  display: flex;
  min-height: 100vh;
}

/* ── IMAGES ─────────────────────────────────── */
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

/* ── SIDENAV ─────────────────────────────────── */
.sidenav {
position: fixed;
top: 0;
left: 0;
width: var(--nav-width);
height: 100vh;
padding-top:7rem;
display: flex;
flex-direction: column;
background: var(--bg);
z-index: 100;
overflow-y: auto;
align-items: flex-end;
justify-content: flex-start;
}

.sidenav__top {
  margin-bottom: 3rem;
text-align: right;
 
}

p {
  font-size: 1.10rem;
}

.sidenav__name {
  display: block;
  font-family: font;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 0.25rem;
 text-align: right;
 
  
}

.sidenav__name:hover {
  opacity: 0.6;
}

.sidenav__title {
  font-family: font;
    font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;

}

.sidenav__projects,
.sidenav__meta {
  list-style: none;
}

.sidenav__projects {
  flex: 1;
text-align: right;
}

.sidenav__section-label {
   font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  font-weight: 400;
  margin-bottom: 0.75rem;
    font-style: italic;
}

.sidenav__projects li a,
.sidenav__meta li a {
  display: block;
  font-family: font;
    font-size: 0.85rem;
  color: var(--fg-muted);
    padding: 0.15rem 0;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.sidenav__projects li a:hover,
.sidenav__meta li a:hover {
  color: var(--fg);
}

.sidenav__projects li a.active,
.sidenav__meta li a.active {
  color: var(--fg);
  font-weight: 400;
}

.sidenav__meta {
  margin-top: auto;
  padding-top: 2rem;

}

.sidenav a.active {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
/* ── MAIN ─────────────────────────────────────── */
.main {
  margin-left: var(--nav-width);
  flex: 1;
  padding: 3.5rem 5vw 6rem calc(2vw + 1rem);
  max-width: 1500px;
  padding-top: 7rem;
  
}

/* ── PROJECT HEADER ─────────────────────────── */
.project-header {
  margin-bottom: 1.5rem;
}

.project-title {
  font-family: font;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--fg);
}

.project-year {
  font-family: font;
  font-size: 0.95rem;
  color: var(--fg-year);
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── PROJECT INTRO ─────────────────────────── */
.project-intro {
  max-width: 1280px;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;

  font-family: font;
}

.project-intro p {
  font-family: font;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  
}

/* ── PHOTO SERIES ─────────────────────────── */
.photo-series {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: center;

}

/* ── PHOTO BLOCKS ─────────────────────────── */
.photo-block {
  display: flex;
  flex-direction: column;
}

.photo-block img {
  transition: opacity 0.3s ease;
}

.photo-block img:hover {
  opacity: 0.95;
}

/* Full width */
.photo-block--full {
  width: 95%;
}

.photo-block--full img {
  aspect-ratio: 3/2;
  
}

/* Medium, left-aligned */
.photo-block--medium {
  width: 62%;
}

.photo-block--medium img {
  aspect-ratio: 4/3;
}

/* Medium, right-aligned */
.photo-block--medium.offset-right {
  align-self: flex-end;
}

/* Portrait */
.photo-block--portrait {
  width: 47%;
  align-self: center;

}

.photo-block--portrait img {
  aspect-ratio: 2/3;
  
}

/* Wide (between full and medium) */
.photo-block--wide {
  width: 80%;
}

.photo-block--wide img {
  aspect-ratio: 16/9;
}

/* ── CAPTIONS ─────────────────────────────── */
figcaption {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.75rem;
}

.caption-num {
  font-family: font;
  font-size: 0.65rem;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  font-weight: 400;
  min-width: 1.5rem;
}

.caption-text {
  font-family: font;
  font-size: 0.88rem;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.4;
}

/* ── PROJECT FOOTER ─────────────────────── */
.project-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
 
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: font;
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.next-project {
  color: var(--fg);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.next-project:hover {
  opacity: 0.5;
}

/* ── INFO PAGE ─────────────────────────────── */
.main--info {
  padding-top: 4rem;
  
}

.info-grid {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 4vw;
  align-items: start;
  
}


.info-content {
  padding-top: 2.5rem;
}

.info-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
 
}

.info-section:last-child {
  border-bottom: none;
}

.info-section h2 {
  font-family: font;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.info-section h3 {
  font-family: font;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  font-weight: 400;
  margin-bottom: 0.8rem;
  font-style: underline;
  
}

.info-section p {
  font-family: font;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 0.75rem;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-list {
  list-style: none;
  font-family: font;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.85;
}

.info-section--contact a {
  font-family: font;
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 300;
 
  padding-bottom: 1px;
  transition: border-color 0.15s, opacity 0.15s;
}

.info-section--contact a:hover {
  opacity: 0.5;
  border-color: transparent;
}

.info-section--note p {
  font-size: 0.82rem;
  color: var(--fg-faint);
  font-style: italic;
}

/* ── SCROLL FADE IN ─────────────────────────── */
.photo-block {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}

.photo-block:nth-child(1) { animation-delay: 0.05s; }
.photo-block:nth-child(2) { animation-delay: 0.15s; }
.photo-block:nth-child(3) { animation-delay: 0.25s; }
.photo-block:nth-child(4) { animation-delay: 0.35s; }
.photo-block:nth-child(5) { animation-delay: 0.45s; }
.photo-block:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --nav-width: 180px;
  }

  .photo-block--medium,
  .photo-block--portrait,
  .photo-block--wide {
    width: 100%;
    align-self: auto;
  }

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

  .info-portrait {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  body {
    flex-direction: column;
  }

  @media (max-width: 640px) {

  .sidenav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    padding: 2rem;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .sidenav.open {
    left: 0;
  }

  .main {
    margin-left: 0;
    padding: 2rem 1.25rem 4rem;
  }

  .menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    color: black;
  }

}

  .sidenav__top {
    margin-bottom: 0;
      padding-top: 2rem;
       align-items: left;
    text-align: left;
  }
  .sidenav__name {
       align-items: left;
    text-align: left;
  }

  .sidenav__projects,
  .sidenav__meta {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: left;
    text-align: left;
  }

  .sidenav__section-label {
    display: none;
  }

  .sidenav__meta {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
     align-items: left;
    text-align: left;
  }

  .main {
    margin-left: 0;
    padding: 5rem 1.25rem 4rem;
   
  }
}
