* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; padding-inline: clamp(1.25rem, 5vw, 4rem); font: 1rem/1.55 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
main, .site-note { max-width: 42rem; margin-inline: auto; }
main { padding-block: clamp(2rem, 7vw, 6rem) 4rem; }
h1, h2, p { margin: 0; }
h1, .section-heading {
  width: fit-content;
  max-width: 100%;
  padding: .5rem;
  border-radius: .35rem;
  background: var(--section-bg);
  color: var(--paper);
}
h1 {
  overflow: clip;
  overflow-wrap: anywhere;
  font: var(--display-weight, 500) clamp(2.1rem, 5.4vw, 4.25rem)/1.06 var(--heading);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: .375rem;
  font: var(--section-weight, 600) clamp(1.05rem, 2.15vw, 1.3rem)/1.75rem var(--heading);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.heading-label { display: block; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  h1, .section-heading { padding-block: calc(.5rem + .08em) calc(.5rem - .08em); }
}
.intro, .content, .portfolio { min-width: 0; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  mask-image: radial-gradient(ellipse 65% 74% at 50% 27%, #000 70%, rgb(0 0 0 / 80%) 79%, rgb(0 0 0 / 23%) 93%, transparent 100%);
}
.profession, .location, .contact dl {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  column-gap: .65rem;
}
.profession { margin-top: .7rem; font-weight: 600; }
.location { color: var(--muted); }
.location { align-items: center; margin-top: .25rem; }
.detail-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-heading .detail-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact { margin-top: 1.15rem; font-style: normal; }
.contact dl {
  align-items: center;
  margin: 0;
  font-size: .9375rem;
}
.contact dt { color: var(--muted); }
.contact dd { min-width: 0; margin: 0; }
.contact a { display: inline-block; max-width: 100%; min-height: 2rem; padding-block: .2rem; }
.contact a[href^="tel:"] { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration-thickness: .075em; text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, .job-title:focus-visible, .job-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.content { margin-block-start: clamp(2.65rem, 7vw, 5.5rem); }
.jobs {
  --timeline-gap: 1.5rem;
  --timeline-x: .375rem;
  --timeline-y: .5lh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--timeline-gap);
  margin-top: 1.2rem;
}
.job { position: relative; padding-inline-start: 1.5rem; }
.job-title, .job-toggle, .job::before, .job::after { font: 700 1.35rem/1.25 var(--heading); }
.job::before {
  content: '';
  position: absolute;
  box-sizing: border-box;
  inset-block-start: var(--timeline-y);
  inset-inline-start: var(--timeline-x);
  width: .625rem;
  height: .625rem;
  border: 1.5px solid var(--section-bg);
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
  z-index: 1;
}
.job.is-collapsed::before { background: var(--section-bg); }
.job-toggle {
  position: absolute;
  inset-block-start: var(--timeline-y);
  inset-inline-start: var(--timeline-x);
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
@media (forced-colors: active) {
  .job.is-collapsed::before { forced-color-adjust: none; background: CanvasText; border-color: CanvasText; }
}
.job::after {
  content: '';
  position: absolute;
  inset-block-start: var(--timeline-y);
  inset-block-end: 0;
  inset-inline-start: calc(var(--timeline-x) - .5px);
  width: 1px;
  background: color-mix(in srgb, var(--section-bg) 72%, var(--paper));
}
.job:not(:last-child)::after {
  inset-block-end: calc(0px - var(--timeline-gap) - var(--timeline-y));
}
.job-title { margin: 0; scroll-margin-top: 1.25rem; overflow-wrap: anywhere; }
@supports (text-box: trim-start cap alphabetic) {
  .jobs { --timeline-y: .5cap; }
  .job-title { text-box: trim-start cap alphabetic; }
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .8rem;
  font-size: .94rem;
  overflow-wrap: anywhere;
}
.company {
  color: var(--section-bg);
  color: color-mix(in srgb, var(--ink) 55%, var(--section-bg));
  font-weight: 600;
  text-transform: uppercase;
}
.dates { color: var(--muted); font-size: .85rem; }
.job-content {
  display: grid;
  grid-template-rows: 1fr;
  max-width: 64ch;
  overflow-wrap: anywhere;
}
.job-content-body { min-block-size: 0; overflow: hidden; }
.job-bullets { margin: .35rem 0 0; padding-inline-start: 1.2rem; }
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .4rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  line-height: 1.35;
}
.tech-tags li {
  padding: .15rem .4rem;
  border-radius: .25rem;
  background: color-mix(in srgb, var(--section-bg) 9%, var(--paper));
  color: var(--muted);
}
.job.is-collapsed .job-content { grid-template-rows: 0fr; }
@media (prefers-reduced-motion: no-preference) {
  .job-content { transition: grid-template-rows 240ms ease; }
  .job::before { transition: background-color 240ms ease; }
}

.portrait-stage { min-width: 0; display: grid; place-items: end center; }
.portfolio-empty {
  --roll-duration: 22.4s;
  --roll-turns: 3.5turn;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 6.5rem;
  margin-top: .85rem;
  overflow: hidden;
}
.portfolio-empty::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 3rem;
  z-index: 2;
  background: linear-gradient(to right, transparent, var(--paper));
  pointer-events: none;
}
.tumbleweed-ground {
  position: absolute;
  inset-block-start: 4.9rem;
  inset-inline: 0;
  width: 100%;
  height: 1rem;
  color: #604f43;
  opacity: .76;
}
.tumbleweed-ground path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.tumbleweed-track { position: absolute; inset: 0; z-index: 1; }
.tumbleweed {
  position: absolute;
  inset-block-start: 1.35rem;
  inset-inline-start: .45rem;
  width: 4.5rem;
  aspect-ratio: 700 / 649;
  overflow: hidden;
}
/* Keep the road behind the full silhouette as the bundle rotates. */
.tumbleweed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 43% 51% 47% 49% / 47% 45% 49% 48%;
  background: var(--paper);
}
.tumbleweed img {
  position: absolute;
  width: 179.1%;
  height: auto;
  inset-inline-start: -40.4%;
  top: -45.3%;
}
.tumbleweed-twig { display: none; }
/* Isolate the three forked tips of the illustration at their stems. */
.twig-left {
  clip-path: inset(0 61% 62% 0);
  transform-origin: 32% 37.6%;
  --flutter-duration: 1.35s;
  --flutter-delay: -.4s;
}
.twig-top {
  clip-path: inset(0 30.2% 66.25% 39%);
  transform-origin: 58.6% 33.3%;
  --flutter-duration: 1.65s;
  --flutter-delay: -.8s;
}
.twig-right {
  clip-path: inset(0 0 49.3% 69.8%);
  transform-origin: 70.6% 50.2%;
  --flutter-duration: 1.2s;
  --flutter-delay: -.2s;
}
@media (max-width: 520px) {
  .portfolio-empty { --roll-duration: 13.75s; --roll-turns: 1.75turn; }
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-empty.has-started .tumbleweed-track {
    animation: tumbleweed-pass var(--roll-duration) linear infinite;
  }
  .portfolio-empty.has-started .tumbleweed {
    animation: tumbleweed-spin var(--roll-duration) linear infinite;
  }
  .portfolio-empty.has-started .tumbleweed-body {
    clip-path: polygon(0 37.6%, 39% 37.6%, 39% 33.3%, 69.8% 33.3%, 69.8% 50.2%, 100% 50.2%, 100% 100%, 0 100%);
  }
  .portfolio-empty.has-started .tumbleweed-twig {
    display: block;
    animation: tumbleweed-flutter var(--flutter-duration) ease-in-out var(--flutter-delay) infinite alternate;
  }
  .portfolio-empty.has-started:not(.is-in-view) :is(.tumbleweed-track, .tumbleweed, .tumbleweed-twig) {
    animation-play-state: paused;
  }
}
@keyframes tumbleweed-pass {
  from { transform: translateX(-5rem); }
  to { transform: translateX(100%); }
}
@keyframes tumbleweed-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--roll-turns)); }
}
@keyframes tumbleweed-flutter {
  from { transform: rotate(-5deg); }
  to { transform: rotate(7deg); }
}
.history { margin-top: clamp(2.3rem, 6vw, 4rem); }

