:root {
  color-scheme: light;
  --bg: #f3f2ee;
  --ink: #141414;
  --muted: #3f3e3a;
  --line: #d4d2cb;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211;
    --ink: #eceae4;
    --muted: #b7b5ae;
    --line: #2e2e2b;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

.skip:focus {
  top: 1rem;
}

.page {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) minmax(0, 38rem);
  gap: 4.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 5rem;
}

.mast {
  position: sticky;
  top: 2rem;
  align-self: start;
}

h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.place {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 22rem;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 1.75rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
}

main {
  min-width: 0;
}

section {
  scroll-margin-top: 1.25rem;
}

section + section {
  margin-top: 3.5rem;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caps {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.caps dt {
  margin: 0;
  font-weight: 600;
}

.caps dd {
  margin: 0;
}

.piece {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.piece:last-child {
  border-bottom: 1px solid var(--line);
}

.piece h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.piece p {
  margin: 0.3rem 0 0;
}

.piece a {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

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

.roles li {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.roles li:last-child {
  border-bottom: 1px solid var(--line);
}

.org {
  color: var(--muted);
}

#clients p {
  margin: 0;
  max-width: 36rem;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem 1.15rem 3.5rem;
  }

  .mast {
    position: static;
  }

  .lede {
    max-width: 36rem;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }
}

@media (max-width: 560px) {
  .caps,
  .roles li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .caps dd + dt {
    margin-top: 0.85rem;
  }

  .caps {
    gap: 0.2rem 0;
  }
}
