*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent-hover);
}

.site-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(var(--width-page), calc(100% - 2 * var(--space-page)));
  margin: 0 auto;
  padding: var(--space-nav);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

.site-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  font-size: var(--text-small);
  font-weight: var(--weight-ui);
}

.site-bar nav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  text-decoration: none;
}

.site-bar nav a:hover,
.site-bar nav a[aria-current="page"] {
  color: var(--color-ink);
  background: var(--color-surface);
}

.home,
.story {
  width: min(var(--width-page), calc(100% - 2 * var(--space-page)));
  margin: 0 auto 5rem;
  padding-top: var(--space-hero);
}

.home h1 {
  max-width: 14ch;
}

.story h1 {
  max-width: 16ch;
}

.story-body {
  max-width: var(--width-prose);
  margin-top: 3rem;
}

.story-body h2 {
  margin: 2.25rem 0 0.7rem;
}

.story-body p {
  margin: 0 0 0.95rem;
}

.story-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-small);
  color: var(--color-muted);
}

.home-note {
  max-width: var(--width-prose);
  margin: 1.15rem 0 0;
  font-size: var(--text-small);
  color: var(--color-muted);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.home-cards a {
  display: grid;
  gap: 0.4rem;
  height: 100%;
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  text-decoration: none;
}

.home-cards a:hover {
  color: var(--color-ink);
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

.home-cards strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.home-cards a span:last-child {
  font-size: var(--text-small);
  color: var(--color-muted);
}

.story .lede {
  max-width: var(--width-prose);
  margin: 1.15rem 0 0;
  color: var(--color-muted);
}

.placeholder {
  max-width: var(--width-prose);
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-small);
  color: var(--color-muted);
}

.sheet {
  width: min(48rem, calc(100% - 2 * var(--space-page)));
  margin: 1.5rem auto 3.5rem;
  padding: 0 0 2rem;
}

.masthead {
  padding-bottom: 1.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-rule);
}

.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-hero);
  letter-spacing: var(--tracking-hero);
  line-height: var(--leading-hero);
}

.headline {
  max-width: 42rem;
  margin: 0.85rem 0 1.1rem;
  color: var(--color-muted);
  font-size: var(--text-body);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--color-muted);
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

section + section {
  margin-top: var(--space-section);
}

.summary,
.company ul {
  margin: 0;
  padding-left: 1.15rem;
}

.summary li,
.company li {
  margin: 0.32rem 0;
}

.caps {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-small);
}

.company + .company,
.edu + .edu {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-rule);
}

.company-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name dates"
    "place dates";
  column-gap: 1rem;
  align-items: baseline;
}

.company-head h3 {
  grid-area: name;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.place {
  grid-area: place;
  margin: 0.1rem 0 0;
  color: var(--color-muted);
  font-size: var(--text-small);
}

.dates {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 400;
  color: var(--color-muted);
  white-space: nowrap;
}

.company-head .dates {
  grid-area: dates;
  justify-self: end;
}

.title {
  margin: 0.65rem 0 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.title .dates {
  display: inline;
  margin-left: 0.45rem;
  font-weight: 400;
}

.scope {
  margin: 0.35rem 0 0.45rem;
  color: var(--color-muted);
}

.edu .title {
  margin-top: 0.35rem;
  font-weight: 400;
}

@media (max-width: 800px) {
  .home-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .company-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "place"
      "dates";
  }

  .company-head .dates {
    justify-self: start;
    margin-top: 0.2rem;
  }
}

@media print {
  @page {
    margin: 0.5in;
  }

  body {
    background: white;
    font-size: 11.5px;
  }

  .site-bar {
    display: none;
  }

  .sheet {
    width: auto;
    margin: 0;
    padding: 0;
  }

  a {
    text-decoration: none;
  }

  .company,
  .edu {
    break-inside: avoid;
  }
}
