/*
Theme Name: Home Coffee Journal
Theme URI: https://homecoffeejournal.com
Description: A warm, minimal editorial theme for Home Coffee Journal — beginner-friendly home coffee brewing guides. Reproduces the publication's design: cream background, coffee-brown accents, serif body, card-based post listing.
Author: Home Coffee Journal
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-coffee-journal
*/

:root {
  --bg:#faf7f2; --ink:#2b2724; --muted:#857c70; --line:#e7e0d5;
  --accent:#8a5a2b; --card:#ffffff; --tint:#f1ebe0;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink);
  font-family:'Iowan Old Style', Georgia, 'Times New Roman', serif; line-height:1.7; }
a { color:var(--accent); }
img { max-width:100%; height:auto; }

.wrap { max-width:760px; margin:0 auto; padding:0 22px; }
.wrap.article { max-width:720px; padding-top:34px; }

/* Home / archive header */
header.site { text-align:center; padding:52px 22px 30px; border-bottom:1px solid var(--line); }
header.site .logo { width:66px; height:66px; display:block; margin:0 auto 16px; }
header.site .name { font-size:30px; letter-spacing:.3px; margin:0; }
header.site .name a { color:var(--ink); text-decoration:none; }
header.site .tag { color:var(--muted); font-size:15px; margin-top:8px; font-style:italic; }
header.site .cadence { color:var(--muted); font-size:13px; margin-top:14px;
  font-family:system-ui, sans-serif; }

/* Article topbar */
.topbar { border-bottom:1px solid var(--line); text-align:center; padding:13px 16px; }
.topbar a { font-family:system-ui, sans-serif; font-size:14px; letter-spacing:.04em;
  text-decoration:none; color:var(--ink); display:inline-flex; align-items:center; gap:9px; }
.topbar .brand { width:26px; height:26px; display:block; }

.section-label { font-family:system-ui, sans-serif; font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); margin:38px 0 14px; }

/* Category navigation bar */
.catnav { border-bottom:1px solid var(--line); background:var(--card); }
.catnav-inner { max-width:760px; margin:0 auto; padding:0 22px;
  display:flex; flex-wrap:wrap; gap:4px 6px; justify-content:center; }
.catnav-link { font-family:system-ui, sans-serif; font-size:13px; letter-spacing:.02em;
  text-decoration:none; color:var(--muted); padding:13px 12px; white-space:nowrap;
  border-bottom:2px solid transparent; }
.catnav-link:hover { color:var(--ink); }
.catnav-link.is-current { color:var(--accent); border-bottom-color:var(--accent); }

/* Magazine homepage sections */
.home-section { margin-top:34px; }
.home-section:first-child { margin-top:30px; }
.section-head { display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin:0 0 14px; padding-bottom:8px; border-bottom:2px solid var(--ink); }
.sec-title { font-size:19px; margin:0; letter-spacing:.2px; }
.see-all { font-family:system-ui, sans-serif; font-size:13px; font-weight:600;
  text-decoration:none; white-space:nowrap; }

