:root {
  --bg: #E4E5E2;
  --ink: #33353A;
  --ink-strong: #1A1B1E;
  --ink-muted: #61636A;
  --line: #D2D3D0;
  --accent: #6E1E28;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Switzer, ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  padding: clamp(36px, 7vh, 60px) 22px clamp(72px, 12vh, 120px);
}

.page {
  max-width: 660px;
  margin: 0 auto;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(110, 30, 40, 0.35);
  transition: text-decoration-color 160ms ease;
}

a:hover { text-decoration-color: var(--accent); }

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

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

/* Masthead */

.name {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
}

.role {
  margin: 2px 0 0;
  font-size: 17px;
  color: var(--ink-muted);
}

.nav {
  margin-top: 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 17px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 34px 0;
}

/* Body copy */

main p {
  margin: 0 0 20px;
  text-wrap: pretty;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-strong);
}

h2 {
  margin: 44px 0 6px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  scroll-margin-top: 24px;
}

.stamp {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 14px !important;
}

/* Work list */

.work {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.work li {
  margin-bottom: 20px;
}

.item {
  font-weight: 500;
  color: var(--ink-strong);
}

.state { color: var(--ink-muted); }

.desc {
  display: block;
  margin-top: 1px;
  text-wrap: pretty;
}

/* Footer */

.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .name { font-size: 23px; }
  .lead { font-size: 19px; }
}
