/* =============================================================================
   Wholesale & Floating Candles — Design System
   Editorial affiliate-blog aesthetic (coffee/cream palette, Georgia serif
   headings, dark espresso header & footer, crisp card borders, amber CTAs).
   Mobile-first. No external fonts.
   ============================================================================= */

:root {
  /* Coffee palette */
  --coffee-950: #1a0a00;
  --coffee-900: #3a190b;
  --coffee-800: #3d1f0a;
  --coffee-700: #4a2c14;
  --coffee-600: #c06520;
  --coffee-500: #d4802a;
  --coffee-400: #fbbf24;
  --coffee-300: #e5c9a8;
  --coffee-200: #eadcc8;
  --coffee-100: #f3e9db;
  --coffee-50: #fdf8f0;
  --white: #ffffff;

  --bg: var(--coffee-50);
  --surface: var(--white);
  --ink: var(--coffee-900);
  --ink-soft: var(--coffee-700);
  --muted: #71675a;
  --line: var(--coffee-200);
  --line-strong: var(--coffee-300);
  --accent: #b0601a;
  --accent-deep: #a35318;
  --accent-soft: var(--coffee-100);

  --font-display: Georgia, Cambria, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --maxw: 1160px;
  --content: 720px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(26, 10, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(26, 10, 0, 0.09);
  --shadow-lg: 0 18px 50px rgba(26, 10, 0, 0.16);

  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }

strong { color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coffee-950);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------ */
/* Header (dark espresso)                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--coffee-950);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--coffee-200);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coffee-500);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex: none;
}
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coffee-400);
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  margin-left: auto;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  place-items: center;
  border: 1px solid var(--coffee-800);
  background: transparent;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--coffee-200);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-label span { position: relative; }
.nav-toggle-label span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-label span::after { position: absolute; top: 6px; left: 0; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--coffee-200);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:not(.btn):hover {
  background: var(--coffee-900);
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Breadcrumbs                                                         */
/* ------------------------------------------------------------------ */
.breadcrumbs {
  font-size: 0.83rem;
  color: var(--muted);
  padding: 16px 0 0;
  overflow: hidden;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--line-strong);
  margin-right: 2px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46ch;
}

/* ------------------------------------------------------------------ */
/* Hero + section titles                                               */
/* ------------------------------------------------------------------ */
.hero {
  padding: 40px 0 20px;
  text-align: center;
}
.hero h1 {
  max-width: 24ch;
  margin: 0 auto 0.4em;
}
.hero__sub {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 1.8em 0 0.8em;
  color: var(--coffee-900);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 1.8em 0 0.8em;
}
.section-head h2 { margin: 0; }
.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}
.section-head a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Featured article                                                    */
/* ------------------------------------------------------------------ */
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.featured-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  color: var(--ink);
}
.featured-card__thumb {
  min-height: 180px;
  background: linear-gradient(135deg, #fdf8f0, #eadcc8 55%, #d4802a);
  display: grid;
  place-items: center;
  font-size: 4rem;
}
.featured-card__body {
  padding: 22px;
}
.featured-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.featured-card h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  line-height: 1.25;
}
.featured-card p {
  color: var(--ink-soft);
  margin: 0;
}
@media (min-width: 700px) {
  .featured-card { grid-template-columns: 1.1fr 1fr; }
  .featured-card__thumb { min-height: 100%; font-size: 5rem; }
}

/* ------------------------------------------------------------------ */
/* Category cards                                                      */
/* ------------------------------------------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.category-card:hover {
  border-color: var(--coffee-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--ink);
}
.category-card__emoji { font-size: 1.9rem; }
.category-card h3 { font-size: 1.02rem; margin: 0; }
.category-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Article cards                                                       */
/* ------------------------------------------------------------------ */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .article-grid { grid-template-columns: 1fr 1fr 1fr; } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--coffee-50);
  border: 1px solid var(--coffee-100);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  color: var(--ink);
}
.article-card__thumb {
  min-height: 110px;
  background: linear-gradient(135deg, #fdf8f0, #eadcc8);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}
.article-card__body { padding: 14px 16px 16px; }
.article-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}
.article-card h3 {
  font-size: 1rem;
  margin: 4px 0 6px;
  line-height: 1.35;
}
.article-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Article layout                                                      */
/* ------------------------------------------------------------------ */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 8px 0 56px;
}
@media (min-width: 900px) {
  .article-shell {
    grid-template-columns: minmax(0, var(--content)) 300px;
    justify-content: center;
  }
}

