/* Grind & Pull — editorial coffee-magazine design. Mobile-first, no frameworks. */
:root {
  --espresso: #241610;
  --espresso-soft: #3a2417;
  --espresso-faint: #f3e9d7;
  --crema: #c07f2e;
  --crema-deep: #9a5f1a;
  --crema-light: #eec27f;
  --cream: #faf5ea;
  --paper: #fffdf7;
  --ink: #2b2118;
  --ink-soft: #6b5c4b;
  --ink-faint: #97887a;
  --line: #e7d9bd;
  --line-soft: #f0e6d2;
  --green: #4a7c3a;
  --radius: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.0625rem;
}
.container { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header { background: var(--espresso); color: var(--cream); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.brand { font-family: var(--font-display); color: var(--cream); text-decoration: none; font-weight: 900; font-size: 1.45rem; letter-spacing: -.01em; }
.brand-mark { color: var(--crema-light); margin-right: .3rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(238,194,127,.5); color: var(--cream); border-radius: 8px; padding: .35rem .6rem; font-size: 1.1rem; cursor: pointer; }
.site-nav a { font-family: var(--font-display); color: var(--cream); text-decoration: none; margin-left: 1.5rem; font-weight: 600; font-size: 1rem; opacity: .85; }
.site-nav a:hover { opacity: 1; color: var(--crema-light); }

/* ---------- Homepage hero ---------- */
.hero { text-align: left; padding: 3rem 0 1.5rem; }
.hero-eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--crema-deep); margin-bottom: .8rem; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1.08; letter-spacing: -.02em; color: var(--espresso); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--crema-deep); }
.tagline { color: var(--ink-soft); font-size: 1.12rem; max-width: 36rem; margin: 1.1rem 0 1.8rem; }
.btn { display: inline-block; background: var(--espresso); color: var(--cream); text-decoration: none; font-weight: 700; padding: .85rem 1.7rem; border-radius: 999px; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--espresso-soft); transform: translateY(-1px); }
.btn-secondary { background: var(--crema); color: var(--espresso); }
.btn-secondary:hover { background: var(--crema-light); }

/* Featured review */
.featured { display: block; background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: 2rem 1.8rem; margin: 1rem 0 3rem; text-decoration: none; position: relative; overflow: hidden; }
.featured::after { content: "\2605"; position: absolute; right: 1.2rem; top: .6rem; font-size: 5rem; color: rgba(238,194,127,.14); }
.featured-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--crema-light); margin-bottom: .6rem; }
.featured h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.25; margin-bottom: .6rem; }
.featured p { opacity: .85; font-size: 1rem; margin-bottom: 1rem; max-width: 34rem; }
.featured-cta { font-weight: 700; color: var(--crema-light); }

/* Start here */
.start-here { margin-bottom: 3rem; }
.start-here h2, .guides h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--espresso); margin-bottom: .4rem; letter-spacing: -.01em; }
.section-sub { color: var(--ink-soft); margin-bottom: 1.4rem; font-size: 1rem; }

/* Guide cards */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(36,22,16,.09); }
.card-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--crema-deep); margin-bottom: .5rem; }
.card h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.3; font-weight: 700; margin-bottom: .5rem; }
.card h3 a { color: var(--espresso); text-decoration: none; }
.card h3 a:hover { color: var(--crema-deep); }
.card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .9rem; }
.card-link { font-weight: 700; color: var(--crema-deep); text-decoration: none; font-size: .95rem; }
.card-link:hover { text-decoration: underline; }

