:root {
  color-scheme: light;
  --espresso: #2B1B14;
  --espresso-rgb: 43, 27, 20;
  --coffee: #5C3A2E;
  --mocha: #7A5543;
  --caramel: #C99562;
  --latte: #E8D8C5;
  --cream: #FAF4EB;
  --light-text: #FFF8F0;
  --paper: var(--cream);
  --ink: var(--espresso);
  --muted: var(--coffee);
  --terracotta: #A33F20;
  --terracotta-dark: var(--coffee);
  --line: var(--latte);
  --content: 1200px;
  --sans: "Avenir Next", "Trebuchet MS", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }

a { color: var(--coffee); text-underline-offset: 0.2em; }
a:hover { color: var(--espresso); }

button, select, input { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--coffee);
  outline-offset: 3px;
}

.site-header :focus-visible, .hero :focus-visible, .section--ink :focus-visible, .site-footer :focus-visible, .dev-index :focus-visible { outline-color: var(--caramel); }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 48px), 790px); margin-inline: auto; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { font-size: 54px; }
h2 { font-size: 38px; }
h3 { font-size: 25px; }
p:last-child { margin-bottom: 0; }

.site-header {
  position: relative;
  z-index: 5;
  background: var(--espresso);
  color: var(--light-text);
  border-bottom: 1px solid var(--coffee);
}

.site-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.brand-logo { display: block; width: 160px; max-width: 100%; height: auto; }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav a { color: var(--light-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--caramel); }

.header-tools { display: flex; align-items: center; gap: 12px; }
.market-select {
  max-width: 172px;
  min-height: 42px;
  padding: 7px 30px 7px 11px;
  border: 1px solid var(--mocha);
  border-radius: 2px;
  background: var(--coffee);
  color: var(--light-text);
  font-size: 13px;
}

.icon-button, .menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--mocha);
  border-radius: 2px;
  background: var(--coffee);
  color: var(--light-text);
  cursor: pointer;
}

.search-glyph { position: relative; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; }
.search-glyph::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; transform: rotate(45deg); background: currentColor; content: ""; }
.menu-toggle { display: none; }
.menu-glyph, .menu-glyph::before, .menu-glyph::after { display: block; width: 17px; height: 2px; background: currentColor; }
.menu-glyph { position: relative; }
.menu-glyph::before, .menu-glyph::after { position: absolute; left: 0; content: ""; }
.menu-glyph::before { top: -6px; }
.menu-glyph::after { top: 6px; }

.hero {
  position: relative;
  display: flex;
  min-height: 610px;
  align-items: center;
  overflow: hidden;
  background: var(--espresso);
  color: var(--light-text);
  isolation: isolate;
}