.article-hero { padding: 18px 0 8px; }
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.chip:hover { background: var(--coffee-200); color: var(--accent-deep); }

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0.4em 0 1.2em;
}

.prose h2 { padding-bottom: 0.3em; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0.4em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 18px;
  border-left: 3px solid var(--coffee-400);
  background: var(--coffee-50);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--outline {
  background: var(--surface);
  color: var(--accent-deep);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--coffee-900); color: #fff; }
.btn--dark:hover { background: var(--coffee-800); color: #fff; }

/* ------------------------------------------------------------------ */
/* Product components                                                  */
/* ------------------------------------------------------------------ */
.product-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.product-card__thumb {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(160deg, #fdf8f0, #eadcc8);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.product-card h3 { margin: 0 0 4px; font-size: 1rem; }
.product-card p { margin: 0 0 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 8px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
table.compare th,
table.compare td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  background: var(--coffee-50);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
table.compare tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Ad slots (CLS-safe)                                                 */
/* ------------------------------------------------------------------ */
.ad-slot {
  margin: 26px 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--coffee-50);
  color: var(--muted);
  text-align: center;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ad-slot--banner { min-height: 100px; }
.ad-slot--rect { min-height: 250px; }

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq-list { margin: 20px 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 16px; color: var(--ink-soft); font-size: 0.97rem; }

/* ------------------------------------------------------------------ */
/* Related content                                                     */
/* ------------------------------------------------------------------ */
.related { margin: 30px 0 0; }
.related__title { font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }
.related__list { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .related__list { grid-template-columns: 1fr 1fr; } }
.related-card {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.related-card small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  margin-top: 2px;
}

.muted-note { color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------------ */
/* Disclosure / callouts                                               */
/* ------------------------------------------------------------------ */
.disclosure {
  margin: 18px 0;
  padding: 11px 14px;
  background: var(--coffee-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.callout {
  margin: 22px 0;
  padding: 18px 20px;
  background: linear-gradient(160deg, #fdf8f0, #f3e9db);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coffee-400);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Sidebar                                                             */
/* ------------------------------------------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar__box h3 { margin: 0 0 10px; font-size: 1rem; }
.sidebar__box ul { list-style: none; margin: 0; padding: 0; }
.sidebar__box li { margin-bottom: 8px; }
.sidebar__box a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.sidebar__box a:hover { color: var(--accent-deep); }
@media (max-width: 899px) { .sidebar { display: none; } }

/* ------------------------------------------------------------------ */
/* Hub pages                                                           */
/* ------------------------------------------------------------------ */
.hub-intro { max-width: 72ch; color: var(--ink-soft); font-size: 1.06rem; }
.hub-links { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 20px 0; }
@media (min-width: 600px) { .hub-links { grid-template-columns: 1fr 1fr; } }
.hub-links a {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}
.hub-links a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

/* ------------------------------------------------------------------ */
/* Legal / static pages                                                */
/* ------------------------------------------------------------------ */
.legal { max-width: var(--content); margin: 0 auto; padding: 24px 0 56px; }
.legal h2 { margin-top: 1.5em; }
.legal .updated { color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------------ */
/* Newsletter                                                          */
/* ------------------------------------------------------------------ */
.newsletter {
  background: var(--coffee-950);
  color: var(--coffee-200);
  text-align: center;
  padding: 56px 20px;
}
.newsletter h2 { color: var(--coffee-50); margin-bottom: 10px; font-size: 1.9rem; }
.newsletter p { color: var(--coffee-300); max-width: 52ch; margin: 0 auto 22px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--coffee-800);
  background: var(--coffee-950);
  color: var(--coffee-300);
  padding: 44px 0 28px;
  font-size: 0.88rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--coffee-300); text-decoration: none; }
.site-footer a:hover { color: #fff; }
/* Inline links in the legal paragraph need more than colour to stand out. */
.site-footer__legal a { text-decoration: underline; }
.site-footer__legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--coffee-800);
  font-size: 0.8rem;
  color: var(--coffee-400);
}

/* ------------------------------------------------------------------ */
/* Utilities & responsive nav                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 899px) {
  /* Keep the checkbox focusable (keyboard users toggle it with Space) but invisible;
     the label draws the button and shows the focus ring. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--coffee-200); outline-offset: 2px; }
  .nav-toggle-label { display: grid; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--coffee-950);
    border-top: 1px solid var(--coffee-800);
    box-shadow: var(--shadow-md);
    padding: 10px 20px 18px;
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px 10px; font-size: 1rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .sidebar, .ad-slot, .related, .breadcrumbs, .newsletter { display: none !important; }
  body { background: #fff; }
}