/* Newsletter */
.newsletter { background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: 2.4rem 1.8rem; margin-bottom: 3rem; text-align: center; }
.newsletter h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .5rem; }
.newsletter p { opacity: .85; margin-bottom: 1.3rem; }
.newsletter-form { display: flex; gap: .6rem; max-width: 26rem; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: .8rem 1rem; border: none; border-radius: 999px; font-size: 1rem; }
.newsletter-form button { background: var(--crema); color: var(--espresso); border: none; border-radius: 999px; padding: .8rem 1.4rem; font-weight: 700; font-size: 1rem; cursor: pointer; }
.newsletter-form button:hover { background: var(--crema-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Article ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin: 1.6rem 0 .6rem; }
.breadcrumb a { color: var(--crema-deep); text-decoration: none; font-weight: 600; }
.post-header { margin-bottom: 1rem; }
.post-category { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--crema-deep); margin-bottom: .55rem; }
.post-header h1, .post h1 { font-family: var(--font-display); font-weight: 900; font-size: 2.15rem; line-height: 1.12; letter-spacing: -.02em; color: var(--espresso); text-wrap: balance; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .88rem; color: var(--ink-soft); margin: 1rem 0 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.byline .byline-author { font-weight: 700; color: var(--espresso); }
.byline .dot { color: var(--ink-faint); }

/* Verdict callout */
.verdict { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--crema); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 0 0 2rem; box-shadow: 0 4px 18px rgba(36,22,16,.06); }
.verdict-eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--crema-deep); margin-bottom: .6rem; }
.verdict-body { font-size: 1.02rem; }
.verdict-body .buy-card { margin: 1rem 0; }
.verdict-body .buy-card:first-child { margin-top: .4rem; }

/* Product buy cards — first mention of each product becomes unmissable */
.buy-card { display: flex; gap: 1.1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; box-shadow: 0 4px 16px rgba(36,22,16,.07); }
.buy-card-img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); flex-shrink: 0; }
.buy-card-info { flex: 1; min-width: 0; }
.buy-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--espresso); margin: 0 0 .15rem !important; line-height: 1.3; }
.buy-card-meta { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .65rem !important; }
.buy-card .affiliate-link { margin: 0; }
.buy-card-img-link { display: block; flex-shrink: 0; border-radius: 10px; }
.buy-card-img-link .buy-card-img { display: block; }

/* Head-to-head showdown hero (comparison articles) */
.showdown { display: flex; align-items: stretch; gap: .7rem; margin: 0 0 2rem; }
.showdown-card { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem .9rem; text-align: center; box-shadow: 0 4px 16px rgba(36,22,16,.07); display: flex; flex-direction: column; align-items: center; }
.showdown-card a { display: block; }
.showdown-img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); }
.showdown-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--espresso); margin: .7rem 0 .1rem !important; line-height: 1.3; }
.showdown-meta { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .7rem !important; }
.showdown-vs { align-self: center; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--cream); background: var(--espresso); border-radius: 50%; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; }
.showdown-btn { font-size: .92rem !important; padding: .55rem 1.1rem !important; margin: 0 !important; }

/* Table of contents */
.toc { background: var(--espresso-faint); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 2rem; font-size: .95rem; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--espresso); padding: 1rem 1.3rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.3rem; color: var(--crema-deep); font-weight: 400; }
.toc[open] summary::after { content: "\2013"; }
.toc ol { padding: 0 1.3rem 1.2rem 2.4rem; margin: 0; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--crema-deep); text-decoration: underline; }

