/* ── Warm Digest — variables ──────────────────────────────── */
:root {
  --sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --fg:     #1c1917;
  --fg-2:   #57534e;
  --fg-3:   #a8a29e;
  --bg:     #faf8f4;
  --bg-2:   #f0ece4;
  --border: #e7e1d9;
  --accent: #15803d;
  --radius: 10px;
  --max:    1120px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--fg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Header ───────────────────────────────────────────────── */
.wd-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.wd-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wd-header__logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.wd-header__logo img { height: 30px; }
.wd-header__nav .nav { display: flex; list-style: none; margin: 0; padding: 0; }
.wd-header__nav .nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.wd-header__nav .nav a:hover { background: var(--bg-2); color: var(--fg); }

/* ── Main ─────────────────────────────────────────────────── */
.wd-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ── Intro ────────────────────────────────────────────────── */
.wd-intro {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.wd-intro__desc { font-size: 15px; color: var(--fg-2); margin: 0; }

/* ── Tag / meta shared ────────────────────────────────────── */
.wd-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}
.wd-meta { font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.wd-dot { color: var(--border); }

/* ── Featured post ────────────────────────────────────────── */
.wd-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
  transition: opacity .15s;
}
.wd-featured:hover { opacity: .88; }
@media (max-width: 680px) { .wd-featured { grid-template-columns: 1fr; } }
.wd-featured__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.wd-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wd-featured:hover .wd-featured__img img { transform: scale(1.03); }
.wd-featured__body { display: flex; flex-direction: column; gap: 12px; }
.wd-featured__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.wd-featured__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Divider ──────────────────────────────────────────────── */
.wd-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 32px;
}

/* ── Grid ─────────────────────────────────────────────────── */
.wd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .wd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .wd-grid { grid-template-columns: 1fr; } }

.wd-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.wd-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.wd-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.wd-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wd-card:hover .wd-card__img img { transform: scale(1.04); }
.wd-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.wd-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 12px; padding: 48px 0 0; }
.pagination .btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-2);
  background: var(--bg);
}
.pagination .btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
.wd-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.wd-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-3);
}
.wd-footer__inner nav { display: flex; gap: 16px; }
.wd-footer__inner a { color: var(--fg-3); }
.wd-footer__inner a:hover { color: var(--fg); }
