/* ==========================================================================
   ainewkneel.com（欸唉新跪）— 純靜態設計系統
   配色實測取樣自 v19.png：
   - 龍蝦紅 #FC3C30 / 水母青 #5AD8F6 / Polo 灰綠 #909C8A
   - 長褲炭灰 #3C3C42 / 膚色暖米 #FCDECC / 線稿黑 #000000
   零外部 CDN、原生支援淺色與深色（prefers-color-scheme）
   ========================================================================== */

:root {
  color-scheme: light dark;

  --font-sans: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif CJK TC", "Noto Serif TC", "Songti TC", Georgia, serif;
  --font-mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 淺色模式：微暖紙感 + 俐落線稿邊框 */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-subtle: #F2EFE8;
  --surface-sage: #ECF1EA;
  --surface-jelly: #EBF7FB;
  --surface-lobster: #FEF1F0;

  --ink: #1A1A1E;
  --ink-secondary: #3C3C42;
  --ink-muted: #595963;

  --border: #DDD8CE;
  --border-strong: #232328;

  --lobster: #D63026;
  --lobster-bright: #FC3C30;
  --lobster-hover: #B6251C;
  --lobster-ink: #FFFFFF;

  --jelly: #0B748F;
  --jelly-bright: #5AD8F6;
  --jelly-border: #23A6C7;

  --sage: #4B5D46;
  --sage-mid: #909C8A;

  --mascot-stage: #F4EFE6;
  --shadow-hard: 3px 3px 0 #232328;
  --shadow-soft: 2px 2px 0 #DDD8CE;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-w: 1000px;
  --reading-w: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* 深色模式：凌晨三點還在跟水母講話 */
    --bg: #131518;
    --surface: #1C1F25;
    --surface-subtle: #242831;
    --surface-sage: #212A22;
    --surface-jelly: #142932;
    --surface-lobster: #2E1B1B;

    --ink: #EFECE6;
    --ink-secondary: #CECBC4;
    --ink-muted: #A3A6B0;

    --border: #333944;
    --border-strong: #596172;

    --lobster: #FF5D52;
    --lobster-bright: #FF5D52;
    --lobster-hover: #FF786F;
    --lobster-ink: #141111;

    --jelly: #5AD8F6;
    --jelly-bright: #5AD8F6;
    --jelly-border: #3AAFCC;

    --sage: #A4BA9D;
    --sage-mid: #7F9279;

    /* 保留暖紙托底，防止 v19.png 的黑髮與粗黑外框融入暗底 */
    --mascot-stage: #E6E1D7;
    --shadow-hard: 3px 3px 0 #07080A;
    --shadow-soft: 2px 2px 0 #0B0D10;
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--jelly);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lobster);
}

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--lobster-bright);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--border-strong);
  color: var(--surface);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Reading Progress Bar (post page) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--lobster-bright);
  z-index: 200;
  transition: width 0.08s linear;
}

/* Top IP Identity Accent Strip */
.ip-stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--lobster-bright) 0%,
    var(--lobster-bright) 28%,
    var(--sage-mid) 28%,
    var(--sage-mid) 72%,
    var(--jelly-bright) 72%,
    var(--jelly-bright) 100%
  );
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--reading {
  max-width: var(--reading-w);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mascot-stage);
  border: 1.5px solid var(--border-strong);
  overflow: hidden;
  padding: 2px;
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--surface-sage);
  color: var(--sage);
  box-shadow: inset 0 0 0 1.5px var(--sage-mid);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
}

.btn--primary {
  background: var(--lobster);
  color: var(--lobster-ink);
  box-shadow: var(--shadow-hard);
}

