:root {
  --ink: #1f2933;
  --muted: #52606d;
  --indigo: #23268f;
  --line: #d9dee3;
  --paper: #f5f5f5;
  --card: #ffffff;
  --footer: #2c3e50;
  --footer-ink: #e4e9ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--indigo); }
a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

.site-header {
  padding: 32px 16px 20px;
  text-align: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-block; width: min(280px, 70vw); height: auto; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  margin-top: 18px;
}
.site-header nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-header nav a:hover { color: var(--indigo); text-decoration: underline; }

section { padding: 64px 16px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h2 { margin: 0 0 32px; font-size: 1.75rem; text-align: center; }

.intro { max-width: 760px; margin: 0 auto; text-align: center; }
.intro h1 { margin: 0 0 24px; color: var(--indigo); font-size: clamp(1.875rem, 5vw, 2.75rem); }
.intro p { margin: 0 0 16px; color: var(--muted); font-size: 1.1875rem; }

.work { background: #ebedef; }
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 280px;
  padding: 24px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.project img, .monogram { height: 56px; }
.monogram {
  display: grid;
  place-items: center;
  width: 56px;
  border-radius: 12px;
  background: var(--footer);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.project h3 { margin: 16px 0 8px; font-size: 1.375rem; }
.project p { margin: 0 0 16px; color: var(--muted); font-size: 1rem; }
.project a { margin-top: auto; font-weight: 700; }

.contact { text-align: center; }
.contact h2 { margin-bottom: 16px; }
.contact p { margin: 0 0 8px; font-size: 1.1875rem; }
.contact address { color: var(--muted); font-style: normal; }

.site-footer {
  padding: 24px 16px;
  background: var(--footer);
  color: var(--footer-ink);
  font-size: .9375rem;
  text-align: center;
}
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  section { padding: 44px 16px; }
  .project { flex-basis: 100%; min-width: 0; }
}