:root[data-theme="linen"] {
  --paper: #f7efe1;
  --ink: #38271c;
  --muted: #645144;
  --accent: #86462c;
  --section-bg: #655741;
  --note: #745b35;
}

:root[data-theme="mist"] {
  --paper: #edf4fc;
  --ink: #172c41;
  --muted: #475c72;
  --accent: #225c86;
  --section-bg: #465b72;
  --note: #625282;
}

:root {
  color-scheme: light;
  --heading: "Iowan Old Style", "Nimbus Roman", "Times New Roman", serif;
  --display-weight: 400;
  --section-weight: 400;
}
main { padding-top: clamp(1rem, 3vw, 2.5rem); }
.site-note {
  padding-bottom: 2.25rem;
  color: var(--note);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .04em;
}
header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(6rem, 27%, 12rem);
  align-items: center;
  gap: clamp(.75rem, 4vw, 2rem);
}
.intro { grid-area: 1 / 1; }
.portrait-stage { grid-area: 1 / 2; }
.github-link { display: inline-flex; align-items: center; justify-content: center; justify-self: center; align-self: start; min-width: 1.5rem; min-height: 1.5rem; }
.github-link img { display: block; width: auto; height: 1.125rem; }
@media (max-width: 600px) {
  body { padding-inline: clamp(1rem, 4.5vw, 1.5rem); }
  header {
    grid-template-columns: minmax(0, 1fr) clamp(4.25rem, 20vw, 7.5rem);
    grid-template-areas: "name portrait" "profession portrait" "location portrait" "contact contact";
    align-items: start;
    gap: 0 clamp(.625rem, 3vw, 1rem);
  }
  .intro { display: contents; }
  header h1 { grid-area: name; font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .profession, .location, .contact dl {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    column-gap: .4rem;
  }
  .profession { grid-area: profession; font-size: .9rem; }
  .profession-role { display: inline-block; max-width: 100%; }
  .github-link { min-width: 1.75rem; min-height: 1.75rem; }
  .location { grid-area: location; }
  .location .detail-icon { justify-self: center; }
  .contact { grid-area: contact; margin-top: .6rem; }
  .contact .detail-icon { margin-inline: auto; }
  .contact a { min-height: 2.75rem; padding-block: .6rem; }
  .portrait-stage { grid-area: portrait; }
  .content { margin-block-start: 1.65rem; }
  .portfolio-empty { margin-top: .55rem; height: 6rem; }
  .history { margin-top: 1.6rem; }
  .job-toggle { width: 2.25rem; height: 2.25rem; }
}