/* Article body */
.post h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--espresso); margin: 2.6rem 0 .9rem; padding-top: .6rem; letter-spacing: -.01em; scroll-margin-top: 5rem; }
.post h3 { font-size: 1.12rem; color: var(--espresso-soft); margin: 1.8rem 0 .6rem; font-weight: 700; }
.post p { margin-bottom: 1.15rem; }
.post p.lede::first-letter { font-family: var(--font-display); font-weight: 900; font-size: 3.4em; float: left; line-height: .85; padding: .08em .12em 0 0; color: var(--espresso); }
.post ul, .post ol { margin: 0 0 1.3rem 1.4rem; }
.post li { margin-bottom: .5rem; }
.post li::marker { color: var(--crema-deep); }
.post a { color: var(--crema-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post a:hover { color: var(--espresso); }
.post blockquote { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--espresso-soft); border-left: 4px solid var(--crema); padding: .4rem 0 .4rem 1.4rem; margin: 2rem 0; line-height: 1.5; }

/* Winner badges */
p.winner { background: #f4f9f0; border: 1px solid #d8e6cf; border-radius: var(--radius); padding: .9rem 1.2rem; }
.winner-label { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; border-radius: 999px; padding: .25rem .8rem; margin-right: .6rem; vertical-align: .1em; }

/* Spec tables */
.post table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4rem 0 2rem; font-size: .93rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.post th, .post td { padding: .75rem .95rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.post th { background: var(--espresso); color: var(--cream); font-weight: 700; white-space: nowrap; }
.post th:first-child { border-top-left-radius: var(--radius); }
.post th:last-child { border-top-right-radius: var(--radius); }
.post tr:last-child td { border-bottom: none; }
.post tr:nth-child(even) td { background: #fbf7ec; }
.post td:first-child { font-weight: 600; color: var(--espresso-soft); white-space: nowrap; }

/* Conclusion box */
.conclusion { background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: 1.8rem 1.7rem; margin: 2.5rem 0; }
.conclusion h2 { font-family: var(--font-display); color: var(--crema-light); border: none; margin: 0 0 .8rem; padding: 0; font-size: 1.5rem; }
.conclusion p, .conclusion li { color: #f2e8d5; }
.conclusion a { color: var(--crema-light); }
.conclusion .affiliate-link { margin-top: .6rem; }

/* Disclosure */
.disclosure-box { background: var(--espresso-faint); border: 1px dashed var(--crema); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.8rem; font-size: .9rem; color: var(--ink-soft); }

/* Buy buttons */
.affiliate-link { display: inline-flex; align-items: center; gap: .4rem; background: linear-gradient(180deg, var(--crema-light), var(--crema)); color: var(--espresso) !important; font-weight: 800; text-decoration: none !important; padding: .65rem 1.35rem; border-radius: 999px; margin: .35rem .2rem; font-size: 1rem; box-shadow: 0 2px 10px rgba(154,95,26,.28); transition: transform .15s ease, box-shadow .15s ease; border: none; }
.affiliate-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(154,95,26,.36); color: var(--espresso) !important; }
.verdict .affiliate-link, .conclusion .affiliate-link { font-size: 1.02rem; }

/* Related */
.related { margin: 3rem 0 2rem; padding-top: 1.8rem; border-top: 2px solid var(--line); }
.related h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 1rem; padding: 0; border: none; }
.related ul { list-style: none; margin: 0; display: grid; gap: .7rem; }
.related li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; transition: transform .15s ease; }
.related li:hover { transform: translateX(3px); }
.related a { color: var(--espresso); font-weight: 600; text-decoration: none; }
.related a:hover { color: var(--crema-deep); }

/* Footer */
.site-footer { background: var(--espresso); color: var(--cream); margin-top: 2.5rem; padding: 2.6rem 0; }
.footer-inner p { margin-bottom: .7rem; font-size: .92rem; opacity: .9; }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; margin-bottom: .8rem !important; opacity: 1 !important; }
.footer-disclosure { font-size: .82rem; opacity: .75; }
.footer-disclosure a, .site-footer a { color: var(--crema-light); }
.footer-copy { font-size: .8rem; opacity: .6; }

/* About page */
.about-hero { padding: 3rem 0 1rem; }
.about-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--espresso); letter-spacing: -.02em; }

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3.4rem; }
  .post-header h1, .post h1 { font-size: 2.6rem; }
  .featured h2 { font-size: 2rem; }
}
@media (max-width: 560px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--espresso); flex-direction: column; padding: 0 1.25rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { margin: .6rem 0 0; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .newsletter-form { flex-direction: column; }
  .hero h1 { font-size: 2.2rem; }
  .buy-card-btn { display: flex; justify-content: center; width: 100%; }
  .buy-card { gap: .9rem; padding: .9rem 1rem; }
  .buy-card-img { width: 76px; height: 76px; }
  .toc { font-size: .9rem; }
}
