@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700&family=DM+Mono:wght@400;500&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1814;
  --ink-2: #3d3a35;
  --ink-3: #7a7570;
  --cream: #f5f2eb;
  --cream-2: #ede9e0;
  --cream-3: #e4dfd3;
  --accent: #c8440a;
  --accent-light: #f5e8e2;
  --green: #2d6b4a;
  --green-light: #e3ede8;
  --gold: #a07c2e;
  --gold-light: #f5eedc;
  --border: rgba(26,24,20,0.12);
  --border-strong: rgba(26,24,20,0.25);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ── NAV ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 0.5px solid var(--border-strong);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent) !important; }

/* ── TICKER ── */
.ticker-bar {
  background: var(--accent);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.ticker-inner {
  display: inline-block;
  animation: ticker 32s linear infinite;
}

.ticker-inner span {
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-right: 60px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HERO (homepage) ── */
.site-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-bottom: 0.5px solid var(--border-strong);
}

.hero-left {
  padding: 64px 48px 64px 40px;
  border-right: 0.5px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.hero-desc {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.85;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: #a3360a; color: white; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 0.5px solid var(--border-strong);
  transition: all 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}

.stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px 40px 24px;
  border-bottom: 0.5px solid var(--border);
}

.section-mono {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.see-all {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  border-bottom: 0.5px solid currentColor;
}

/* ── POST LIST ── */
.post-feed {
  border-bottom: 0.5px solid var(--border-strong);
}

.post-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 40px;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s;
}

.post-card:hover { background: var(--cream-2); }
.post-card:last-child { border-bottom: none; }

.post-num {
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--cream-3);
  line-height: 1;
}

.post-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.post-title:hover { color: var(--accent); }

.post-meta {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 12px;
  font-family: 'DM Mono', monospace;
}

.post-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── SINGLE POST ── */
.post-hero {
  padding: 64px 40px 48px;
  border-bottom: 0.5px solid var(--border-strong);
  max-width: 800px;
  margin: 0 auto;
}

.post-hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.post-hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 20px;
}

.post-hero-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  display: flex;
  gap: 16px;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.post-content h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
}

.post-content h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.post-content p { margin-bottom: 20px; }

.post-content hr {
  border: none;
  border-top: 0.5px solid var(--border-strong);
  margin: 40px 0;
}

.post-content strong { color: var(--ink); font-weight: 600; }

.post-content a { color: var(--accent); border-bottom: 0.5px solid currentColor; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--ink-3);
  font-style: italic;
}

.post-feature-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-bottom: 0.5px solid var(--border-strong);
}

/* ── MEMBERSHIP BANNER ── */
.membership-banner {
  background: var(--ink);
  padding: 52px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  border-bottom: 0.5px solid var(--border-strong);
}

.membership-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.membership-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 560px;
}

.membership-action { flex-shrink: 0; }

/* ── SUBSCRIBE FORM ── */
.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.subscribe-input {
  border: 0.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  color: white;
  outline: none;
  width: 240px;
  font-family: 'Noto Sans TC', sans-serif;
}

.subscribe-input::placeholder { color: rgba(255,255,255,0.35); }
.subscribe-input:focus { border-color: var(--accent); }

.subscribe-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: background 0.2s;
  letter-spacing: 0.04em;
}

.subscribe-btn:hover { background: #a3360a; }

/* ── FOOTER ── */
.site-footer {
  padding: 40px 40px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  border-top: 0.5px solid var(--border-strong);
  background: var(--cream-2);
}

.footer-logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 200px;
}

.footer-col-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  border-top: 0.5px solid var(--border);
}

.pagination a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border: 0.5px solid var(--border-strong);
  border-radius: 4px;
  transition: all 0.2s;
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ── MEMBER WALL ── */
.member-wall {
  background: var(--cream-2);
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
  margin: 40px auto;
  max-width: 560px;
}

.member-wall-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.member-wall-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .site-hero { grid-template-columns: 1fr; }
  .hero-left { padding: 40px 20px; border-right: none; border-bottom: 0.5px solid var(--border-strong); }
  .hero-title { font-size: 36px; }
  .post-card { grid-template-columns: 1fr; padding: 20px; gap: 8px; }
  .post-num { display: none; }
  .section-header { padding: 24px 20px 16px; }
  .post-content { padding: 32px 20px 60px; }
  .post-hero { padding: 40px 20px 32px; }
  .post-hero-title { font-size: 28px; }
  .membership-banner { grid-template-columns: 1fr; padding: 40px 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 32px 20px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-input { width: 100%; }
}

/* ── GHOST REQUIRED CLASSES ── */
.kg-width-wide {
  margin: 0 -80px;
  max-width: calc(100% + 160px);
}

.kg-width-full {
  margin: 0 calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.kg-image { max-width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card {
  border: 0.5px solid var(--border-strong);
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
}

.kg-callout-card {
  background: var(--cream-2);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
}

.kg-video-card video { width: 100%; border-radius: 6px; }

.kg-toggle-card {
  border: 0.5px solid var(--border-strong);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0;
}
