/* =============================================================================
   BargainHive — Design System
   Single bundled stylesheet. Layered with @layer for predictable cascade.
   No web fonts (system stack only) for fastest LCP and zero CLS from font swap.
   ========================================================================== */

@layer reset, tokens, base, layout, components, utilities;

/* -----------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html, body { height: 100%; }
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  a { color: inherit; text-decoration: none; }
  button { background: none; border: 0; cursor: pointer; padding: 0; }
  ul, ol { padding: 0; }
  table { border-collapse: collapse; width: 100%; }
}

/* -----------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Brand — honey gradient */
    --honey-50:  #FFFBEB;
    --honey-100: #FEF3C7;
    --honey-200: #FDE68A;
    --honey-300: #FCD34D;
    --honey-400: #FBBF24;
    --honey-500: #F59E0B;
    --honey-600: #D97706;
    --honey-700: #B45309;
    --honey-800: #92400E;
    --honey-900: #78350F;

    /* Neutral — warm ink */
    --ink-50:  #FAFAF8;
    --ink-100: #F1F0EC;
    --ink-200: #E2E0D9;
    --ink-300: #C7C4B8;
    --ink-400: #9C9889;
    --ink-500: #6E6B5E;
    --ink-600: #4A483F;
    --ink-700: #2F2D27;
    --ink-800: #1C1B17;
    --ink-900: #0E0D0B;

    /* Functional accents */
    --deal:     #C81E2D;
    --deal-bg:  #FEE2E4;
    --success:  #2F855A;
    --success-bg: #DEF6E6;
    --info:     #2563EB;

    /* Surfaces */
    --bg-page:    var(--ink-50);
    --bg-elev-1:  #FFFFFF;
    --bg-elev-2:  var(--honey-50);
    --bg-inverse: var(--ink-900);

    /* Borders */
    --border-soft:   var(--ink-200);
    --border-medium: var(--ink-300);
    --border-strong: var(--ink-700);

    /* Text */
    --text-strong: var(--ink-900);
    --text-body:   var(--ink-700);
    --text-muted:  var(--ink-500);
    --text-on-dark:    var(--honey-50);
    --text-on-honey:   var(--ink-900);

    /* Typography stacks (zero-cost, system only) */
    --font-display: "Iowan Old Style", "Charter", "Source Serif Pro", "Georgia", serif;
    --font-body:    system-ui, -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* Type scale (1.250 major third) */
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-30: 1.875rem;
    --fs-36: 2.25rem;
    --fs-48: 3rem;
    --fs-60: 3.75rem;
    --fs-72: 4.5rem;

    --lh-tight: 1.1;
    --lh-snug:  1.25;
    --lh-base:  1.55;
    --lh-loose: 1.75;

    --tracking-tight:  -0.02em;
    --tracking-normal: 0;
    --tracking-wide:   0.04em;
    --tracking-caps:   0.12em;

    /* Spacing (8pt + 4) */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.5rem;
    --sp-6:  2rem;
    --sp-7:  3rem;
    --sp-8:  4rem;
    --sp-9:  6rem;
    --sp-10: 8rem;

    /* Radii */
    --r-xs:   2px;
    --r-sm:   4px;
    --r-md:   8px;
    --r-lg:   14px;
    --r-xl:   24px;
    --r-pill: 9999px;

    /* Shadows */
    --shadow-sm:    0 1px 2px rgba(28, 27, 23, 0.06);
    --shadow-md:    0 4px 12px rgba(28, 27, 23, 0.08);
    --shadow-lg:    0 12px 32px rgba(28, 27, 23, 0.12);
    --shadow-honey: 0 8px 24px rgba(217, 119, 6, 0.18);

    /* Layout */
    --container-max:    1200px;
    --container-narrow: 760px;
    --container-wide:   1320px;
    --gutter:           clamp(1rem, 4vw, 2rem);

    /* Motion */
    --t-fast: 120ms;
    --t-base: 200ms;
    --t-slow: 320ms;
    --ease:   cubic-bezier(0.2, 0.6, 0.2, 1);

    /* Honeycomb pattern (used as subtle background) */
    --hex-pattern:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><path d='M28 1.155 54 16v32L28 62.845 2 48V16L28 1.155z' fill='none' stroke='%23F59E0B' stroke-width='0.6' stroke-opacity='0.35'/></svg>");
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
    }
  }
}

/* -----------------------------------------------------------------------------
   3. Base typography & body
   -------------------------------------------------------------------------- */