/* Post cards */
article.card { background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:26px 26px 22px; margin-bottom:18px; }
article.card .cat { font-family:system-ui, sans-serif; font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--accent); }
article.card h2 { margin:8px 0 10px; font-size:23px; line-height:1.3; }
article.card h2 a { color:var(--ink); text-decoration:none; }
article.card h2 a:hover { color:var(--accent); }
article.card .excerpt { color:#4a443d; font-size:16px; margin:0 0 14px; }
article.card .byline { font-family:system-ui, sans-serif; font-size:13px; color:var(--muted); }
article.card .more { font-family:system-ui, sans-serif; font-size:14px; font-weight:600;
  white-space:nowrap; }

/* Writers */
.authors { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.author { background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:16px 18px; }
.author .nm { font-size:16px; margin:0; }
.author .ro { font-family:system-ui, sans-serif; font-size:12px; color:var(--muted);
  margin-top:3px; line-height:1.5; }

/* Single article */
.article-head .cat { font-family:system-ui, sans-serif; font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent); }
.article-head h1 { font-size:31px; line-height:1.25; margin:10px 0 6px; }
.article-head .byline { font-family:system-ui, sans-serif; font-size:13.5px; color:var(--muted);
  margin-bottom:8px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.featured { margin:2px 0 6px; }
.featured img { width:100%; border-radius:12px; border:1px solid var(--line); }
.entry-content { margin-top:6px; }
.entry-content h2 { font-size:21px; margin-top:1.9em; border-bottom:1px solid var(--line);
  padding-bottom:5px; }
.entry-content h3 { font-size:18px; margin-top:1.5em; }
.entry-content p, .entry-content li { font-size:17px; }
.entry-content ul, .entry-content ol { padding-left:1.3em; }
.entry-content img { border-radius:10px; }

table { border-collapse:collapse; width:100%; margin:1.1em 0; font-size:15px;
  font-family:system-ui, sans-serif; }
th, td { border:1px solid var(--line); padding:8px 10px; text-align:left; }
th { background:var(--tint); }

/* Diagrams break out of the 720px text column up to 940px so wide D2
   diagrams need little or no scaling — scaling a wide diagram into the
   narrow column is what made the text unreadable. Diagrams wider still
   scroll horizontally at full size instead of shrinking the text away. */
figure.diagram { margin:1.9em 0;
  width:94vw; max-width:940px; margin-left:50%; transform:translateX(-50%);
  overflow-x:auto; -webkit-overflow-scrolling:touch; }
figure.diagram img { display:block; max-width:none; height:auto; margin:0 auto;
  border:1px solid var(--line); border-radius:10px; background:#fff; }
figure.diagram figcaption { font-family:system-ui, sans-serif; font-size:12.5px;
  color:var(--muted); margin-top:8px; text-align:center; }

/* Monetization markers — rendered by the blog-automation-seo mu-plugin */
.blogauto-disclosure { margin:1.3em 0; padding:.7em 1em; font-size:14px;
  font-family:system-ui, sans-serif; line-height:1.5; background:var(--tint);
  border-left:3px solid var(--accent); color:#6b6256; border-radius:4px; }
.blogauto-aff { color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.blogauto-ad { margin:1.9em 0; }
.blogauto-support { margin:2.6em 0 0; padding:20px 22px; text-align:center;
  background:var(--tint); border:1px solid var(--line); border-radius:12px; }
.blogauto-support-text { margin:0 0 10px; font-family:system-ui, sans-serif;
  font-size:15px; color:#5f574a; }
.blogauto-support-btn { display:inline-block; padding:9px 22px; background:var(--accent);
  color:#fff8ee; border-radius:7px; text-decoration:none; font-weight:600;
  font-family:system-ui, sans-serif; font-size:14px; }

/* Pagination */
.pagination { margin:30px 0 10px; font-family:system-ui, sans-serif; font-size:14px;
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.pagination .page-numbers { padding:7px 13px; border:1px solid var(--line);
  border-radius:7px; text-decoration:none; color:var(--ink); background:var(--card); }
.pagination .page-numbers.current { background:var(--accent); color:#fff8ee;
  border-color:var(--accent); }

/* Archive heading */
.archive-head { margin:30px 0 4px; }
.archive-head h1 { font-size:24px; margin:0; }
.archive-head .desc { color:var(--muted); font-size:15px; margin-top:6px; font-style:italic; }

/* Footer */
footer.site { border-top:1px solid var(--line); margin-top:46px; padding:26px 22px 50px;
  text-align:center; color:var(--muted); font-family:system-ui, sans-serif; font-size:13px; }
footer.site a { color:var(--muted); }

@media (max-width:560px){
  .authors { grid-template-columns:1fr; }
  header.site { padding:40px 22px 26px; }
  .article-head h1 { font-size:26px; }
  .catnav-inner { justify-content:flex-start; overflow-x:auto; }
}
