:root {
  --paper: #f7f0dc;
  --ink: #1c1b17;
  --muted: #625f54;
  --line: rgba(28, 27, 23, .25);
  --mint: #b9dec5;
  --blue: #b9d9ed;
  --gold: #f5d363;
  --coral: #f3b1a2;
  --lilac: #e8c7dd;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.72;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 12px max(5vw, 24px);
  background: rgba(247, 240, 220, .94);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(9px);
}
.wordmark { font-family: var(--mono); font-size: 14px; font-weight: 900; letter-spacing: .05em; text-decoration: none; }
.header-link { font-size: 13px; font-weight: 800; text-decoration: none; }
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-shell { width: min(1120px, 90vw); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding: 88px 0 56px; border-bottom: 2px solid var(--ink); }
.hero h1 { max-width: 860px; margin: 0; font-size: clamp(38px, 6.8vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
.hero p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.marker { background: linear-gradient(transparent 62%, var(--gold) 62%); }
.catalog { padding: 48px 0 86px; }
.catalog h2 { margin: 0 0 22px; font-size: 23px; }
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.article-card {
  display: flex;
  min-height: 290px;
  padding: 26px;
  flex-direction: column;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.article-card.triangle { background: var(--coral); }
.article-card.model { background: var(--blue); }
.article-card.agent-md { background: var(--mint); }
.article-card.context-guide { background: var(--lilac); }
.article-card.best-practices { background: var(--gold); }
.article-card.harness-loop { background: var(--blue); }
.article-card.monorepo { background: var(--coral); }
.article-number { font-family: var(--mono); font-size: 12px; font-weight: 900; }
.article-card h3 { margin: auto 0 10px; font-size: 30px; line-height: 1.18; letter-spacing: -.035em; }
.article-card p { margin: 0; font-size: 15px; }
.article-card .read-more { margin-top: 22px; font-weight: 900; }
.article-page { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 62px; padding: 74px 0 110px; }
.article-main { min-width: 0; }
.article-main h1 { margin: 0; font-size: clamp(38px, 5.5vw, 65px); line-height: 1.1; letter-spacing: -.055em; }
.lede { margin: 22px 0 42px; font-size: 19px; color: var(--muted); }
.article-main h2 { margin: 50px 0 14px; font-size: 28px; letter-spacing: -.035em; }
.article-main h3 { margin: 28px 0 8px; font-size: 20px; }
.article-main p, .article-main li { font-size: 16px; }
.article-main ul { padding-left: 1.3em; }
.article-main li + li { margin-top: 8px; }
.toc { align-self: start; position: sticky; top: 92px; padding: 16px; border-left: 3px solid var(--ink); }
.toc strong { display: block; margin-bottom: 7px; font-size: 13px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.callout { margin: 28px 0; padding: 22px 24px; border: 2px solid var(--ink); border-left: 8px solid var(--blue); background: #fff9e9; box-shadow: 4px 4px 0 var(--ink); }
.callout strong { font-size: 18px; }
.diagram { margin: 32px 0; padding: 28px; border: 2px solid var(--ink); background: #fff9e9; }
.triangle-figure { position: relative; width: min(430px, 100%); height: 290px; margin: 12px auto 8px; }
.triangle-shape { position: absolute; top: 42px; left: 50%; width: 270px; height: 205px; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(145deg, var(--blue), var(--gold)); border: 3px solid var(--ink); }
.triangle-center { position: absolute; top: 133px; left: 50%; width: 105px; transform: translateX(-50%); text-align: center; font-size: 14px; font-weight: 900; line-height: 1.3; }
.vertex { position: absolute; padding: 6px 12px; border: 2px solid var(--ink); background: #fff9e9; box-shadow: 2px 2px 0 var(--ink); font-weight: 900; font-size: 14px; }
.vertex.speed { top: 0; left: 50%; transform: translateX(-50%); background: var(--mint); }
.vertex.quality { bottom: 0; left: 0; background: var(--blue); }
.vertex.cost { right: 0; bottom: 0; max-width: 162px; background: var(--gold); text-align: center; font-size: 12px; line-height: 1.35; }
.diagram-caption { margin: 18px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.dimension-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; align-items: stretch; }
.dimension { display: flex; min-height: 90px; padding: 11px 8px; flex-direction: column; justify-content: center; border: 2px solid var(--ink); text-align: center; font-size: 13px; font-weight: 900; line-height: 1.25; }
.dimension small { margin-top: 5px; font-size: 11px; font-weight: 600; }
.dimension:nth-child(1) { background: var(--blue); }.dimension:nth-child(2) { background: var(--mint); }.dimension:nth-child(3) { background: var(--gold); }.dimension:nth-child(4) { background: var(--lilac); }.dimension:nth-child(5) { background: var(--coral); }
.flow-arrow { margin: 14px 0 7px; color: #527c9e; font-size: 28px; font-weight: 900; text-align: center; line-height: 1; }
.outcome { width: min(280px, 100%); margin: 0 auto; padding: 14px; border: 3px solid var(--ink); background: var(--gold); box-shadow: 3px 3px 0 var(--ink); text-align: center; font-size: 18px; font-weight: 900; line-height: 1.3; }
.comparison { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison th, .comparison td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { background: var(--ink); color: #fff9e9; }
.back-deck { display: inline-block; margin-top: 45px; padding: 9px 13px; border: 2px solid var(--ink); background: var(--mint); box-shadow: 3px 3px 0 var(--ink); font-weight: 900; text-decoration: none; }
.site-footer { padding: 26px max(5vw, 24px); border-top: 2px solid var(--ink); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.source-article {
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
}
.source-article::first-line { font-weight: 700; }
.source-article.is-rendered { display: none; }
.markdown-body { font-size: 16px; line-height: 1.72; }
.markdown-body h2 { margin: 52px 0 16px; font-size: 30px; line-height: 1.22; letter-spacing: -.035em; }
.markdown-body h3 { margin: 32px 0 10px; font-size: 22px; line-height: 1.35; }
.markdown-body h4 { margin: 24px 0 8px; font-size: 18px; }
.markdown-body p { margin: 14px 0; }
.markdown-body blockquote { margin: 22px 0; padding: 14px 20px; border-left: 6px solid #527c9e; background: rgba(185, 217, 237, .48); font-size: 18px; }
.markdown-body blockquote p { margin: 0; }
.markdown-body ul { padding-left: 1.35em; }
.markdown-body li + li { margin-top: 5px; }
.markdown-body code { padding: .08em .32em; border: 1px solid rgba(28,27,23,.24); border-radius: 3px; background: #f5d363; font-family: var(--mono); font-size: .88em; }
.markdown-body .md-code { margin: 17px 0; padding: 15px 17px; overflow-x: auto; border: 2px solid var(--ink); background: #1c1b17; color: #fff9e9; box-shadow: 3px 3px 0 #527c9e; line-height: 1.55; }
.markdown-body .md-code code { padding: 0; border: 0; background: transparent; color: inherit; font-size: 13px; }
.markdown-body .md-table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.markdown-body .md-table th, .markdown-body .md-table td { padding: 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown-body .md-table th { background: var(--ink); color: #fff9e9; }
.markdown-body hr { margin: 34px 0; border: 0; border-top: 2px solid var(--ink); }
.markdown-body .md-figure { margin: 36px 0; text-align: center; }
.markdown-body .md-figure img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink); background: var(--paper); display: block; margin: 0 auto; }
.markdown-body .md-figure figcaption { margin-top: 12px; font-size: 13.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .site-header { padding: 10px 5vw; }.hero { padding: 58px 0 40px; }.article-list { grid-template-columns: 1fr; }.article-page { display: block; padding-top: 48px; }.toc { display: none; }.dimension-flow { grid-template-columns: 1fr; }.dimension { min-height: 56px; }.triangle-figure { height: 310px; }.triangle-shape { width: 230px; height: 184px; }.vertex.quality { left: -8px; }.vertex.cost { right: -8px; }
}