@layer base {
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    font-size: var(--fs-18);
    line-height: var(--lh-base);
    color: var(--text-body);
    background: var(--bg-page);
    background-image:
      radial-gradient(circle at 12% 0%, rgba(252, 211, 77, 0.10), transparent 38%),
      radial-gradient(circle at 92% 6%, rgba(245, 158, 11, 0.06), transparent 50%);
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-strong);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 700;
  }

  h1 { font-size: clamp(var(--fs-36), 6vw, var(--fs-60)); }
  h2 { font-size: clamp(var(--fs-30), 4vw, var(--fs-48)); }
  h3 { font-size: clamp(var(--fs-24), 3vw, var(--fs-30)); }
  h4 { font-size: var(--fs-20); line-height: var(--lh-snug); }
  h5 { font-size: var(--fs-18); font-weight: 600; }
  h6 {
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-muted);
    font-weight: 700;
  }

  p { font-size: inherit; line-height: var(--lh-base); }

  a {
    color: var(--honey-700);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.08em;
    text-decoration-color: var(--honey-300);
    transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
  }
  a:hover { color: var(--honey-800); text-decoration-color: currentColor; }
  a:focus-visible {
    outline: 2px solid var(--honey-500);
    outline-offset: 3px;
    border-radius: var(--r-xs);
  }

  ::selection { background: var(--honey-300); color: var(--ink-900); }

  hr {
    border: none;
    height: 1px;
    background: var(--border-soft);
    margin: var(--sp-6) 0;
  }

  code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-size: 0.92em;
  }
  code {
    background: var(--ink-100);
    padding: 0.12em 0.36em;
    border-radius: var(--r-sm);
  }

  blockquote {
    border-left: 3px solid var(--honey-500);
    padding: var(--sp-3) var(--sp-5);
    margin: var(--sp-5) 0;
    font-style: italic;
    color: var(--text-strong);
    background: var(--honey-50);
    border-radius: 0 var(--r-md) var(--r-md) 0;
  }

  small { font-size: var(--fs-14); color: var(--text-muted); }
}

