/* ============================================================
   vendingmachinelabels.us — design system
   Premium-minimal base with an industrial edge.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk var";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk var";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* color — light */
  --bg: #f7f6f3;
  --surface: #fffefb;
  --surface-2: #eeebe3;
  --ink: #171613;
  --ink-soft: #45423b;
  --muted: #726e63;
  --line: #e2dfd5;
  --line-strong: #c9c5b7;
  --accent: #b26b12;          /* decorative: rules, marks, headings accents */
  --accent-strong: #9a5c0f;   /* button bg — pairs with white text */
  --accent-text: #8a5210;     /* inline emphasis on light bg */
  --accent-contrast: #fffdf8;
  --focus: #b26b12;
  --success: #2f6b3d;

  /* type */
  --font-display: "Space Grotesk var", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.4375rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: clamp(2rem, 4.2vw, 2.75rem);
  --fs-4xl: clamp(2.5rem, 6vw, 3.75rem);

  /* spacing scale (0.25rem base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* structure */
  --wrap: 1140px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 3px;
  --radius-lg: 6px;

  /* elevation — used sparingly */
  --shadow-sm: 0 1px 2px rgba(23, 22, 19, 0.06), 0 1px 3px rgba(23, 22, 19, 0.05);
  --shadow-md: 0 4px 12px rgba(23, 22, 19, 0.10);

  --transition: 180ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211;
    --surface: #1b1a18;
    --surface-2: #24221f;
    --ink: #f2efe8;
    --ink-soft: #d3cfc4;
    --muted: #98938a;
    --line: #302d29;
    --line-strong: #45403a;
    --accent: #d98b3a;
    --accent-strong: #d98b3a;
    --accent-text: #e6a75f;
    --accent-contrast: #17140f;
    --focus: #e6a75f;
    --success: #7fc98f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

a { color: inherit; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}

::selection { background: var(--accent); color: var(--accent-contrast); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform var(--transition);
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section + .section { padding-top: 0; }
.stack > * + * { margin-top: var(--s-4); }
.divider { border: 0; border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lede { font-size: var(--fs-lg); color: var(--ink-soft); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  line-height: 1.1;
  text-transform: uppercase;
}
.brand__mark { flex: none; width: 26px; height: 26px; color: var(--accent); }
.brand span { max-width: 12ch; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  padding: 0;
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: var(--s-2);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Nav dropdown ("Machine Types") */
.nav__item--dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.nav__dropdown-toggle svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav__item--dropdown:hover .nav__dropdown-toggle svg,
.nav__item--dropdown.is-open .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--s-3);
  min-width: 220px;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 60;
}
.nav__item--dropdown:hover .nav__dropdown-menu,
.nav__item--dropdown:focus-within .nav__dropdown-menu,
.nav__item--dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown-link:hover { background: var(--surface-2); color: var(--ink); }
.nav__dropdown-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav__dropdown-link[aria-current="page"] { color: var(--accent-text); font-weight: 500; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--s-3) var(--gutter) var(--s-5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav[data-open="true"] ~ .nav-toggle .nav-toggle__open { display: none; }
  .nav[data-open="true"] ~ .nav-toggle .nav-toggle__close { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__link {
    display: block;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-base);
  }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--accent-text); }
  .nav .btn { margin-top: var(--s-4); width: 100%; }

  /* Machine Types dropdown: always expanded inline, no toggle interaction */
  .nav__dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav__dropdown-toggle svg { transform: none !important; }
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    padding: 0 0 0 var(--s-4);
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav__dropdown-link { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--accent { --btn-bg: var(--accent-strong); --btn-fg: #fffdf8; }
.btn--accent:hover { --btn-bg: var(--accent-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--accent { --btn-fg: var(--accent-contrast); }
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface-2); border-color: var(--ink); }

.btn--lg { font-size: var(--fs-base); padding: 1rem 1.75rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Inline links in prose ---------- */
.prose a,
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.prose a:hover,
.link:hover { color: var(--accent-text); text-decoration-color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero__content > * + * { margin-top: var(--s-5); }
.hero h1 { margin-top: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.hero__media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hero__frame { display: block; }
.hero__frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity var(--transition); }
.hero__frame:hover img { opacity: 0.94; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-7);
  list-style: none;
  padding: var(--s-5) 0;
  margin: 0;
  font-size: var(--fs-sm);
}
.trust__list li { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-soft); }
.trust__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.trust__list strong { color: var(--ink); }

/* ---------- Section head ---------- */
.section-head { max-width: 46rem; }
.section-head > * + * { margin-top: var(--s-3); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Category cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card__media { aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--fs-lg); }
.card__desc { font-size: var(--fs-sm); color: var(--muted); }
.card__cta {
  margin-top: auto;
  padding-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.card:hover .card__cta svg { transform: translateX(3px); }
.card__cta svg { width: 15px; height: 15px; transition: transform var(--transition); }

/* ---------- Product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.product-card__media { aspect-ratio: 1 / 1; background: var(--surface-2); position: relative; display: block; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--transition); }
a.product-card__media:hover img { opacity: 0.94; }
.badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}
.product-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.product-card__title { font-size: var(--fs-lg); }
.product-card__title a { text-decoration: none; color: var(--ink); }
.product-card__title a:hover { color: var(--accent-text); }
.product-card__meta { font-size: var(--fs-sm); color: var(--muted); }
.product-card__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--fs-lg); margin-top: var(--s-1); }
.product-card__price s { color: var(--muted); font-weight: 400; font-size: var(--fs-sm); margin-left: var(--s-2); }
.product-card__foot { margin-top: auto; padding-top: var(--s-4); }

.product-card--soon .product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  border-top: 2px solid var(--ink);
  padding-top: var(--s-4);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--accent-text);
  letter-spacing: 0.05em;
}
.step h3 { font-size: var(--fs-lg); margin-top: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); }

/* ---------- Feature (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}
.split__media {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.split__media img { transition: opacity var(--transition); }
a.split__media:hover img { opacity: 0.94; }
.split__content > * + * { margin-top: var(--s-4); }
.split__content ul { padding-left: 0; list-style: none; }
.split__content li {
  position: relative;
  padding-left: var(--s-6);
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
}
.split__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Prose blocks (SEO copy) ---------- */
.prose { max-width: var(--wrap-narrow); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-lg); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--accent); }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); font-weight: 500; color: var(--ink); border-bottom-color: var(--line-strong); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin-top: var(--s-7); max-width: var(--wrap-narrow); }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a {
  display: block;
  padding: var(--s-5) 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--transition);
}
.post-list a:hover { padding-left: var(--s-3); }
.post-list time { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.02em; }
.post-list h2 { font-size: var(--fs-xl); margin-top: var(--s-2); color: var(--ink); }
.post-list a:hover h2 { color: var(--accent-text); }
.post-list p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); }