.hero__image { position: absolute; z-index: -2; inset: 0; margin: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(var(--espresso-rgb), 0.72) 0%, rgba(var(--espresso-rgb), 0.68) 60%, rgba(var(--espresso-rgb), 0.1) 100%); content: ""; }
.hero__content { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; padding-block: 82px; animation: arrive 650ms ease-out both; }
.hero .eyebrow { color: var(--light-text); }
.hero h1 { max-width: 720px; margin-bottom: 18px; font-size: 62px; }
.hero__copy { max-width: 600px; margin-bottom: 28px; color: var(--light-text); font-size: 20px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button--primary { background: var(--terracotta); color: var(--light-text); }
.button--primary:hover { background: var(--coffee); color: var(--light-text); }
.hero .button--primary, .section--ink .button--primary, .site-footer .button--primary, .dev-index .button--primary { background: var(--cream); color: var(--espresso); }
.hero .button--primary:hover, .section--ink .button--primary:hover, .site-footer .button--primary:hover, .dev-index .button--primary:hover { background: var(--latte); color: var(--espresso); }
.button--outline { border-color: currentColor; background: transparent; color: inherit; }
.button--outline:hover { background: var(--cream); color: var(--espresso); }
.button[aria-disabled="true"] { border-color: var(--line); background: var(--latte); color: var(--coffee); cursor: not-allowed; }

.section { padding-block: 82px; }
.section--white { background: var(--paper); }
.section--latte { background: var(--latte); }
.section--ink { background: var(--coffee); color: var(--light-text); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.section-heading h2 { max-width: 620px; margin-bottom: 0; }
.section-heading__copy { max-width: 400px; margin: 0; color: var(--muted); }
.section--ink .eyebrow { color: var(--light-text); }
.section--ink .section-heading__copy { color: var(--light-text); }

.route-grid, .category-grid, .trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-card, .category-card, .trust-item { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.shortlist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shortlist-card { display: flex; min-width: 0; min-height: 330px; flex-direction: column; align-items: start; padding: 23px; border: 1px solid var(--line); background: var(--paper); }
.shortlist-card__image { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 18px; object-fit: cover; background: var(--latte); }
.shortlist-card__number { display: grid; width: 36px; aspect-ratio: 1; margin-bottom: 18px; place-items: center; border-radius: 50%; background: var(--latte); color: var(--coffee); font-size: 12px; font-weight: 800; }
.shortlist-card .eyebrow { margin-bottom: 9px; font-size: 10px; }
.shortlist-card h3 { margin-bottom: 10px; font-size: 23px; }
.shortlist-card > p:not(.eyebrow) { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.shortlist-card__actions { display: grid; width: 100%; gap: 8px; margin-top: auto; }
.shortlist-card__actions .button { width: 100%; min-height: 44px; padding-inline: 10px; font-size: 12px; }
.button--disabled, .button--disabled:disabled { border-color: var(--line); background: var(--latte); color: var(--coffee); cursor: not-allowed; }
.shortlist-caveat { margin-bottom: 24px; padding: 15px 18px; border-left: 4px solid var(--caramel); background: var(--latte); color: var(--espresso); font-size: 14px; }
.shortlist-caveat strong { color: var(--ink); }
.coffee-moments-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.coffee-moment { position: relative; min-width: 0; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--latte); }
.coffee-moment::after { position: absolute; right: 0; bottom: 0; left: 0; height: 5rem; background: linear-gradient(transparent, rgba(var(--espresso-rgb), 0.76)); content: ""; }
.coffee-moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.coffee-moment .coffee-moment__image--machine-right { object-position: 76% center; }
.coffee-moment__credit { display: block; margin-top: 8px; font-family: var(--sans); font-size: 10px; font-weight: 600; line-height: 1.45; }
.coffee-moment__credit a { color: inherit; }
.coffee-moment__credit a:hover { color: var(--light-text); }
.coffee-moment figcaption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 17px 15px; color: var(--paper); font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.coffee-moment:hover img { transform: scale(1.025); }
.route-card { display: flex; min-height: 225px; flex-direction: column; align-items: start; }
.route-card__number { display: grid; width: 38px; aspect-ratio: 1; margin-bottom: 20px; place-items: center; border-radius: 50%; background: var(--latte); color: var(--coffee); font-size: 13px; font-weight: 800; }
.route-card h3 { margin-bottom: 9px; font-size: 24px; }
.route-card p { margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.text-link { margin-top: auto; font-size: 14px; font-weight: 800; }

.status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 19px 22px; border-left: 4px solid var(--caramel); background: var(--latte); }
.status-strip strong { font-size: 14px; }
.status-strip span { color: var(--muted); font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coffee); }

.topic-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; border-top: 1px solid var(--line); }
.topic-item { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.topic-item span:last-child { color: var(--muted); font-size: 12px; font-weight: 600; }

.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-item { padding: 0; border: 0; background: transparent; }
.trust-item h3 { margin-bottom: 9px; color: var(--light-text); font-size: 23px; }
.trust-item p { margin-bottom: 0; color: var(--light-text); font-size: 15px; }
.trust-mark { display: block; width: 28px; height: 3px; margin-bottom: 21px; background: var(--caramel); }

.affiliate-note { padding: 14px 18px; border-left: 3px solid var(--terracotta); background: var(--latte); color: var(--espresso); font-size: 14px; }
.affiliate-note strong { color: var(--ink); }

.site-footer { padding-block: 46px 28px; background: var(--espresso); color: var(--light-text); }
.site-footer__top { display: flex; align-items: start; justify-content: space-between; gap: 36px; padding-bottom: 34px; }
.site-footer__brand { max-width: 370px; }
.site-footer__brand .brand { color: var(--paper); }
.site-footer__brand .brand-logo { padding: 0; background: transparent; }
.site-footer__brand p { margin: 15px 0 0; color: var(--light-text); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.footer-links a { color: var(--light-text); font-size: 14px; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--mocha); color: var(--light-text); font-size: 12px; }
.site-footer a.sitemap-link { color: var(--light-text); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__bottom a.sitemap-link { align-self: center; font-size: inherit; }

.sitemap-page { padding-bottom: 76px; }
.sitemap-page > nav { margin-top: 30px; }
.sitemap-tree, .sitemap-tree ul { margin: 0; padding: 0; list-style: none; }
.sitemap-tree > li + li { margin-top: 18px; }
.sitemap-tree li { min-width: 0; }
.sitemap-tree li > ul { margin: 9px 0 0 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.sitemap-tree li > ul > li + li { margin-top: 7px; }
.sitemap-tree a { color: var(--espresso); font-size: 15px; text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.sitemap-tree > li > a { font-size: 19px; font-weight: 800; }
.sitemap-tree a:hover { color: var(--terracotta); }

.page-intro { padding-block: 70px 45px; }
.page-intro--full-width { width: 100%; }
.page-intro h1 { max-width: 850px; margin-bottom: 16px; font-size: 52px; }
.page-intro__copy { max-width: 700px; color: var(--muted); font-size: 19px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.category-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr); gap: 44px; align-items: start; }
.category-card { display: flex; min-height: 235px; flex-direction: column; align-items: start; }
.category-card h3 { margin-bottom: 12px; }
.category-card p { margin-bottom: 17px; color: var(--muted); font-size: 15px; }
.category-card__meta { display: block; margin-top: 17px; color: var(--terracotta-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.category-card .text-link { margin-top: auto; }
.category-product-placeholder { max-width: 760px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--caramel); background: var(--cream); }
.category-product-placeholder h3 { margin-bottom: 10px; font-size: 24px; }
.category-product-placeholder p:not(.eyebrow) { max-width: 680px; color: var(--muted); }
.category-product-placeholder .button { min-height: 44px; margin-top: 8px; }
.category-related { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.category-related a { font-weight: 700; }
.learn-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 16px; align-items: end; padding: 20px; border: 1px solid var(--line); background: var(--latte); }
.learn-control { display: grid; gap: 6px; color: var(--espresso); font-size: 13px; font-weight: 700; }
.learn-control select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--coffee); border-radius: 2px; background: var(--cream); color: var(--espresso); }
.learn-tag-filter { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--mocha); }
.learn-tag-filter summary { width: fit-content; color: var(--coffee); font-weight: 800; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.learn-tag-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.learn-tag-option { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); background: var(--cream); color: var(--espresso); font-size: 12px; }
.learn-tag-option input { accent-color: var(--coffee); }
.learn-toolbar__actions { display: flex; align-items: center; gap: 12px; }
.learn-toolbar__actions p { margin: 0; color: var(--coffee); font-size: 13px; font-weight: 700; white-space: nowrap; }
.learn-toolbar__actions .button { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.learn-card { display: flex; min-width: 0; min-height: 205px; flex-direction: column; align-items: start; padding: 19px; border: 1px solid var(--line); background: var(--cream); }
.learn-card__category { margin-bottom: 10px; color: var(--coffee); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.learn-card__category a { display: inline-flex; max-width: 100%; padding: 5px 9px; border: 1px solid var(--espresso); background: var(--espresso); color: var(--paper); text-decoration: none; }
.learn-card__category a:hover { background: var(--coffee); color: var(--paper); }
.learn-card h2 { margin-bottom: 14px; font-size: 22px; line-height: 1.2; }
.learn-card h2 a { color: var(--espresso); text-decoration: underline; text-underline-offset: 0.18em; }
.learn-card h2 a:hover { color: var(--terracotta); }
.learn-card__status { margin-top: auto; margin-bottom: 10px; color: var(--mocha); font-size: 12px; }
.learn-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.learn-card__tags span { padding: 3px 7px; border: 1px solid var(--line); background: var(--latte); color: var(--coffee); font-size: 10px; font-weight: 700; }
.learn-card__tags a { display: inline-flex; max-width: 100%; padding: 3px 7px; border: 1px solid var(--line); background: var(--latte); color: var(--coffee); font-size: 10px; font-weight: 700; text-decoration: none; }
.learn-card__tags a:hover { border-color: var(--coffee); background: var(--coffee); color: var(--paper); }
.learn-card[hidden] { display: none; }
.taxonomy-link { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid var(--line); text-decoration: none; }
.taxonomy-link--category { border-color: var(--espresso); background: var(--espresso); color: var(--paper); font-weight: 700; }
.taxonomy-link--category:hover { background: var(--coffee); color: var(--paper); }
.taxonomy-link--tag { background: var(--latte); color: var(--coffee); }
.taxonomy-link--tag:hover { border-color: var(--coffee); background: var(--coffee); color: var(--paper); }
.taxonomy-intro { max-width: 78ch; color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.learn-empty { margin-top: 20px; padding: 20px; border-left: 3px solid var(--caramel); background: var(--latte); color: var(--espresso); }
.aside-note { padding: 24px; border-top: 3px solid var(--caramel); background: var(--latte); }
.aside-note h2 { margin-bottom: 12px; font-size: 25px; }
.aside-note p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.article-shell { padding-block: 40px 88px; }
.article-shell h1 { margin-bottom: 20px; font-size: 48px; }
.article-shell h2 { margin-top: 52px; font-size: 32px; }
.article-shell h3 { margin-top: 34px; font-size: 23px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.author-profile { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 30px; align-items: start; margin-block: 28px 38px; }
.author-profile__portrait { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border: 1px solid var(--line); object-fit: cover; object-position: center top; }
.author-profile__copy h2 { margin-top: 0; }
.author-profile__copy p:last-child { margin-bottom: 0; }
.draft-banner { margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--caramel); background: var(--latte); color: var(--espresso); font-size: 14px; }
.draft-banner strong { display: block; margin-bottom: 3px; }
.article-lede { color: var(--muted); font-family: var(--serif); font-size: 24px; line-height: 1.45; }
.article-block { margin-block: 20px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.article-block h3 { margin-top: 0; }
.article-block p:last-child { margin-bottom: 0; }
.roast-product-card { display: grid; width: min(100%, 700px); grid-template-columns: minmax(0, 1fr); gap: 18px; }
.roast-product-card__image-link { display: block; width: min(100%, 600px); color: inherit; text-decoration: none; }
.roast-product-card__image { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: auto; border: 1px solid var(--line); background: var(--paper); object-fit: contain; }
.roast-product-card__image-placeholder { display: grid; width: min(100%, 600px); aspect-ratio: 1; place-items: center; padding: 18px; border: 1px dashed var(--mocha); background: var(--latte); color: var(--coffee); font-size: 14px; text-align: center; }
.roast-product-card__content { width: min(100%, 600px); min-width: 0; }
.roast-product-card__content h3 { margin-bottom: 12px; }
.roast-product-card__content p { margin-bottom: 18px; }
.unknown-value { display: inline-block; padding: 3px 8px; background: var(--latte); color: var(--coffee); font-size: 13px; font-weight: 700; }
.comparison-table-wrap { overflow-x: auto; margin-block: 24px; border: 1px solid var(--line); background: var(--cream); }
.comparison-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); background: var(--cream); color: var(--espresso); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--latte); color: var(--espresso); }
.comparison-table tr:last-child td { border-bottom: 0; }
.template-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }

.dialog-backdrop { border: 0; padding: 0; background: rgba(var(--espresso-rgb), 0.58); }
.search-dialog { width: min(calc(100% - 32px), 620px); max-height: min(80vh, 640px); padding: 26px; border: 1px solid var(--line); border-radius: 2px; background: var(--cream); color: var(--espresso); }
.search-dialog::backdrop { background: rgba(var(--espresso-rgb), 0.58); }
.search-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search-dialog h2 { min-width: 0; margin: 0; font-size: 28px; line-height: 1.15; }
.search-dialog__close { display: inline-flex; min-width: 88px; min-height: 48px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid var(--espresso); background: var(--espresso); color: var(--paper); font-family: var(--sans); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.search-dialog__close:hover { background: var(--coffee); color: var(--paper); }
.search-dialog__input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--coffee); border-radius: 2px; background: var(--cream); color: var(--espresso); }
.search-dialog__results { display: grid; gap: 0; margin-top: 12px; }
.search-dialog__result { padding: 13px 5px; border-bottom: 1px solid var(--line); font-weight: 700; }
.search-dialog__empty { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.dev-index { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--espresso); color: var(--light-text); }
.dev-index__main { width: min(100%, 690px); padding-block: 70px; }
.dev-index .eyebrow { color: var(--caramel); }
.dev-index h1 { margin-bottom: 16px; font-size: 58px; }
.dev-index__intro { max-width: 560px; color: var(--light-text); font-size: 19px; }
.dev-index__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dev-index__note { margin-top: 36px; color: var(--light-text); font-size: 14px; }
.dev-index .button--outline { border-color: var(--light-text); color: var(--light-text); }

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1050px) {
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 13px; }
  .header-tools { gap: 8px; }
  .market-select { max-width: 145px; }
  .hero h1 { font-size: 56px; }
  .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .roast-product-card { width: 100%; }
  .roast-product-card__image-placeholder { max-width: 240px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .shell, .reading-width { width: min(calc(100% - 36px), var(--content)); }
  .site-header__inner { min-height: 68px; gap: 12px; }
  .brand { font-size: 22px; }
  .brand-logo { width: 150px; }
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .market-select { max-width: 150px; min-height: 42px; font-size: 12px; }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 0; padding: 8px 18px 16px; border-bottom: 1px solid var(--coffee); background: var(--espresso); box-shadow: 0 12px 18px rgba(var(--espresso-rgb), 0.22); }
  .primary-nav:not(.is-open) { display: none; }
  .primary-nav a { min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid var(--coffee); color: var(--light-text); font-size: 15px; }
  .hero { min-height: 555px; }
  .hero__content { width: min(calc(100% - 36px), var(--content)); padding-block: 66px; }
  .hero h1 { max-width: 600px; font-size: 44px; }
  .hero__copy { max-width: 540px; font-size: 18px; }
  .section { padding-block: 60px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { margin-bottom: 13px; font-size: 33px; }
  .route-grid, .category-grid, .trust-grid, .shortlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-tag-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .learn-toolbar__actions { grid-column: 1 / -1; justify-content: space-between; }
  .coffee-moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-layout { grid-template-columns: 1fr; gap: 24px; }
  .page-intro { padding-block: 48px 30px; }
  .page-intro h1 { font-size: 42px; }
  .site-footer__top { display: grid; }
  .site-footer__bottom { display: block; }
  .site-footer__bottom p + p { margin-top: 7px; }
}