.btn--primary:hover {
  background: var(--lobster-hover);
  color: var(--lobster-ink);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.btn--jelly {
  background: var(--surface-jelly);
  color: var(--jelly);
  border-color: var(--jelly-border);
}

.btn--jelly:hover {
  background: var(--jelly);
  color: var(--surface);
}

.btn--sm {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.875rem;
}

/* Main Spacing */
main {
  padding: 36px 0 64px;
}

.section {
  margin-top: 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-more {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Badges / Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}

.tag--sage {
  background: var(--surface-sage);
  color: var(--sage);
  border-color: var(--sage-mid);
}

.tag--jelly {
  background: var(--surface-jelly);
  color: var(--jelly);
  border-color: var(--jelly-border);
}

.tag--lobster {
  background: var(--surface-lobster);
  color: var(--lobster);
  border-color: var(--lobster);
}

/* Accent character (only 「哀」 or 「跪」 in lobster red) */
.accent-red {
  color: var(--lobster);
}

/* ==========================================================================
   HOME: Hero Card
   ========================================================================== */
.hero {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 2.35rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.about-hero .hero-title {
  font-size: 1.95rem;
}

.hero-sub {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.hero-desc {
  margin: 0 0 22px;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mascot-frame {
  width: 224px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--mascot-stage);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.mascot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mascot-caption {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-wrap: balance;
}

/* ==========================================================================
   HOME: Today's Digest Strip
   ========================================================================== */
.digest-strip {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-left: 5px solid var(--jelly-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px 28px;
}

.digest-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.digest-strip-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.digest-oneline {
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
}

.digest-preview-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.digest-preview-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.digest-preview-item strong {
  color: var(--ink);
}

.digest-strip-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   HOME: Latest Posts List
   ========================================================================== */
.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.post-card--featured {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.post-card-date {
  font-family: var(--font-mono);
}

.post-card-title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.45;
  font-weight: 800;
}

.post-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--lobster);
  text-decoration: underline;
}

.post-card-excerpt {
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ink-secondary);
}

.post-card-excerpt p {
  margin: 0 0 8px;
}

.post-card-excerpt p:last-child {
  margin-bottom: 0;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   Newsletter Subscription Band (Reusable)
   ========================================================================== */
.subscribe-box {
  background: var(--surface-sage);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.subscribe-copy {
  flex: 1 1 360px;
}

.subscribe-title {
  margin: 0 0 8px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.35;
}

.subscribe-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.subscribe-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.subscribe-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   POST PAGE: Long-form Traditional Chinese Reading Typography
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
}

.article-title {
  margin: 12px 0 16px;
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Optimal Traditional Chinese Long-Form Prose */
.prose {
  font-size: 1.125rem; /* 18px */
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
  max-width: 36em;
}

.prose p {
  margin: 0 0 1.45em;
}

.prose strong {
  font-weight: 800;
  color: var(--ink);
}

.prose h2 {
  margin: 2.3em 0 0.85em;
  padding-left: 14px;
  border-left: 4px solid var(--lobster-bright);
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 800;
}

.prose h3 {
  margin: 1.8em 0 0.65em;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 800;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.65em;
}

.prose hr {
  border: 0;
  border-top: 1.5px dashed var(--border);
  margin: 2.2em 0;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--surface-subtle);
  border-left: 4px solid var(--sage-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-secondary);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Signature IP Callouts inside Articles */
.ip-aside {
  margin: 1.7em 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-size: 1rem;
  line-height: 1.75;
}

.ip-aside--lobster {
  background: var(--surface-lobster);
  border-left: 4px solid var(--lobster-bright);
}

.ip-aside--jelly {
  background: var(--surface-jelly);
  border-left: 4px solid var(--jelly-bright);
}

.ip-aside-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.ip-aside--lobster .ip-aside-label {
  color: var(--lobster);
}

.ip-aside--jelly .ip-aside-label {
  color: var(--jelly);
}

.mock-divider-note {
  margin: 1.8em 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px dashed var(--border);
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Author Bio Mini Card */
.author-card {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 18px;
}

.author-avatar {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  background: var(--mascot-stage);
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  padding: 4px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-info h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Prev / Next Post Nav */
.post-nav {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.post-nav-item {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
}

.post-nav-item:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.post-nav-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ==========================================================================
   DIGEST PAGE: Daily Foreign News Cards
   ========================================================================== */
.page-intro {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px 30px;
  margin-bottom: 24px;
}

.page-intro h1 {
  margin: 8px 0 10px;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.3;
}

.page-intro p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}

.date-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.date-current {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.98rem;
}

.date-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.digest-summary-banner {
  background: var(--surface-jelly);
  border: 1.5px solid var(--jelly-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.digest-summary-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--jelly);
  white-space: nowrap;
}

.digest-summary-text {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.digest-grid {
  display: grid;
  gap: 20px;
}

.digest-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px 26px;
}

.digest-card[hidden] {
  display: none;
}

.digest-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.digest-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.digest-card-title {
  margin: 0 0 14px;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.4;
}

.digest-block-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.digest-summary {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink);
}

.digest-quote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--surface-subtle);
  border-left: 3.5px solid var(--jelly-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}

.digest-quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.digest-kneel {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface-sage);
  border: 1px solid var(--sage-mid);
  border-left: 4px solid var(--lobster-bright);
  border-radius: var(--radius-sm);
}

.digest-kneel-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--lobster);
  margin-bottom: 4px;
}

.digest-kneel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}

.digest-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.86rem;
}

