:root {
  --graphite: #272928;
  --white: #faf9f3;
  --mint: #aed8cb;
  --paper: #f4f3ed;
  --ink: #252a27;
  --soft-ink: #424944;
  --green: #285d51;
  --rule: #c4cbc2;
  --sans: "Rubik", system-ui, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --edge: clamp(1.1rem, 5.2vw, 4rem);
  --column-gap: clamp(2rem, 4.4vw, 4rem);
  color-scheme: dark;
  font: 100%/1.5 var(--sans);
  background: var(--graphite);
  color: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, address { margin: 0; }
a { color: inherit; text-underline-offset: .19em; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.paper a:focus-visible { outline-color: var(--green); }
.wrap { width: min(64rem, calc(100% - 2 * var(--edge))); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .6rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.masthead, .actions, .languages, .discuss, .save {
  display: flex;
  align-items: center;
}
.masthead {
  justify-content: space-between;
  min-height: clamp(4.25rem, 7vw, 6.2rem);
  gap: 1rem;
}
.wordmark {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 650;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.wordmark span { color: var(--mint); }
.actions { gap: clamp(.55rem, 2vw, 1.65rem); }
.languages { gap: .1rem; }
.languages a, .languages span {
  display: grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2.75rem;
  font-size: .88rem;
}
.languages a { color: #d5d8d4; text-decoration: none; }
.languages a:hover { color: var(--white); text-decoration: underline; }
.languages [aria-current] { color: var(--mint); font-weight: 650; }
.discuss {
  min-height: 2.75rem;
  gap: .4rem;
  color: var(--mint);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.discuss .short-label { display: none; }
.discuss .full-label, .discuss .short-label { text-decoration: underline; }
.discuss:hover { color: var(--white); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 6.8vw, 6.4rem);
  padding-block: clamp(2.1rem, 4.1vw, 4rem) clamp(3.6rem, 7vw, 6.4rem);
}
.portrait {
  display: block;
  width: 100%;
  max-width: 27rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #59625a;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
h1 {
  font-size: clamp(2.65rem, 5.3vw, 4.65rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
h1 > span { display: block; }
.period { color: var(--mint); font-weight: inherit; }
.introduction p {
  max-width: 38ch;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  color: #e7e8df;
  font: 400 clamp(1.09rem, 1.55vw, 1.3rem)/1.48 var(--serif);
}
.introduction p + p { margin-top: .8rem; }
.introduction .role {
  max-width: 36ch;
  color: var(--mint);
  font: 500 clamp(1.05rem, 1.45vw, 1.24rem)/1.4 var(--sans);
  text-wrap: pretty;
}

.paper {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}
.projects, .approach, .contacts {
  display: grid;
  grid-template-columns: clamp(13.5rem, 23vw, 21rem) minmax(0, 1fr);
  column-gap: var(--column-gap);
}
.projects {
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.2rem, 4vw, 3.6rem);
  border-bottom: 1px solid var(--rule);
}
h2 {
  font-size: clamp(1.55rem, 2.65vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.06;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.7rem, 3.3vw, 3rem);
}
h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.43rem);
  font-weight: 600;
  letter-spacing: -.036em;
  line-height: 1.2;
}
h3 a {
  color: var(--green);
  text-decoration-color: #80a59a;
  text-decoration-thickness: 1px;
}
h3 a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.project-list p, .approach p { font-family: var(--serif); color: var(--soft-ink); }
.project-list p { margin-top: .75rem; font-size: 1.03rem; line-height: 1.56; }
.approach {
  align-items: start;
  padding-top: clamp(2.25rem, 4.1vw, 3.7rem);
}
.approach p {
  max-width: 55ch;
  margin-top: .4rem;
  font-size: clamp(1.08rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}
.approach p + h3 { margin-top: 1.25rem; }
.contacts { padding-block: 1.4rem clamp(2.7rem, 5vw, 4.8rem); }
.direct-contact {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .58rem;
  font-style: normal;
}
.direct-contact:focus-visible { outline: 2px solid var(--green); outline-offset: .3rem; }
.direct-contact a:not(.save) {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  color: var(--ink);
  border: 1px solid #87938b;
  border-radius: 50%;
}
.direct-contact a:not(.save) svg { width: 1.32rem; height: 1.32rem; }
.direct-contact a:not(.save):hover { background: #dbe7df; border-color: var(--green); }
.direct-contact a.email { color: var(--white); background: var(--green); border-color: var(--green); }
.direct-contact a.email:hover { background: #1d4b40; }
.save {
  min-height: 2.75rem;
  gap: .4rem;
  padding-inline: .3rem;
  color: var(--green);
  font-size: .9rem;
  white-space: nowrap;
  text-decoration-color: var(--rule);
}
.save:hover { text-decoration-color: currentColor; }

@media (max-width: 64rem) {
  .projects { grid-template-columns: minmax(0, 1fr); row-gap: 1.35rem; }
}

@media (max-width: 51rem) {
  .hero { gap: clamp(1.75rem, 4.2vw, 2.5rem); }
  .project-list { column-gap: 1.5rem; }
}

@media (max-width: 40rem) {
  .masthead { min-height: 4.25rem; gap: .45rem; }
  .hero {
    width: min(27rem, calc(100% - 2 * var(--edge)));
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 1rem 2.7rem;
  }
  .portrait { width: clamp(10.4rem, 54vw, 15rem); justify-self: center; }
  .portrait img { object-position: 50% 26%; }
  h1 { font-size: clamp(2.2rem, 9.7vw, 3.7rem); line-height: .99; }
  h1 > span:first-child, h1 > span:nth-child(2) { display: inline; }
  .introduction p { margin-top: 1.05rem; font-size: 1.1rem; }
  .paper .wrap { max-width: 27rem; }
  .projects, .approach, .contacts { grid-template-columns: minmax(0, 1fr); }
  .projects, .approach { row-gap: 1.35rem; }
  .project-list { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .project-list p { margin-top: .42rem; }
  .direct-contact { grid-column: 1; }
}

@media (max-width: 27rem) {
  .actions { gap: .45rem; }
  .languages a, .languages span { min-width: 2rem; }
  .discuss .full-label, .discuss [aria-hidden] { display: none; }
  .discuss .short-label { display: inline; }
}

@media print {
  :root, .paper { background: white; color: black; }
  .wrap, .hero { width: 100%; }
  .masthead { min-height: 2rem; }
  .actions, .skip, .contacts { display: none; }
  .hero { grid-template-columns: 28% 1fr; padding-block: 1rem; }
  .portrait { width: 100%; }
  .introduction p, .introduction .role, .project-list p, .approach p, .period, .wordmark span, h3 a { color: black; }
  .projects, .approach { break-inside: avoid; }
}
