/* Canonical Cocoding variable fonts, synchronized byte-for-byte from the landing site. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/53b9e256198e5412-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/7178b3e590c64307-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0%;
  size-adjust: 104.76%;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/5ce348bf30bf5439-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Arial");
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0%;
  size-adjust: 134.59%;
}

:root {
  --bg: #010101;
  --deep: #030303;
  --surface: #0a0a0a;
  --surface-raised: #171717;
  --surface-soft: #121212;
  --text: #ededed;
  --text-muted: #a1a1a1;
  --text-faint: #757575;
  --prose: #c8c8c8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #6c91f9;
  --link: #6c91f9;
  --cta-bg: #ffffff;
  --cta-text: #0a0a0a;
  --logo-tile: #0a0a0a;
  --grid-line: rgba(255, 255, 255, 0.022);
  --surface-translucent: rgba(10, 10, 10, 0.9);
  --soft-translucent: rgba(18, 18, 18, 0.75);
  --hero-start: rgba(23, 23, 23, 0.92);
  --hero-end: rgba(3, 3, 3, 0.96);
  --page-glow: rgba(108, 145, 249, 0.22);
  --card-shadow: rgba(0, 0, 0, 0.42);
  --page: 1200px;
  --gh-font-heading: "Geist", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans CJK SC", "Geist Fallback", Inter, ui-sans-serif, system-ui, sans-serif;
  --gh-font-body: "Geist", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans CJK SC", "Geist Fallback", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
  font-family: var(--gh-font-body);
}

:root[data-theme="light"] {
  --bg: #f8f9fc;
  --deep: #ffffff;
  --surface: #ffffff;
  --surface-raised: #e9edf5;
  --surface-soft: #f2f4f8;
  --text: #121317;
  --text-muted: #5d616c;
  --text-faint: #4a5060;
  --prose: #121317;
  --line: rgba(10, 15, 30, 0.1);
  --line-strong: rgba(10, 15, 30, 0.17);
  --accent: #6c91f9;
  --link: #315bc9;
  --cta-bg: #0a0a0a;
  --cta-text: #ffffff;
  --logo-tile: #0a0a0a;
  --grid-line: transparent;
  --surface-translucent: #ffffff;
  --soft-translucent: #f2f4f8;
  --hero-start: #ffffff;
  --hero-end: #f2f4f8;
  --page-glow: color-mix(in srgb, #6c91f9 14%, transparent);
  --card-shadow: rgba(10, 15, 30, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -16%, var(--page-glow), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header,
.site-footer,
main {
  width: min(var(--page), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--logo-tile);
}

.brand-mark img {
  width: 30px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 560;
}

.locale-control select,
.theme-toggle {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.locale-control select {
  max-width: 142px;
  padding: 0 30px 0 10px;
  cursor: pointer;
}

.theme-toggle {
  display: inline-grid;
  width: 38px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
}

.site-nav > a:not(.nav-action):hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.nav-action,
.primary-action {
  background: var(--cta-bg);
  color: var(--cta-text);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: var(--soft-translucent);
  color: var(--text);
}

.nav-action:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(44px, 8vw, 104px);
  padding: 94px 0 80px;
}

.eyebrow,
.post-meta,
.signal-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.post-hero h1,
.error-page h1 {
  margin: 18px 0 0;
  font-weight: 560;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.signal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--hero-start), var(--hero-end));
  padding: 28px;
  box-shadow: 0 36px 100px var(--card-shadow);
}

.signal-card::after {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(108, 145, 249, 0.18);
  content: "";
  filter: blur(48px);
  inset: -90px -60px auto auto;
}

.signal-card ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.signal-card li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.signal-card li:last-child {
  padding-bottom: 0;
}

.signal-card li span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.signal-card li strong {
  font-size: 0.98rem;
  font-weight: 580;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 64px 0 96px;
}

.collection-hero {
  max-width: 820px;
  padding: 88px 0 54px;
}

.collection-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.collection-hero > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.post-card > a {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-translucent);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.post-card > a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.post-image {
  width: 100%;
  aspect-ratio: 40 / 21;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
}

.post-card h2 {
  margin: 14px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.post-card p:not(.post-meta) {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.post-card-body > span {
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 650;
}

.empty-state {
  margin-bottom: 100px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: clamp(32px, 7vw, 72px);
}

.empty-state h2 {
  max-width: 700px;
  margin: 16px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.empty-state > p:last-child {
  margin: 22px 0 0;
  color: var(--text-muted);
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 72px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
}

.post-full {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: 84px 0 110px;
}

.post-hero {
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

.post-hero h1,
.error-page h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
}

.post-hero > p:not(.post-meta) {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.post-feature-image {
  width: 100%;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  aspect-ratio: 40 / 21;
  object-fit: cover;
}

.post-content {
  color: var(--prose);
  font-size: 1.08rem;
}

.post-content h2,
.post-content h3 {
  color: var(--text);
  font-weight: 590;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-content h1 {
  margin-top: 52px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.post-content h2 {
  margin-top: 48px;
  font-size: 2rem;
}

.post-content h3 {
  margin-top: 34px;
  font-size: 1.4rem;
}

.post-content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content blockquote {
  margin: 32px 0;
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 24px;
  color: var(--text);
  font-size: 1.25rem;
}

.post-content pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--deep);
  padding: 22px;
  font-size: 0.9rem;
}

.post-content code {
  font-family: var(--font-mono);
}

.post-content :not(pre) > code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  padding: 0.12em 0.35em;
  font-size: 0.9em;
}

.post-content figure {
  margin: 36px 0;
}

.post-content img {
  height: auto;
  margin-block: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin-block: 2rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--line-strong) !important;
  padding: 0.65rem 0.75rem !important;
  text-align: start;
}

.post-content th {
  background: var(--surface-raised) !important;
}

:root[data-theme="dark"] .post-content :is(th, td)[style*="color:black"],
:root[data-theme="dark"] .post-content :is(th, td)[style*="color: black"] {
  color: var(--text) !important;
}

:root[data-theme="dark"] .post-content tr[style*="background-color:#f8f9fa"] {
  background: var(--surface-raised) !important;
}

.post-content .kg-width-wide {
  width: min(1040px, calc(100vw - 40px));
  max-width: none;
  margin-inline-start: 50%;
  transform: translateX(-50%);
}

.post-content .kg-width-full {
  width: min(1200px, calc(100vw - 20px));
  max-width: none;
  margin-inline-start: 50%;
  transform: translateX(-50%);
}

[dir="rtl"] .post-content .kg-width-wide,
[dir="rtl"] .post-content .kg-width-full {
  transform: translateX(50%);
}

[dir="rtl"] .back-link > [aria-hidden="true"] {
  display: inline-block;
  transform: scaleX(-1);
}

.post-content figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.post-content figcaption {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.86rem;
  text-align: center;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-top: 72px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface-raised), var(--surface));
  padding: 32px;
}

.article-cta h2 {
  margin: 12px 0 0;
  font-size: 1.8rem;
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article-cta div > p:last-child {
  margin: 14px 0 0;
  color: var(--text-muted);
}

.error-page {
  flex: 1;
  padding: 120px 0;
  text-align: center;
}

.error-page > p:not(.eyebrow) {
  color: var(--text-muted);
}

.error-page .primary-action {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}

.footer-brand {
  font-weight: 680;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-nav .nav-action {
    margin-inline-start: auto;
  }

  .locale-control {
    flex: 1;
  }

  .locale-control select {
    width: 100%;
    max-width: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 70px 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-cta,
  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    flex-direction: column;
  }

  .article-cta .primary-action {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
