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

:root {
  --bg: #fafaf8;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --accent: #b8956a;
  --border: #e0dcd6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav .logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--text); }

/* SECTIONS */
section {
  padding: 6rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.section-header .view-all {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.section-header .view-all:hover { color: var(--text); }

/* PHOTO GRID */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.photo-item {
  aspect-ratio: 1;
  background: var(--border);
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img { transform: scale(1.03); }

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* WORK LIST */
.work-list { display: flex; flex-direction: column; }

.work-item {
  display: grid;
  grid-template-columns: 1.5rem 140px 3fr;
  column-gap: 2rem;
  row-gap: 0;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.work-item:first-child { border-top: 1px solid var(--border); }

.work-thumb {
  width: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.85;
}

.work-num {
  font-size: 0.7rem;
  color: var(--text-light);
  padding-top: 0.3rem;
}

.work-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.work-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-desc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-left: 0.5rem;
}

/* PAGE HEADER (for inner pages) */
.page-header {
  padding: 8rem 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer-links { display: flex; gap: 2rem; }

footer a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}

footer a:hover { color: var(--text); }

/* =====================
   RESPONSIVE (mobile)
   ===================== */
@media (max-width: 640px) {

  nav {
    padding: 1rem 1.5rem;
  }

  nav ul {
    gap: 1.2rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .page-header {
    padding: 6rem 1.5rem 3rem;
  }

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

  .work-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 2rem 0;
  }

  .work-thumb {
    max-width: 260px;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }
}
