/* =====================================================
   insights.himanshuarora.de
   Editorial / Newsletter style — clean, content-first
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #ffffff;
  --bg-soft:      #f9fafb;
  --bg-accent:    oklch(0.97 0.012 270);   /* very faint indigo tint */
  --border:       #e5e7eb;
  --text:         #111827;
  --muted:        #4b5563;
  --faint:        #9ca3af;
  --accent:       oklch(0.48 0.16 270);
  --accent-hover: oklch(0.4 0.16 270);
  --max-w:        1060px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ─────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sticky header with blur ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-wrap {
  max-width: 1100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.site-title-group { display: flex; flex-direction: column; }
.site-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.site-desc {
  font-size: 11px;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--text); }

/* ── Home hero ───────────────────────────────────────── */
.home-hero {
  padding: 72px 0 52px;
}
.home-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.home-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--text);
}
.home-hero h1 em {
  font-style: italic;
  font-weight: 800;
  color: var(--accent);
}
.home-hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.hero-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.03em;
}

/* ── Article list ────────────────────────────────────── */
.article-list { padding: 0 0 80px; }

.article-list-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Post link wrapper */
.post-link { display: block; }
.post-link:hover .post-item-title { color: var(--accent); }
.post-link:hover .post-item { background: var(--bg-soft); }

/* Post item card */
.post-item {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  padding: 28px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.18s;
}
.post-item.soon {
  opacity: 0.55;
  cursor: default;
}
.post-item.soon .post-item-img { background: var(--bg-accent); }

.post-item-img {
  width: 190px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.post-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-soft) 100%);
}

.post-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Eyebrow: category + read time */
.post-item-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-item-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.post-item-read {
  font-size: 11px;
  color: var(--faint);
  font-weight: 500;
}

.post-item-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.18s;
}
.post-item-title em {
  font-style: italic;
  color: var(--accent);
}
.post-item-subtitle {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.6;
}
.post-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.post-item-meta .author { font-weight: 600; color: var(--text); }
.post-item-meta .dot { color: var(--faint); }

.badge-soon {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid oklch(0.88 0.04 270);
}

/* ── Post page header ────────────────────────────────── */
.post-header {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
}
.post-header-inner {
  max-width: 860px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.15s;
}
.post-back:hover { color: var(--text); }
.post-back svg { flex-shrink: 0; }

.post-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.post-title em {
  font-style: italic;
  color: var(--accent);
}
.post-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.post-byline strong { color: var(--text); font-weight: 600; }
.post-byline .sep { color: var(--border); }

/* ── Post body ───────────────────────────────────────── */
.post-body { padding: 44px 0 80px; }

.post-body .wrap { max-width: 860px; }

.post-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2d2d2d;
  margin-bottom: 24px;
}
.post-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 52px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.post-body strong { color: var(--text); font-weight: 600; }

.callout {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 28px 0;
  background: oklch(0.97 0.012 270);
  border-radius: 0 8px 8px 0;
}
.callout p {
  font-size: 0.97rem;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

/* ── Diagram section ─────────────────────────────────── */
.diagram-section {
  margin: 48px 0 56px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diagram-section-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}
.diagram-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.diagram-section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--faint);
  flex-shrink: 0;
}

/* ── "What's coming next" section ────────────────────── */
.post-next-section {
  padding-top: 64px;
  padding-bottom: 48px;
}
.post-next-section > * {
  max-width: 860px;
}
.post-next-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  color: var(--text);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-next-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 20px;
}
.post-next-section strong { color: var(--text); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.footer-name { font-size: 15px; font-weight: 700; color: var(--text); }
.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 300px;
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.15s;
}
.footer-linkedin:hover { color: var(--accent-hover); }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links li a:hover { color: var(--text); }

.footer-location, .footer-role {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}
.footer-bottom a { color: var(--faint); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text); }

/* ── 404 ─────────────────────────────────────────────── */
.page-404 {
  padding: 120px 0;
  text-align: center;
}
.page-404-code {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-404 p { color: var(--muted); margin-bottom: 32px; font-size: 1rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent-hover); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }
  .footer-bottom { padding: 16px 24px; }
  .header-wrap { padding: 0 20px; }
  .home-hero { padding: 48px 0 36px; }
}

@media (max-width: 640px) {
  .post-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 12px;
    margin: 0 -12px;
  }
  .post-item-img {
    width: 100%;
    height: 180px;
  }
  .header-nav a:not(:last-child) { display: none; }
  .wrap { padding: 0 18px; }
  .post-header-inner { max-width: 100%; }
  .home-hero h1 { font-size: 1.8rem; }
}