/* article + conversion sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.article-layout .article { max-width: 42rem; }
.article-layout__cta { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .article,
  .article-aside { max-width: 42rem; }
  .article-aside { margin-top: var(--s-6); }
}

.article { max-width: var(--wrap-narrow); }
.article__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: var(--s-4);
}
.article h1 { margin-top: var(--s-3); font-size: var(--fs-3xl); }
.article .prose { margin-top: var(--s-6); }
.article__cta {
  margin-top: var(--s-8);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.article__cta h2 { margin-top: 0; font-size: var(--fs-lg); }
.article__cta p { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.article__cta .btn { margin-top: var(--s-4); }

/* sticky sidebar: table of contents + a small product prompt */
.article-aside { position: sticky; top: 88px; }
.article-aside > * + * { margin-top: var(--s-6); }
@media (max-width: 900px) {
  .article-aside { position: static; }
  .article-aside .toc { display: none; }
}

.toc { font-size: var(--fs-sm); }
.toc__title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  /* long posts: scroll the ToC internally so the seller card + "More label packs" stay in view */
  max-height: calc(100vh - 685px);
  min-height: 150px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: var(--s-2);
}
.toc li { line-height: 1.35; }
.toc a {
  display: block;
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }

/* best-seller product card at the top of the article sidebar */
.seller-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.seller-card__media { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.seller-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity var(--transition); }
.seller-card__media:hover img { opacity: 0.94; }
.seller-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}
.seller-card__body { padding: var(--s-4); }
.seller-card__rating { display: flex; align-items: baseline; gap: var(--s-2); }
.seller-card__stars { color: var(--accent); font-size: var(--fs-sm); letter-spacing: 1px; }
.seller-card__count { font-size: var(--fs-xs); color: var(--muted); }
.seller-card__name { font-size: var(--fs-sm); color: var(--ink); margin-top: var(--s-2); line-height: 1.4; }
.seller-card__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--fs-sm); margin-top: var(--s-1); }
.seller-card .btn { margin-top: var(--s-3); width: 100%; font-size: var(--fs-sm); }

.promo-mini {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-4);
}
.promo-mini__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.promo-mini__links {
  margin-top: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  font-size: var(--fs-sm);
}
.promo-mini__links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.promo-mini__links a:hover { color: var(--accent-text); border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--wrap-narrow); margin-top: var(--s-7); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: rotate(225deg); }
.faq__answer { padding-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--ink-soft); }
.faq__answer > * + * { margin-top: var(--s-3); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: var(--s-6); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-top: var(--s-6);
  align-items: start;
}
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.gallery__main {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.gallery__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pdp__info { position: sticky; top: 92px; }
.pdp__info > * + * { margin-top: var(--s-4); }
.pdp__price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); color: var(--ink); }
.pdp__price s { font-size: var(--fs-lg); color: var(--muted); font-weight: 400; margin-left: var(--s-3); }
.pdp__price .save {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--success);
  margin-left: var(--s-3);
  letter-spacing: 0.02em;
}
.spec-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.spec-list dt, .spec-list .k { color: var(--muted); }
.spec-list dd, .spec-list .v { color: var(--ink); text-align: right; font-weight: 500; }
.pdp__note { font-size: var(--fs-xs); color: var(--muted); }

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-5);
  font-size: var(--fs-sm);
}
.callout > * + * { margin-top: var(--s-2); }
.callout strong { display: block; font-family: var(--font-display); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #f4f2ec; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band { background: var(--surface-2); color: var(--ink); border-block: 1px solid var(--line); }
}
.cta-band .wrap { padding-block: clamp(2.75rem, 7vw, 4rem); }
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: 0.82; margin-top: var(--s-3); max-width: 42rem; }
.cta-band__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-band .btn--ghost { --btn-fg: #f4f2ec; border-color: rgba(244, 242, 236, 0.3); }
.cta-band .btn--ghost:hover { --btn-bg: rgba(244, 242, 236, 0.08); border-color: #f4f2ec; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band .btn--ghost { --btn-fg: var(--ink); border-color: var(--line-strong); }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: var(--fs-sm); }
.site-footer__brand p { font-family: var(--font-body); font-weight: 400; text-transform: none; color: var(--muted); font-size: var(--fs-xs); margin-top: var(--s-3); max-width: 32ch; }
.site-footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.site-footer__bottom p { max-width: 62ch; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover, .card:hover, .product-card:hover { transform: none; }
}
