/* ═══════════════════════════════════════════════════════
   SCMP ENGLISH LEARNING — Midnight Ink Edition
   Redesign · Claude · April 2026
   Fonts: Spectral · DM Sans · Noto Serif SC
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS (dark-first) ────────────────────────────────── */
:root {
  --bg:        #07091A;
  --bg-2:      #0C0F26;
  --surface:   #101628;
  --surface-2: #171D38;
  --border:    #1E2848;
  --border-2:  #283258;
  --text:      #EDE9DF;
  --text-2:    #B8B0A0;
  --muted:     #7C8FA0;
  --faint:     #364460;
  --accent:    #CFB840;
  --accent-lt: #1A1604;
  --teal:      #28C8B8;
  --teal-lt:   #071614;
  --coral:     #E06855;
  --coral-lt:  #1C0C0A;
  --link:      #6BA8E8;
  --link-lt:   #0C1828;
  --gold-dim:  #6A5C20;
  --max-w:     82rem;
  --prose-w:   50rem;
  --r-sm: 4px; --r: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --s1: 0 2px 12px rgba(0,0,0,.50);
  --s2: 0 6px 28px rgba(0,0,0,.60);
  --s3: 0 16px 56px rgba(0,0,0,.70);
  --s-gold: 0 0 0 1px rgba(207,184,64,.2), 0 4px 24px rgba(207,184,64,.12);
  --t: .2s ease; --t-slow: .35s ease;
}

[data-theme="light"] {
  --bg:        #F7F8FF;
  --bg-2:      #ECEFFE;
  --surface:   #FFFFFF;
  --surface-2: #E4E9FA;
  --border:    #D6DCF2;
  --border-2:  #BFCAEC;
  --text:      #080E1E;
  --text-2:    #1C2840;
  --muted:     #5A6882;
  --faint:     #9AAAC8;
  --accent:    #A68B00;
  --accent-lt: #FFF8D0;
  --teal:      #0C8A7C;
  --teal-lt:   #E0F8F4;
  --coral:     #C84838;
  --coral-lt:  #FEEFEC;
  --link:      #2454A0;
  --link-lt:   #EEF3FC;
  --gold-dim:  #C0A820;
  --s1: 0 2px 12px rgba(8,14,30,.08);
  --s2: 0 6px 28px rgba(8,14,30,.12);
  --s3: 0 16px 56px rgba(8,14,30,.18);
  --s-gold: 0 0 0 1px rgba(166,139,0,.20), 0 4px 24px rgba(166,139,0,.10);
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.75;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-slow), color var(--t-slow);
}
a { color: var(--link); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5 { font-family: 'Spectral', Georgia, serif; line-height: 1.2; color: var(--text); letter-spacing: -.02em; }
img { max-width: 100%; height: auto; display: block; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

/* ── READING PROGRESS ──────────────────────────────────── */
.reading-bar { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 9999; pointer-events: none; }
.reading-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .1s linear; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t), border-color var(--t-slow);
}
.site-header.scrolled { box-shadow: var(--s2); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.75rem; max-width: var(--max-w); margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem); gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none !important; flex-shrink: 0; }
.logo-mark {
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.1rem; font-weight: 800; font-style: italic;
  color: var(--accent); letter-spacing: -.02em; position: relative;
}
.logo-mark::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1.5px; background: var(--accent); opacity: .3; }
.logo-divider { width: 1px; height: 1.1rem; background: var(--border-2); }
.logo-text { font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-center { font-family: 'DM Sans', sans-serif; font-size: .65rem; font-weight: 400; letter-spacing: .07em; color: var(--faint); text-transform: uppercase; }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 500; color: var(--muted);
  letter-spacing: .02em; position: relative; padding: .25rem 0; transition: color var(--t);
}
.nav-link::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1.5px; background: var(--accent); transition: width var(--t); }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.theme-btn {
  width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.theme-btn svg { width: 14px; height: 14px; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* ── HOMEPAGE HERO ─────────────────────────────────────── */
.hero-masthead {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem,10vw,7.5rem) clamp(1.25rem,5vw,2.5rem) clamp(3.5rem,7vw,5.5rem);
  border-bottom: 1px solid var(--border);
}
.hero-masthead::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 90% at 95% 15%, color-mix(in srgb, var(--accent) 9%, transparent), transparent),
    radial-gradient(ellipse 40% 60% at 5% 90%, color-mix(in srgb, var(--teal) 6%, transparent), transparent);
}
.hero-masthead::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .18;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
}