/* -----------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
@layer layout {
  .bh-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .bh-container--narrow { max-width: var(--container-narrow); }
  .bh-container--wide   { max-width: var(--container-wide); }

  .bh-section {
    padding-block: clamp(var(--sp-7), 8vw, var(--sp-9));
  }
  .bh-section--tight { padding-block: var(--sp-6); }
  .bh-section--inverse {
    background: var(--bg-inverse);
    color: var(--text-on-dark);
  }
  .bh-section--honey {
    background: var(--honey-50);
  }
  .bh-section--patterned {
    background-image: var(--hex-pattern);
    background-size: 56px 64px;
  }

  .bh-stack > * + * { margin-top: var(--sp-4); }
  .bh-stack-lg > * + * { margin-top: var(--sp-6); }
  .bh-stack-xl > * + * { margin-top: var(--sp-7); }

  .bh-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
  }

  .bh-grid {
    display: grid;
    gap: var(--sp-5);
  }
  .bh-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .bh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .bh-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

  .bh-split {
    display: grid;
    gap: var(--sp-7);
    grid-template-columns: 1fr;
  }
  @media (min-width: 900px) {
    .bh-split { grid-template-columns: 1.2fr 0.8fr; }
    .bh-split--reverse { grid-template-columns: 0.8fr 1.2fr; }
  }
}

/* -----------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */
@layer components {

  /* ---- Site chrome -------------------------------------------------------- */
  .bh-skiplink {
    position: absolute;
    top: -40px; left: var(--sp-4);
    background: var(--ink-900);
    color: var(--honey-300);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-sm);
    z-index: 1000;
  }
  .bh-skiplink:focus { top: var(--sp-3); }

  .bh-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--border-soft);
  }
  .bh-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding-block: var(--sp-3);
  }
  .bh-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-20);
    color: var(--text-strong);
    text-decoration: none;
    letter-spacing: var(--tracking-tight);
  }
  .bh-logo__mark {
    width: 32px; height: 36px;
    display: grid; place-items: center;
    color: var(--ink-900);
  }
  .bh-logo__mark svg { width: 100%; height: 100%; }
  .bh-logo strong { color: var(--honey-700); }

  .bh-nav { display: flex; gap: var(--sp-5); align-items: center; }
  .bh-nav a {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--text-strong);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
  }
  .bh-nav a:hover { color: var(--honey-700); }
  @media (max-width: 720px) {
    .bh-nav { display: none; }
    .bh-nav--mobile { display: flex; flex-direction: column; }
  }

  .bh-footer {
    background: var(--ink-900);
    color: var(--ink-300);
    padding-block: var(--sp-8) var(--sp-6);
    margin-top: var(--sp-9);
  }
  .bh-footer h4 {
    color: var(--honey-300);
    font-family: var(--font-body);
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    margin-bottom: var(--sp-4);
  }
  .bh-footer a { color: var(--ink-100); text-decoration: none; }
  .bh-footer a:hover { color: var(--honey-300); }
  .bh-footer__cols {
    display: grid;
    gap: var(--sp-6);
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
  @media (max-width: 720px) {
    .bh-footer__cols { grid-template-columns: 1fr 1fr; }
  }
  .bh-footer__bottom {
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--ink-700);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
    font-size: var(--fs-14);
    color: var(--ink-400);
  }

  /* ---- Buttons ------------------------------------------------------------ */
  .bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--fs-16);
    text-decoration: none;
    line-height: 1.1;
    transition: transform var(--t-fast) var(--ease),
                background var(--t-base) var(--ease),
                color var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease);
    will-change: transform;
    border: 1.5px solid transparent;
  }
  .bh-btn:hover { transform: translateY(-1px); }
  .bh-btn:active { transform: translateY(0); }

  .bh-btn--primary {
    background: var(--ink-900);
    color: var(--honey-200);
    box-shadow: var(--shadow-md);
  }
  .bh-btn--primary:hover {
    background: var(--ink-800);
    color: var(--honey-100);
    box-shadow: var(--shadow-lg);
  }

  .bh-btn--honey {
    background: var(--honey-500);
    color: var(--ink-900);
    box-shadow: var(--shadow-honey);
  }
  .bh-btn--honey:hover { background: var(--honey-400); }

  .bh-btn--ghost {
    background: transparent;
    color: var(--text-strong);
    border-color: var(--border-medium);
  }
  .bh-btn--ghost:hover { background: var(--ink-100); }

  .bh-btn--deal {
    background: var(--deal);
    color: white;
    text-decoration: none;
  }
  .bh-btn--deal:hover { background: #A2151F; color: white; }

  .bh-btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-18); }
  .bh-btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-14); }
  .bh-btn--block { width: 100%; }

  /* ---- Cards -------------------------------------------------------------- */
  .bh-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    transition: border-color var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease),
                transform var(--t-base) var(--ease);
  }
  .bh-card--hoverable:hover {
    border-color: var(--honey-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .bh-card--feature {
    border-width: 2px;
    border-color: var(--ink-900);
    box-shadow: 0 18px 0 -10px var(--honey-500);
  }
  .bh-card__eyebrow {
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--honey-700);
    font-weight: 700;
  }
  .bh-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-24);
    color: var(--text-strong);
    line-height: var(--lh-snug);
    margin-block: var(--sp-2);
  }
  .bh-card__title a { color: inherit; text-decoration: none; }
  .bh-card__title a:hover { color: var(--honey-700); }
  .bh-card__meta {
    display: flex; gap: var(--sp-3); flex-wrap: wrap;
    font-size: var(--fs-14);
    color: var(--text-muted);
    margin-top: var(--sp-3);
  }
  .bh-card__media {
    aspect-ratio: 16 / 9;
    background: var(--ink-100);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-4);
    overflow: hidden;
    position: relative;
  }
  .bh-card__media img,
  .bh-card__media svg {
    width: 100%; height: 100%; object-fit: cover;
  }

  /* Product card variant — used in best-of and category grids */
  .bh-product-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--sp-4);
    align-items: start;
  }
  @media (max-width: 540px) {
    .bh-product-card { grid-template-columns: 80px 1fr; }
  }
  .bh-product-card__image {
    aspect-ratio: 1;
    background: var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;
  }
  .bh-product-card__image img { width: 100%; height: 100%; object-fit: cover; }
  .bh-product-card__price {
    font-family: var(--font-display);
    font-size: var(--fs-20);
    font-weight: 700;
    color: var(--text-strong);
  }

  /* ---- Ranking badge for best-of lists ------------------------------------ */
  .bh-rank {
    display: inline-grid;
    place-items: center;
    width: 56px; height: 64px;
    background: var(--ink-900);
    color: var(--honey-300);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-30);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    flex-shrink: 0;
  }
  .bh-rank--1 { background: var(--honey-500); color: var(--ink-900); }
  .bh-rank--2 { background: var(--ink-700); color: var(--honey-200); }
  .bh-rank--3 { background: var(--honey-700); color: var(--honey-100); }

  /* ---- Rating ------------------------------------------------------------- */
  .bh-rating {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-2);
  }
  .bh-rating__score {
    font-family: var(--font-display);
    font-size: var(--fs-30);
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1;
  }
  .bh-rating__max {
    color: var(--text-muted);
    font-size: var(--fs-14);
  }
  .bh-rating__label {
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--honey-700);
    font-weight: 700;
  }

  /* ---- Pros / Cons -------------------------------------------------------- */
  .bh-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin-block: var(--sp-5);
  }
  @media (max-width: 600px) {
    .bh-pros-cons { grid-template-columns: 1fr; }
  }
  .bh-pros, .bh-cons {
    list-style: none;
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
  }
  .bh-pros { background: var(--success-bg); border-color: rgba(47, 133, 90, 0.25); }
  .bh-cons { background: #FCE7E9; border-color: rgba(200, 30, 45, 0.2); }
  .bh-pros li, .bh-cons li {
    position: relative;
    padding-left: var(--sp-5);
    margin-bottom: var(--sp-2);
    line-height: var(--lh-snug);
  }
  .bh-pros li::before {
    content: "+"; position: absolute; left: 0;
    font-weight: 800; color: var(--success);
  }
  .bh-cons li::before {
    content: "−"; position: absolute; left: 0;
    font-weight: 800; color: var(--deal);
  }
  .bh-pros h3, .bh-cons h3 {
    font-size: var(--fs-14);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    margin-bottom: var(--sp-3);
  }
  .bh-pros h3 { color: var(--success); }
  .bh-cons h3 { color: var(--deal); }

  /* ---- Comparison table --------------------------------------------------- */
  .bh-compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    background: var(--bg-elev-1);
  }
  .bh-compare {
    min-width: 640px;
    font-size: var(--fs-14);
  }
  .bh-compare th, .bh-compare td {
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
  }
  .bh-compare thead th {
    background: var(--ink-900);
    color: var(--honey-200);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-16);
    position: sticky; top: 0;
  }
  .bh-compare tbody th {
    font-weight: 600;
    color: var(--text-strong);
    background: var(--honey-50);
    width: 180px;
  }
  .bh-compare tbody tr:last-child th,
  .bh-compare tbody tr:last-child td { border-bottom: 0; }
  .bh-compare__winner {
    background: var(--honey-100) !important;
    position: relative;
  }
  .bh-compare__winner::after {
    content: "Winner";
    position: absolute; top: 4px; right: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: var(--tracking-caps);
    text-transform: uppercase; color: var(--honey-800);
  }

  /* ---- Spec/feature lists ------------------------------------------------- */
  .bh-specs {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--honey-50);
    border-radius: var(--r-md);
  }
  .bh-specs dt {
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-muted);
    font-weight: 700;
  }
  .bh-specs dd {
    font-weight: 600;
    color: var(--text-strong);
    margin-left: 0;
  }

  /* ---- Disclosure (FTC + Amazon required) -------------------------------- */
  .bh-disclosure {
    background: var(--honey-100);
    border-left: 4px solid var(--honey-500);
    padding: var(--sp-3) var(--sp-5);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-size: var(--fs-14);
    color: var(--ink-800);
    margin-block: var(--sp-5);
  }
  .bh-disclosure strong { color: var(--ink-900); }

  /* ---- Ad slot (CLS-safe; reserves space) -------------------------------- */
  .bh-ad-slot {
    margin: var(--sp-6) auto;
    text-align: center;
    background: var(--ink-100);
    border: 1px dashed var(--border-medium);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
  }
  .bh-ad-slot::before {
    content: "Advertisement";
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-muted);
    padding: var(--sp-1) var(--sp-2);
    background: var(--ink-50);
    border-bottom: 1px solid var(--border-soft);
  }
  .bh-ad-slot--leaderboard { min-height: 90px; max-width: 728px; }
  .bh-ad-slot--rectangle   { min-height: 250px; max-width: 300px; }
  .bh-ad-slot--mobile      { min-height: 250px; max-width: 320px; }
  .bh-ad-slot--responsive  { min-height: 250px; }

  /* ---- Byline ------------------------------------------------------------- */
  .bh-byline {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    color: var(--text-muted);
    font-size: var(--fs-14);
  }
  .bh-byline__avatar {
    width: 40px; height: 44px;
    background: var(--honey-300);
    color: var(--ink-900);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    flex-shrink: 0;
  }
  .bh-byline__name { color: var(--text-strong); font-weight: 600; }
  .bh-byline__name a { color: inherit; }

  /* ---- Breadcrumbs -------------------------------------------------------- */
  .bh-breadcrumbs {
    font-size: var(--fs-14);
    color: var(--text-muted);
    margin-bottom: var(--sp-4);
  }
  .bh-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
  .bh-breadcrumbs li:not(:last-child)::after {
    content: "/"; margin-left: var(--sp-2); color: var(--ink-300);
  }
  .bh-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
  .bh-breadcrumbs a:hover { color: var(--honey-700); }

  /* ---- Eyebrow / kicker --------------------------------------------------- */
  .bh-eyebrow {
    display: inline-block;
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    font-weight: 800;
    color: var(--honey-700);
    margin-bottom: var(--sp-3);
  }
  .bh-eyebrow--inverse { color: var(--honey-300); }

  /* ---- Tag chip ----------------------------------------------------------- */
  .bh-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-pill);
    background: var(--honey-100);
    color: var(--honey-800);
    font-size: var(--fs-12);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
  }
  .bh-chip:hover { background: var(--honey-200); color: var(--honey-900); }
  .bh-chip--ghost { background: transparent; border-color: var(--border-medium); color: var(--text-body); }
  .bh-chip--deal { background: var(--deal-bg); color: var(--deal); }
  .bh-chip--success { background: var(--success-bg); color: var(--success); }

  /* ---- Deal price ---------------------------------------------------------- */
  .bh-price {
    display: flex; align-items: baseline; gap: var(--sp-2);
    font-family: var(--font-display);
  }
  .bh-price__now {
    font-size: var(--fs-30);
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1;
  }
  .bh-price__was {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--fs-16);
  }
  .bh-price__off {
    background: var(--deal);
    color: white;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: var(--fs-12);
    padding: 2px 8px;
    border-radius: var(--r-sm);
    letter-spacing: var(--tracking-wide);
  }

  /* ---- Hero --------------------------------------------------------------- */
  .bh-hero {
    position: relative;
    padding-block: clamp(var(--sp-7), 10vw, var(--sp-10));
    overflow: hidden;
  }
  .bh-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--hex-pattern);
    background-size: 56px 64px;
    opacity: 0.5;
    pointer-events: none;
    mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
  }
  .bh-hero__inner {
    position: relative;
    display: grid;
    gap: var(--sp-6);
    grid-template-columns: 1fr;
    align-items: center;
  }
  @media (min-width: 900px) {
    .bh-hero__inner { grid-template-columns: 1.3fr 0.7fr; gap: var(--sp-8); }
  }
  .bh-hero__title {
    font-size: clamp(var(--fs-36), 6.5vw, var(--fs-72));
    line-height: 0.98;
    letter-spacing: -0.03em;
  }
  .bh-hero__title em {
    font-style: italic;
    color: var(--honey-700);
    font-weight: 400;
  }
  .bh-hero__lede {
    font-size: clamp(var(--fs-18), 2vw, var(--fs-24));
    color: var(--text-body);
    max-width: 56ch;
  }

  /* ---- Article body (long-form pages) ------------------------------------ */
  .bh-article {
    max-width: var(--container-narrow);
    margin-inline: auto;
    font-size: var(--fs-18);
    line-height: var(--lh-loose);
  }
  .bh-article > * + * { margin-top: var(--sp-5); }
  .bh-article h2 { margin-top: var(--sp-7); font-size: var(--fs-30); }
  .bh-article h3 { margin-top: var(--sp-6); font-size: var(--fs-24); }
  .bh-article p, .bh-article ul, .bh-article ol { color: var(--text-body); }
  .bh-article ul, .bh-article ol { padding-left: var(--sp-5); }
  .bh-article li + li { margin-top: var(--sp-2); }
  .bh-article img, .bh-article figure {
    border-radius: var(--r-md);
    margin-block: var(--sp-6);
  }
  .bh-article figure figcaption {
    font-size: var(--fs-14);
    color: var(--text-muted);
    margin-top: var(--sp-2);
    text-align: center;
  }

  /* ---- Verdict block ------------------------------------------------------ */
  .bh-verdict {
    background: var(--ink-900);
    color: var(--text-on-dark);
    padding: var(--sp-6);
    border-radius: var(--r-lg);
    border-left: 6px solid var(--honey-500);
    margin-block: var(--sp-6);
  }
  .bh-verdict h3 {
    color: var(--honey-300);
    font-family: var(--font-body);
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    margin-bottom: var(--sp-3);
  }
  .bh-verdict p {
    font-family: var(--font-display);
    font-size: var(--fs-20);
    line-height: var(--lh-snug);
    color: var(--text-on-dark);
  }

  /* ---- Honeycomb divider -------------------------------------------------- */
  .bh-honeycomb-divider {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin-block: var(--sp-7);
  }
  .bh-honeycomb-divider span {
    width: 14px; height: 16px;
    background: var(--honey-400);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  }
  .bh-honeycomb-divider span:nth-child(2) { background: var(--honey-500); }
  .bh-honeycomb-divider span:nth-child(3) { background: var(--honey-700); }

  /* ---- Last-updated stamp ------------------------------------------------ */
  .bh-stamp {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-1) var(--sp-3);
    background: var(--success-bg);
    color: var(--success);
    border-radius: var(--r-pill);
    font-size: var(--fs-12);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
  }
  .bh-stamp::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(47, 133, 90, 0.2);
  }

  /* ---- TOC --------------------------------------------------------------- */
  .bh-toc {
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-elev-2);
  }
  .bh-toc h4 {
    font-family: var(--font-body);
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-muted);
    margin-bottom: var(--sp-3);
  }
  .bh-toc ol { list-style: none; counter-reset: toc; }
  .bh-toc li { counter-increment: toc; padding: var(--sp-1) 0; }
  .bh-toc li::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--honey-700);
    font-weight: 700;
    margin-right: var(--sp-2);
    font-variant-numeric: tabular-nums;
  }
  .bh-toc a { text-decoration: none; color: var(--text-strong); }
  .bh-toc a:hover { color: var(--honey-700); }

  /* ---- Newsletter / capture form ----------------------------------------- */
  .bh-capture {
    background: var(--ink-900);
    color: var(--text-on-dark);
    border-radius: var(--r-xl);
    padding: var(--sp-7);
    position: relative;
    overflow: hidden;
  }
  .bh-capture::after {
    content: "";
    position: absolute;
    right: -60px; bottom: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, var(--honey-500) 0%, transparent 70%);
    opacity: 0.5;
  }
  .bh-capture h3 {
    color: var(--honey-300);
    font-size: var(--fs-30);
    line-height: 1.1;
  }
  .bh-capture p { color: var(--ink-200); margin-top: var(--sp-3); max-width: 50ch; }
  .bh-capture form {
    margin-top: var(--sp-5);
    display: flex; flex-wrap: wrap;
    gap: var(--sp-2);
    position: relative; z-index: 1;
  }
  .bh-capture input[type="email"] {
    flex: 1 1 220px;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-pill);
    border: 1.5px solid var(--ink-700);
    background: var(--ink-800);
    color: white;
    font-size: var(--fs-16);
  }
  .bh-capture input[type="email"]::placeholder { color: var(--ink-400); }
  .bh-capture input[type="email"]:focus {
    outline: 2px solid var(--honey-400);
    outline-offset: 2px;
  }
}

/* -----------------------------------------------------------------------------
   6. Utilities
   -------------------------------------------------------------------------- */
@layer utilities {
  .u-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;
  }
  .u-text-muted { color: var(--text-muted); }
  .u-text-strong { color: var(--text-strong); }
  .u-text-honey { color: var(--honey-700); }
  .u-text-deal { color: var(--deal); }
  .u-text-success { color: var(--success); }

  .u-text-center { text-align: center; }
  .u-text-balance { text-wrap: balance; }
  .u-text-pretty { text-wrap: pretty; }

  .u-italic { font-style: italic; }
  .u-display { font-family: var(--font-display); }
  .u-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

  .u-mt-0 { margin-top: 0 !important; }
  .u-mt-3 { margin-top: var(--sp-3); }
  .u-mt-5 { margin-top: var(--sp-5); }
  .u-mt-7 { margin-top: var(--sp-7); }

  .u-hidden-mobile { display: initial; }
  .u-hidden-desktop { display: none; }
  @media (max-width: 720px) {
    .u-hidden-mobile { display: none; }
    .u-hidden-desktop { display: initial; }
  }
}
