::selection {
  color: #fff;
  background: #8b94a3;
}

html {
  font-size: 4px;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial,
    sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 4.5rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: #fff;
  background-size: 200% 200%;
  color: #8b94a3;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

* {
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.5;
}

.content {
  max-width: 60ch;
  margin: 4rem auto;
  padding: 0 4rem 36rem;
}

.content.home {
  margin-top: 12rem;
}

h1, h2, h3, h4 {
  color: #5c636e;
  font-weight: 700;
}

h1 {
  margin-top: 0;
  text-align: center;
}

h2 {
  margin-top: 0rem;
  font-size: 9rem;
}

h3 {
  margin-top: 8rem;
}

img {
  max-width: 100%;
  display: block;
}

.center-img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.inverse {
  color: #fff;
}

p {
  margin: 0 0 4rem;
}

.caption,
.caption a {
  font-size: 3.5rem;
  font-style: italic;
  margin-bottom: 12rem;
}

a:link,
a:visited,
a:hover,
a:active {
  border-bottom: none;
  transition: color 160ms ease-in;
  text-decoration: none;
  color: #5c636e;
}

a:hover {
  color: #3b598e;
}

.portrait {
  width: 60rem;
  margin-bottom: 8rem;
  display: block;
  background-color: #d8e2f2;
}

.hero-img {
  display: block;
  /* width: 100%; */
  width: calc(100vw - 8rem);
  max-width: 2560px;
  margin: 0 auto;
}

.hero-caption {
  margin: 0 auto 36rem;
  width: calc(100vw - 8rem);
  max-width: 2560px;
  /* padding: 0 4rem; */
}

/* ===== Case study sticky header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem 4rem;
  border-bottom: 1px solid rgba(139, 148, 163, 0.2);
}

.header.home {
  display: none;
}

.header h1 {
  margin: 0;
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: 1px solid #8b94a3;
  color: #5c636e;
  padding: 1rem 2rem;
  border-radius: 3px;
  line-height: 1;
  transition: background 160ms;
}

a.home-btn:hover {
  background: #f0f2f5;
  color: #5c636e;
}