:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #1f2529;
  --muted: #6f777b;
  --line: #d9d4ca;
  --accent: #955f32;
  --accent-dark: #6e4524;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(31,37,41,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,37,41,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244,241,234,.88);
  border-bottom: 1px solid rgba(217,212,202,.9);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
  background: var(--paper);
  box-shadow: 5px 5px 0 rgba(149,95,50,.18);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 800;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  max-width: 920px;
  margin-bottom: 26px;
  letter-spacing: -.035em;
}

h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
h3 { font-size: 24px; margin-bottom: 10px; }

.lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 23px);
  color: var(--muted);
  margin-bottom: 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.card {
  background: rgba(255,253,248,.9);
  border: 1px solid var(--line);
  padding: 26px;
  min-height: 100%;
}

.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card.span-8 { grid-column: span 8; }

.metric {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.section {
  padding: 64px 0;
}

.section.rule {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.project:first-child { border-top: 0; }

.project-year {
  color: var(--accent-dark);
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 9px;
  font-size: 12px;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(149,95,50,.08);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.error-wrap {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.error-code {
  font-family: Georgia, serif;
  font-size: clamp(92px, 22vw, 240px);
  line-height: .8;
  letter-spacing: -.08em;
  color: rgba(31,37,41,.12);
}

@media (max-width: 800px) {
  .nav { align-items: flex-start; padding: 16px 0; flex-direction: column; }
  .nav-links { gap: 12px 16px; }
  .hero { padding-top: 64px; }
  .card.span-4, .card.span-6, .card.span-8 { grid-column: 1 / -1; }
  .project { grid-template-columns: 1fr; gap: 4px; }
}