.masthead-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 2rem;
}
.masthead-text { max-width: 46rem; }

.masthead-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.eyebrow-bar { width: 2.25rem; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); flex-shrink: 0; }
.eyebrow-tag { font-family: 'DM Sans', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.eyebrow-date { font-family: 'DM Sans', sans-serif; font-size: .62rem; color: var(--faint); letter-spacing: .05em; margin-left: auto; }

.masthead-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  font-weight: 800; letter-spacing: -.05em; line-height: 1.04;
  margin-bottom: 1.5rem;
}
.masthead-title em { font-style: italic; color: var(--accent); }
.masthead-title span { display: block; }

.masthead-sub {
  font-family: 'DM Sans', sans-serif; font-size: .97rem; line-height: 1.82;
  color: var(--text-2); max-width: 40rem; margin-bottom: 2.75rem;
}

.btn-cta {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--bg) !important; background: var(--accent);
  padding: .85rem 2.25rem; border-radius: var(--r-sm);
  text-decoration: none !important; display: inline-flex; align-items: center; gap: .6rem;
  transition: all var(--t); box-shadow: 0 4px 24px rgba(207,184,64,.28);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(207,184,64,.38); color: var(--bg) !important; }
.btn-cta svg { width: 14px; height: 14px; transition: transform var(--t); }
.btn-cta:hover svg { transform: translateX(4px); }

[data-theme="light"] .btn-cta { color: #fff !important; box-shadow: 0 4px 24px rgba(166,139,0,.28); }
[data-theme="light"] .btn-cta:hover { color: #fff !important; box-shadow: 0 8px 36px rgba(166,139,0,.38); }

.masthead-deco { position: relative; z-index: 1; text-align: right; align-self: end; padding-bottom: .5rem; }
.deco-num {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(6rem,15vw,12rem); font-weight: 800; font-style: italic;
  line-height: 1; letter-spacing: -.06em; user-select: none;
  color: var(--border-2); opacity: .5;
}
.deco-label { font-family: 'DM Sans', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ── FEATURED STRIP ────────────────────────────────────── */
.featured-article { border-bottom: 1px solid var(--border); background: var(--surface); }
.featured-inner {
  max-width: var(--max-w); margin-inline: auto;
  padding: 2.75rem clamp(1.25rem,5vw,2.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
}
.featured-text { max-width: 54rem; }
.featured-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.label-featured {
  font-family: 'DM Sans', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  padding: .22rem .65rem; border-radius: var(--r-sm);
}
.feat-date { font-family: 'DM Sans', sans-serif; font-size: .73rem; color: var(--faint); }
.featured-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.28; margin-bottom: .85rem;
}
.featured-title a { color: var(--text) !important; transition: color var(--t); }
.featured-title a:hover { color: var(--accent) !important; }
.featured-zh {
  font-family: 'Noto Serif SC', serif; font-size: .85rem; line-height: 1.9;
  color: var(--teal); border-left: 2.5px solid var(--teal);
  padding: .65rem 1rem; background: var(--teal-lt);
  border-radius: 0 var(--r) var(--r) 0; max-width: 50rem; margin-bottom: 1.25rem;
}
.feat-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.feat-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.feat-open-btn {
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent) !important; border: 1.5px solid var(--gold-dim);
  padding: .65rem 1.65rem; border-radius: var(--r-sm);
  white-space: nowrap; transition: all var(--t); background: var(--accent-lt);
}
.feat-open-btn:hover { background: var(--accent); color: var(--bg) !important; border-color: var(--accent); transform: translateX(3px); }

/* ── ARTICLE FEED ──────────────────────────────────────── */
.article-feed {
  max-width: var(--max-w); margin-inline: auto;
  padding: 3rem clamp(1.25rem,5vw,2.5rem) 5rem;
}
.feed-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.75rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border);
}
.feed-title {
  font-family: 'DM Sans', sans-serif; font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.feed-all { font-family: 'DM Sans', sans-serif; font-size: .73rem; font-weight: 500; color: var(--faint); transition: color var(--t); }
.feed-all:hover { color: var(--accent); }

.article-grid {
  counter-reset: card-counter;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.article-grid-full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }

.article-card {
  counter-increment: card-counter;
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.article-card:hover { border-color: var(--gold-dim); box-shadow: var(--s-gold); transform: translateY(-4px); }

.card-number {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-family: 'Spectral', Georgia, serif; font-size: 2.25rem; font-weight: 800; font-style: italic;
  line-height: 1; user-select: none;
  color: var(--border-2); transition: color var(--t);
}
.article-card:hover .card-number { color: color-mix(in srgb, var(--accent) 30%, transparent); }

.card-inner { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; gap: .65rem; }
.card-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-date { font-family: 'DM Sans', sans-serif; font-size: .63rem; color: var(--faint); letter-spacing: .04em; margin-left: auto; }
.card-title {
  font-family: 'Spectral', Georgia, serif; font-size: .95rem; font-weight: 600;
  line-height: 1.47; letter-spacing: -.01em; flex-grow: 1; padding-right: 2.75rem;
}
.card-title a { color: var(--text) !important; transition: color var(--t); }
.card-title a:hover { color: var(--accent) !important; }
.card-zh {
  font-family: 'Noto Serif SC', serif; font-size: .78rem; line-height: 1.75; color: var(--teal);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border);
}
.card-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.card-link {
  font-family: 'DM Sans', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent) !important;
  white-space: nowrap; transition: letter-spacing var(--t);
}
.card-link:hover { letter-spacing: .12em; }

