:root {
  --bg: #f5f2ec;
  --card: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6357;
  --border: #ddd5c5;
  --accent: #ff3d2e;
  --maxw: 1120px;
  --font-display: Unbounded, Manrope, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --font-serif: Lora, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }

.sp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 242, 236, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.sp-nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sp-logo img { height: 48px; width: auto; display: block; }
.sp-links { display: flex; gap: 16px; font-size: 14px; }
.sp-links a { text-decoration: none; color: var(--muted); }
.sp-links a:hover { color: var(--accent); }

.sp-hero { padding: 52px 0 26px; }
.sp-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sp-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.02;
  overflow-wrap: anywhere;
  hyphens: auto;
}
/* Blog index + article pages: editorial serif headlines (Lora, already on homepage) */
main:has(.sp-article) .sp-title,
main:has(.sp-post-card) .sp-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.sp-lead {
  margin: 0;
  max-width: 62ch;
  color: #2b2b2b;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
}
main:has(.sp-article) .sp-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #3a342c;
  line-height: 1.5;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 24px 0 56px;
}
.sp-card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.sp-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
}
.sp-card p { margin: 0; color: #3d362f; line-height: 1.55; }
.sp-card--full { grid-column: 1 / -1; }
.sp-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.sp-placeholder {
  margin-top: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #faf7f1;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}

.sp-section-title {
  margin: 8px 0 0;
  padding: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
}
.sp-section-lead {
  margin: 0 0 4px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.sp-grid--tight { padding-top: 8px; }
.sp-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0ebe2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sp-badge--muted { background: #ebe6dc; }
.sp-card--niche h2 { font-size: 18px; }

.sp-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.sp-footer a { color: var(--ink); text-decoration: none; }
.sp-footer a:hover { color: var(--accent); }
.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 28px 20px;
  margin-bottom: 28px;
}
.sp-footer-brand { max-width: 28ch; }
.sp-footer-logo img { display: block; height: 36px; width: auto; }
.sp-footer-tag {
  margin: 12px 0 0;
  line-height: 1.5;
  font-size: 13px;
}
.sp-footer-col h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.sp-breadcrumbs {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.sp-breadcrumbs a { color: var(--muted); text-decoration: none; }
.sp-breadcrumbs a:hover { color: var(--accent); }
.sp-breadcrumbs li + li::before { content: "→"; margin-right: 8px; color: var(--border); }
.sp-cta-bar {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 24px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.sp-cta-bar p { margin: 0 0 14px; color: rgba(255,255,255,.85); }
.sp-cta-bar a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.sp-article {
  padding: 8px 0 64px;
  max-width: 66ch;
  font-size: 1.0625rem;
}
.sp-article-meta {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-article h2 {
  margin: 2.1em 0 0.55em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.sp-article h3 {
  margin: 1.6em 0 0.45em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sp-article p,
.sp-article li {
  line-height: 1.7;
  color: #2b2b2b;
}
.sp-article p { margin: 0 0 1.15em; }
/* First body paragraph after meta: subtle lead emphasis */
.sp-article > .sp-article-meta + p {
  font-size: 1.125em;
  line-height: 1.65;
  color: var(--ink);
}
.sp-article ul,
.sp-article ol { margin: 0 0 1.25em; padding-left: 1.25em; }
.sp-article li + li { margin-top: 0.4em; }
.sp-article a { color: var(--accent); }
.sp-article .sp-cta-bar a {
  color: #fff;
  text-decoration: none;
}
.sp-article .sp-cta-bar a:hover { opacity: 0.92; }
.sp-article .sp-cta-bar p {
  color: rgba(255, 255, 255, 0.92);
}
.sp-article blockquote {
  margin: 1.5em 0;
  padding: 0.15em 0 0.15em 1.1em;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08em;
  line-height: 1.55;
  color: #3a342c;
}
.sp-article blockquote p:last-child { margin-bottom: 0; }
.sp-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 0.94em;
}
.sp-article th,
.sp-article td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.sp-article th { background: var(--card); font-weight: 600; }
.sp-article-note {
  margin: 1.5em 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 12px 12px 0;
  font-size: 0.94em;
  line-height: 1.6;
}
.sp-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
  overflow: hidden;
}
.sp-post-card:hover { border-color: var(--accent); }
.sp-post-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #efebe2;
}
.sp-post-card__body { padding: 22px 22px 24px; }
.sp-post-card time {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-post-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.sp-post-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .sp-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sp-footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 860px) {
  .sp-links { display: none; }
  .sp-card { grid-column: 1 / -1; }
  .sp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sp-footer-grid { grid-template-columns: 1fr; }
}

.sp-price-tag {
  margin: 16px 0 0;
  font-family: JetBrains Mono, monospace;
  font-size: 14px;
  color: var(--muted);
}
.sp-steps {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.55;
  color: #3d362f;
}
.sp-steps li + li { margin-top: 8px; }
.sp-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: #3d362f;
}
.sp-list li + li { margin-top: 6px; }
