@font-face {
  font-family: "Proxima Nova";
  src: url("https://assets.mfridman.com/fonts/v1/Proxima_Nova_Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("https://assets.mfridman.com/fonts/v1/ProximaSansRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("https://assets.mfridman.com/fonts/v1/ProximaNova-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("https://assets.mfridman.com/fonts/v1/ProximaNova-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Freight Sans Pro";
  src: url("https://assets.mfridman.com/fonts/v1/FreightSansProBook-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("https://assets.mfridman.com/fonts/v1/BerkeleyMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("https://assets.mfridman.com/fonts/v1/BerkeleyMono-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("https://assets.mfridman.com/fonts/v1/BerkeleyMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("https://assets.mfridman.com/fonts/v1/BerkeleyMono-Bold-Oblique.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Freight Sans Pro";
  src: url("https://assets.mfridman.com/fonts/v1/FreightSansProMedium-Regular.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
  color: #333437;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  font-size: 20px;
  font-synthesis: none;
  line-height: 1.6;
  margin: 0;
}

main {
  margin: 0 auto;
  padding: 2rem 0 4rem;
  width: min(100% - 3rem, 640px);
}

.masthead {
  align-items: center;
  border-bottom: 1px solid #e7e7e7;
  box-sizing: border-box;
  display: flex;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  height: 3rem;
  padding: 0 max(1.5rem, calc((100% - 640px) / 2));
}

.masthead a {
  color: #333437;
  margin: 0;
}

.masthead nav {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.masthead nav a {
  color: #85888c;
  font-size: 0.82rem;
  font-weight: 400;
}
.article-page {
  padding-top: 3rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #777b80;
  margin-right: 0.8rem;
  text-decoration: none;
}

a:hover {
  color: #252629;
  text-decoration: underline;
}

.home-page {
  padding-top: 7rem;
}

.home-intro {
  text-align: center;
}

.site-title {
  color: #252629;
  font-family: "Freight Sans Pro", "Helvetica Neue", sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0 0 0.45rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 0.45rem;
  justify-content: center;
  margin: 0;
}

.social a,
.continue-reading {
  border: 1px solid #e7e8e9;
  border-radius: 999px;
  color: #96999d;
  margin: 0;
  padding: 0.16rem 0.68rem;
}

.social a:hover,
.continue-reading:hover {
  border-color: #cfd1d3;
  color: #55585c;
  text-decoration: none;
}

.articles {
  margin-top: 6.5rem;
}

.articles ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-preview {
  margin: 0;
  padding: 0 0 2rem;
}

.article-preview + .article-preview {
  border-top: 1px solid #f0f0f0;
  padding-top: 2rem;
}

time {
  color: #93969a;
  display: block;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  font-size: 0.78rem;
}

.article-link {
  color: #252629;
  display: block;
  font-family: "Freight Sans Pro", "Helvetica Neue", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.7rem;
}

.article-description {
  color: #65686d;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 1.15rem;
}

.continue-reading {
  font-size: 0.72rem;
}

.empty {
  color: #93969a;
}

.article-title {
  font-family: "Freight Sans Pro", "Helvetica Neue", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.5rem 0 0;
}

.about-content .article-title {
  margin-top: 0;
}

.reading-book,
.reading-meta {
  display: block;
}

.reading-title {
  color: #333437;
  font-weight: 600;
}

.reading-meta {
  color: #65686d;
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  margin-top: 0.2rem;
}

.article-body {
  color: #4f5156;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.article-body strong {
  color: #333437;
  font-weight: 600;
}
.article-body em {
  font-synthesis: style;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: #333437;
  font-family: "Freight Sans Pro", "Helvetica Neue", sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-transform: none;
}

.article-body h1 {
  font-size: 2.4rem;
  margin: 2.5rem 0 0.8rem;
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 1.75rem 0 0.8rem;
}

.article-body h3 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.7rem;
}

.article-body h4 {
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
}

.article-body h5 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.6rem;
}

.article-body h6 {
  font-size: 0.95rem;
  margin: 1.75rem 0 0.55rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}
.article-body li {
  margin: 0.3rem 0;
}

.article-body blockquote {
  border-left: 2px solid #c9cbce;
  color: #65686d;
  margin: 2.25rem 0;
  padding-left: 1.25rem;
}

.article-body blockquote p {
  margin: 0.35rem 0;
}

.article-body hr {
  border: 0;
  border-top: 1px solid #dfe0e2;
  margin: 2rem 0;
}

.article-body table {
  border-collapse: collapse;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  font-size: 0.95rem;
  margin: 2rem 0;
  width: 100%;
}

.article-body th,
.article-body td {
  border-bottom: 1px solid #dfe0e2;
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  font-weight: 600;
}
.article-body a {
  border-bottom: 1px solid #aeb0b3;
  color: inherit;
  margin: 0;
  padding-bottom: 0.02em;
  text-decoration: none;
}

.article-body a:hover {
  border-color: #5b5e62;
  color: #333437;
}

.article-body img {
  display: block;
  height: auto;
  margin: 2rem 0;
  max-width: 100%;
}

.article-body pre {
  background: #f5f5f5;
  font-size: 0.9rem;
  overflow-x: auto;
  padding: 1rem;
}

.article-body code {
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-body :not(pre) > code {
  background: #f3f3f3;
  border-radius: 2px;
  color: #4d4f53;
  font-size: 0.85em;
  font-weight: 400;
  padding: 0.04em 0.18em;
}

.article-body pre code {
  font-size: 1em;
}

.article-body aside {
  background: #f5f5f5;
  color: #65686d;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  font-size: 0.95rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
}

@media (max-width: 500px) {
  body {
    font-size: 18px;
  }
  main {
    padding-top: 3rem;
  }
}