.feed-more { text-align: center; margin-top: 2.5rem; }

/* ── TAGS & PILLS ──────────────────────────────────────── */
.tag {
  font-family: 'DM Sans', sans-serif; font-size: .6rem; font-weight: 500;
  letter-spacing: .03em; color: var(--muted); background: var(--bg-2);
  border: 1px solid var(--border); padding: .12rem .45rem;
  border-radius: var(--r-sm); display: inline-block; transition: all var(--t);
}
.tag:hover { background: var(--accent-lt); border-color: var(--gold-dim); color: var(--accent); }

.diff-pill {
  font-family: 'DM Sans', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .14rem .45rem; border-radius: var(--r-sm); display: inline-block;
}
[data-theme="dark"] .diff-beginner     { background: #071A10; color: #40D890; border: 1px solid #1C4830; }
[data-theme="dark"] .diff-intermediate { background: #1A1000; color: #E8A820; border: 1px solid #483010; }
[data-theme="dark"] .diff-advanced     { background: #1A0808; color: #F06858; border: 1px solid #481818; }
[data-theme="light"] .diff-beginner    { background: #E0FFF0; color: #0A6830; border: 1px solid #A0DEC0; }
[data-theme="light"] .diff-intermediate{ background: #FFF8E0; color: #705800; border: 1px solid #E0C860; }
[data-theme="light"] .diff-advanced    { background: #FFF0EE; color: #A02818; border: 1px solid #E0A898; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-outline {
  font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted) !important;
  border: 1.5px solid var(--border-2); padding: .72rem 2.25rem; border-radius: var(--r-sm);
  text-decoration: none !important; display: inline-block; transition: all var(--t);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-lt); }

.btn-back {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 500;
  color: var(--muted) !important; display: inline-flex; align-items: center; gap: .4rem; transition: all var(--t);
}
.btn-back:hover { color: var(--accent) !important; gap: .65rem; }

/* ── LIST PAGE ─────────────────────────────────────────── */
.list-page { min-height: 80vh; }
.list-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 3.5rem clamp(1.25rem,5vw,2.5rem) 2.5rem; }
.list-header-inner { max-width: var(--max-w); margin-inline: auto; }
.list-eyebrow { font-family: 'DM Sans', sans-serif; font-size: .63rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 1rem; }
.list-title { font-family: 'Spectral', Georgia, serif; font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 1rem; }
.list-title em { font-style: italic; color: var(--accent); }
.list-sub { font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--muted); }
.list-body { max-width: var(--max-w); margin-inline: auto; padding: 2.5rem clamp(1.25rem,5vw,2.5rem) 5rem; }

/* ── SINGLE / ARTICLE PAGE ─────────────────────────────── */
.post-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.5rem clamp(1.25rem,5vw,2.5rem) 2.25rem; }
.post-hero-inner { max-width: var(--max-w); margin-inline: auto; }
.post-crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  font-family: 'DM Sans', sans-serif; font-size: .7rem; color: var(--faint);
}
.post-crumbs a { color: var(--muted); transition: color var(--t); }
.post-crumbs a:hover { color: var(--accent); }
.crumb-cur { color: var(--text-2); }
.post-meta-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.post-title {
  font-family: 'Spectral', Georgia, serif; font-size: clamp(1.7rem,4vw,2.8rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-bottom: 1rem; max-width: 54rem;
}
.post-meta {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif; font-size: .73rem; color: var(--faint);
}
.post-meta time { color: var(--muted); }
.source-link { color: var(--link); transition: color var(--t); }
.source-link:hover { color: var(--accent); }

/* ── TWO-COL ARTICLE LAYOUT ────────────────────────────── */
.post-content {
  max-width: var(--max-w); margin-inline: auto;
  padding: 2.5rem clamp(1.25rem,5vw,2.5rem) 0;
  display: grid; grid-template-columns: 1fr 17rem;
  gap: 3rem; align-items: start;
}
.post-body { min-width: 0; }

/* ── STICKY SIDEBAR ────────────────────────────────────── */
.post-sidebar { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem; }
.sidebar-box-title {
  font-family: 'DM Sans', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--faint);
  margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.sidebar-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.sidebar-tip { font-family: 'DM Sans', sans-serif; font-size: .78rem; line-height: 1.75; color: var(--text-2); }
.sidebar-tip strong { color: var(--accent); }

.sidebar-toc { display: flex; flex-direction: column; gap: .35rem; }
.toc-link {
  font-family: 'DM Sans', sans-serif; font-size: .73rem; color: var(--muted);
  line-height: 1.5; transition: color var(--t); display: block; padding: .2rem 0;
  border-left: 2px solid var(--border); padding-left: .65rem;
  transition: all var(--t);
}
.toc-link:hover { color: var(--accent); border-left-color: var(--accent); padding-left: .85rem; }

.sidebar-progress { display: flex; flex-direction: column; gap: .65rem; }
.progress-label { font-family: 'DM Sans', sans-serif; font-size: .66rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); display: flex; justify-content: space-between; }
.progress-pct { color: var(--accent); font-weight: 700; }
.progress-track { height: 3px; background: var(--border-2); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .12s linear; }

