:root {
  --ink: #171918;
  --muted: #5e625f;
  --gold: #9a6b25;
  --gold-light: #d7b879;
  --paper: #ffffff;
  --panel: #f4f5f3;
  --line: #dedfd9;
  --radius: 10px;
  --max: 1120px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; font-size: 1rem; line-height: 1.7; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
.wrap { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 30; padding: 12px; background: var(--ink); color: white; }
.skip:focus { top: 10px; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: block; width: 300px; height: 64px; max-width: 100%; flex-shrink: 0; }
.wordmark .brand-logo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wordmark:hover { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
nav a { font-size: .875rem; font-weight: 600; }
.affiliate-alert { margin-top: 14px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.affiliate-alert a { margin-left: 5px; text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); gap: 76px; align-items: center; padding-block: 64px 76px; }
.eyebrow { margin-bottom: 14px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.hero h1 { font-size: clamp(2.4rem,4.2vw,3.4rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 700; text-wrap: initial; }
.hero h1 em { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
.hero-lead { max-width: 510px; margin: 24px 0 30px; color: var(--muted); font-size: 1.125rem; line-height: 1.75; }
.hero-setup { max-width: 540px; margin: -10px 0 30px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.hero-setup strong { color: var(--ink); }
.dedica-photo { margin: 0 0 24px; }
.dedica-photo img { width: 100%; height: auto; border-radius: 6px; }
.dedica-photo figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.dedica-photo figcaption a { text-decoration: underline; }
.hero-product { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hero-product h2 { margin: 12px 0 16px; font-size: 1.5rem; line-height: 1.35; }
.hero-product p:not(.micro) { margin-bottom: 24px; color: var(--muted); }

.button, .product-link { min-height: 46px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 5px; padding: 12px 20px; background: var(--ink); color: white; font-size: .875rem; font-weight: 600; line-height: 1.4; text-align: center; transition: background .16s, border-color .16s; }
.button:hover, .product-link:hover { border-color: #363b36; background: #363b36; color: white; text-decoration: none; }
.product-link > span { display: inline-block; }
.affiliate-star { margin-left: 2px; font-size: .8em; font-weight: 700; line-height: 0; vertical-align: super; }
.purchase { max-width: 100%; }
.purchase .product-link { min-width: 136px; padding: 13px 26px; border-radius: 999px; }
.essential > .purchase { margin-top: auto; }
.grinder-option .purchase { width: 100%; margin-top: auto; }
.accessory-list article > .purchase { justify-self: end; width: 180px; }
.beans-note .purchase { justify-self: end; }

.section { padding-block: 80px; }
#upgrades { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem,3vw,2.25rem); line-height: 1.3; letter-spacing: -.035em; font-weight: 650; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading > p { max-width: 680px; margin-top: 18px; color: var(--muted); }
.essentials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.essential { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 28px 14px; }
.category-image { width: calc(100% + 56px); max-width: none; height: 200px; margin: 0 -28px 26px; object-fit: cover; border-radius: 9px 9px 0 0; }
.card-top { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 14px; }
.step { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .065em; }
.tag { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.essential h3 { margin-bottom: 14px; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.025em; text-wrap: initial; }
.benefit { margin-bottom: 24px; color: var(--muted); }
.product-name { margin-bottom: 14px; font-weight: 600; }
.micro { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .035em; }
.grinder-options { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-bottom: 0; }
.grinder-option { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.grinder-option h4 { margin: 8px 0 12px; font-size: 1.125rem; line-height: 1.45; letter-spacing: -.02em; text-wrap: initial; }
.grinder-option p { margin-bottom: 22px; color: var(--muted); }
.grinder-option .product-link { width: 100%; margin-top: auto; padding-inline: 12px; }
.essential > .product-link { margin-top: auto; }
.spec-box { width: 100%; margin: 0 0 24px; border-left: 2px solid var(--gold); padding: 12px 16px; background: var(--panel); font-size: .875rem; }
.spec-box strong, .spec-box span { display: block; }
.spec-box span { margin: 4px 0 6px; font-size: 1rem; font-weight: 600; }
.spec-box p { color: var(--muted); }
.product-details { width: 100%; margin-top: 18px; border-bottom: 0; border-top: 1px solid var(--line); }
.product-details > summary { padding-block: 14px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.product-details > summary::after { top: 15px; font-size: 1.125rem; }
.product-details .fit-note { padding-bottom: 12px; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.product-details .source-link { margin-bottom: 12px; color: var(--muted); font-size: .875rem; }

.beans-note { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; align-items: center; gap: 30px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.beans-note img { width: 160px; height: 120px; border-radius: 7px; object-fit: cover; }
.beans-label { display: block; margin-bottom: 8px; color: var(--gold); font-size: .75rem; letter-spacing: .07em; }
.beans-note h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.4; }
.beans-note p { max-width: 600px; color: var(--muted); }

.fit-section { padding-block: 48px; background: var(--ink); color: white; }
.fit-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 70px; }
.fit-section .eyebrow { color: var(--gold-light); }
.fit-section h2 { max-width: 350px; font-size: 1.75rem; }
.fit-checks p { margin-bottom: 20px; color: #d4d7d2; }
.fit-checks p:last-child { margin-bottom: 0; }
.fit-checks strong { color: white; }

.accessory-group { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.category-lead { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 28px; padding: 20px 60px 20px 20px; font-weight: 400; }
.category-lead::after { top: 50%; right: 24px; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); }
.category-lead img { width: 150px; height: 105px; border-radius: 6px; object-fit: cover; }
.category-count { display: block; margin-bottom: 6px; color: var(--muted); font-size: .75rem; }
.category-lead h3 { margin-bottom: 7px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.015em; text-wrap: initial; }
.category-lead p { color: var(--muted); }
.accessory-list { margin: 0 24px; border-top: 1px solid var(--line); }
.accessory-list article { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.7fr) 95px auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding-block: 28px; }
.accessory-list article:last-child { border-bottom: 0; }
.accessory-list h4 { margin-bottom: 6px; font-size: 1rem; line-height: 1.5; }
.accessory-list article > div > span { display: block; color: var(--muted); font-size: .875rem; }
.accessory-list article > p { color: var(--muted); }
.tier { color: var(--muted); font-size: .875rem; }
.accessory-list .product-link { justify-self: end; }
.buy-smart { max-width: 740px; border-left: 2px solid var(--gold); padding-left: 22px; margin-top: 36px; }
.buy-smart h3 { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.5; }
.buy-smart p { color: var(--muted); }

.recipe-section { padding-block: 72px; background: #f0f1ee; }
.recipe-stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border-block: 1px solid #cdd0c7; padding-block: 28px; margin: 36px 0 20px; }
.recipe-stats > div { border-left: 1px solid #cdd0c7; padding-left: 30px; }
.recipe-stats > div:first-child { border: 0; padding-left: 0; }
.recipe-stats strong { display: block; font-size: 3.25rem; line-height: 1.2; letter-spacing: -.045em; }
.recipe-stats strong span { font-size: 1.25rem; font-weight: 400; letter-spacing: 0; }
.recipe-stats p { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.recipe-note { max-width: 800px; color: var(--muted); font-size: .875rem; }
.recipe-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 60px; padding: 0; margin: 40px 0 0; list-style: none; }
.recipe-steps li { display: flex; gap: 18px; }
.recipe-steps li > span { padding-top: 3px; color: var(--gold); font-size: .875rem; }
.recipe-steps h3 { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.5; text-wrap: initial; }
.recipe-steps p { color: var(--muted); }
.recipe-footnote { max-width: 860px; border-top: 1px solid #cdd0c7; padding-top: 24px; margin-top: 36px; color: var(--muted); font-size: .875rem; }
.recipe-footnote a { text-decoration: underline; }

.faq-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); gap: 60px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 22px 34px 22px 0; font-size: 1rem; font-weight: 600; line-height: 1.6; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 24px; color: var(--muted); font-size: 1.25rem; line-height: 1; font-weight: 400; }
details[open] > summary::after { content: "−"; }
details > p { padding-bottom: 22px; color: var(--muted); }
details > a { display: inline-block; margin-bottom: 20px; font-size: .875rem; text-decoration: underline; }
.faq-list details[open] > summary { color: var(--gold); }

.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.brand-tile { width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0; border-radius: 6px; background: var(--ink); color: var(--gold-light); font-family: Georgia,serif; font-size: 1.6rem; font-weight: 700; }
.footer-brand p { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.footer-top > p { color: var(--muted); font-size: .75rem; line-height: 1.7; }
.transparency { border-top: 1px solid var(--line); padding: 24px 0; }
.transparency strong { font-size: .875rem; }
.transparency p { max-width: 800px; margin-top: 10px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.transparency a { text-decoration: underline; }
.sources > summary { padding-block: 18px; font-size: .875rem; }
.sources > summary::after { top: 21px; font-size: 1rem; }
.source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 32px; padding: 8px 0 24px; font-size: .875rem; }
.source-grid a, .sources > p a { color: var(--muted); text-decoration: underline; overflow-wrap: anywhere; }
.sources > p { max-width: 800px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-block: 24px; color: var(--muted); font-size: .875rem; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 20px; }
.legal summary { padding-block: 18px; font-size: .875rem; }
.legal summary::after { top: 21px; font-size: 1rem; }
.legal h3 { margin: 20px 0 8px; font-size: 1rem; line-height: 1.6; }
.legal p { max-width: 800px; padding-bottom: 18px; font-size: 1rem; line-height: 1.75; }
.legal a { text-decoration: underline; overflow-wrap: anywhere; }
.legal:target, .sources:target { outline: 1px solid #d0ba90; outline-offset: 8px; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 36px; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
  .hero-product { padding: 24px; }
  .essentials-grid { gap: 24px; }
  .grinder-options { grid-template-columns: 1fr; }
  .grinder-option + .grinder-option { border-top: 1px solid var(--line); padding-top: 22px; }
  .beans-note { grid-template-columns: 160px minmax(0,1fr); gap: 24px; }
  .beans-note .product-link { grid-column: 2; justify-self: start; }
  .fit-inner, .faq-section { gap: 36px; }
  .accessory-list article { grid-template-columns: minmax(0,1fr) auto; gap: 12px 24px; }
  .accessory-list article > div { grid-column: 1; grid-row: 1; }
  .accessory-list article > p { grid-column: 1 / -1; grid-row: 2; }
  .accessory-list article > .tier { grid-column: 2; grid-row: 1; }
  .accessory-list article > .product-link { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 8px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 130px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 98px; flex-wrap: wrap; justify-content: center; gap: 10px; padding-block: 12px; }
  .wordmark { width: 260px; height: 58px; }
  nav { width: 100%; justify-content: center; gap: 8px 18px; }
  nav a { font-size: .875rem; }
  .affiliate-alert { margin-top: 12px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 38px 48px; }
  .hero h1 { font-size: clamp(2.125rem,8.5vw,3rem); }
  .hero-lead { margin-block: 22px 26px; font-size: 1.0625rem; }
  .hero-copy > .button { width: 100%; }
  .hero-product { padding: 24px; }
  .hero-product h2 { font-size: 1.375rem; }
  .section { padding-block: 48px; }
  .section-heading { margin-bottom: 28px; }
  .essentials-grid { grid-template-columns: 1fr; gap: 28px; }
  .essential { padding: 0 22px 10px; }
  .category-image { width: calc(100% + 44px); height: auto; aspect-ratio: 1.9; margin: 0 -22px 24px; }
  .essential h3 { font-size: 1.4rem; }
  .grinder-options { gap: 24px; }
  .essential > .product-link { width: 100%; }
  .beans-note { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; margin-top: 32px; }
  .beans-note img { width: 100%; height: auto; aspect-ratio: 2.1; }
  .beans-note .product-link { grid-column: auto; }
  .fit-section { padding-block: 38px; }
  .fit-inner, .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .category-lead { grid-template-columns: 72px minmax(0,1fr); gap: 16px; padding: 20px 36px 20px 14px; }
  .category-lead img { width: 72px; height: 90px; }
  .category-lead h3 { font-size: 1.0625rem; margin-bottom: 0; }
  .category-lead p { display: none; }
  .category-lead::after { right: 12px; }
  .accessory-list { margin-inline: 20px; }
  .accessory-list article { gap: 12px; }
  .accessory-list article > .tier { max-width: 90px; text-align: right; }
  .buy-smart { padding-left: 18px; }
  .recipe-section { padding-block: 48px; }
  .recipe-stats { grid-template-columns: 1fr 1fr 1.5fr; padding-block: 22px; gap: 4px; margin-top: 28px; }
  .recipe-stats > div { padding-left: 12px; }
  .recipe-stats strong { font-size: clamp(1.65rem,7.2vw,2.4rem); }
  .recipe-stats strong span { font-size: .875rem; }
  .recipe-stats p { margin-top: 10px; font-size: .875rem; line-height: 1.5; }
  .recipe-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .source-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom > div { margin-top: 16px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 8px 14px; }
  .recipe-stats { grid-template-columns: 1fr; gap: 20px; }
  .recipe-stats > div { padding-left: 0; border: 0; }
  .recipe-stats p { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Visible disclosures at the point of recommendation. */
.guide-index { border-top: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.guide-grid a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-grid a:hover, .guide-grid a:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.guide-grid span { color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .04em; }
.guide-grid h3 { margin: 14px 0 8px; font-size: 1.25rem; line-height: 1.35; }
.guide-grid p { color: var(--muted); }
.guide-page { padding-top: 32px; padding-bottom: 88px; }
.breadcrumbs { margin-bottom: 48px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a, .guide-body a { text-decoration: underline; text-underline-offset: 3px; }
.guide-page > h1 { max-width: 900px; font-size: clamp(2.25rem,5vw,4.5rem); line-height: 1.1; letter-spacing: -.04em; }
.guide-intro { max-width: 820px; margin: 24px 0 56px; color: var(--muted); font-size: 1.25rem; line-height: 1.55; }
.guide-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(240px,300px); justify-content: space-between; gap: 64px; }
.guide-body { font-size: 1.0625rem; line-height: 1.75; }
.guide-body h2 { margin: 44px 0 14px; font-size: 1.7rem; line-height: 1.3; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p, .guide-body ol, .guide-body ul { margin-bottom: 18px; }
.guide-body ol, .guide-body ul { padding-left: 26px; }
.guide-body li { margin-bottom: 10px; }
.guide-note { margin-top: 40px; padding: 20px; border-left: 3px solid var(--gold); background: var(--panel); }
.guide-sources { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.guide-sources p, .guide-sources li { color: var(--muted); font-size: .9375rem; }
.guide-aside { align-self: start; position: sticky; top: 116px; padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.guide-aside > p { margin-bottom: 22px; }
.guide-aside .button { display: block; text-align: center; }
.guide-aside .aside-disclosure { margin: 24px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (max-width: 800px) { .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .guide-layout { grid-template-columns: 1fr; gap: 28px; } .guide-aside { position: static; } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } .guide-page { padding-top: 24px; } .breadcrumbs { margin-bottom: 28px; } .guide-intro { margin-bottom: 32px; font-size: 1.125rem; } }
.affiliate-alert { font-size: .9375rem; color: var(--ink); line-height: 1.7; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--panel); }
.product-link.amazon-link { flex-direction: row; gap: 0; }
@media (max-width: 1000px) { .accessory-list article > .purchase { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 8px; width: auto; } .beans-note .purchase { grid-column: 2; justify-self: start; } }
@media (max-width: 720px) { .essential > .purchase { width: 100%; } .essential > .purchase .product-link { width: 100%; } .beans-note .purchase { grid-column: auto; justify-self: start; } }
.illustration { position: relative; display: block; overflow: hidden; border-radius: 7px; }
.illustration.category-image { padding: 0; }
.illustration.category-image img { width: 100%; height: 100%; object-fit: cover; }
.ai-badge { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 17px; padding: 2px 4px; border-radius: 3px; background: #171918; color: #fff; opacity: .35; font-size: .625rem; font-weight: 500; line-height: 1; letter-spacing: .03em; }
.beans-note > .illustration { width: 160px; }
.category-lead > .illustration { width: 150px; }
/* Let desktop image areas follow the full image instead of cropping it. */
@media (min-width: 721px) {
 .illustration.category-image { height: auto; aspect-ratio: auto; }
 .illustration.category-image img,
 .beans-note .illustration img,
 .category-lead .illustration img { height: auto; object-fit: contain; }
}
@media (max-width:720px) {
 .beans-note > .illustration { width: 100%; }
 .category-lead > .illustration { width: 72px; }
 .category-lead .ai-badge { top: 5px; right: 5px; }
 .category-lead .illustration img { height: 64px; }
 .illustration.category-image { aspect-ratio: 1.6; }
}
