/* Measurements match the Super.so (Notion) page this site replaced. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-700.woff2") format("woff2");
}

:root {
  --text: #37352f;
  --gray: #787673;
  --line: #e9e9e7;
  --callout: #f9f9f9;
  --underline: #7d7c78;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, Helvetica, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

.page a {
  text-decoration-line: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  opacity: .7;
  transition: opacity 100ms ease-in;
}

.page a:hover {
  opacity: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px;
  background: #fff;
}

.nav__title {
  overflow: hidden;
  padding: 0 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Flex so block margins add up instead of collapsing, as Notion's blocks do. */
.page {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  padding: 106px 96px 30vh;
}

.photo {
  display: block;
  align-self: flex-start;
  width: 125px;
  height: 125px;
  margin-left: 3px;
  border-radius: 3px;
  object-fit: cover;
}

h1 {
  margin: 51px 0 24px;
  padding: 2px;
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
}

h2 {
  margin: 16px 0 0;
  padding: 3px 2px;
  font-size: 24px;
  font-weight: 600;
  line-height: 31.2px;
}

h3 {
  margin: 2px 0 0;
  padding: 3px 2px;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

/* Notion text blocks are 32px tall with the text sitting 4px down. */
.text {
  margin: 0;
  padding: 4px 2px;
  line-height: 24px;
}

.gray {
  color: var(--gray);
}

/* Notion's empty paragraphs: they carry the vertical rhythm between sections. */
.spacer {
  height: 32px;
}

.divider {
  height: 0;
  margin: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.cols {
  display: flex;
  gap: 46px;
}

/* --r is the Notion column ratio. */
.col {
  display: flex;
  flex-direction: column;
  flex: var(--r, 1) 1 0;
  min-width: 0;
  padding: 12px 0;
}

.quote {
  margin: 8px 0;
  padding: 1.6px 14.4px;
  border-left: 3px solid currentColor;
  font-size: 19.2px;
  line-height: 24px;
}

.quote p {
  margin: 0;
}

.quote p + p {
  margin-top: 24px;
}

.callout {
  display: flex;
  margin: 2px 0 4px;
  padding: 16px 16px 16px 11.2px;
  border: 1px solid var(--callout);
  border-radius: 3px;
  background: var(--callout);
  line-height: 24px;
}

.callout__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24.5px;
  height: 24px;
  font-size: 20px;
  line-height: 1;
}

.callout__icon img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: contain;
}

.callout__body {
  min-width: 0;
  margin-left: 8px;
  overflow-wrap: anywhere;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
  object-fit: contain;
}

@media (max-width: 680px) {
  .cols {
    flex-direction: column;
    gap: 0;
  }

  /* Notion stretched these logos to the full screen width; keep them beside the text. */
  .cols--role {
    flex-direction: row;
    gap: 20px;
  }

  .cols--role .col:first-child {
    flex: 0 0 64px;
  }
}

@media (max-width: 546px) {
  .nav__title {
    padding: 0 8px;
  }

  .page {
    padding: 56px 24px 180px;
  }
}
