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

body {
  font-family: 'Spectral', Georgia, serif;
  background: #ffffff;
  color: #181818;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  max-width: 600px;
  margin-inline: auto;
}

header {
  margin-bottom: 3.5rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.subtitle {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
}

nav ul {
  list-style: none;
}

nav ul li {
  border-bottom: 1px solid #ebebeb;
}

nav ul li:first-child {
  border-top: 1px solid #ebebeb;
}

nav ul li a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: #181818;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  font-style: italic;         /* Spectral's italics are particularly elegant */
  letter-spacing: 0.01em;
  transition: color 200ms ease, padding-left 200ms ease;
}

nav ul li a:hover {
  color: #999;
  padding-left: 0.4rem;       /* subtle indent on hover */
}

footer {
  margin-top: auto;
  padding-top: 4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #bbb;
}

/* ─── BASE ─────────────────────────────────────────── */

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

body {
  font-family: 'Spectral', Georgia, serif;
  background: #ffffff;
  color: #181818;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ─── INDEX PAGE ────────────────────────────────────── */

header { margin-bottom: 3.5rem; }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.subtitle {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
}

nav ul { list-style: none; }

nav ul li { border-bottom: 1px solid #ebebeb; }
nav ul li:first-child { border-top: 1px solid #ebebeb; }

nav ul li a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: #181818;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  transition: color 200ms ease, padding-left 200ms ease;
}

nav ul li a:hover {
  color: #999;
  padding-left: 0.4rem;
}

footer {
  margin-top: auto;
  padding-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #bbb;
  flex-wrap: wrap;  
}

/* ─── PROJECT / GALLERY PAGE ────────────────────────── */

body.project-page {
  max-width: 740px;   /* slightly wider to let photos breathe */
  padding-top: 3rem;
}

.back {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.back a {
  text-decoration: none;
  color: #bbb;
  transition: color 200ms ease;
}

.back a:hover { color: #181818; }

.project-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.project-intro {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: #555;
  max-width: 52ch;       /* fixed prose width */
  margin-bottom: 3.5rem;
}

/* ─── GALLERY ───────────────────────────────────────── */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;           /* breathing room between photos */
}

.gallery img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-inline: auto;  /* centres it if the viewport is wider than 900px */
}

body.project-page footer {
  padding-top: 5rem;
}