/* =========================================================
   Agent Skills Blog — Design System
   Swiss-grid inspired / dark technical theme
   ========================================================= */

:root {
  /* Surfaces */
  --bg:            #0A0C10;
  --bg-alt:        #0E1116;
  --surface:       #12151B;
  --surface-2:     #171B23;
  --surface-3:     #1D222C;
  --border:        #232833;
  --border-soft:   #1A1E27;
  --border-strong: #333A48;

  /* Text */
  --text:          #E7EAF0;
  --text-mid:      #A8B1C1;
  --text-dim:      #6E7787;
  --text-faint:    #4A5261;

  /* Accents */
  --accent:        #6C8CFF;
  --accent-soft:   rgba(108, 140, 255, 0.12);
  --accent-line:   rgba(108, 140, 255, 0.32);
  --mint:          #3FD9A0;
  --mint-soft:     rgba(63, 217, 160, 0.12);
  --amber:         #FFB454;
  --amber-soft:    rgba(255, 180, 84, 0.12);
  --rose:          #FF6B81;
  --rose-soft:     rgba(255, 107, 129, 0.12);

  /* Type */
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code",
          Menlo, Consolas, "Courier New", monospace;

  /* Metrics */
  --maxw: 1180px;
  --maxw-text: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(108,140,255,.28); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262C38; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #353C4A; }

/* ---------------------------------------------------------
   Layout primitives
   --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: var(--maxw-text); }

.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--border-soft); }

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent) 0%, #9B7BFF 55%, var(--mint) 130%);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  color: #0A0C10;
  flex: none;
}
.brand-sub {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 12px;
  font-family: var(--mono);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-mid);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  width: 36px; height: 34px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

/* ---------------------------------------------------------
   Type scale
   --------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
  max-width: 180px;
}

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.018em; margin: 0; font-weight: 650; }
.display {
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -0.032em;
  line-height: 1.1;
  font-weight: 680;
}
.h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.024em; }
.h3 { font-size: 19px; }
.h4 { font-size: 15.5px; }

.lede {
  font-size: 17.5px;
  color: var(--text-mid);
  line-height: 1.72;
  max-width: 660px;
}
.muted { color: var(--text-dim); }
.dim   { color: var(--text-faint); }
.mono  { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: 1.5px 6px;
  border-radius: 5px;
  color: #B9C6FF;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 550;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  font-family: inherit;
}
.btn:hover { background: var(--surface-3); border-color: #414A5C; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #080B12;
  font-weight: 620;
}
.btn-primary:hover { background: #7E9BFF; border-color: #7E9BFF; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-mid); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding: 78px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -10%;
  height: 520px;
  background:
    radial-gradient(circle at 22% 32%, rgba(108,140,255,.16), transparent 58%),
    radial-gradient(circle at 62% 20%, rgba(63,217,160,.09), transparent 55%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 88px 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-mid);
  font-family: var(--mono);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(63,217,160,.16);
}
.hero h1 { margin-bottom: 22px; max-width: 15ch; }
.hero h1 .grad {
  background: linear-gradient(96deg, var(--accent) 10%, #A98BFF 52%, var(--mint) 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.stat { background: var(--bg); padding: 20px 22px; }
.stat-k {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.stat-k em { font-style: normal; color: var(--accent); font-size: 17px; margin-left: 1px; }
.stat-v { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

/* ---------------------------------------------------------
   Section header
   --------------------------------------------------------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sec-head p { margin: 10px 0 0; color: var(--text-dim); font-size: 14.5px; max-width: 56ch; }

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .18s, background .18s, transform .18s;
  position: relative;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card-link:hover { transform: translateY(-2px); }

.card-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 8px; font-size: 16.5px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.68; }

.card-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.card-icon.mint { background: var(--mint-soft); color: var(--mint); border-color: rgba(63,217,160,.3); }
.card-icon.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(255,180,84,.3); }
.card-icon.rose { background: var(--rose-soft); color: var(--rose); border-color: rgba(255,107,129,.3); }

/* ---------------------------------------------------------
   Tags / chips
   --------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2.5px 8px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.tag-mint   { background: var(--mint-soft);   color: var(--mint);   border-color: rgba(63,217,160,.28); }
.tag-amber  { background: var(--amber-soft);  color: var(--amber);  border-color: rgba(255,180,84,.28); }

.chip {
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   Code blocks
   --------------------------------------------------------- */
.code {
  background: #0C0F14;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.code-head .lang { color: var(--accent); }
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.9px;
  line-height: 1.72;
  color: #C9D3E5;
  tab-size: 2;
}
.code-copy {
  background: none; border: 1px solid var(--border);
  color: var(--text-dim); border-radius: 5px;
  padding: 2px 9px; font-size: 11px; cursor: pointer;
  font-family: var(--mono);
  transition: all .15s;
}
.code-copy:hover { color: var(--text); border-color: var(--border-strong); }
.code-copy.done { color: var(--mint); border-color: rgba(63,217,160,.4); }

/* syntax tokens */
.tk-key { color: #7FA4FF; }
.tk-str { color: #7FDDB4; }
.tk-com { color: #5A6373; font-style: italic; }
.tk-tag { color: #FFB454; }
.tk-num { color: #D9A5FF; }

/* ---------------------------------------------------------
   Callouts
   --------------------------------------------------------- */
.note {
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 40%);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14.2px;
  color: var(--text-mid);
}
.note strong { color: var(--text); }
.note.warn { border-left-color: var(--amber); background: linear-gradient(90deg, var(--amber-soft), transparent 40%); }
.note.bad  { border-left-color: var(--rose);  background: linear-gradient(90deg, var(--rose-soft),  transparent 40%); }
.note.ok   { border-left-color: var(--mint);  background: linear-gradient(90deg, var(--mint-soft),   transparent 40%); }
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin: 22px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  min-width: 520px;
}
th {
  text-align: left;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-mid);
  letter-spacing: .01em;
  white-space: nowrap;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-mid);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.014); }
td strong { color: var(--text); }

/* ---------------------------------------------------------
   Anatomy / diagram
   --------------------------------------------------------- */
.tree {
  background: #0C0F14;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.05;
  overflow-x: auto;
}
.tree .dir  { color: var(--accent); font-weight: 600; }
.tree .file { color: var(--text); }
.tree .cmt  { color: var(--text-faint); }
.tree .req  { color: var(--rose); }
.tree .row  { white-space: pre; display: block; }
.tree .row.hl { background: rgba(108,140,255,.07); margin: 0 -24px; padding: 0 24px; border-left: 2px solid var(--accent); }

.flow { display: grid; gap: 10px; }
.flow-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 39px; bottom: -10px;
  width: 1px; height: 10px;
  background: var(--border-strong);
}
.flow-n {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  margin-top: 1px;
}
.flow-step h4 { margin: 1px 0 5px; font-size: 15px; }
.flow-step p { margin: 0; color: var(--text-dim); font-size: 13.6px; line-height: 1.66; }
.flow-step .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
  display: block;
}

