:root {
  --espresso: #211712;
  --espresso-soft: #3a2920;
  --copper: #d98957;
  --copper-deep: #b8653d;
  --ivory: #f4ecdf;
  --paper: #fbf8f3;
  --sage: #a8b7a6;
  --ink-muted: #75685f;
  --line: rgba(33, 23, 18, 0.14);
  --shadow: 0 18px 50px rgba(33, 23, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--espresso);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img { width: 205px; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--espresso-soft);
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a { transition: color 180ms ease; }
.primary-nav a:hover { color: var(--copper-deep); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.menu-toggle:hover { border-color: var(--copper-deep); color: var(--copper-deep); }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover, .button:hover { background: var(--copper-deep); transform: translateY(-2px); }

.button.secondary {
  background: transparent;
  color: var(--espresso);
  border: 1px solid rgba(33, 23, 18, 0.32);
}

.button.secondary:hover { color: var(--ivory); border-color: var(--copper-deep); }

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  background-color: var(--espresso);
  background-image: linear-gradient(90deg, rgba(33, 23, 18, 0.94) 0%, rgba(33, 23, 18, 0.74) 35%, rgba(33, 23, 18, 0.08) 78%), url('https://www.lechedecafe.com/assets/hero-home.webp');
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 90px 0;
}

.hero-copy { max-width: 560px; color: var(--ivory); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 { max-width: 650px; font-size: clamp(3rem, 7vw, 5.75rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; }
h3 { font-size: 1.45rem; }

.hero-copy p:not(.eyebrow) {
  max-width: 510px;
  margin: 26px 0 32px;
  color: rgba(244, 236, 223, 0.8);
  font-size: 18px;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button { background: var(--copper); color: var(--espresso); }
.hero .button:hover { background: var(--ivory); }
.hero .button.secondary { color: var(--ivory); border-color: rgba(244, 236, 223, 0.5); }

.section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-header p { max-width: 470px; margin: 0; color: var(--ink-muted); }

.kicker {
  margin: 0 0 10px;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-page .card-grid { grid-template-columns: repeat(2, 1fr); }

.card {
  min-height: 215px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover { transform: translateY(-5px); border-color: rgba(185, 101, 61, 0.45); box-shadow: var(--shadow); }
.card-thumb { width: 100%; height: 165px; margin: 0px auto 15px; object-fit: cover; }
.card p { margin: 14px 0 0; color: var(--ink-muted); }
.card .arrow { display: inline-block; margin-top: 22px; color: var(--copper-deep); font-size: 14px; font-weight: 800; }

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 62px;
  align-items: center;
  padding: 105px max(20px, calc((100vw - var(--max-width)) / 2));
  background: var(--ivory);
}

.split-copy p { max-width: 510px; color: var(--ink-muted); }

.check-list { display: grid; gap: 13px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: baseline; }
.check-list li::before { content: '↗'; color: var(--copper-deep); font-weight: 800; }

.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.dark-section { background: var(--espresso); color: var(--ivory);padding: 40px; }
.dark-section .section-header p { color: rgba(244, 236, 223, 0.65); }
.dark-section .card { border-color: rgba(244, 236, 223, 0.17); background: rgba(255, 255, 255, 0.04); }
.dark-section .card p { color: rgba(244, 236, 223, 0.65); }
.dark-section .card .arrow { color: var(--copper); }

.category-hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 95px max(20px, calc((100vw - var(--max-width)) / 2)) 85px;
  background: var(--espresso);
  background-size: cover;
  background-position: center;
  color: var(--ivory);
}

.page-espresso-machines .category-hero {
  background-image: linear-gradient(90deg, rgba(20, 18, 17, 0.9), rgba(20, 18, 17, 0.48) 62%, rgba(20, 18, 17, 0.2)), url('https://www.lechedecafe.com/assets/hero-espresso-machines.webp');
  background-position: center;
}

.page-coffee-grinders .category-hero {
  background-image: linear-gradient(90deg, rgba(25, 23, 20, 0.76), rgba(25, 23, 20, 0.34)), url('https://www.lechedecafe.com/assets/hero-coffee-grinders.webp');
  color: var(--ivory);
}

.page-milk-frothers .category-hero {
  background-image: linear-gradient(90deg, rgba(33, 23, 18, 0.78), rgba(33, 23, 18, 0.3) 70%, rgba(33, 23, 18, 0.14)), url('https://www.lechedecafe.com/assets/hero-milk-frothers.webp');
  background-position: center;
}

.page-coffee-recipes .category-hero {
  background-image: linear-gradient(90deg, rgba(33, 23, 18, 0.78), rgba(33, 23, 18, 0.22)), url('https://www.lechedecafe.com/assets/hero-coffee-recipes.webp');
  background-position: center;
}

.page-coffee-tools .category-hero {
  background-image: linear-gradient(90deg, rgba(33, 23, 18, 0.84), rgba(33, 23, 18, 0.34)), url('https://www.lechedecafe.com/assets/hero-coffee-tools.webp');
  background-position: center;
}

.page-commercial-coffee-machines .category-hero {
  background-image: linear-gradient(90deg, rgba(12, 19, 25, 0.78), rgba(12, 19, 25, 0.26)), url('https://www.lechedecafe.com/assets/hero-commercial-coffee-machines.webp');
  background-position: center;
}

.category-hero p { max-width: 650px; color: rgba(244, 236, 223, 0.73); font-size: 18px; }

.category-body { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; padding: 75px 0 105px; }
.category-body .card-grid { margin-top: 34px; }

.article-hero {
  min-height: 535px;
  display: flex;
  align-items: end;
  background-color: var(--espresso);
  background-position: center;
  background-size: cover;
  color: var(--ivory);
}

.article-hero-inner { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 72px 0 78px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 30px; color: rgba(244, 236, 223, 0.7); font-size: 13px; }
.breadcrumbs a { color: var(--ivory); text-decoration: underline; text-decoration-color: rgba(244, 236, 223, 0.35); text-underline-offset: 4px; }
.breadcrumbs a:hover { color: var(--copper); }
.article-hero h1 { max-width: 800px; font-size: clamp(2.65rem, 6vw, 5rem); }
.article-dek { max-width: 710px; margin: 24px 0 0; color: rgba(244, 236, 223, 0.83); font-size: 19px; }
.article-meta { margin: 22px 0 0; color: rgba(244, 236, 223, 0.58); font-size: 13px; }
.article-body { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 76px 0 110px; }
.article-intro { margin: 0 0 55px; color: var(--espresso-soft); font-family: Georgia, 'Times New Roman', serif; font-size: 1.32rem; line-height: 1.58; }
.article-section { margin-top: 52px; }
.article-section h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.article-section p { margin: 20px 0 0; color: var(--espresso-soft); }
.article-section p a { color: var(--copper-deep); font-weight: 700; text-decoration: none; text-underline-offset: 3px; }
.recipe-box { margin: 0 0 60px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 14px 40px rgba(47, 29, 20, 0.08); }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 28px; color: var(--ink-muted); font-size: 14px; }
.recipe-facts span { padding: 8px 12px; border-radius: 999px; background: var(--ivory); }
.recipe-box h2 { margin-top: 30px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.recipe-box h2:first-of-type { margin-top: 0; }
.recipe-box ul, .recipe-box ol { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 22px; }
.recipe-box li { padding-left: 4px; color: var(--espresso-soft); }
.source-reference { padding: 32px; border-radius: var(--radius-md); background: var(--ivory); }
.source-reference p { margin-top: 15px; color: var(--ink-muted); }
.source-list { display: grid; gap: 9px; margin: 20px 0 0; padding-left: 20px; }
.source-list a { color: var(--copper-deep); text-decoration: none; text-underline-offset: 3px; }
.article-next { margin-top: 78px; padding-top: 35px; border-top: 1px solid var(--line); }
.article-next h2 { margin-bottom: 24px; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-link { display: flex; justify-content: space-between; gap: 18px; min-height: 100%; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--espresso-soft); font-weight: 700; }
.related-link:hover { border-color: var(--copper-deep); color: var(--copper-deep); }

.site-footer { padding: 42px 20px; background: #160f0c; color: rgba(244, 236, 223, 0.7); }
.footer-inner { width: min(100%, var(--max-width)); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner img { width: 170px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-inner p { margin: 0; font-size: 13px; }

@media (max-width: 860px) {
  .nav-wrap { flex-wrap: wrap; padding: 16px 0; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .primary-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 2px; border-top: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 0; }
  .nav-cta { display: none; }
  .hero { min-height: 620px; background-position: 62% center; }
  .hero-copy { max-width: 500px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 25px; }
  .related-links { grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  .brand img { width: 175px; }
  .primary-nav { font-size: 14px; }
  .hero-inner { padding: 70px 0; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .section, .category-body { padding-top: 72px; padding-bottom: 72px; }
  .section-header { display: block; }
  .section-header p { margin-top: 18px; }
  .card-grid, .guide-list, .home-page .card-grid { grid-template-columns: 1fr; }
  .split-section { padding-top: 72px; padding-bottom: 72px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .article-hero { min-height: 520px; }
  .article-hero-inner { padding: 58px 0 62px; }
  .article-dek { font-size: 17px; }
  .article-body { padding-top: 62px; padding-bottom: 80px; }
  .article-intro { font-size: 1.18rem; }
  .recipe-box { padding: 24px; }
  .source-reference { padding: 24px; }
}
