@font-face {
  font-family: 'Centra';
  src: url('../fonts/CentraNo2-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Centra';
  src: url('../fonts/CentraNo2-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Centra';
  src: url('../fonts/CentraNo2-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --rule: #e6e6e6;
  --accent: #1e4d3a;
  --font: 'Centra', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Home: photo on the left, content on the right. */

.split {
  display: grid;
  grid-template-columns: 42vw 1fr;
  min-height: 100vh;
}

.split-photo {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
}

.content {
  padding: 48px 64px 80px;
  max-width: 760px;
}

/* Inner pages: one column. */

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* Top navigation */

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 120px;
}

.topnav a {
  color: var(--ink);
  border: 0;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--accent);
}

.topnav .home {
  margin-right: auto;
  font-weight: 700;
}

.page .topnav {
  margin-bottom: 72px;
}

/* Type */

h1 {
  font-weight: 700;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.page h1 {
  font-size: 48px;
}

.lede {
  font-size: 22px;
  line-height: 1.45;
  max-width: 30em;
  margin-bottom: 16px;
}

.lede + p,
.intro {
  color: var(--muted);
  max-width: 34em;
}

h2 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 72px 0 12px;
}

/* Dated lists */

.list {
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.list .when {
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.list .note {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.more {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
}

/* Research entries with images */

.entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.entry img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.entry img.logo {
  object-fit: contain;
  padding: 16px;
}

.entry .when {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.entry h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
}

.entry h3 a {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.entry h3 a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.entry p {
  color: var(--muted);
}

.entry .links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 15px;
}

/* Seenly write-up */

.prose p {
  max-width: 36em;
  margin-bottom: 16px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 8px 0 24px;
  background: #000;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */

.footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.footer .place {
  margin-left: auto;
  color: var(--muted);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-photo {
    position: relative;
    height: 56vh;
  }

  .content,
  .page {
    padding: 28px 16px 60px;
  }

  .topnav,
  .page .topnav {
    margin-bottom: 48px;
  }

  .topnav .home {
    width: 100%;
  }

  h1 {
    font-size: 46px;
  }

  .page h1 {
    font-size: 38px;
  }

  .lede {
    font-size: 20px;
  }

  .list li {
    grid-template-columns: 84px 1fr;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer .place {
    margin-left: 0;
    width: 100%;
  }
}

.list.plain li {
  grid-template-columns: 1fr;
}

.entry.text {
  grid-template-columns: 1fr;
}

.prose p:not(.lede) {
  color: var(--muted);
}
