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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-family: "Crimson Pro", "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 2.2em 0 0.6em;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

h4 {
  font-size: 1rem;
}

p, ul, ol {
  margin: 0 0 1.25em;
}

a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

a:hover {
  color: #8a2be2;
  text-decoration-color: currentColor;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

figure {
  margin: 2rem 0;
}

figcaption {
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-top: 0.6rem;
  line-height: 1.5;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid #e2e2e2;
  color: #6b6b6b;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
}

hr {
  border: 0;
  border-top: 1px solid #e2e2e2;
  margin: 3rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e2e2;
}

th {
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Small-screen typography */
@media (max-width: 30em) {
  body {
    font-size: 16px;
  }
}
/* Site container */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-container {
  margin-bottom: 5rem;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 2rem 0 0;
  margin-bottom: 4.5rem;
}

.header-title {
  font-family: "Crimson Pro", "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-title:hover {
  color: #000;
}

.header-title {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  display: block;
  height: 3.75rem;
  width: auto;
}

.menu-content {
  display: flex;
  gap: 1.5rem;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.menu-content a {
  color: #6b6b6b;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.menu-content a:hover,
.menu-content a.active {
  color: #000;
  text-decoration-color: currentColor;
}

/* Footer */
.footer {
  border-top: 1px solid #e2e2e2;
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  color: #6b6b6b;
}

.footer--plain {
  border-top: none;
}

.footer .social-icons a {
  color: #6b6b6b;
  text-decoration: none;
  margin-right: 0.9rem;
  font-size: 0.95rem;
}

.footer .social-icons a:hover {
  color: #000;
}

@media (max-width: 30em) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }
  .header-logo {
    height: 3.25rem;
  }
  .menu-content {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}
/* Post */
.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-family: "Crimson Pro", "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
}

.post-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 2.5rem;
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
}

.post-meta dt {
  color: #6b6b6b;
}

.post-meta dd {
  margin: 0;
  color: #1a1a1a;
}

.post-meta a {
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

/* Hero image breaks out of the text column, like the lead image on pi.website */
.hero {
  width: 880px;
  margin: 0 0 3rem calc(50% - 880px / 2);
}

.hero img {
  width: 100%;
  border-radius: 10px;
}

@media (max-width: 960px) {
  .hero {
    width: 100%;
    margin-left: 0;
  }
}
.post-content > h2:first-child {
  margin-top: 0;
}

.post-content .full-width {
  width: 880px;
  margin-left: calc(50% - 880px / 2);
}

@media (max-width: 960px) {
  .post-content .full-width {
    width: 100%;
    margin-left: 0;
  }
}
/* Video / image grids: wrap <figure>s in <div class="grid grid-3"> */
.grid {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}

.grid figure {
  margin: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid video, .grid img {
  width: 100%;
  aspect-ratio: 832/480;
  object-fit: cover;
}

@media (max-width: 30em) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-title {
    font-size: 2.1rem;
  }
  .post-meta {
    gap: 0.3rem 1.25rem;
  }
}
/* Related */
.related {
  margin-top: 4rem;
}

.related h2 {
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.related-posts {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.4rem;
}

.related-posts a {
  text-decoration: none;
  font-family: "Crimson Pro", "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.related-posts a:hover {
  text-decoration: underline;
}

/* Small note under a table */
.table-note {
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  color: #6b6b6b;
  margin-top: -0.75rem;
}

.post-content table td:first-child {
  white-space: nowrap;
}

/* Wide tables scroll horizontally on small screens instead of widening the page */
@media (max-width: 40em) {
  .post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* Input | interactive 4D viewer | output row */
.viz-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 2rem 0 2.5rem;
}

.viz-row figure {
  margin: 0;
}

.viz-row video {
  width: 100%;
}

.viz-row iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 6px;
  background: #f3f3f3;
}

@media (max-width: 960px) {
  .viz-row {
    grid-template-columns: 1fr 1fr;
  }
  .viz-row figure:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 1;
  }
}
@media (max-width: 30em) {
  .viz-row {
    grid-template-columns: 1fr;
  }
  .viz-row figure:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
}
/* Post list on the home page */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-card {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e2e2;
  text-decoration: none;
  color: #1a1a1a;
}

.post-card:last-child {
  border-bottom: 1px solid #e2e2e2;
}

.post-card-date {
  grid-row: span 2;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  color: #6b6b6b;
  padding-top: 0.45rem;
}

.post-card-title {
  font-family: "Crimson Pro", "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #000;
  letter-spacing: -0.01em;
}

.post-card:hover .post-card-title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.post-card-desc {
  color: #6b6b6b;
  font-size: 1rem;
}

@media (max-width: 30em) {
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-card-date {
    grid-row: auto;
    padding-top: 0;
  }
  .post-card-title {
    font-size: 1.35rem;
  }
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  font-family: "Source Sans 3", "Source Sans Pro", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
}

.pagination a {
  color: #6b6b6b;
  text-decoration: none;
}

.pagination a:hover {
  color: #000;
}

/* Code */
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
}

code {
  background: #f3f3f3;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

pre {
  background: #f3f3f3;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Social icons (footer) */
.social-icons a i {
  transition: color 0.3s;
}

/*# sourceMappingURL=main.css.map */