@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --text: #262626;
  --muted: #737373;
  --bg: #ffffff;
  --page: #fafafa;
  --card: #f5f5f5;
  --line: #e5e5e5;
  --serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
  color: var(--text);
  font: 16px/1.5 'Inter', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background: var(--page);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  overflow-x: clip;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin: 0;
}

.docs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.nav-shell {
  width: 100%;
  padding: 1rem 1rem 0;
}

.nav-wrap {
  border: 1px solid transparent;
  border-radius: 1rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.top-links {
  margin-left: auto;
  flex-wrap: nowrap;
  gap: 0.9rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.topbar .logo-link {
  justify-content: flex-start;
}

.logo-wordmark {
  width: min(8.75rem, 100%);
  height: auto;
  display: block;
  object-fit: contain;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  object-fit: contain;
}

.underlined-link,
.ghost-button,
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.underlined-link:hover,
.ghost-button:hover,
.footer-links a:hover,
.entry-link:hover .entry-title {
  text-decoration: none;
}

.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  white-space: nowrap;
}

.content-shell {
  padding: 2rem 1rem 3rem;
}

.content-wrap {
  padding-top: 1.5rem;
}

.blog-block,
.doc-block {
  padding: 2rem 0;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

h1,
h2 {
  font-family: var(--serif);
  color: var(--text);
}

h1 {
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.lede,
.entry-summary,
.doc-copy {
  color: var(--muted);
}

.lede {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.entry-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.entry-top {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
}

.entry-title {
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.entry-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.entry-date {
  color: var(--muted);
  text-align: right;
}

.entry-summary,
.doc-copy p,
.doc-copy li {
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-block {
  max-width: 34rem;
}

.doc-copy p + p {
  margin-top: 0.9rem;
}

.doc-copy h2 {
  margin-top: 1.5rem;
}

.doc-copy a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.doc-copy a:hover {
  text-decoration: none;
}

.doc-copy blockquote {
  margin: 1.1rem 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--card);
  color: var(--text);
}

.doc-copy blockquote p {
  margin: 0;
}

.doc-copy ol,
.doc-copy ul {
  margin: 1rem 0;
  padding-left: 1.3rem;
}

.doc-copy li + li {
  margin-top: 0.6rem;
}

.doc-copy pre {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #f8f8f8;
  color: var(--text);
  font: 0.88rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
}

.doc-copy code {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
}

.footer {
  margin-top: auto;
  padding: 1rem;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #525252;
  font-size: 0.75rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.footer-links {
  gap: 0.5rem;
}

.footer-meta {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 640px) {
  .nav-shell,
  .content-shell,
  .footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .nav-shell {
    padding-top: 0.9rem;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 0.5rem 0.75rem;
  }

  .top-links {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .content-shell {
    padding-top: 1.35rem;
    padding-bottom: 2.5rem;
  }

  .content-wrap {
    padding-top: 0.5rem;
  }

  .blog-block,
  .doc-block {
    padding: 1.45rem 0;
  }

  h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .entry-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .entry-rule {
    display: none;
  }

  .entry-date {
    text-align: left;
  }

  .footer {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 0.45rem 0.9rem;
    justify-content: flex-start;
  }

  .footer-meta {
    margin-left: 0;
    text-align: left;
  }
}
