/*
Theme Name: Specialty Coffee Roast Journal
Theme URI: https://specialtycoffeeroast.rest
Description: For true coffee connoisseurs. Bean origin taste profiles, espresso machine pressure testing, and manual brewing gear comparisons.
Style ID: e72f4d
Version: 1.0.0
Text Domain: specialty-coffee-roa
*/

:root {
  --bg: #16131b;
  --bg-alt: #231f28;
  --bg-deep: #0f0d11;
  --text: #edebef;
  --text-muted: #9d97a5;
  --accent: #8f53ea;
  --border: #37313f;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.e72f4d-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Duotone 双色调：图片统一 accent+bg 双色叠加 */
.e72f4d-duotone {
  position: relative;
  overflow: hidden;
}
.e72f4d-duotone img {
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transition: filter .3s;
}
.e72f4d-duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
.e72f4d-duotone:hover img { filter: grayscale(0.4) contrast(1.05) brightness(0.95); }

/* ============ Header ============ */
.e72f4d-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.e72f4d-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.e72f4d-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.e72f4d-logo span { color: var(--accent); }

.e72f4d-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.e72f4d-nav a {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s;
}
.e72f4d-nav a:hover { color: var(--text); }

.e72f4d-subscribe-btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s;
}
.e72f4d-subscribe-btn:hover { opacity: 0.88; }

/* ============ Footer ============ */
.e72f4d-footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.e72f4d-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.e72f4d-footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.e72f4d-footer-col ul { list-style: none; }
.e72f4d-footer-col li { margin-bottom: 8px; font-size: 14px; }
.e72f4d-footer-col li a { color: var(--text-muted); }
.e72f4d-footer-col li a:hover { color: var(--accent); }
.e72f4d-footer-mission { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.e72f4d-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ 文章卡片 B：无阴影纯扁平，图片大圆角 ============ */
.e72f4d-card {
  display: block;
  background: var(--bg-alt);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s;
}
.e72f4d-card:hover { transform: translateY(-3px); }
.e72f4d-card-img {
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.e72f4d-card-img img { width: 100%; height: 100%; object-fit: cover; }
.e72f4d-card-body { padding: 18px; }
.e72f4d-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.e72f4d-card:hover .e72f4d-card-title { color: var(--accent); }
.e72f4d-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 元数据 */
.e72f4d-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.e72f4d-meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.e72f4d-meta .dot { opacity: .4; }

/* ============ 文章正文 ============ */
.e72f4d-entry { max-width: 720px; }
.e72f4d-entry h2 { font-size: 28px; margin: 34px 0 16px; }
.e72f4d-entry h3 { font-size: 22px; margin: 26px 0 12px; }
.e72f4d-entry p { margin-bottom: 18px; }
.e72f4d-entry ul, .e72f4d-entry ol { margin: 0 0 18px 24px; }
.e72f4d-entry li { margin-bottom: 8px; }

/* 文章页标准阅读 */
.e72f4d-single-head { padding: 40px 0 0; }
.e72f4d-single-title {
  font-size: 40px;
  line-height: 1.15;
  margin: 16px 0 20px;
}
.e72f4d-single-meta { margin-bottom: 28px; }
.e72f4d-single-img {
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
}
.e72f4d-single-img img { width: 100%; }

/* ============ 分页 ============ */
.e72f4d-pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}
.e72f4d-pagination a, .e72f4d-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.e72f4d-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .e72f4d-footer-grid { grid-template-columns: 1fr 1fr; }
  .e72f4d-header-inner { flex-wrap: wrap; gap: 12px; }
  .e72f4d-nav { order: 3; width: 100%; }
  .e72f4d-single-title { font-size: 30px; }
}
@media (max-width: 560px) {
  .e72f4d-footer-grid { grid-template-columns: 1fr; }
}
