/* WiseTip — main.css — shared stylesheet for all static pages */
:root {
  --brand:      #7DBE5A;
  --brand-light:rgba(125,190,90,.15);
  --brand-dark: #5a9a3a;
  --green:      #059669;
  --amber:      #d97706;
  --red:        #dc2626;
  --text:       #1a1a2e;
  --text2:      #374151;
  --text3:      #6b7280;
  --bg:         #fafaf9;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --radius:     10px;
  --radius-sm:  6px;
  --font-body:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text);
       line-height: 1.65; font-size: 16px; }

/* ── SITE HEADER ── */
.site-header { background: var(--white); border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.logo { font-size: 20px; font-weight: 800; color: var(--brand);
        text-decoration: none; letter-spacing: -0.5px; }
.lang-switcher { display: flex; gap: 8px; }
.lang-switcher a { font-size: 13px; color: var(--text3); text-decoration: none;
  padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border);
  transition: all .15s; }
.lang-switcher a:hover, .lang-switcher a.active
  { border-color: var(--brand); color: var(--brand); }

/* ── POST PAGE ── */
.post-page main { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; }
.post-page h1 { font-size: clamp(22px,4vw,36px); font-weight: 800;
                line-height: 1.2; margin-bottom: 12px; color: var(--text); }
.post-page time { display: block; font-size: 13px; color: var(--text3);
                  margin-bottom: 32px; }
.post-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.post-body h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.post-body p  { margin-bottom: 16px; color: var(--text2); }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 16px; color: var(--text2); }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { border-left: 3px solid var(--brand); padding-left: 16px;
  color: var(--text3); font-style: italic; margin: 20px 0; }
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.post-body a { color: var(--brand); }

/* ── BADGES ── */
.badge-premium { display: inline-block; background: linear-gradient(135deg,#C8A85A,#7DBE5A);
  color: white; font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 12px; letter-spacing: .5px; }

/* ── PREMIUM GATE ── */
.post-teaser { color: var(--text2); }
.premium-gate { margin: 32px 0; padding: 32px; background: var(--brand-light);
  border: 2px solid #c4b5fd; border-radius: var(--radius); text-align: center; }
.premium-gate h3 { font-size: 20px; font-weight: 800; color: var(--brand-dark);
  margin-bottom: 10px; }
.premium-gate p  { color: var(--text2); margin-bottom: 20px; }
.btn-premium { display: inline-block; background: var(--brand); color: white;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 700;
  font-size: 15px; text-decoration: none; transition: transform .15s; }
.btn-premium:hover { transform: translateY(-1px); }
.gate-note { margin-top: 14px; font-size: 13px; color: var(--text3); }
.gate-note a { color: var(--brand); }

/* ── ARCHIVE INDEX ── */
.archive-index { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.archive-index h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.issue-list { list-style: none; }
.issue-list li { border-bottom: 1px solid var(--border); }
.issue-list a { display: flex; align-items: center; gap: 16px; padding: 14px 0;
  text-decoration: none; color: var(--text); transition: color .15s; }
.issue-list a:hover { color: var(--brand); }
.issue-date  { font-size: 12px; color: var(--text3); min-width: 90px;
               font-family: var(--font-mono); }
.issue-title { flex: 1; font-size: 15px; font-weight: 500; }

/* ── SUBSCRIBE BUTTONS ── */
.btn-subscribe { display: inline-block; background: var(--brand); color: white;
  padding: 10px 24px; border-radius: var(--radius); font-weight: 700;
  font-size: 14px; text-decoration: none; }

/* ── SITE FOOTER ── */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.6); text-align: center;
  padding: 28px 24px; font-size: 13px; margin-top: 60px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media(max-width:600px) {
  .post-page main { padding: 24px 16px 60px; }
  .archive-index  { padding: 24px 16px 60px; }
  .premium-gate   { padding: 20px 16px; }
}
