/* ============================================================
   Lau · Portfolio — warm editorial theme
   Inspired by the immersive scroll-driven landing page pattern:
   cream canvas, deep plum bands, calligraphic display type.
   ============================================================ */
:root {
  --cream: #fff8f1;
  --cream-2: #fbeedf;
  --surface: #ffffff;
  --ink: #241322;
  --ink-2: #2c1825;
  --ink-3: #3a2130;
  --text: #2a1d24;
  --muted: #7a6972;
  --border: #f0e1cf;
  --border-strong: #e7d3bc;

  --rose: #b76e79;
  --pink: #ff8fab;
  --purple: #7c5cff;
  --yellow: #ffd43b;
  --blue: #74c0fc;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(36,19,34,.05), 0 10px 30px rgba(36,19,34,.06);
  --shadow-float: 0 24px 70px rgba(36,19,34,.16);

  --font-display-cn: "Ma Shan Zheng", "ZCOOL XiaoWei", "KaiTi", "STKaiti", cursive;
  --font-display-en: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.7; background: var(--cream); color: var(--text); font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--text); }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,248,241,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 66px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--pink);
  font-family: var(--font-display-en); font-weight: 700; font-size: 17px;
}
.brand-text { font-size: .98rem; line-height: 1.1; }
.brand-text small { display: block; letter-spacing: .16em; font-size: .64rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 13px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.nav a:hover { color: var(--text); background: rgba(36,19,34,.06); text-decoration: none; }
.nav .nav-cta { color: var(--cream); background: var(--ink); padding: 8px 16px; }
.nav .nav-cta:hover { background: var(--ink-2); color: var(--pink); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 150px; overflow: hidden; background: var(--ink); color: var(--cream);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("./hero-bg.svg");
  background-size: cover; background-position: center;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(36,19,34,.30), rgba(36,19,34,.46) 58%, rgba(36,19,34,.94)),
    linear-gradient(100deg, rgba(36,19,34,.78) 0%, rgba(36,19,34,.10) 48%, rgba(36,19,34,.66) 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-micro {
  position: absolute; z-index: 2; font-family: var(--font-display-en);
  font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,248,241,.55);
  writing-mode: vertical-rl;
}
.hero-micro-no { top: 118px; right: 36px; }
.hero-micro-scroll { bottom: 130px; left: 36px; }
.kicker {
  font-family: var(--font-display-en); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; color: var(--rose); text-transform: uppercase; margin-bottom: 22px;
}
.kicker-hero { color: var(--pink); }
.hero-name { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.hero-cn { font-family: var(--font-display-cn); font-weight: 400; font-size: clamp(3.4rem, 9vw, 7rem); color: var(--cream); }
.hero-en {
  font-family: var(--font-display-en); font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem); letter-spacing: .18em; color: transparent;
  -webkit-text-stroke: 2px var(--cream); margin-left: 2px;
}
.hero-line { margin-top: 26px; max-width: 620px; font-size: 1.05rem; color: #d9c6cf; }
.hero-line em { font-style: normal; color: var(--cream); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .84rem; color: #c9a9c0; }
.hero .btn-ghost { color: var(--cream); border-color: rgba(255,248,241,.34); }
.hero .btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--cream); box-shadow: 0 10px 24px rgba(36,19,34,.18); }
.btn-solid:hover { background: var(--ink-2); color: var(--pink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-avatar { margin: 0; }
.hero-avatar img {
  width: 168px; height: 168px; object-fit: cover; border-radius: 34px;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-float); background: #fff;
}
.hero-chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: .78rem; font-weight: 650;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-strong); background: #fff;
  font-family: var(--font-display-en); letter-spacing: .02em; white-space: nowrap;
}
.chip-rose { top: 0; right: -18px; color: var(--rose); }
.chip-purple { top: 96px; left: -54px; color: var(--purple); }
.chip-yellow { bottom: 8px; right: -28px; color: #8a6500; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-display-en); font-size: .68rem; letter-spacing: .32em; color: #c9a9c0;
}
.hero-scroll-arrow { font-size: 1.05rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ===== Ticker ===== */
.ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.ticker-track { display: flex; gap: 26px; width: max-content; padding: 14px 0; animation: marquee 28s linear infinite; }
.ticker-track span { font-family: var(--font-display-en); font-size: .78rem; letter-spacing: .22em; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Band (transition) ===== */
.band { background: var(--ink); color: var(--cream); padding: 72px 0; }
.band-inner { display: flex; flex-direction: column; gap: 12px; }
.band-cn { font-family: var(--font-display-cn); font-size: clamp(1.7rem, 4.4vw, 3rem); line-height: 1.35; }
.band-en { font-family: var(--font-display-en); font-size: .76rem; letter-spacing: .3em; color: var(--pink); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pagehead { max-width: 760px; margin-bottom: 44px; }
.pagehead h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.02em; font-weight: 700; }
.pagehead .subtitle { margin-top: 12px; color: var(--muted); font-size: .96rem; }

/* ===== Fragment gallery ===== */
.frag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.frag {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease; color: var(--text);
}
.frag:hover { text-decoration: none; transform: translateY(-5px); box-shadow: var(--shadow-float); }
.frag-media { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.frag-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.frag:hover .frag-media img { transform: scale(1.04); }
.frag-no {
  position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(36,19,34,.78); color: var(--pink); font-family: var(--font-display-en);
  font-size: .7rem; letter-spacing: .1em; backdrop-filter: blur(4px);
}
.frag-body { padding: 18px 18px 20px; }
.frag-body h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.frag-body p { margin-top: 8px; font-size: .87rem; color: var(--muted); }

.gallery-note { margin-top: 18px; max-width: 72ch; font-size: .98rem; color: var(--text); }
.gallery-sign { margin-top: 30px; text-align: right; font-family: var(--font-display-cn); font-size: 1.5rem; color: var(--rose); }

/* ===== Project cards ===== */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 26px 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--rose); }
.card p { font-size: .92rem; color: var(--muted); }
.card .meta { font-size: .84rem; color: var(--muted); margin-top: auto; }
.card .meta a { color: var(--rose); font-weight: 600; }

.metrics { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.metric { font-size: .8rem; color: var(--muted); white-space: nowrap; font-family: var(--font-display-en); }
.metric b { font-weight: 700; color: var(--ink); font-size: .92rem; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: .74rem; font-weight: 600; color: var(--text); padding: 4px 11px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--cream);
}

/* ===== PR rows (open source + blog list) ===== */
.pr-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.pr-row:last-child { border-bottom: 0; }
.pr-num { font-family: var(--font-display-en); font-size: .86rem; font-weight: 700; color: var(--rose); letter-spacing: .04em; padding-top: 3px; }
.pr-body h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.pr-body h3 a { color: var(--text); }
.pr-body h3 a:hover { color: var(--rose); }
.pr-body p { margin-top: 6px; font-size: .9rem; color: var(--muted); max-width: 78ch; }
.pr-body .meta { margin-top: 8px; font-size: .78rem; color: var(--muted); }
.pr-body .meta a { color: var(--rose); }

/* ===== Work ===== */
.work {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  border-left: 4px solid var(--rose); padding: 26px 28px; box-shadow: var(--shadow-card);
}
.work h3 { font-size: 1.08rem; }
.work .org { color: var(--rose); font-size: .86rem; font-weight: 600; margin: 6px 0 12px; }
.work p { font-size: .94rem; color: var(--muted); max-width: 78ch; }

/* ===== Data center ===== */
.datacenter { background: var(--ink); color: var(--cream); padding: 88px 0; }
.pagehead-dark h2 { color: var(--cream); }
.pagehead-dark .subtitle { color: #c9a9c0; }
.kicker-dark { color: var(--pink); }
.pulse-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 26px; }
.pulse-cell {
  border: 1px solid rgba(255,248,241,.16); border-radius: var(--radius); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; background: rgba(255,248,241,.03);
}
.pulse-cell b { font-family: var(--font-display-en); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--pink); letter-spacing: -.01em; }
.pulse-cell span { font-size: .8rem; color: #c9a9c0; }
.pulse-live { font-family: var(--font-display-en); font-size: .78rem; letter-spacing: .08em; color: #c9a9c0; margin-bottom: 12px; }
.pulse-live span { color: var(--pink); }
.pulse-status { display: flex; align-items: center; gap: 10px; font-family: var(--font-display-en); font-size: .8rem; letter-spacing: .06em; color: #e8d6de; margin-bottom: 24px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 0 rgba(94,224,138,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,224,138,.55); } 70% { box-shadow: 0 0 0 10px rgba(94,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(94,224,138,0); } }
.pulse-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--pink); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--cream); border-color: rgba(255,248,241,.3); }
.btn-ghost-dark:hover { border-color: var(--pink); color: var(--pink); }

