:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #13221e;
  --pine: #183d30;
  --sage: #e6eddf;
  --peach: #f1d8c9;
  --rule: #77867c;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: var(--pine); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }

.shell { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  background: var(--paper);
}
.skip:focus { transform: none; }
.site-header, .header-links, .site-nav, .languages, .actions, .footer-inner, .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.site-header {
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.15rem;
}
.brand { font-weight: 750; text-decoration: none; }
.header-links { gap: .35rem clamp(1rem, 3vw, 2.25rem); }
.site-nav { gap: .15rem clamp(.65rem, 2.5vw, 1.75rem); }
.site-nav a, .languages a { display: inline-block; padding-block: .35rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.languages { gap: .35rem; font-size: .9rem; }
.languages a[aria-current] { font-weight: 750; text-decoration: none; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 29%);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.75rem, 6vw, 4.5rem);
}
h1 {
  color: var(--pine);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.55rem, 6vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .99;
}
.specialty { margin-top: .7rem; color: var(--pine); font-size: clamp(1rem, 2.3vw, 1.38rem); font-weight: 680; }
.bio { max-width: 55ch; margin-top: .9rem; font-size: clamp(1rem, 1.75vw, 1.15rem); }
.actions { gap: .65rem 1.35rem; margin-top: 1.45rem; font-weight: 650; }
.button {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: .55rem;
  background: var(--pine);
  color: var(--paper);
  text-decoration: none;
}
.button:hover { background: #235140; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .7rem;
}

.section { margin-bottom: clamp(2.4rem, 5vw, 3.5rem); scroll-margin-top: 1.25rem; }
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.section-title::after { content: ""; flex: 1; min-width: 1rem; border-top: 1px solid var(--rule); }
.job { padding-block: .5rem 1.25rem; }
.job + .job { padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.job:last-child { padding-bottom: 0; }
.job-heading { display: flex; justify-content: space-between; align-items: start; gap: .3rem 1rem; flex-wrap: wrap; }
.job h3, .project h3 { color: var(--pine); line-height: 1.13; font-size: clamp(1.45rem, 2.7vw, 2rem); letter-spacing: -.025em; }
.role { margin-top: .15rem; font-weight: 740; }
.date { color: #344b41; font-weight: 600; font-size: .95rem; }
.job > p { max-width: 88ch; margin-top: .35rem; }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project { padding: clamp(1.15rem, 3vw, 1.85rem); border: 1px solid transparent; border-radius: .7rem; }
.project-bike { background: var(--peach); }
.project-plugin { border-color: var(--rule); }
.project h3 { overflow-wrap: anywhere; }
.tag { display: inline-block; margin-block: .65rem; padding: .1rem .65rem; border-radius: 1rem; font-size: .875rem; font-weight: 650; background: var(--sage); }
.project-bike .tag { background: var(--paper); }
.project-tech { margin-top: .65rem; font-weight: 650; }
.project-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-link {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: .75rem;
  border: 1px solid currentColor;
  border-radius: .55rem;
}
.project-link:hover { background: var(--sage); }

.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 1rem; border-top: 1px solid var(--rule); gap: 1rem; }
.skills > div + div { padding-left: 1rem; border-left: 1px solid var(--rule); }
.skills h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.skills p { margin-top: .25rem; }
footer { background: var(--sage); }
.footer-inner { justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.footer-inner h2 { font-size: 1.45rem; color: var(--pine); }
.footer-links { gap: .5rem 1.35rem; }

@media (max-width: 40rem) {
  .shell { width: min(100% - 2rem, 68rem); }
  .header-links { width: 100%; justify-content: space-between; }
  .intro {
    grid-template-columns: minmax(0, 1fr) clamp(3.75rem, 19vw, 5.5rem);
    gap: 0 .875rem;
  }
  .intro-copy { display: contents; }
  .intro h1 { grid-area: 1 / 1; font-size: clamp(1.8rem, 9.4vw, 2.55rem); }
  .intro .portrait { grid-area: 1 / 2; }
  .intro .specialty, .intro .bio, .intro .actions { grid-column: 1 / -1; }
  .projects, .skills { grid-template-columns: 1fr; }
  .skills > div + div { padding: 0; border: 0; }
}
