:root {
  --primary: #e8a0bf;
  --primary-dark: #c77da2;
  --primary-deep: #a85f86;
  --accent-text: #7a3a5e;
  --secondary: #b8a9e8;
  --accent: #7ec8b8;
  --bg: #fafafa;
  --surface: #fff5f8;
  --text: #1f1f2c;
  --text-secondary: #5a5a72;
  --muted: #9e9eb0;
  --border: #ece5f1;
  --card-bg: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 12px 32px rgba(45, 45, 58, 0.06);
  --shadow-cta: 0 18px 36px rgba(199, 125, 162, 0.32), 0 4px 12px rgba(199, 125, 162, 0.18);
  --shadow-cta-hover: 0 24px 48px rgba(199, 125, 162, 0.42), 0 6px 16px rgba(199, 125, 162, 0.24);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

.container-narrow {
  max-width: 760px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(232, 226, 238, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: 17px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(199, 125, 162, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a:not(.nav-cta) {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 120ms ease;
}

.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent-text); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

.nav-links a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  padding: 9px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(199, 125, 162, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(199, 125, 162, 0.38);
}

/* ============================================================
   Blog index + article shared styles
   ============================================================ */

.blog-hero {
  position: relative;
  padding: 56px 0 28px;
  background:
    radial-gradient(900px 360px at 18% 8%, rgba(232, 160, 191, 0.32), transparent 62%),
    radial-gradient(820px 320px at 88% 18%, rgba(184, 169, 232, 0.26), transparent 60%),
    linear-gradient(180deg, rgba(255, 245, 248, 0.85), rgba(255, 245, 248, 0));
}

.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--accent-text); font-weight: 700; }

.blog-hero h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  max-width: 22ch;
}

.blog-hero .lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
}

@media (max-width: 720px) {
  .blog-hero h1 { font-size: 32px; letter-spacing: -0.6px; }
  .blog-hero { padding: 36px 0 18px; }
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accent-text);
}

.section {
  padding: 48px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.55;
}

/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  min-height: 100%;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(232, 160, 191, 0.35);
}

.post-card .post-emoji {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 160, 191, 0.25), rgba(184, 169, 232, 0.25));
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 14px;
}

.post-card .post-cat {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.post-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}

.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

/* Article body */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 980px) {
  .article-wrap { grid-template-columns: 1fr; gap: 24px; }
  .article-toc { position: static; }
}

.article-toc {
  position: sticky;
  top: 88px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 16px;
}

.article-toc-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: toc;
}

.article-toc li { counter-increment: toc; }

.article-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 0;
  border-bottom: 1px solid rgba(232, 226, 238, 0.5);
  transition: color 120ms ease;
}

.article-toc li:last-child a { border-bottom: 0; }

.article-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--muted);
  font-weight: 800;
  margin-right: 6px;
}

.article-toc a:hover { color: var(--accent-text); }

.article-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  max-width: 70ch;
}

.article-body h2 {
  margin: 36px 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.25;
  scroll-margin-top: 90px;
}

.article-body h2:first-child { margin-top: 8px; }

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text);
}

.article-body p.lead-p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body li {
  margin: 0 0 6px;
  line-height: 1.65;
}

.article-body a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(168, 95, 134, 0.35);
  text-underline-offset: 3px;
}

.article-body a:hover { text-decoration-color: var(--accent-text); }

.article-body strong { font-weight: 700; color: var(--text); }

.article-body blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 160, 191, 0.12), rgba(184, 169, 232, 0.12));
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

.callout {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout .callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.callout strong { display: block; margin-bottom: 4px; }

.callout p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }

.article-cta {
  margin: 36px 0 0;
  padding: 28px 24px;
  border-radius: 24px;
  background:
    radial-gradient(620px 280px at 8% 30%, rgba(232, 160, 191, 0.55), transparent 55%),
    radial-gradient(620px 280px at 92% 70%, rgba(184, 169, 232, 0.5), transparent 55%),
    linear-gradient(135deg, #ffeaf2 0%, #ffe4ee 50%, #f0e7ff 100%);
  border: 1px solid rgba(232, 160, 191, 0.3);
  box-shadow: 0 18px 40px rgba(168, 95, 134, 0.14);
}

.article-cta h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.article-cta p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  max-width: 50ch;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f0adc7 0%, var(--primary-dark) 50%, var(--primary-deep) 100%);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.btn-primary .label-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}

.btn-primary .label-main {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.btn-primary .label-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(45, 45, 58, 0.06);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 18px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.faq-item[open] {
  border-color: rgba(232, 160, 191, 0.35);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 240ms ease;
}

.faq-icon svg { width: 12px; height: 12px; }

.faq-item[open] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  padding: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 70ch;
}

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(232, 160, 191, 0.35);
}

.related-card .post-emoji {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 160, 191, 0.22), rgba(184, 169, 232, 0.22));
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 4px;
}

.related-card .related-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-text);
}

.related-card h4 {
  margin: 4px 0 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.1px;
  line-height: 1.3;
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  padding: 32px 0 96px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 245, 248, 0.55));
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
}

.footer-links a:hover { color: var(--text); }

.lang-switch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.lang-switch-list {
  display: flex;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.lang-switch-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.lang-switch-list a:hover { color: var(--text); }

.lang-switch-list a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 700;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 40;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(232, 160, 191, 0.3);
  border-radius: 18px;
  padding: 10px 12px 10px 14px;
  box-shadow: 0 16px 40px rgba(45, 45, 58, 0.16);
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sticky-cta img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
}

.sticky-cta .text { flex: 1; min-width: 0; }
.sticky-cta .text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.sticky-cta .text small {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sticky-cta .get {
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 8px 18px rgba(199, 125, 162, 0.32);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  footer.site-footer { padding-bottom: 110px; }
}