/* Layer diagram */
.layers { display: grid; gap: 12px; }
.layer {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.layer::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.layer.l1::before { background: var(--mint); }
.layer.l2::before { background: var(--accent); }
.layer.l3::before { background: var(--amber); }
.layer h4 { font-size: 15.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 9px; }
.layer p { margin: 0; color: var(--text-dim); font-size: 13.6px; line-height: 1.62; }
.layer-cost {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.cost-bar {
  height: 5px;
  background: var(--surface-3);
  border-radius: 3px;
  margin-top: 7px;
  overflow: hidden;
}
.cost-bar i { display: block; height: 100%; border-radius: 3px; }
.l1 .cost-bar i { background: var(--mint); }
.l2 .cost-bar i { background: var(--accent); }
.l3 .cost-bar i { background: var(--amber); }

/* ---------------------------------------------------------
   Article list
   --------------------------------------------------------- */
.post-list { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.post-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  background: var(--bg);
  transition: background .15s;
}
.post-row:hover { background: var(--surface); }
.post-row .idx {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: .04em;
}
.post-row h3 { font-size: 16.5px; margin-bottom: 6px; }
.post-row:hover h3 { color: #A9BCFF; }
.post-row p { margin: 0; color: var(--text-dim); font-size: 13.6px; line-height: 1.62; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 9px; }
.post-side { text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }

/* ---------------------------------------------------------
   Article (post) page
   --------------------------------------------------------- */
.post-header { padding: 52px 0 40px; border-bottom: 1px solid var(--border-soft); }
.post-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.028em; line-height: 1.2; margin: 14px 0 16px; }
.post-sub { font-size: 16.5px; color: var(--text-dim); line-height: 1.7; max-width: 62ch; margin: 0; }
.post-byline {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.post-byline .sep { width: 1px; height: 11px; background: var(--border); }

.prose { padding: 48px 0 20px; font-size: 15.4px; line-height: 1.86; color: #CED5E1; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 23px;
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 17.5px; margin: 30px 0 10px; color: var(--text); scroll-margin-top: 80px; }
.prose h4 { font-size: 15px; margin: 22px 0 8px; color: var(--text); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--text-faint); }
.prose strong { color: #F0F3F8; font-weight: 620; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose hr { border: none; border-top: 1px solid var(--border-soft); margin: 36px 0; }
.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-dim);
  font-style: italic;
}
.prose table { min-width: 460px; }

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 13px;
  max-height: calc(100vh - var(--nav-h) - 60px);
  overflow-y: auto;
  padding-right: 8px;
}
.toc-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--border-soft);
  color: var(--text-dim);
  line-height: 1.5;
  transition: all .15s;
}
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
.toc a.lv3 { padding-left: 24px; font-size: 12.5px; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.post-layout.with-toc { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }

/* ---------------------------------------------------------
   Search box
   --------------------------------------------------------- */
.search {
  position: relative;
  max-width: 380px;
  width: 100%;
}
.search input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s;
}
.search input:focus { border-color: var(--accent-line); }
.search input::placeholder { color: var(--text-faint); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

.toolbar {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.empty strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 15px; }

/* ---------------------------------------------------------
   Skill cards
   --------------------------------------------------------- */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .18s, transform .18s, background .18s;
  height: 100%;
}
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--surface-2); }
.skill-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.skill-name {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  line-height: 1.4;
}
.skill-desc { font-size: 13.4px; color: var(--text-dim); line-height: 1.66; margin: 0; flex: 1; }
.skill-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-top: 2px; }
.skill-triggers {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  line-height: 1.6;
}
.skill-triggers b { color: var(--text-dim); font-weight: 500; }

