:root {
  --brand: #561a1c;
  --accent: #561a1c;
  --bg: #f8f5ee;
  --fg: #1d1d1f;
  --muted: #5f5f66;
  --card: #fff;
  --line: #e6dfd2;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0;
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
main p a { color: var(--accent); font-weight: 600; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--bg); color: var(--fg); padding: .5rem; }

.top {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 0 .5rem 0 1rem;
  background: var(--brand);
}
.top a { color: #fff; text-decoration: none; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; padding: .125rem; background: #fff; border-radius: 50%; }
.top nav { display: flex; }
.top nav a { padding: .875rem .5rem; font-size: .9375rem; }
.top nav a:hover { text-decoration: underline; }
.top nav .icon { display: flex; align-items: center; padding-inline: .625rem; }
/* No room for the name beside four nav links on phones; keep it for screen readers. */
@media (max-width: 30rem) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.2; margin: 2rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-bottom: .25rem; border-bottom: 2px solid var(--accent); }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.chips li { padding: .25rem .625rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .875rem; }

.work { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.work .card {
  display: block; padding: 1rem;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: .75rem;
  color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--accent); }
a.card h3::after { content: "\00a0↗"; color: var(--accent); }
.work h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.work p { margin: .125rem 0 0; }
.work .employer { font-weight: 600; color: var(--accent); }.work .sub { color: var(--muted); font-size: .9375rem; }
.work .chips { margin-top: .75rem; }
.work .chips li { font-size: .8125rem; background: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top :focus-visible { outline-color: #fff; }
footer { padding: 2.5rem 1rem; color: var(--muted); font-size: .875rem; }
