/* ===== Project page styles (shared by every page in /projects) ===== */
:root {
  --cream: #F5EADB;
  --paper: #FFFDF8;
  --ink: #2E2420;
  --muted: #6E5A4C;
  --rule: #C9BBAA;
  --red: #B23A22;
  --ph: #E4D7C5;      /* placeholder box color */
  --ph-dark: #2E2420; /* dark placeholder box color */

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;

  --sidebar: 340px;   /* width of the left info column */
  --gap: 16px;        /* space between images */
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

/* ===== Top bar ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 28px;
  background: var(--cream);
}
.topbar nav { display: flex; gap: 28px; }
.topbar .contact { justify-self: end; }
.topbar a { min-height: 44px; display: inline-flex; align-items: center; }
.mark { font-family: var(--serif); font-size: 20px; }

/* ===== Two-column layout ===== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

/* Left column: sticks while the gallery scrolls */
.info {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px 28px 28px;
}
.info-body { margin-top: auto; margin-bottom: auto; }
.info h1 {
  margin: 0 0 18px;
  font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05;
}
.summary { margin: 0 0 28px; font-size: 16px; line-height: 1.55; }
.meta { margin: 0 0 24px; display: flex; flex-direction: column; gap: 6px; }
.meta div { display: flex; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.meta dt { color: var(--muted); min-width: 44px; }
.meta dt::after { content: ':'; }
.meta dd { margin: 0; }
.live { font-family: var(--serif); font-size: 18px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.close { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }

/* Right column: images */
.gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding: 72px 28px 28px 0;
  align-content: start;
}
figure { margin: 0; }
.full { grid-column: 1 / -1; }
.half { grid-column: span 1; }
figure img, .ph { display: block; width: 100%; height: auto; object-fit: cover; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Placeholder boxes — delete once you've added real images */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; background: var(--ph); color: var(--muted); font-size: 14px;
}
.ph.dark { background: var(--ph-dark); color: var(--rule); }

/* Text blocks between images */
.note {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.note h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.note p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 620px; }

/* Next project */
.next {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding: 32px 0; border-top: 1.5px solid var(--ink);
}
.next span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next strong { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 52px); }

/* ===== Phones & small screens: info stacks on top ===== */
@media (max-width: 860px) {
  .topbar { padding: 8px 16px; }
  .layout { grid-template-columns: 1fr; }
  .info { position: static; height: auto; padding: 88px 16px 24px; }
  .close { display: none; }
  .gallery { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .half { grid-column: 1 / -1; }
  .note { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}
