/* ===== Colours and basics (change these to restyle the whole site) ===== */
:root {
  --bg: #F6F1E9;          /* page background (warm cream) */
  --text: #2A2420;        /* main text */
  --muted: #6B5F55;       /* secondary text */
  --accent: #B5502F;      /* links and buttons (terracotta) */
  --line: #E3D9CB;        /* thin borders */
  --card: #FFFDF9;        /* image backgrounds */
  --serif: "Fraunces", Georgia, serif;  /* headings font */
  --radius: 12px;
  --max: 1080px;          /* content width */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: 18px; }
.nav a { margin-left: 24px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.eyebrow { color: var(--muted); font-weight: 500; margin: 0 0 8px; }
h1 { font-family: var(--serif); font-size: clamp(42px, 6.5vw, 68px); font-weight: 700; line-height: 1.05; margin: 0 0 14px; }
.headline { font-size: 20px; font-weight: 500; font-style: italic; color: var(--accent); margin: 0 0 20px; }
.intro { color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.headshot { width: 100%; max-width: 380px; justify-self: end; border-radius: 200px 200px 16px 16px; }

/* ===== Buttons ===== */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { border-color: var(--accent); opacity: 0.9; }

/* ===== Work ===== */
.work { padding-top: 40px; padding-bottom: 40px; }
h2 { font-family: var(--serif); font-size: 34px; font-weight: 700; margin: 0 0 32px; }
h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0 0 10px; }

.project {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.project p { color: var(--muted); margin: 0 0 12px; }
.project img { border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.project-wide { grid-template-columns: 1fr; }
.project-wide .project-text { max-width: 680px; }

.links a { margin-right: 18px; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-cm { grid-template-columns: repeat(3, 1fr); }
.gallery-cm img:first-child { grid-column: 1 / -1; max-width: 720px; }

.zoomable { cursor: zoom-in; transition: transform 0.15s ease; }
.zoomable:hover { transform: translateY(-2px); }

/* ===== Contact ===== */
.contact { padding-top: 64px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.contact p { color: var(--muted); margin: -16px 0 24px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0; }

/* ===== Lightbox (click an image to enlarge) ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(42, 36, 32, 0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 95vw; border-radius: 8px; background: #fff; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer;
}

/* ===== Phones and small tablets ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .headshot { justify-self: start; max-width: 260px; order: -1; }
  .project { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-2 { grid-template-columns: 1fr; }
  .gallery-cm { grid-template-columns: 1fr; }
  .nav a { margin-left: 16px; }
}
