/* Article layout */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  width: 100%;
}
@media (max-width: 720px) { .post { padding: 16px 20px 64px; } }
.post-back {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}
.post-back:hover { color: var(--ink); }
.post-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.post-h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.post-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.post-body { font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.post-body p {
  margin: 0 0 24px;
  text-wrap: pretty;
}
.post-body h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  letter-spacing: -0.018em;
  font-weight: 500;
}
.post-body h3 {
  margin: 36px 0 12px;
  font-size: 18px;
  letter-spacing: -0.012em;
  font-weight: 500;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}
.post-body a:hover { text-decoration-color: var(--ink); }
.post-body blockquote {
  margin: 32px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--ink);
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

/* Ratio grid */
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0 40px;
}
@media (max-width: 600px) { .ratio-grid { grid-template-columns: repeat(3, 1fr); } }
.ratio-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.ratio-shape {
  background: var(--panel);
  border: 1px solid var(--line);
  width: 100%;
}
.ratio-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.02em;
}

.post-cta {
  margin-top: 56px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-wrap: pretty;
}
.post-cta-h {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}
.post-cta-p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}
.post-cta-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.post-body .post-cta-btn,
.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}
.post-cta-btn:hover { opacity: 0.88; }
.post-body .post-cta-btn.ghost,
.post-cta-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.post-cta-btn.ghost:hover { color: var(--ink); background: var(--hover); }
