:root {
  --nksp-font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nksp-accent: #2563eb;
  --nksp-text: #0f172a;
  --nksp-muted: #64748b;
  --nksp-border: #e2e8f0;
  --nksp-bg: #f8fafc;
  --nksp-surface: #ffffff;
  --nksp-radius: 18px;
  --nksp-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nksp-font-base);
  color: var(--nksp-text);
  background: var(--nksp-bg);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: var(--nksp-accent); text-decoration-thickness: .08em; text-underline-offset: .2em; }
img { max-width: 100%; height: auto; vertical-align: middle; border-radius: 14px; }
.nksp-container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.nksp-skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 1000; }
.nksp-skip-link:focus { left: 10px; }

.nksp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nksp-border);
}
.nksp-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nksp-branding { display: flex; align-items: center; gap: 14px; }
.nksp-logo img { max-height: 54px; width: auto; }
.nksp-site-title { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; line-height: 1.2; }
.nksp-site-title a { color: var(--nksp-text); text-decoration: none; }
.nksp-site-description { margin: 4px 0 0; font-size: .82rem; color: var(--nksp-muted); }

.nksp-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nksp-menu a { display: block; padding: 10px 12px; color: var(--nksp-text); text-decoration: none; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.nksp-menu a:hover, .nksp-menu .current-menu-item > a { background: rgba(37,99,235,.09); color: var(--nksp-accent); }
.nksp-menu-toggle { display: none; border: 1px solid var(--nksp-border); background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 700; }

.nksp-main { padding: clamp(32px, 5vw, 72px) 0; }
.nksp-content-wrap { display: grid; gap: 24px; }
.nksp-card, .nksp-archive-header {
  background: var(--nksp-surface);
  border: 1px solid var(--nksp-border);
  border-radius: var(--nksp-radius);
  box-shadow: var(--nksp-shadow);
  padding: clamp(22px, 4vw, 46px);
}
.nksp-entry-title { margin: 0 0 14px; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25; letter-spacing: -.03em; }
.nksp-entry-title a { color: var(--nksp-text); text-decoration: none; }
.nksp-entry-meta { color: var(--nksp-muted); font-size: .9rem; margin-bottom: 18px; }
.nksp-thumbnail { margin: 24px 0; }
.nksp-entry-content :where(h2,h3,h4) { line-height: 1.35; margin-top: 1.8em; margin-bottom: .6em; }
.nksp-entry-content h2 { font-size: clamp(1.35rem, 3vw, 2rem); border-left: 5px solid var(--nksp-accent); padding-left: .7em; }
.nksp-entry-content h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.nksp-entry-content p { margin: 0 0 1.1em; }
.nksp-entry-content ul, .nksp-entry-content ol { padding-left: 1.4em; }
.nksp-entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.nksp-entry-content th, .nksp-entry-content td { border: 1px solid var(--nksp-border); padding: 10px 12px; }

.nksp-footer { border-top: 1px solid var(--nksp-border); background: #fff; padding: 34px 0; }
.nksp-footer-inner { display: grid; place-items: center; text-align: center; gap: 14px; }
.nksp-footer-icon .dashicons { width: 44px; height: 44px; font-size: 44px; color: var(--nksp-accent); }
.nksp-footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 0; padding: 0; }
.nksp-footer-nav a { color: var(--nksp-text); text-decoration: none; font-weight: 700; }
.nksp-copyright { margin: 0; color: var(--nksp-muted); font-size: .9rem; }
.nksp-home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--nksp-accent); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 12px 24px rgba(37,99,235,.2); }
.nksp-home-button:hover { transform: translateY(-1px); color: #fff; }

.dashicons { vertical-align: middle; }

@media (max-width: 760px) {
  .nksp-header-inner { min-height: 68px; }
  .nksp-menu-toggle { display: inline-flex; }
  .nksp-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; padding: 12px; background: #fff; border: 1px solid var(--nksp-border); border-radius: 16px; box-shadow: var(--nksp-shadow); }
  .nksp-nav.is-open { display: block; }
  .nksp-menu { display: grid; gap: 4px; }
  .nksp-menu a { border-radius: 12px; }
  .nksp-site-description { display: none; }
}