.digest-source-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.digest-source-link {
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.digest-source-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ABOUT PAGE: Character Profile, 3 Elements & Contact
   ========================================================================== */
.about-hero {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 32px 34px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}

.name-layers {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.name-layer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.name-layer-key {
  font-weight: 800;
  min-width: 3.2em;
  color: var(--ink);
}

.narrative-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-secondary);
}

.narrative-box p {
  margin: 0 0 12px;
}

.narrative-box p:last-child {
  margin-bottom: 0;
}

.elements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.element-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.element-card--lobster {
  border-top: 4px solid var(--lobster-bright);
}

.element-card--jelly {
  border-top: 4px solid var(--jelly-bright);
}

.element-card--face {
  border-top: 4px solid var(--sage-mid);
}

.element-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.element-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.stance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stance-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.stance-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

.stance-card ul {
  margin: 0;
  padding-left: 1.25em;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
}

.contact-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 28px 30px;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
}

.email-pill {
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  word-break: break-all;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.channel-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.channel-handle {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1.5px solid var(--border);
  background: var(--surface);
  padding: 32px 0 40px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 1rem;
}

.footer-brand p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--lobster);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Mobile Responsive (Tested at 362x800 narrow viewport)
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 8px;
  }

  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }

  .nav-link {
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.86rem;
    min-height: 38px;
  }

  .header-cta-desktop {
    display: none;
  }

  .header-cta-mobile {
    display: inline-flex;
  }

  main {
    padding: 20px 0 48px;
  }

  .section {
    margin-top: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    gap: 18px;
  }

  .hero-visual {
    order: -1;
  }

  .mascot-frame {
    width: 156px;
    padding: 8px;
  }

  .hero-title {
    font-size: 1.72rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .digest-strip {
    padding: 18px 16px;
  }

  .digest-preview-item {
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
  }

  .post-card {
    padding: 18px 16px;
  }

  .post-card-title {
    font-size: 1.12rem;
  }

  .subscribe-box {
    padding: 20px 18px;
  }

  .subscribe-cta,
  .subscribe-cta .btn {
    width: 100%;
  }

  .article-title {
    font-size: 1.52rem;
  }

  .prose {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.85;
    letter-spacing: 0.02em;
  }

  .prose h2 {
    font-size: 1.25rem;
  }

  .author-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .page-intro {
    padding: 20px 18px;
  }

  .page-intro h1 {
    font-size: 1.52rem;
  }

  .digest-card {
    padding: 18px 16px;
  }

  .digest-card-title {
    font-size: 1.12rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    gap: 20px;
  }

  .about-hero .hero-visual {
    order: -1;
  }

  .elements-grid,
  .stance-grid,
  .channels-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 20px 18px;
  }

  .contact-email-row .btn {
    width: 100%;
  }

  .email-pill {
    width: 100%;
    text-align: center;
    font-size: 0.94rem;
  }
}

@media (min-width: 768px) {
  .header-cta-mobile {
    display: none;
  }

  .header-top-row {
    display: contents;
  }
}


/* ==========================================================================
   Generator v1 Extensions: Code Blocks, Figures, Posts Archive, Digest Archive, 404
   ========================================================================== */
.prose pre {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

.prose-figure {
  margin: 1.8em 0;
}

.prose-figure img {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  margin: 0 auto;
}

.prose-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.ip-aside p {
  margin: 0;
}

.prose a {
  overflow-wrap: anywhere;
}

.post-card[hidden] {
  display: none;
}

.post-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.digest-why {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--surface-subtle);
  border-left: 3.5px solid var(--sage-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.digest-why strong {
  color: var(--ink);
}

.digest-sources-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.86rem;
}

.digest-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

/* Digest Archive Page */
.archive-month {
  margin-top: 32px;
}

.archive-month:first-of-type {
  margin-top: 0;
}

.archive-month-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sage);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--border);
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.archive-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.archive-item:hover {
  border-color: var(--border-strong);
}

.archive-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
}

.archive-date {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--jelly);
  flex-shrink: 0;
}

.archive-summary {
  flex: 1 1 260px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.archive-count {
  font-size: 0.8rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* 404 Not Found Page */
.not-found-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 40px 32px;
  text-align: center;
  max-width: 620px;
  margin: 24px auto;
}

.not-found-card .mascot-frame {
  margin: 0 auto 20px;
  width: 176px;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--lobster);
  letter-spacing: 0.08em;
}

.not-found-title {
  margin: 8px 0 12px;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.35;
}

.not-found-desc {
  margin: 0 0 24px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .prose pre {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .archive-link {
    padding: 12px 14px;
  }

  .not-found-card {
    padding: 28px 18px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-actions .btn {
    width: 100%;
  }
}
