/* shared blog post styles — vidyut.poddar */
:root {
  --bg: #0B0F1A;
  --bg-soft: #11172A;
  --surface: #161E36;
  --surface-2: #1D2745;
  --border: #1F2A4A;
  --border-soft: #18213C;
  --text: #E6E8EE;
  --muted: #8B93A7;
  --dim: #5D6480;
  --amber: #FF8A4C;
  --amber-glow: #FF8A4C33;
  --cyan: #06B6D4;
  --green: #4ADE80;
  --magenta: #C084FC;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,138,76,0.05), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(6,182,212,0.04), transparent 40%);
  z-index: 0;
}

a { color: var(--amber); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cyan); }

code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }

::selection { background: var(--amber); color: #0B0F1A; }

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

nav.post-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.post-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  max-width: 900px;
}
.post-nav a.back {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.post-nav a.back:hover { color: var(--amber); }
.post-nav .meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
}

article {
  padding: 72px 0 96px;
  position: relative;
  z-index: 1;
}

.post-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.post-tag::before { content: "// "; opacity: .5; }

h1.post-title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 18px;
}

.post-deck {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.55;
  font-weight: 400;
}

.post-byline {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 48px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.post-byline .author { color: var(--text); }
.post-byline .dot { color: var(--dim); }

.post-body p {
  margin: 0 0 1.4em;
  color: var(--text);
}
.post-body p strong { color: #fff; font-weight: 600; }
.post-body p em { color: var(--cyan); font-style: normal; font-family: var(--mono); font-size: 0.92em; }

.post-body h2 {
  margin: 2em 0 0.6em;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.post-body h2::before {
  content: "→ ";
  color: var(--amber);
}

.post-body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.post-body ul, .post-body ol {
  padding-left: 22px;
  margin: 0 0 1.4em;
}
.post-body li { margin: 0.4em 0; color: var(--text); }
.post-body li::marker { color: var(--cyan); }

.post-body blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--cyan);
  border: 1px solid var(--border-soft);
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.6em 0;
  overflow-x: auto;
  line-height: 1.55;
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
}

.callout {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout-label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.post-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 3em 0;
}

.post-footer {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono); font-size: 13px;
  color: var(--muted);
}
.post-footer a { font-family: var(--mono); }
.post-footer .signoff {
  margin-left: auto;
  color: var(--dim);
}