/* ===== Outro / closing CTA ===== */
.outro { background: var(--ink); color: var(--cream); padding: 128px 0; text-align: center; border-top: 1px solid rgba(255,248,241,.08); }
.outro .kicker-dark { color: var(--pink); }
.outro-title { font-size: clamp(2rem, 5.6vw, 3.7rem); letter-spacing: -.02em; line-height: 1.14; color: var(--cream); margin: 18px 0 22px; }
.outro-sub { color: #c9a9c0; font-size: 1rem; max-width: 56ch; margin: 0 auto 36px; }
.outro-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c9a9c0; padding: 56px 0 64px; font-size: .88rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--pink); }
.site-footer .brand { margin-bottom: 6px; }
.brand-dark .brand-mark { background: var(--cream); color: var(--ink); }
.brand-dark { color: var(--cream); }
.brand-dark small { color: #c9a9c0; }

/* ===== Post pages ===== */
.post { max-width: 780px; margin: 0 auto; padding: 52px 28px 72px; }
.post .back { display: inline-block; margin-bottom: 24px; font-size: .85rem; color: var(--muted); }
.post .back:hover { color: var(--rose); }
.post header h1 { font-size: 1.85rem; letter-spacing: -.02em; margin-bottom: 12px; line-height: 1.35; }
.post .post-meta { color: var(--muted); font-size: .85rem; margin-bottom: 34px; }
.post article { font-size: .98rem; }
.post article h2 { font-size: 1.24rem; margin: 36px 0 14px; letter-spacing: -.01em; }
.post article h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.post article p { margin: 0 0 16px; }
.post article ul, .post article ol { padding-left: 24px; margin: 0 0 16px; }
.post article li { margin: 0 0 8px; }
.post article code {
  background: var(--cream-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; font-size: .88em;
}
.post article pre {
  background: var(--ink); color: #f6e8ec; padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; margin: 0 0 18px;
}
.post article pre code { background: none; border: 0; color: inherit; padding: 0; }
.post article blockquote {
  margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--rose);
  background: var(--cream-2); color: var(--text); border-radius: 0 12px 12px 0; font-size: .95rem;
}
.post article blockquote p { margin: 0; }
.post article a { color: var(--rose); }

/* ===== Blog figures: tables & diagrams ===== */
.post article table {
  width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .875rem; line-height: 1.5;
}
.post article th, .post article td {
  border: 1px solid var(--border-strong); padding: 9px 12px; text-align: left; vertical-align: top;
}
.post article th { background: var(--cream-2); font-weight: 650; }
.post article td code, .post article th code { font-size: .82em; }

.dwrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin: 22px 0;
  box-shadow: var(--shadow-card); overflow-x: auto;
}
.dwrap .cap { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.dwrap svg { display: block; width: 100%; height: auto; min-width: 460px; }

.dnode { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.2; }
.dnode-fill { fill: #fdeef0; stroke: var(--rose); stroke-width: 1.2; }
.dnode-clay { fill: #fff2e6; stroke: #d79376; stroke-width: 1.2; }
.dnode-ink { fill: #241322; stroke: #3a2130; stroke-width: 1.2; }
.dtitle { fill: var(--text); font-size: 13px; font-weight: 650; font-family: inherit; }
.dsub { fill: var(--muted); font-size: 11px; font-family: inherit; }
.dlabel { fill: var(--muted); font-size: 11px; font-family: inherit; }
.dline { stroke: var(--muted); stroke-width: 1.3; fill: none; }
.dline-a { stroke: var(--rose); stroke-width: 1.4; fill: none; }
.dhead { fill: var(--rose); }
.dbody { fill: var(--muted); }
.arrow { fill: var(--muted); }
.arrow-a { fill: var(--rose); }
.dline-dash { stroke: var(--muted); stroke-width: 1.2; fill: none; stroke-dasharray: 5 5; }

/* Figures are always rendered on a light canvas (like printed figures),
   so diagrams stay legible regardless of the surrounding tone. */
.dwrap { background: #FFFFFF; border-color: #E5E7EB; }
.dwrap .dnode { fill: #FFFFFF; stroke: #E5E7EB; }
.dwrap .dnode-fill { fill: #FDEEF0; stroke: #B76E79; }
.dwrap .dnode-clay { fill: #FFF2E6; stroke: #D79376; }
.dwrap .dnode-ink { fill: #241322; stroke: #3A2130; }
.dwrap .dtitle { fill: #1D1D1F; }
.dwrap .dsub { fill: #6E6E73; }
.dwrap .dlabel { fill: #6E6E73; }
.dwrap .dline { stroke: #6E6E73; }
.dwrap .dline-a { stroke: #B76E79; }
.dwrap .dline-dash { stroke: #9AA7B4; }
.dwrap .arrow { fill: #6E6E73; }
.dwrap .arrow-a { fill: #B76E79; }
.dwrap .dhead { fill: #B76E79; }
.dwrap .dbody { fill: #6E6E73; }

/* ===== Scroll reveal (opt-in via JS) ===== */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .frag, html.js-anim .card, html.js-anim .pr-row,
  html.js-anim .pulse-cell, html.js-anim .pagehead, html.js-anim .work {
    opacity: 0; transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
  }
  html.js-anim .in { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-micro { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-avatar img { width: 128px; height: 128px; border-radius: 26px; }
  .hero-chip { position: static; }
  .frag-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .pulse-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 72px 0 110px; min-height: auto; }
  .hero-cn { font-size: 3rem; }
  .hero-en { font-size: 2.6rem; -webkit-text-stroke-width: 1.5px; }
  .section { padding: 60px 0; }
  .frag-grid { grid-template-columns: 1fr; }
  .pr-row { grid-template-columns: 1fr; gap: 6px; }
  .nav a { padding: 7px 10px; font-size: .82rem; }
  .nav .nav-cta { display: none; }
  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .post { padding: 36px 18px 56px; }
}

/* ===== Nav active state ===== */
.nav a.active { color: var(--text); background: rgba(36,19,34,.07); }

/* ===== Blog archive hero ===== */
.archive-hero { padding: 96px 0 20px; }
.archive-title { font-family: var(--font-display-cn); font-weight: 400; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--ink); }
.archive-title-en { font-size: .55em; color: var(--rose); margin-left: 8px; }
.archive-sub { margin-top: 16px; max-width: 640px; color: var(--muted); font-size: 1rem; }

/* ===== Timeline / archive ===== */
.timeline { position: relative; margin-top: 24px; padding-left: 4px; }
.tl-group { position: relative; padding: 6px 0 10px 250px; }
.tl-group::before {
  content: ""; position: absolute; left: 118px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(var(--rose), var(--border-strong));
}
.tl-month { position: sticky; top: 78px; margin: 0 0 8px -250px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tl-month-cn { font-family: var(--font-display-cn); font-size: 1.6rem; color: var(--ink); }
.tl-month-en { font-family: var(--font-display-en); font-size: .7rem; letter-spacing: .26em; color: var(--rose); }

.tl-item { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 16px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -136px; top: 26px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rose); box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--rose);
}
.tl-date { display: flex; flex-direction: column; align-items: center; gap: 0; }
.tl-date b { font-family: var(--font-display-en); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.tl-date span { font-family: var(--font-display-en); font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.tl-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-card); }
.tl-body h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.tl-body h3 a { color: var(--text); }
.tl-body h3 a:hover { color: var(--rose); text-decoration: none; }
.tl-body p { margin-top: 6px; font-size: .88rem; color: var(--muted); }

.blog-more {
  margin-top: 8px; padding: 20px 22px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.blog-more p { color: var(--muted); font-size: .9rem; }

.archive-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

@media (max-width: 720px) {
  .tl-group { padding-left: 0; }
  .tl-group::before { left: 24px; }
  .tl-month { position: static; margin: 18px 0 6px 0; flex-direction: row; align-items: baseline; gap: 10px; }
  .tl-item { grid-template-columns: 64px 1fr; }
  .tl-item::before { left: 18px; }
  .tl-date b { font-size: 1.4rem; }
  .archive-hero { padding-top: 64px; }
}

/* ===== Open source groups ===== */
.oss-group-title { margin: 32px 0 2px; font-family: var(--font-display-en); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.oss-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: #fff; font-size: .78rem; letter-spacing: .04em; }
.oss-badge.merged { background: #2f9e63; }
.oss-badge.open { background: var(--purple); }
.oss-badge.closed { background: #8a7d85; }

/* ===== Live PR stats ===== */
.pulse-cell em { font-style: normal; color: var(--pink); font-weight: 700; }
.hero-chip b { font-weight: 700; }