/* ── PROSE ─────────────────────────────────────────────── */
.post-body h2 {
  font-family: 'Spectral', Georgia, serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); margin: 2.5rem 0 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.post-body h3 { font-family: 'Spectral', Georgia, serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 2rem 0 .65rem; }
.post-body p { margin-bottom: 1.1rem; font-size: .95rem; color: var(--text-2); line-height: 1.82; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { font-style: italic; color: var(--accent); }

/* vocabulary table */
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); font-family: 'DM Sans', sans-serif; }
.post-body thead tr { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.post-body thead th { font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); padding: .7rem 1rem; text-align: left; border-bottom: 1.5px solid var(--border-2); }
.post-body tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t); }
.post-body tbody tr:last-child { border-bottom: none; }
.post-body tbody tr:hover { background: var(--surface-2); }
.post-body tbody td { padding: .65rem 1rem; font-size: .84rem; color: var(--text-2); vertical-align: top; line-height: 1.55; }
.post-body tbody td:first-child { color: var(--text); font-weight: 600; font-family: 'Spectral', Georgia, serif; font-size: .94rem; letter-spacing: -.01em; }
.post-body tbody td:nth-child(2) { font-family: 'Noto Serif SC', serif; color: var(--teal); font-size: .82rem; }

/* ordered lists */
.post-body ol { counter-reset: prose-list; list-style: none; margin: .5rem 0 1.5rem; }
.post-body ol > li {
  counter-increment: prose-list; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: .9rem 1rem .9rem 3.5rem; margin-bottom: .6rem;
  font-size: .87rem; line-height: 1.7; color: var(--text-2);
  transition: border-color var(--t), background var(--t);
}
.post-body ol > li:hover { border-color: var(--border-2); background: var(--surface-2); }
.post-body ol > li::before {
  content: counter(prose-list); position: absolute; left: 1rem; top: .85rem;
  width: 1.55rem; height: 1.55rem; background: var(--accent); color: var(--bg);
  font-family: 'DM Sans', sans-serif; font-size: .62rem; font-weight: 800;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
/* nested ol (example sentences) */
.post-body ol ol { margin: .45rem 0 .25rem .25rem; }
.post-body ol ol > li { background: var(--bg-2); padding: .5rem .9rem .5rem 3rem; font-style: italic; font-size: .8rem; color: var(--muted); border-color: transparent; }
.post-body ol ol > li::before { background: var(--border-2); color: var(--text-2); font-size: .56rem; }

/* ul */
.post-body ul { list-style: none; margin: .5rem 0 1.25rem .25rem; }
.post-body ul > li { position: relative; padding-left: 1.3rem; margin-bottom: .4rem; font-size: .87rem; color: var(--text-2); }
.post-body ul > li::before { content: '–'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* blockquote — teacher's tip */
.post-body blockquote {
  position: relative;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid var(--gold-dim); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.1rem 1.25rem 1.1rem 1.5rem; margin: 1.5rem 0;
  font-family: 'Spectral', Georgia, serif; font-style: italic;
  font-size: .88rem; line-height: 1.82; color: var(--text-2);
}
.post-body blockquote p { margin-bottom: 0; font-size: inherit; color: inherit; line-height: inherit; }
.post-body blockquote strong { color: var(--accent); font-style: normal; }

.post-body hr { border: none; height: 1px; background: linear-gradient(90deg, var(--border), transparent); margin: 2.5rem 0; }

.post-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .82em;
  background: var(--surface-2); color: var(--coral);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: .1em .4em;
}

/* ── POST FOOTER ───────────────────────────────────────── */
.post-foot {
  max-width: var(--max-w); margin-inline: auto;
  padding: 2.5rem clamp(1.25rem,5vw,2.5rem) 5rem;
  border-top: 1px solid var(--border); margin-top: 3rem;
}

/* ── SITE FOOTER ───────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem clamp(1.25rem,5vw,2.5rem); }
.footer-inner { max-width: var(--max-w); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { font-family: 'Spectral', Georgia, serif; font-size: .98rem; font-weight: 700; font-style: italic; color: var(--accent); letter-spacing: -.02em; }
.footer-logo em { font-style: normal; color: var(--text-2); }
.footer-tagline { font-family: 'DM Sans', sans-serif; font-size: .7rem; color: var(--faint); margin-top: .25rem; }
.footer-nav { display: flex; align-items: center; gap: 1.5rem; }
.footer-nav a { font-family: 'DM Sans', sans-serif; font-size: .73rem; font-weight: 500; color: var(--muted); transition: color var(--t); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-family: 'DM Sans', sans-serif; font-size: .68rem; color: var(--faint); text-align: right; }
.footer-note { color: var(--border-2); margin-top: .2rem; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
  .post-content { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .article-grid { grid-template-columns: repeat(2,1fr); }
  .featured-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-grid, .article-grid-full { grid-template-columns: 1fr; }
  .masthead-inner { grid-template-columns: 1fr; }
  .masthead-deco { display: none; }
  .nav-center { display: none; }
}

/* ═══════════════════════════════════════════════════════
   IMMERSIVE SCROLL FEED — one lesson at a time
   ═══════════════════════════════════════════════════════ */
html, body { height: 100%; }
body.feed-page { overflow: hidden; }
body.feed-page main { display: block; }

.feed-scroll {
  height: calc(100vh - 3.75rem);
  height: calc(100dvh - 3.75rem);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed-scroll::-webkit-scrollbar { display: none; }

.feed-slide {
  height: calc(100vh - 3.75rem);
  height: calc(100dvh - 3.75rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

.slide-link {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.slide-bg {
  position: absolute; inset: 0;
  background-size: 200% 200%;
  animation: slideDrift 18s ease-in-out infinite alternate;
}
@keyframes slideDrift { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }
.slide-bg-0 { background-image: radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--accent) 22%, var(--bg)) 0%, var(--bg) 55%), radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--teal) 20%, transparent) 0%, transparent 60%); }
.slide-bg-1 { background-image: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--coral) 20%, var(--bg)) 0%, var(--bg) 55%), radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--link) 18%, transparent) 0%, transparent 60%); }
.slide-bg-2 { background-image: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--teal) 20%, var(--bg)) 0%, var(--bg) 55%), radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%); }
.slide-bg-3 { background-image: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--link) 20%, var(--bg)) 0%, var(--bg) 55%), radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--coral) 16%, transparent) 0%, transparent 60%); }
.slide-bg-4 { background-image: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--accent) 18%, var(--bg)) 0%, var(--bg) 55%), radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--teal) 16%, transparent) 0%, transparent 60%); }

