:root {
  color-scheme: light;
  --site-ink: #24342e;
  --site-muted: #65716a;
  --site-paper: #f7f6f1;
  --site-line: #e3e3db;
  --site-green: #245d4e;
  --site-pale: #edf3ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-document {
  margin: 0;
  background: var(--site-paper);
  color: var(--site-ink);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--site-line);
  background: rgba(255, 255, 255, 0.84);
  padding: 12px max(24px, calc((100vw - 1160px) / 2));
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 205px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.site-brand-mark {
  display: none;
}

.site-footer-logo {
  display: block;
  width: 175px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav a,
.site-footer a {
  color: var(--site-muted);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--site-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav .site-cta,
.site-document .site-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-green);
  border-radius: 8px;
  background: var(--site-green);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
}

.site-nav .site-cta:hover,
.site-document .site-cta:hover {
  background: #194b3e;
  color: #fff;
  text-decoration: none;
}

.site-main {
  width: min(100% - 40px, 820px);
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 62px 0 76px;
}

.site-kicker {
  margin: 0 0 10px;
  color: var(--site-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-main h1,
.site-main h2,
.site-main h3 {
  color: var(--site-ink);
  line-height: 1.2;
}

.site-main h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.site-main h2 {
  margin: 38px 0 12px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.site-main h3 {
  margin: 25px 0 8px;
  font-size: 17px;
}

.site-main p,
.site-main li {
  color: #48564e;
}

.site-main p {
  margin: 0 0 16px;
}

.site-main a:not(.site-cta) {
  color: var(--site-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-main ol,
.site-main ul {
  padding-left: 24px;
}

.site-main li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.site-intro {
  max-width: 700px;
  color: var(--site-muted) !important;
  font-size: 18px;
}

.site-date {
  color: var(--site-muted) !important;
  font-size: 13px;
}

.site-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--site-muted);
  font-size: 12px;
}

.site-breadcrumb a {
  color: var(--site-green);
}

.blog-main {
  width: min(100% - 40px, 1000px);
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.blog-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: #fff;
  padding: 25px;
}

.blog-card-kicker {
  margin: 0 0 12px !important;
  color: var(--site-green) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
}

.blog-card h2 a {
  color: var(--site-ink) !important;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--site-green) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-card > p:not(.blog-card-kicker) {
  margin-bottom: 20px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

.blog-card-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  color: var(--site-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-main {
  width: min(100% - 40px, 780px);
}

.article-main h2 {
  margin-top: 36px;
}

.article-main .site-date {
  margin: 0 0 21px;
}

.article-main .site-intro {
  margin-bottom: 22px;
}

.article-main code {
  border: 1px solid var(--site-line);
  border-radius: 4px;
  background: #fff;
  padding: 2px 5px;
  color: #34483e;
  font-size: 0.9em;
}

.related-posts {
  margin-top: 44px;
  border-top: 1px solid var(--site-line);
  padding-top: 8px;
}

.related-posts h2 {
  font-size: 20px;
}

.site-note {
  margin-top: 34px !important;
  color: var(--site-muted) !important;
  font-size: 13px;
}

.site-callout,
.site-example {
  margin: 24px 0;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: #fff;
  padding: 20px 22px;
}

.site-callout p:last-child,
.site-example p:last-child {
  margin-bottom: 0;
}

.site-example table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.site-example th,
.site-example td {
  border-bottom: 1px solid var(--site-line);
  padding: 9px 6px;
  text-align: left;
}

.site-example th:last-child,
.site-example td:last-child {
  text-align: right;
}

.site-example tfoot td {
  border: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--site-line);
  background: #fff;
  padding: 22px max(24px, calc((100vw - 1160px) / 2));
}

.site-footer-brand {
  color: var(--site-ink);
  font-size: 13px;
  font-weight: 600;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer-note {
  width: 100%;
  color: var(--site-muted);
  font-size: 12px;
  text-align: right;
}

.site-document :focus-visible {
  outline: 3px solid #88bda7;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 14px 20px;
  }

  .site-brand-logo {
    width: 190px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .site-nav .site-cta {
    min-height: 38px;
    padding: 7px 11px;
  }

  .site-main {
    width: min(100% - 36px, 820px);
    padding: 43px 0 55px;
  }

  .site-main h1 {
    font-size: 43px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .site-footer-note {
    text-align: left;
  }

  .site-footer-logo {
    width: 155px;
  }

  .blog-main,
  .article-main {
    width: min(100% - 32px, 780px);
    padding-top: 42px;
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-card {
    min-height: 0;
    padding: 22px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .site-cta {
    display: none !important;
  }

  body.site-document {
    background: #fff;
  }

  .site-main {
    width: 100%;
    padding: 0;
  }
}
