:root {
  --gh-font-heading: Inter, ui-sans-serif, system-ui, sans-serif;
  --gh-font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #fff;
  --soft: #f5f7fb;
  --brand: #2563eb;
  --brand-dark: #1748b5;
  --radius: 14px;
}

.kg-width-wide {
  width: min(1000px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
}
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img {
  display: block;
  max-height: 38px;
  max-width: 180px;
}
.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}
.account-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-button,
.button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.text-button {
  background: none;
  color: var(--ink);
  font-weight: 700;
}
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
}
.button:hover {
  background: var(--brand-dark);
}
.button.small {
  padding: 9px 14px;
}
.button.secondary {
  background: #e9efff;
  color: #1d4ed8;
}
.site-main {
  flex: 1;
}
.hero {
  padding: 110px 20px;
  text-align: center;
  background: #ffffff;
}
.hero.compact {
  padding: 90px 20px;
}
.hero h1 {
  max-width: 850px;
  margin: 8px auto 18px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-copy {
  max-width: 670px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.18rem;
}
.hero-actions {
  justify-content: center;
}
.homepage-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
}
.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}
.section.narrow-top {
  padding-top: 54px;
}
.section h1,
.section h2 {
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.section h1 {
  font-size: 3rem;
}
.section-heading h2 {
  font-size: 2.2rem;
  margin: 4px 0 24px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card,
.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-card-body {
  padding: 20px;
}
.post-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 8px 0;
}
.post-card h3 a,
.list-card h2 a {
  text-decoration: none;
}
.post-card p,
.list-card p,
.post-meta {
  color: var(--muted);
}
.post-meta {
  font-size: 0.84rem;
}
.read-link {
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}
.post-list {
  display: grid;
  gap: 16px;
}
.list-card {
  padding: 24px;
}
.list-card h2 {
  margin: 5px 0;
}
.empty-state {
  padding: 28px;
  border: 1px dashed #c9d2e3;
  border-radius: var(--radius);
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}
.content-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}
.content-header {
  text-align: center;
  margin-bottom: 34px;
}
.content-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
  margin: 10px 0;
}
.content-deck {
  font-size: 1.18rem;
  color: var(--muted);
}
.feature {
  width: min(1050px, calc(100vw - 40px));
  margin: 0 50% 36px;
  transform: translateX(-50%);
}
.feature img {
  width: 100%;
  border-radius: var(--radius);
}
.gh-content {
  font-family: Georgia, serif;
  font-size: 1.12rem;
}
.gh-content :is(h2, h3) {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.2;
  margin-top: 2em;
}
.gh-content img {
  max-width: 100%;
  height: auto;
}
.gh-content a {
  color: var(--brand);
}
.gh-content pre {
  overflow: auto;
  padding: 18px;
  background: #111827;
  color: #f9fafb;
  border-radius: 10px;
}
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}
@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 80px 20px;
  }
  .site-footer {
    flex-direction: column;
  }
  .account-actions {
    margin-left: auto;
  }
}
