:root {
  color-scheme: light;
  background: #faf8f2;
  color: #292724;
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }

main {
  width: min(1200px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 20px 0 28px;
  border-top: 1px solid #304b82;
}

h1, h2, h3 {
  font-family: inherit;
  font-weight: 700;
  text-wrap: pretty;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p { margin: 0; }
.intro { margin-bottom: 48px; }

h2 {
  margin: 0 0 30px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.category + .category { margin-top: 36px; }

h3 {
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 3px solid #304b82;
  color: #304b82;
  font-size: 1.25rem;
  line-height: 1.3;
}

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

.work-list li + li { margin-top: 24px; }

h4 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

a {
  color: #304b82;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid #304b82;
  outline-offset: 4px;
  border-radius: 1px;
}

footer {
  margin-top: 48px;
  font-size: 0.9rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media print {
  main { margin-top: 0; width: 100%; }
  :root { background: white; }
  a { color: inherit; }
}