.slide-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.slide-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem clamp(1.25rem, 6vw, 4rem) clamp(3.5rem, 10vh, 5rem);
  max-width: 46rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.slide-top { display: flex; align-items: center; gap: .6rem; }
.slide-section {
  font-family: 'DM Sans', sans-serif; font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  padding: .3rem .6rem; border: 1px solid var(--gold-dim); border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.slide-title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.12; font-weight: 700; letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.slide-zh {
  font-family: 'Noto Serif SC', serif; font-size: 1rem; line-height: 1.8;
  color: var(--text-2); max-width: 40rem;
}

.slide-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.slide-meta time { font-family: 'DM Sans', sans-serif; font-size: .72rem; color: var(--faint); letter-spacing: .04em; }
.slide-tags { display: flex; gap: .3rem; flex-wrap: wrap; }

.slide-cta {
  display: inline-flex; align-items: center; gap: .5rem; width: max-content;
  font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--bg);
  background: linear-gradient(120deg, var(--accent), var(--teal));
  padding: .75rem 1.4rem; border-radius: 99px; margin-top: .5rem;
  box-shadow: var(--s-gold); transition: transform var(--t), box-shadow var(--t);
}
.slide-link:hover .slide-cta { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(207,184,64,.4); }
.slide-cta svg { width: 13px; height: 13px; transition: transform var(--t); }
.slide-link:hover .slide-cta svg { transform: translateX(4px); }

.feed-progress {
  position: fixed; right: 10px; top: calc(3.75rem + 1rem); bottom: 1rem;
  width: 3px; background: var(--border); border-radius: 3px; z-index: 50;
  display: none;
}
.feed-progress-fill { width: 100%; background: linear-gradient(180deg, var(--accent), var(--teal)); border-radius: 3px; transition: height .15s ease-out; }

.feed-hint {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  font-family: 'DM Sans', sans-serif; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); z-index: 40; pointer-events: none;
  animation: hintBounce 1.8s ease-in-out infinite;
  transition: opacity .3s ease;
}
.feed-hint svg { width: 16px; height: 16px; }
.feed-hint.hidden { opacity: 0; }
@keyframes hintBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

@media (min-width: 720px) { .feed-progress { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .slide-bg { animation: none; }
  .feed-hint { animation: none; }
}