/* ---------------------------------------------------------
   Cheatsheet
   --------------------------------------------------------- */
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.cs-card-head {
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 14.5px;
  display: flex; align-items: center; gap: 9px;
}
.cs-card-body { padding: 6px 0; }
.cs-item {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.6px;
}
.cs-item:last-child { border-bottom: none; }
.cs-item .k {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 3px;
}
.cs-item .v { color: var(--text-dim); line-height: 1.62; display: block; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd-col { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.dd-head {
  padding: 11px 18px;
  font-weight: 620;
  font-size: 13.5px;
  font-family: var(--mono);
  letter-spacing: .04em;
}
.dd-col.do .dd-head { background: var(--mint-soft); color: var(--mint); border-bottom: 1px solid rgba(63,217,160,.22); }
.dd-col.dont .dd-head { background: var(--rose-soft); color: var(--rose); border-bottom: 1px solid rgba(255,107,129,.22); }
.dd-col ul { list-style: none; margin: 0; padding: 12px 0; }
.dd-col li {
  padding: 7px 18px 7px 36px;
  position: relative;
  font-size: 13.6px;
  color: var(--text-mid);
  line-height: 1.62;
}
.dd-col.do li::before {
  content: "✓";
  position: absolute; left: 16px; top: 7px;
  color: var(--mint); font-weight: 700; font-size: 13px;
}
.dd-col.dont li::before {
  content: "✕";
  position: absolute; left: 16px; top: 7px;
  color: var(--rose); font-weight: 700; font-size: 13px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 56px;
  margin-top: 40px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  align-items: flex-start;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-links { display: grid; gap: 7px; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.7; max-width: 40ch; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .post-layout.with-toc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .cs-grid, .do-dont { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; }
  .layer-cost { text-align: left; }
  .post-row { grid-template-columns: 1fr; gap: 10px; }
  .post-side { text-align: left; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links a { padding: 10px 14px; font-size: 14.5px; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .brand-sub { display: none; }
}
