@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui_medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: rgb(20 30 50);
  --muted: rgb(20 30 50 / 56%);
  --paper: rgb(255 255 255);
  --link: rgb(55 135 70);
  --hover: rgb(153 107 48);
  --page-width: min(88vw, 1500px);
  --column-gap: clamp(1.5rem, 3vw, 3rem);
  --section-space: clamp(2.625rem, 5.25vw, 5.5rem);
  --item-space: clamp(2.625rem, 4.8vw, 4.8rem);
  --study-space: clamp(1.75rem, 3.2vw, 3.2rem);
  --body-size: clamp(1.0625rem, 0.55rem + 1.05vw, 1.6875rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PT Root UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.28;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: rgb(55 135 70 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition:
    color 0.45s ease,
    text-decoration-color 0.45s ease;
}

a:hover,
a:focus-visible {
  color: var(--hover);
  text-decoration-color: rgb(153 107 48 / 40%);
  transition-duration: 0s;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.15em;
}

p,
h1,
h2,
h3,
h4,
ul {
  margin: 0;
}

.resume {
  width: var(--page-width);
  margin: 0 auto;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 80fr) minmax(0, 19fr);
  column-gap: 1%;
}

.content {
  grid-column: 1;
  min-width: 0;
}

.rail {
  grid-column: 2;
  min-width: 0;
}

.rail-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: 0.8em;
  line-height: 1.25;
}

.intro {
  min-height: auto;
}

.intro .content,
.intro .rail {
  grid-row: 1;
  padding-top: clamp(3.5rem, 7.7vw, 7.7rem);
  padding-bottom: 0;
}

.intro .content {
  display: block;
}

.intro .rail {
  display: block;
}

.intro-rail {
  font-size: 1em;
}

.language-switch {
  position: absolute;
  top: 0.5em;
  right: 0.6em;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 0.61em;
  padding-inline: 0.61em;
  font-size: 0.8em;
  line-height: 1.25;
  text-transform: uppercase;
}

.language-switch a {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  transform: translateZ(0);
}

.language-switch a[aria-current="page"] {
  color: var(--ink);
  cursor: default;
}

.language-switch a[aria-current="page"]::before {
  position: absolute;
  inset: -0.05em -0.3em;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 0.25em;
  content: "";
}

.page-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.8em;
  line-height: 1.25;
}

.page-nav-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-nav-group + .page-nav-group {
  margin-top: 0.8em;
}

.page-nav-label {
  color: var(--ink);
}

.page-nav a {
  text-wrap: pretty;
}

.page-nav-behance {
  margin-top: 0.8em;
}

.intro-copy {
  max-width: 48ch;
}

h1 {
  margin-bottom: 0.6em;
  max-width: 46ch;
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.2;
  text-wrap: pretty;
}

.intro-copy p {
  max-width: 42ch;
  margin-left: 2em;
  margin-bottom: 0.52em;
  text-wrap: pretty;
}

.section-title .content,
.section-title .rail {
  padding-top: var(--section-space);
  padding-bottom: clamp(1rem, 2vw, 2.25rem);
}

h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  max-width: 14ch;
  font-size: 2.15em;
}

.entry-heading {
  position: relative;
}

.entry-heading .content {
  padding-bottom: 0.9em;
}

.entry-heading .job-rail {
  position: absolute;
  top: 0;
  left: 81%;
  right: 0;
  grid-column: auto;
  width: auto;
}

.job + .job .entry-heading {
  margin-top: var(--section-space);
}

.job-heading {
  display: block;
}

h3 {
  max-width: 20ch;
  font-size: 1.45em;
}

.job-meta {
  color: var(--ink);
  font-size: 0.8em;
  line-height: 1.25;
  text-align: left;
}

.job-meta span {
  display: block;
}

.job-rail .job-meta {
  margin-bottom: 0.45em;
}

.job-rail .rail-links {
  gap: 0.45em;
}

.mobile-job-links {
  display: none;
}

.body-row .content,
.body-row .rail {
  padding-bottom: 0;
}

.facts {
  display: grid;
  max-width: 55ch;
  padding: 0;
  list-style: none;
}

.facts li {
  position: relative;
  padding: 0 0 0.58em 2em;
  text-wrap: pretty;
}

.body-row .facts li {
  padding-bottom: 0.45em;
}

.case-row .content,
.case-row .rail {
  padding-top: calc(var(--item-space) / 2);
  padding-bottom: 0;
}

