:root {
  --paper: #FAFAF8;
  --ink: #000000;
  --muted: #6E6E68;
  --rule: #DCDBD5;
  --measure: 65ch;
  --gut: clamp(1.5rem, 5vw, 5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  line-height: 1.62;
  font-optical-sizing: auto;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gut); }
.measure { max-width: var(--measure); }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.masthead__name {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 0;
}
.masthead__name a { text-decoration: none; }

.nav {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9375rem;
  display: flex;
  gap: 1.75rem;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- hero with clear-space brackets ---------- */

.hero { padding: clamp(3rem, 9vw, 8rem) 0 clamp(2.5rem, 6vw, 5rem); }

.bracketed {
  position: relative;
  display: inline-block;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.bracketed::before,
.bracketed::after {
  content: "";
  position: absolute;
  width: clamp(1.5rem, 3vw, 2.75rem);
  height: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--muted);
}
.bracketed::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bracketed::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero__statement {
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.hero__sub {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  max-width: 56ch;
  color: var(--muted);
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

/* ---------- section furniture ---------- */

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--rule { border-top: 1px solid var(--rule); }

.section__head {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 1.0625rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }

p { margin: 0 0 1.15rem; }

/* ---------- work index ---------- */

.work { display: grid; gap: clamp(3rem, 8vw, 6rem); }

.project { display: block; text-decoration: none; }
.project__figure { background: #fff; border: 1px solid var(--rule); overflow: hidden; }
.project__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.project__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; margin-top: 1.125rem; }
.project__title { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.25; margin: 0; font-weight: 400; }
.project__year { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 0.9375rem; color: var(--muted); }
.project__line { margin: 0.5rem 0 0; max-width: 62ch; color: var(--muted); }
.project:hover .project__title { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- case study ---------- */

.cs-header { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.cs-title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; font-weight: 400; letter-spacing: -0.015em; margin: 0 0 1.25rem; max-width: 22ch; text-wrap: balance; }
.cs-standfirst { max-width: 60ch; font-size: 1.0625em; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.specs dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.3rem; letter-spacing: 0.03em; }
.specs dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 0; }

/* Image scale:
   .full   = full container width — hero photos, environmental, event
   default = 52rem — applications, collateral, guideline spreads
   .inset  = 40rem — single marks, detail, diagrams
   All images cap at 78vh so tall portrait files don't fill the viewport. */
figure { margin: clamp(2.5rem, 6vw, 4.5rem) 0; max-width: 52rem; }
figure.full { max-width: none; }
figure.inset { max-width: 40rem; }
figure img { width: 100%; max-height: 78vh; object-fit: contain; background: #fff; }
figure.pairwrap, figure.triowrap { max-width: none; }
figure.framed img { border: 1px solid var(--rule); }
figcaption {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.85rem;
  max-width: 58ch;
}

.pair { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.trio { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 46rem) {
  .pair { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.pair figure, .trio figure { margin: 0; }
.pair img, .trio img { border: 1px solid var(--rule); max-height: 60vh; object-fit: contain; }

.stack-label {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.pull {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  max-width: 26ch;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--ink);
}

.next { border-top: 1px solid var(--rule); padding: clamp(2.5rem, 6vw, 4rem) 0; }

/* ---------- about + contact ---------- */

.about { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 52rem) { .about { grid-template-columns: 1fr 1fr; } }

.facts { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 0.9375rem; margin: 0; }
.facts div { display: flex; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); flex: 0 0 8.5rem; }
.facts dd { margin: 0; }

.contact-links { font-family: "Source Sans 3", system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }

footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 4rem; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 0.875rem; color: var(--muted); }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
