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

/* Typography */
html {
  font-size: 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  color: #1d1d1f
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  margin: 2.25rem 0 0.765rem;
  font-weight: 600;
  letter-spacing: -0.022em
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 1.67rem;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 1.125rem 0;
}

a {
  color: #2C7BE5;
  text-decoration: none;
}

a:hover {
  color: #0051a8;
}

body,
input,
button {
  font-family: 'CerebriSans', -apple-system, system-ui, -apple-system, Roboto, Ubuntu, Noto Sans, 'helvetica neue', sans-serif;
}

/* Layout */
.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header img {
  max-height: 50px;
  display: block
}

nav[role="navigation"] ul {
  list-style: none;
}

nav[role="navigation"] ul li {
  display: inline-block;
  margin-left: 1.575rem;
}

nav[role="navigation"] a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold
}

footer[role="contentinfo"] {
  text-align: center;
  color: #86868b;
  font-size: 1rem;
}

.container {
  max-width: 1040px;
  padding: 40px;
  margin: 0 auto;
}

.bg-brand-blue {
  background-color: #2C7BE5;
  color: #fff;
}

.bg-brand-navy {
  background-color: #152E4D;
}

.bg-brand-gray {
  background-color: #F9FBFD;
}

nav a.sign-in {
  background: white;
  color: #152E4D;
  border-radius: 25px;
  padding: 10px 35px;
}

.hero {
  max-width: 720px;
  padding: 50px;
  border: solid 3px white;
  border-radius: 33px;
  margin: 50px auto;
  font-weight: bold;
  font-size: 1.67rem;
  line-height: 1.4;
}

.hero-text {
  margin-bottom: 1rem;
}

.waitlist-email+div {
  position: absolute
}

/** fix for layout breaking with recaptcha **/

.coming-soon p {
  max-width: 67%;
  margin: 0 auto
}

/* Posts */
.post-list {
  list-style: none;
  margin-top: 2.7rem;
}

.post-list>li {
  margin-bottom: 2.7rem;
}

.post-list>li+li {
  padding-top: 2.7rem;
  border-top: 1px solid #f5f5f7;
}

.post-list h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.post-list time {
  color: #86868b;
  font-size: 0.875rem;
}

.post-meta {
  color: #86868b;
  font-size: 0.875rem;
  margin: 1.575rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-meta time[title] {
  cursor: help;
  border-bottom: 1px dotted #86868b;
}

.meta-sep {
  color: #d2d2d7;
}

.post-taxonomy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f5f5f7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tags,
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.taxonomy-label {
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.8125rem;
}

.tags a {
  background: #f5f5f7;
  color: #6e6e73;
  padding: 0.27rem 0.585rem;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.tags a:hover {
  background: #e8e8ea;
}

.categories a {
  color: #6e6e73;
  font-size: 0.8125rem;
}

.categories a:hover {
  color: #2C7BE5;
}

.tag-heading {
  margin: 0;
  background: #f5f5f7;
  color: #6e6e73;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 1.1rem;
  display: inline-block;
}

/* Article */
.article-content {
  font-size: 1.16rem;
  line-height: 1.7;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.67rem 0;
}

.article-content pre {
  background: #f5f5f7;
  padding: 0.75rem;
  overflow-x: auto;
  border-radius: 12px;
  margin: 1.575rem 0;
  max-width: 100%;
  border: 1px solid #d0d7de;
}

.article-content code {
  background: #f5f5f7;
  padding: 0.18rem 0.405rem;
  border-radius: 5px;
  font-family: Monaco, Consolas, monospace;
  font-size: 0.9em
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content blockquote {
  border-left: 3px solid #d2d2d7;
  padding-left: 1.125rem;
  margin: 1.575rem 0;
  color: #6e6e73;
  font-style: italic;
}

.article-content ul,
.article-content ol {
  margin: 1.125rem 0;
  padding-left: 1.125rem;
}

article {
  margin-top: 2.7rem
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.575rem 0;
  font-size: 0.9375rem;
}

.article-content thead {
  border-bottom: 1px solid #d2d2d7;
}

.article-content th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #1d1d1f;
  background: #fbfbfd;
}

.article-content th:first-child {
  border-radius: 8px 0 0 0;
}

.article-content th:last-child {
  border-radius: 0 8px 0 0;
}

.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f5f5f7;
  color: #1d1d1f;
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content tbody tr:hover {
  background: #fbfbfd;
}

/* Utilities */
.breadcrumbs ol {
  display: flex;
  list-style: none;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: #6e6e73;
  margin-bottom: 1.25rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: #d2d2d7;
}

.table-of-contents {
  background: #fbfbfd;
  padding: 1.575rem;
  margin: 2.25rem 0;
  border-radius: 12px;
  border: 1px solid #f5f5f7;
}

.table-of-contents ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.table-of-contents ul ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.table-of-contents li {
  margin: 0.5rem 0;
}

.table-of-contents a {
  color: #1d1d1f;
}

.table-of-contents a:hover {
  color: #06c;
}

.pagination ul {
  display: flex;
  list-style: none;
  gap: 0.585rem;
  justify-content: center;
  margin: 3.15rem 0;
}

.pagination a,
.pagination-current span {
  padding: 0.495rem 0.9rem;
  border: 1px solid #e8e8ea;
  border-radius: 8px;
}

.pagination a {
  color: #6e6e73;
}

.pagination a:hover {
  border-color: #d2d2d7;
  background: #f5f5f7;
  color: #1d1d1f;
}

.pagination-current span {
  background: #f5f5f7;
  color: #1d1d1f;
  border-color: #d2d2d7;
  font-weight: 500;
}

.button {
  background: #2C7BE5;
  color: #fff;
  padding: 0.675rem 1.35rem;
  border-radius: 10px;
}

.button:hover {
  background: #0051a8;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .waitlist-email {
    display: block;
    max-width: 100%
  }

  .coming-soon p {
    max-width: 100%;
    margin: 0
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-footer {
    justify-content: center;
  }

  h2 {
    font-size: 1.38rem;
  }

  h3 {
    font-size: 1.06rem;
  }

  h2,
  h3 {
    line-height: 1.16;
    margin: 1.6rem 0 0.38rem;
  }

  .hero {
    font-size: 1.38rem;
    line-height: 1.16;
    padding: 35px;
    margin: 35px auto;
  }

  nav[role="navigation"] {
    width: 100%;
  }

  nav[role="navigation"] ul {
    align-items: center;
    justify-content: space-between;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.5;
  }

  .article-content p {
    margin: 0.6rem 0;
  }

  .article-content img {
    margin: 0.6rem 0;
  }

  /* Reduce tag padding on mobile */
  .tags a {
    min-height: 0
  }

  /* Fix breadcrumb last item vertical alignment */
  .breadcrumbs li {
    display: flex;
    align-items: center;
  }

  /* Increase tags/categories font size on mobile */
  .tags a,
  .categories a {
    font-size: 0.875rem;
  }
}
