/* ---------- Colors: edit these to restyle the whole site ---------- */
:root {
  --paper: #F4F6F5;
  --ink: #14263A;
  --muted: #5B6B78;
  --water: #2F6F8F;
  --line: #C9D4D6;
  --max: 1100px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
p { max-width: 62ch; margin: 0 0 1em; }

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

/* ---------- Header and footer ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none;
}
nav a { margin-left: 1.5rem; color: var(--ink); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--water); text-underline-offset: 6px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 5rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }

/* ---------- Home hero: contour lines are the one memorable thing ---------- */
.hero {
  background: url("images/placeholder.svg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.hero p { font-size: 1.25rem; color: var(--ink); }

/* ---------- Project grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem 2rem;
  padding-top: 3rem;
  list-style: none; margin: 0; padding-left: 0; padding-right: 0;
}
.card a { color: inherit; text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 3 / 2; background: #E4ECEC; overflow: hidden; border: 1px solid var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card a:hover .thumb img, .card a:focus-visible .thumb img { transform: scale(1.04); }
.card h3 { margin: 0.9rem 0 0.15rem; font-size: 1.25rem; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Project page ---------- */
.project-head { padding-top: 3rem; }
.project-head .meta { margin-bottom: 2rem; }
.full-map { border: 1px solid var(--line); background: #fff; }
.details { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
@media (min-width: 800px) { .details { grid-template-columns: 2fr 1fr; gap: 4rem; } }
dl { margin: 0; }
dt { font-weight: 600; margin-top: 1rem; }
dt:first-child { margin-top: 0; }
dd { margin: 0; color: var(--muted); }

/* ---------- About page ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
@media (min-width: 800px) { .about { grid-template-columns: 1fr 2fr; gap: 4rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .thumb img { transition: none; }
}
