:root {
  --bg: #0b1020;
  --panel: #121a31;
  --text: #eef2ff;
  --muted: #a8b2cf;
  --line: #273454;
  --accent: #8fb3ff;
  --accent-2: #c5a6ff;
  --max: 980px;
  --article: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(143,179,255,.15), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(197,166,255,.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
body.zh {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.82;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 750; letter-spacing: .03em; color: var(--text); white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; justify-content: flex-end; }
.links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .42rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.025); font-size: .82rem; white-space: nowrap;
}
.lang-switch a, .lang-switch span { padding: .16rem .4rem; border-radius: 999px; }
.lang-switch .active { color: var(--bg); background: var(--text); font-weight: 750; }
.lang-switch .pending { color: var(--muted); }
.hero { padding: 2.2rem 0 4rem; }
.hero-split {
  position: relative;
  display: block;
}
.hero-copy {
  min-width: 0;
  max-width: 760px;
}
.hero-emblem {
  position: absolute;
  top: 2.2rem;
  right: 0;
  width: clamp(112px, 15vw, 156px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-emblem img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(143,179,255,.20)) drop-shadow(0 0 34px rgba(197,166,255,.10));
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: .98; margin: .7rem 0 1.3rem; letter-spacing: -.055em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 1rem; letter-spacing: -.025em; }
h3 { margin: .2rem 0 .45rem; }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 2.3vw, 1.35rem); }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-block; padding: .72rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255,255,255,.025); }
.button.primary { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
section { padding: 2.3rem 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }
.card p, .muted { color: var(--muted); }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--accent); }
.quote { border-left: 3px solid var(--accent-2); padding-left: 1.2rem; font-size: 1.22rem; max-width: 760px; }
.page { padding: 4.5rem 0; max-width: 790px; }
.page h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.list { padding-left: 1.2rem; }
.meta { color: var(--muted); font-size: .92rem; }
.status { display: inline-block; margin-top: .7rem; color: var(--accent); font-size: .9rem; }
.article-header { max-width: var(--article); padding: 5rem 0 2rem; }
.article-header h1 { font-size: clamp(2.35rem, 7vw, 4.8rem); line-height: 1.08; }
.article-subtitle { color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.32rem); max-width: 720px; }
.byline { margin-top: 1.1rem; color: var(--muted); }
.article-body { max-width: var(--article); font-size: 1.04rem; }
.article-body p { margin: 1rem 0 1.28rem; }
.article-body h2 { margin: 3.4rem 0 1.15rem; padding-top: .2rem; font-size: clamp(1.55rem, 4vw, 2.15rem); }
.article-body h3 { margin-top: 2rem; }
.article-body blockquote {
  margin: 1.7rem 0; padding: .3rem 0 .3rem 1.15rem;
  border-left: 3px solid var(--accent-2); color: #d8def1;
}
.article-body blockquote p { margin: .55rem 0; }
.article-body pre {
  overflow-x: auto; padding: 1.15rem; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(8,13,27,.78); line-height: 1.65;
}
.article-body code { background: var(--panel); padding: .1rem .35rem; border-radius: 6px; }
.article-body pre code { background: transparent; padding: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 1.7rem 0 2rem; border: 1px solid var(--line); border-radius: 14px; }
.article-body table { width: 100%; min-width: 680px; border-collapse: collapse; background: rgba(8,13,27,.42); }
.article-body th, .article-body td { padding: .78rem .85rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { color: var(--text); background: rgba(255,255,255,.045); font-size: .92rem; }
.article-body td { color: #d8def1; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body th:last-child, .article-body td:last-child { border-right: 0; }
.article-note { max-width: var(--article); margin: 1.2rem 0 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.025); }
.like-button {
  margin-top: .85rem;
  padding: .48rem .78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.like-button:hover,
.like-button:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(143,179,255,.08);
}
/*
  Static-page fallback for article visits. Each article maps to its own
  GoatCounter path even when opened directly from an external link.
*/
body:has(.article-body)::before {
  content: "";
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background-image: var(--article-visit-pixel, none);
  background-repeat: no-repeat;
}
body:not(.zh):has(.article-body):has(a[href*="how-ai-starts-the-next-turn.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Farticles%2Fhow-ai-starts-the-next-turn.html");
}
body.zh:has(.article-body):has(a[href*="how-ai-starts-the-next-turn.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Fzh%2Farticles%2Fhow-ai-starts-the-next-turn.html");
}
body:not(.zh):has(.article-body):has(a[href*="china-agent-memory-classifiers.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Farticles%2Fchina-agent-memory-classifiers.html");
}
body.zh:has(.article-body):has(a[href*="china-agent-memory-classifiers.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Fzh%2Farticles%2Fchina-agent-memory-classifiers.html");
}
body:not(.zh):has(.article-body):has(a[href*="chatgpt-account-memory.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Farticles%2Fchatgpt-account-memory.html");
}
body.zh:has(.article-body):has(a[href*="chatgpt-account-memory.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Fzh%2Farticles%2Fchatgpt-account-memory.html");
}
body:not(.zh):has(.article-body):has(a[href*="when-an-ai-enters-an-ai-forum.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Farticles%2Fwhen-an-ai-enters-an-ai-forum.html");
}
body.zh:has(.article-body):has(a[href*="when-an-ai-enters-an-ai-forum.html"]) {
  --article-visit-pixel: url("https://see-sol-lab.goatcounter.com/count?p=%2Fzh%2Farticles%2Fwhen-an-ai-enters-an-ai-forum.html");
}
footer { margin-top: 4rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
  .hero-split { position: relative; }
  .hero-copy { max-width: calc(100% - 4.8rem); }
  .hero-emblem {
    top: 2.6rem;
    right: 0;
    width: 72px;
  }
  nav { align-items: flex-start; flex-direction: column; }
  .nav-right { align-items: flex-start; justify-content: flex-start; }
  .article-header { padding-top: 3.7rem; }
}
