/* Shared blog listing + post styles (Asymptotic dark theme) */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 24px clamp(18px, 5vw, 64px) 80px;
}

.page::before {
  content: "";
  position: absolute;
  inset: 10% auto auto -18%;
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  background: radial-gradient(circle, rgba(17, 85, 204, 0.2), transparent 64%);
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  inset: auto -24% -38% auto;
  width: min(720px, 82vw);
  height: min(720px, 82vw);
  background: radial-gradient(circle, rgba(92, 144, 234, 0.16), transparent 62%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 46px; display: block; }

.back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color var(--dur-1) var(--ease-standard);
}

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

.nav--listing {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav--listing .nav-logo { justify-self: start; }
.nav--listing .nav-title { justify-self: center; }
.nav--listing .back-link { justify-self: end; }

.nav-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg-1);
  white-space: nowrap;
}

/* Listing */

.listing-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: clamp(72px, 12vh, 96px) auto 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}

.listing-header h1 {
  margin: 0 0 32px;
  max-width: none;
  font-size: clamp(40px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.listing-intro {
  margin: 0;
  max-width: 52ch;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.6;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.post-grid--solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 8px;
}

.post-grid--solo .post-card {
  width: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 4px 12px rgba(0, 0, 0, 0.5);
}

.post-grid--solo .post-card-title {
  font-size: 20px;
}

.converging-note {
  margin: 40px auto 0;
  max-width: 36ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  line-height: 1.5;
}

.post-card {
  display: block;
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-1) var(--ease-standard), background var(--dur-1) var(--ease-standard);
}

.post-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
  text-decoration: none;
  color: inherit;
}


.post-card-media {
  position: relative;
}

.post-card-edge-meta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-1);
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.82), rgba(10, 10, 11, 0.35) 70%, transparent);
}
.post-card-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-inset);
}

.post-card-body {
  padding: 20px 22px 22px;
}



.post-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

.empty-state {
  margin-top: 48px;
  padding: 48px 24px;
  text-align: center;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.5;
}

/* Post page */

.post-shell {
  position: relative;
  z-index: 1;
  max-width: var(--container-narrow);
  margin: 56px auto 0;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}

.post-header h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 4.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.prose {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
}

.prose h2 {
  color: var(--fg-1);
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 48px 0 16px;
}

.prose h3 {
  color: var(--fg-1);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 32px 0 16px;
}

.prose p { margin: 0 0 18px; }

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.prose li { margin: 6px 0; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--border-default);
  margin: 44px 0;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-standard);
}

.prose a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.prose figure {
  margin: 24px auto 26px;
  text-align: center;
}

.prose figure img {
  width: min(520px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border-default);
}

.prose figcaption {
  margin-top: 10px;
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.45;
}

.prose .cta {
  font-style: italic;
  margin-top: 28px;
  color: var(--fg-2);
}

.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.post-footer a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color var(--dur-1) var(--ease-standard);
}

.post-footer a:hover { color: var(--fg-1); }

.post-footer .btn-demo {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--fg-on-blue);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: background var(--dur-1) var(--ease-standard);
}

.post-footer .btn-demo:hover {
  background: var(--accent-hover);
  color: var(--fg-on-blue);
  text-decoration: none;
}

@media (max-width: 640px) {
  .page { padding-bottom: 48px; }
  .nav-logo img { height: 38px; }
  .back-link { font-size: 11px; }
  .nav-title {
    font-size: clamp(20px, 5vw, 26px);
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .listing-shell { margin-top: clamp(56px, 10vh, 72px); }
  .post-shell { margin-top: 40px; }
}

