:root {
  --ink: #1a1a1a;
  --body-text: #333333;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #ffffff;
  --bg-alt: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--line);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav.site-nav a {
  color: var(--body-text);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.95rem;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* Main content */
main {
  padding: 56px 0 80px;
}

h1 {
  font-size: 2.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--body-text);
  max-width: 60ch;
}

p {
  max-width: 68ch;
}

a {
  color: var(--ink);
}

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Current work page */
.diagram-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0 0.5rem;
}

.diagram-caption {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

details.accordion {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

details.accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  color: var(--ink);
}

details.accordion summary::-webkit-details-marker {
  display: none;
}

details.accordion summary::after {
  content: "+";
  float: right;
  font-weight: 400;
}

details.accordion[open] summary::after {
  content: "\2212";
}

ol.steps {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

ol.steps li {
  margin-bottom: 0.75rem;
  max-width: 68ch;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site-footer .wrap {
  padding: 24px;
}