@media (max-width: 520px) {
  .shell, .reading-width { width: min(calc(100% - 32px), var(--content)); }
  .site-header__inner { gap: 8px; }
  .brand { gap: 7px; font-size: 19px; }
  .brand-logo { width: 136px; }
  .header-tools { gap: 6px; }
  .market-select { width: 116px; padding-inline: 8px 22px; font-size: 11px; }
  .icon-button, .menu-toggle { width: 42px; height: 42px; }
  .hero { min-height: 540px; align-items: end; }
  .hero__image img { object-position: 58% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(var(--espresso-rgb), 0.72) 0%, rgba(var(--espresso-rgb), 0.68) 65%, rgba(var(--espresso-rgb), 0.08) 100%); }
  .hero__content { width: min(calc(100% - 32px), var(--content)); padding-block: 54px 48px; }
  .hero h1 { margin-bottom: 14px; font-size: 38px; }
  .hero__copy { margin-bottom: 23px; font-size: 17px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .section { padding-block: 48px; }
  .section-heading h2 { font-size: 30px; }
  .route-grid, .category-grid, .trust-grid, .shortlist-grid, .topic-list { grid-template-columns: 1fr; }
  .learn-grid, .learn-toolbar, .learn-tag-options { grid-template-columns: 1fr; }
  .learn-toolbar__actions { grid-column: auto; flex-wrap: wrap; }
  .search-dialog { padding: 20px; }
  .search-dialog__top { gap: 10px; }
  .search-dialog h2 { font-size: 24px; }
  .search-dialog__close { min-width: 80px; min-height: 44px; padding-inline: 12px; }
  .coffee-moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .coffee-moment { aspect-ratio: 4 / 3; }
  .coffee-moment figcaption { padding: 12px 10px; font-size: 17px; }
  .coffee-moment__credit { font-size: 9px; }
  .route-card { min-height: 0; }
  .shortlist-card { min-height: 0; }
  .category-card { min-height: 0; }
  .topic-item { min-height: 58px; }
  .status-strip { align-items: start; }
  .page-intro { padding-block: 39px 25px; }
  .page-intro h1, .article-shell h1 { font-size: 36px; }
  .page-intro__copy { font-size: 17px; }
  .article-shell { padding-block: 28px 60px; }
  .author-profile { grid-template-columns: 1fr; gap: 22px; }
  .author-profile__portrait { width: min(100%, 190px); }
  .article-lede { font-size: 21px; }
  .article-shell h2 { font-size: 28px; }
  .article-block { padding: 18px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-index { padding: 22px; }
  .dev-index h1 { font-size: 44px; }
  .dev-index__links { display: grid; }
}

@media (max-width: 380px) {
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-block: 8px; }
  .brand { grid-column: 1; grid-row: 1; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .header-tools { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; width: 100%; }
}

@media (max-width: 520px) {
  .coffee-moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Shared CoffeeJay design: warm, calm and consistent with the homepage. */
:root {
  --cream: #fbf5eb;
  --paper: #fffaf2;
  --latte: #eee1cd;
  --line: #dfceb5;
  --terracotta: #934a32;
  --muted: #705846;
  --sage: #697159;
}
body { background: var(--cream); }
h1, h2 { letter-spacing: -.025em; }
.eyebrow { color: var(--sage); letter-spacing: .15em; }
.button { border-radius: 7px; padding: 13px 21px; }
.button--primary { box-shadow: 0 6px 15px #75341a14; }
.button--outline { border-color: #b99675; color: #683c29; }
.button--outline:hover { border-color: var(--terracotta); background: #eee1cd; }
.section--ink .button--outline, .hero .button--outline { border-color: #d7b792; color: var(--light-text); }
.section--ink .button--outline:hover, .hero .button--outline:hover { color: var(--espresso); }
.market-select, .icon-button, .menu-toggle { border-radius: 6px; }
.page-intro { padding-block: 64px 42px; background: radial-gradient(ellipse at 5% 100%, #ead8bb65, transparent 65%); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(36px, 4.5vw, 59px); line-height: 1.08; }
.page-intro__copy { line-height: 1.75; }
.breadcrumbs { font-size: 12px; }
.breadcrumbs a { text-decoration-color: #bea283; }
.route-card, .category-card, .learn-card, .shortlist-card { border-radius: 12px; background: var(--paper); }
.route-grid, .category-grid, .learn-grid { gap: 22px; }
.category-card { padding: 28px; }
.learn-card { padding: 25px; }
.category-card, .learn-card { transition: border-color .2s ease, box-shadow .2s ease; }
.category-card:hover, .learn-card:hover { border-color: #ab8969; box-shadow: 0 8px 24px #6c4e300a; }
.learn-card h2 a { text-decoration: none; }
.learn-card h2 a:hover { text-decoration: underline; }
.learn-card__category a { border-radius: 5px; border-color: #6d4b36; background: #6d4b36; }
.taxonomy-link { border-radius: 5px; padding: 4px 10px; }
.taxonomy-link--category { border-color: #6d4b36; background: #6d4b36; }
.learn-card__tags a, .learn-card__tags span { border-radius: 5px; }
.learn-toolbar { padding: 25px; border-radius: 12px; background: #eee5d5; }
.learn-control select, .learn-tag-option { border-radius: 6px; }
.learn-control select { border-color: #bda185; background: var(--paper); }
.learn-tag-filter { border-top-color: #cfb99c; }
.aside-note { border-radius: 10px; border-top-color: var(--sage); background: #e9e7d9; }
.status-strip, .affiliate-note, .shortlist-caveat, .learn-empty { border-radius: 0 9px 9px 0; }
.category-product-placeholder, .article-block, .draft-banner { border-radius: 10px; }
.article-shell { padding-top: 46px; }
.article-shell h1 { font-size: clamp(35px, 4vw, 54px); line-height: 1.09; }
.article-shell h2 { margin-top: 48px; line-height: 1.18; }
.article-shell h3 { line-height: 1.2; }
.article-shell > p:not(.article-meta):not(.eyebrow), .article-shell li { line-height: 1.8; }
.article-shell > p:not(.article-meta):not(.eyebrow) { color: #513e30; }
.article-shell > .button { margin-top: 24px; }
.article-meta { line-height: 1.8; gap: 12px 20px; }
.article-meta--byline { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.article-meta .taxonomy-link { margin-bottom: 4px; }
.draft-banner { background: #eee5d5; border-color: #d9c4a8; }
.author-profile__portrait, .shortlist-card__image { border-radius: 10px; }
.taxonomy-intro { font-family: var(--sans); font-size: 18px; line-height: 1.75; }
.search-dialog { border-radius: 14px; background: var(--paper); border-color: var(--line); }
.search-dialog__input { border-radius: 7px; }
.sitemap-tree > li { padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.site-editorial-cover { width: min(calc(100% - 48px), 1200px); margin: 34px auto 0; overflow: hidden; border-radius: 12px 90px 12px 12px; }
.site-editorial-cover img { width: 100%; height: 310px; object-fit: cover; object-position: center 52%; }
.site-editorial-cover--milk img { object-position: center 65%; }
.site-editorial-cover--together img { object-position: center 45%; }
@media (max-width: 760px) {
  .page-intro { padding-block: 40px 30px; }
  .article-shell { padding-top: 30px; }
  .article-meta { gap: 10px 15px; }
  .learn-card, .category-card { padding: 22px; }
  .learn-toolbar { padding: 18px; }
  .site-editorial-cover { width: calc(100% - 32px); margin-top: 24px; border-radius: 10px 55px 10px 10px; }
  .site-editorial-cover img { height: 230px; }
  .route-grid, .category-grid, .learn-grid { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .category-card, .learn-card { transition: none; } }

.article-shell .site-editorial-cover { width: 100%; margin: 28px 0 36px; }
.article-shell .site-editorial-cover img { height: 280px; }
@media (max-width: 760px) { .article-shell .site-editorial-cover img { height: 220px; } }

/* Short summaries keep recipe listing cards useful at a glance. */
.recipe-card__description { width: 100%; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.recipe-card__description span { display: block; }



/* Shared retailer buttons throughout CoffeeJay. */
body .machine-shop.machine-shop--amazon,body .machine-shop.machine-shop--bol{padding:5px 10px!important;font-size:12px!important;font-weight:600!important;line-height:1.4!important;min-height:0!important;border-radius:6px!important;box-shadow:none!important}
body .machine-shop.machine-shop--amazon{background:#fff1d9!important;border-color:#e5cda4!important;color:#684916!important}
body .machine-shop.machine-shop--amazon:hover{background:#f7e3be!important;border-color:#d4b578!important;color:#543a12!important}
body .machine-shop.machine-shop--bol{background:#eaf0fb!important;border-color:#c4d2ec!important;color:#29476f!important}
body .machine-shop.machine-shop--bol:hover{background:#dce6f7!important;border-color:#adbfdf!important;color:#203958!important}

.site-footer__bottom{align-items:center;flex-wrap:wrap;gap:10px 20px}.site-footer__bottom p{margin:0}.footer-legal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:11px}.footer-legal a,.footer-legal [data-privacy-settings]{color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px}.footer-legal [data-privacy-settings]{background:none;border:0;padding:0;cursor:pointer}.site-footer__bottom>p:last-child{margin-left:auto}
