/* blog layout */
.wrap-narrow {
  max-width: 780px;
}

.post-head {
  text-align: center;
  padding: 36px 12px 36px;
}
.post-head h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 14px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.post-head h1 em {
  font-style: normal;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose-deep), var(--lilac-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transform: rotate(-2deg);
  font-size: 1.15em;
}
.post-meta {
  color: var(--ink-soft);
  font-family: 'Caveat', cursive;
  font-size: 20px;
  margin: 4px 0 0;
}

.post-card {
  padding: 32px 34px;
  margin-bottom: 22px;
}
.post-card h2 {
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.post-card h3 {
  font-size: 19px;
  margin: 22px 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.post-card p {
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
  font-size: 16px;
}
.post-card b { font-weight: 600; }
.post-card em { font-style: italic; }
.post-card code {
  background: var(--butter);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Fredoka', monospace;
  font-size: 14px;
  font-weight: 500;
}

.post-card ol,
.post-card ul {
  line-height: 1.8;
  color: var(--ink);
  padding-left: 24px;
  margin: 10px 0 14px;
}
.post-card ol li,
.post-card ul li { margin: 4px 0; }
.post-card ol { list-style: none; counter-reset: step; padding-left: 0; }
.post-card ol li {
  counter-increment: step;
  padding-left: 38px;
  position: relative;
}
.post-card ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--rose), var(--lilac));
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(255, 159, 189, 0.35);
}

.lede {
  font-size: 18px !important;
  color: var(--ink) !important;
  line-height: 1.65 !important;
}

.callout {
  background: linear-gradient(135deg, var(--butter), var(--peach));
  padding: 14px 18px;
  border-radius: 16px 16px 16px 4px;
  margin: 14px 0;
  font-size: 15px !important;
  line-height: 1.6 !important;
  box-shadow: 0 6px 16px rgba(255, 181, 150, 0.25);
}

.toc {
  background: rgba(255, 255, 255, 0.5);
  padding: 16px 20px;
  border-radius: 18px;
  margin-top: 14px;
}
.toc-title {
  margin: 0 0 8px !important;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--ink-soft);
}
.toc ul {
  list-style: none;
  padding-left: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 18px;
}
.toc ul li {
  padding-left: 0 !important;
}
.toc ul li::before { content: none !important; }
.toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  padding: 4px 0;
  display: block;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s, color 0.15s;
}
.toc a:hover {
  color: var(--rose-deep);
  border-color: var(--rose-deep);
}

.tips li {
  padding-left: 28px !important;
  position: relative;
}
.tips li::before {
  content: "✿" !important;
  position: absolute;
  left: 0; top: 2px;
  color: var(--rose-deep) !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 16px !important;
  width: auto !important;
  height: auto !important;
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,210,224,0.6), rgba(224,212,255,0.6)) !important;
}
.cta h2 { justify-content: center; }
.cta-actions {
  margin-top: 14px !important;
}
.cta-actions .btn {
  text-decoration: none;
  font-size: 16px;
  padding: 14px 28px;
}

/* small screens */
@media (max-width: 640px) {
  .post-card { padding: 22px 20px; }
  .post-head h1 { font-size: 34px; }
  .post-card h2 { font-size: 22px; }
  .toc ul { grid-template-columns: 1fr; }
}