.case-meta {
  color: var(--ink);
  font-size: 0.8em;
  line-height: 1.25;
}

h4 {
  max-width: 45ch;
  margin-left: 2em;
  margin-bottom: 0.25em;
  font-size: 1em;
  letter-spacing: 0;
  line-height: 1.28;
}

.case-lead {
  max-width: 44ch;
  margin-left: 2em;
  margin-bottom: 0.72em;
  font-size: 1em;
  text-wrap: pretty;
}

.case-row .facts li {
  padding-left: 4em;
}

.case-row .facts li:last-child {
  padding-bottom: 0;
}

.result {
  max-width: 51ch;
  margin-left: 2em;
  margin-top: 0.72em;
  text-wrap: pretty;
}

.editorial-products {
  max-width: 46ch;
  margin-bottom: 0.75em;
}

.study-row .content,
.study-row .rail {
  padding-bottom: var(--study-space);
}

.study-row:last-child .content,
.study-row:last-child .rail {
  padding-bottom: 0;
}

.study {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
  gap: var(--column-gap);
  align-items: start;
}

.study h3 {
  max-width: 22ch;
  font-size: 1em;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.study-meta {
  margin-top: 0.5em;
  color: var(--muted);
  font-size: 0.8em;
  line-height: 1.25;
}

.study-description {
  max-width: 38ch;
  text-wrap: pretty;
}

.tools-row .content,
.tools-row .rail {
  padding-bottom: var(--section-space);
}

.tools {
  max-width: 26ch;
  font-size: 1.65em;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.footer .content,
.footer .rail {
  padding-top: clamp(1.3rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(1.8rem, 3vw, 3rem);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1em;
  font-size: 0.78em;
}

@media (max-width: 820px) {
  :root {
    --page-width: calc(100vw - 1.5rem);
    --body-size: clamp(1.0625rem, 0.8rem + 1.1vw, 1.25rem);
    --section-space: clamp(2.333rem, 8.75vw, 3.8rem);
  }

  .spread {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-column: 1;
  }

  .content {
    grid-column: 1;
  }

  .rail:empty {
    display: none;
  }

  .intro {
    min-height: auto;
  }

  .intro .rail {
    grid-row: 1;
    padding: 2.625rem 0 0;
  }

  .intro .content {
    grid-row: 2;
    padding-top: 2.2rem;
    padding-bottom: 0;
  }

  .intro-copy {
    max-width: none;
  }

  h1 {
    font-size: 1.5em;
  }

  .section-title .content {
    padding-top: var(--section-space);
    padding-bottom: 1.2rem;
  }

  h2 {
    font-size: 1.9em;
  }

  .entry-heading .content {
    padding-bottom: 0.8rem;
  }

  .entry-heading .job-rail {
    position: static;
    width: 80%;
    padding-bottom: 0.8rem;
  }

  .rail-links {
    width: 80%;
    margin: 2em 0 0.5em;
    font-size: 0.8em;
  }

  .job-rail .job-meta,
  .job-rail .rail-links {
    width: 100%;
  }

  .job-rail .rail-links {
    margin: 0;
  }

  .job-rail .job-meta {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .desktop-job-links {
    display: none;
  }

  .mobile-job-links {
    display: flex;
    gap: 0.45em;
  }

  .study {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .job-meta {
    width: 80%;
    text-align: left;
  }

  .job-meta span {
    display: block;
  }

  .body-row .content {
    padding-bottom: 0;
  }

  .body-row .rail {
    padding-top: 0;
    padding-bottom: 0;
  }

  .study-row .rail-links {
    margin-top: 0.7rem;
  }

  .study-row .content {
    padding-bottom: 0;
  }

  .case-row .content {
    padding-top: calc(var(--item-space) / 2);
    padding-bottom: 0;
  }

  .case-meta {
    display: none;
  }

  .tools {
    font-size: 1.45em;
  }

  .footer .content {
    padding-top: 1.2rem;
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}

@media print {
  :root {
    --page-width: 100%;
    --body-size: 10.5pt;
  }

  body {
    color: #000;
  }

  .intro {
    min-height: auto;
  }

  .intro .content,
  .intro .rail {
    padding-top: 0;
    padding-bottom: 2.5rem;
  }

  .section-title .content,
  .section-title .rail {
    padding-top: 3rem;
  }

  .job,
  .study-row,
  .case-row {
    break-inside: avoid;
  }
}
