:root {
  color-scheme: light;
  --cp-bg: #f7f4ef;
  --cp-bg-elevated: #fcfbf8;
  --cp-surface: #ffffff;
  --cp-surface-soft: #f5f5f5;
  --cp-border: #dedede;
  --cp-border-strong: #919191;
  --cp-text: #242424;
  --cp-text-muted: #5c5c5c;
  --cp-text-soft: #6f6f6f;
  --cp-accent: #b11f4b;
  --cp-accent-hover: #9a1a41;
  --cp-accent-soft: rgba(177, 31, 75, 0.08);
  --cp-accent-fg: #ffffff;
  --cp-success: #16a34a;
  --cp-danger: #dc2626;
  --cp-warning: #f59e0b;
  --cp-link: #0078d4;
  --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --cp-overlay: rgba(255, 255, 255, 0.8);
  --cp-panel: rgba(255, 255, 255, 0.86);
  --cp-panel-strong: rgba(255, 255, 255, 0.96);
  --cp-sheen: rgba(255, 255, 255, 0.55);
  --cp-highlight: rgba(177, 31, 75, 0.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --cp-bg: #3d3b3a;
  --cp-bg-elevated: #343231;
  --cp-surface: #292929;
  --cp-surface-soft: #2e2e2e;
  --cp-border: #474747;
  --cp-border-strong: #5f5f5f;
  --cp-text: #dedede;
  --cp-text-muted: #919191;
  --cp-text-soft: #b0b0b0;
  --cp-accent: #fd8ea1;
  --cp-accent-hover: #fb7b91;
  --cp-accent-soft: rgba(253, 142, 161, 0.14);
  --cp-accent-fg: #1a1a1a;
  --cp-success: #4ade80;
  --cp-danger: #f87171;
  --cp-warning: #fbbf24;
  --cp-link: #4da6ff;
  --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --cp-overlay: rgba(41, 41, 41, 0.88);
  --cp-panel: rgba(41, 41, 41, 0.72);
  --cp-panel-strong: rgba(41, 41, 41, 0.96);
  --cp-sheen: rgba(255, 255, 255, 0.04);
  --cp-highlight: rgba(253, 142, 161, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 0.625rem;
  background: var(--cp-accent);
  color: var(--cp-accent-fg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid var(--cp-border);
  background: var(--cp-overlay);
  backdrop-filter: blur(16px);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; color: var(--cp-accent); }
.brand-mark .logo-tile { fill: currentColor; }
.brand-mark .logo-line {
  fill: none;
  stroke: var(--cp-accent-fg);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 12px;
  color: var(--cp-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--cp-text); }
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  background: var(--cp-surface);
  color: var(--cp-text);
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
html[data-theme="dark"] .sun,
html[data-theme="light"] .moon { display: none; }
.blog-hero,
.article-header {
  padding-top: 160px;
  padding-bottom: 72px;
}
.blog-hero { border-bottom: 1px solid var(--cp-border); }
.eyebrow {
  margin-bottom: 16px;
  color: var(--cp-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1,
h2 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.2rem, 8vw, 6.4rem); }
h1 span { color: var(--cp-accent); }
.blog-hero p {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--cp-text-soft);
  font-size: 1.2rem;
}
.posts-section { padding: 72px 0 104px; background: var(--cp-bg-elevated); }
.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2 { margin: 0; font-size: 2rem; }
.rss-link,
.back-link { color: var(--cp-text-muted); font-weight: 650; }
.post-grid { display: grid; gap: 16px; }
.post-card {
  padding: 32px;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-accent-soft), 0 1px 2px var(--cp-border);
}
.post-meta,
.article-meta {
  color: var(--cp-text-muted);
  font-size: 0.88rem;
  font-weight: 650;
}
.post-card h2 { margin: 9px 0 12px; font-size: 1.7rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0; color: var(--cp-text-soft); }
.read-more {
  margin-top: 22px;
  display: inline-flex;
  color: var(--cp-accent);
  font-weight: 750;
  text-decoration: none;
}
.article-header { padding-bottom: 56px; }
.article-header .eyebrow { margin-top: 36px; }
.article-header h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.article-meta { margin-top: 28px; display: flex; gap: 20px; }
.article-body {
  max-width: 760px;
  padding-bottom: 104px;
  color: var(--cp-text-soft);
  font-size: 1.08rem;
}
.article-body h2,
.article-body h3 { margin: 2em 0 0.6em; color: var(--cp-text); }
.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.4rem; }
.article-body p { margin: 0 0 1.35em; }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--cp-text); }
.article-body a { color: var(--cp-link); }
.article-body img {
  width: 100%;
  height: auto;
  margin: 1em 0 2em;
  display: block;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
}
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--cp-accent);
  color: var(--cp-text);
}
footer { padding: 36px 0; border-top: 1px solid var(--cp-border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--cp-text-muted);
  font-size: 0.88rem;
}
.footer-brand { color: var(--cp-text); font-weight: 750; }
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 920px); }
  .brand { font-size: 0.76rem; letter-spacing: 0.03em; }
  .nav-link:first-child { display: none; }
  .nav-link { padding: 8px 4px; }
  .blog-hero,
  .article-header { padding-top: 128px; padding-bottom: 56px; }
  .post-card { padding: 24px; }
  .article-meta,
  .footer-inner { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
