/* ==========================================================================
   HeatPressGuide - design system
   Editorial review site: warm neutrals, ember accent, serif long-form body.
   No webfonts: zero network cost, zero layout shift.
   ========================================================================== */

:root {
  /* warm neutral ramp */
  --ink:        #17130f;
  --ink-2:      #3a332c;
  --muted:      #6d6459;
  --muted-2:    #948a7d;
  --line:       #e7e0d6;
  --line-2:     #f2ece3;
  --wash:       #faf7f2;
  --paper:      #ffffff;

  /* ember accent - on-theme for heat */
  --accent:     #d1451f;
  --accent-ink: #a5330f;
  --accent-wash:#fff3ee;
  --accent-line:#f6d5c7;

  --ok:         #1f7a4d;
  --ok-wash:    #edf7f1;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  --wrap: 1180px;
  --measure: 68ch;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(23,19,15,.06), 0 1px 1px rgba(23,19,15,.04);
  --sh-2: 0 4px 14px rgba(23,19,15,.07), 0 1px 3px rgba(23,19,15,.05);
  --sh-3: 0 18px 44px rgba(23,19,15,.12), 0 4px 12px rgba(23,19,15,.06);

  --step: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #f4efe8;
    --ink-2:      #d6cec3;
    --muted:      #a89e91;
    --muted-2:    #857b6f;
    --line:       #332c25;
    --line-2:     #262019;
    --wash:       #1a1610;
    --paper:      #100d0a;
    --accent:     #ff7448;
    --accent-ink: #ff9068;
    --accent-wash:#2a1810;
    --accent-line:#4a2a1c;
    --ok:         #4cc98a;
    --ok-wash:    #12241a;
    --sh-1: 0 1px 2px rgba(0,0,0,.5);
    --sh-2: 0 4px 14px rgba(0,0,0,.5);
    --sh-3: 0 18px 44px rgba(0,0,0,.6);
  }
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .55vw, 1.5rem); }
p  { margin: 0 0 1.15em; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }
.sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
      clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* -------------------------------------------------------------- header -- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, #ff8a4c, var(--accent) 55%, #9e2f10);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(209,69,31,.35);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand b { color: var(--accent); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  display: inline-block; padding: 9px 13px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: .935rem; font-weight: 550;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--wash); color: var(--accent-ink); }

.head-tools { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
}
.icon-btn:hover { background: var(--wash); color: var(--accent-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; gap: 2px; box-shadow: var(--sh-2);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav-toggle { display: grid; }
}

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -12%, var(--accent-wash), transparent 62%),
    linear-gradient(180deg, var(--wash), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .775rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: .38em; }
.hero .lede {
  font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem);
  color: var(--muted); max-width: 54ch; margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 650; font-size: .96rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff; box-shadow: 0 3px 12px rgba(209,69,31,.3);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 6px 20px rgba(209,69,31,.4); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn svg { width: 17px; height: 17px; }

.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { line-height: 1.25; }
.hero-stats b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: .83rem; color: var(--muted); }

.hero-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3);
  transform: rotate(.6deg);
}
.hero-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.hero-card .body { padding: 22px 24px 26px; }
.hero-card h3 { font-size: 1.22rem; margin-bottom: .35em; }
.hero-card a { text-decoration: none; color: var(--ink); }
.hero-card a:hover { color: var(--accent-ink); }
.hero-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* -------------------------------------------------------------- section - */
.section { padding: clamp(46px, 6vw, 84px) 0; }
.section.alt { background: var(--wash); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-head p { color: var(--muted); margin: .3em 0 0; max-width: 58ch; }
.section-head h2 { margin: 0; }
.more {
  font-weight: 620; font-size: .92rem; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.more:hover { gap: 10px; }
.more svg { width: 15px; height: 15px; transition: transform .15s; }

/* --------------------------------------------------------------- cards -- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.grid.two  { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--accent-line); }
.card-media { position: relative; background: var(--line-2); }
.card-media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.06rem; line-height: 1.32; margin-bottom: .45em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover h3 a { color: var(--accent-ink); }
.card p { color: var(--muted); font-size: .89rem; margin: 0 0 14px; }
.card .meta { margin-top: auto; display: flex; align-items: center; gap: 10px;
              font-size: .78rem; color: var(--muted-2); }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-ink);
  border: 1px solid var(--accent-line);
  font-size: .715rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none;
}
.card-media .tag { position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); }

/* list-style card for dense sections */
.list { display: grid; gap: 2px; }
.list-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center;
  padding: 15px; border-radius: var(--r); text-decoration: none;
  transition: background .15s;
}
.list-item:hover { background: var(--wash); }
.list-item img { width: 92px; height: 68px; object-fit: cover; border-radius: var(--r-sm); }
.list-item h3 { font-size: .99rem; margin: 0 0 4px; color: var(--ink); line-height: 1.35; }
.list-item:hover h3 { color: var(--accent-ink); }
.list-item span { font-size: .79rem; color: var(--muted); }
@media (max-width: 520px) { .list-item { grid-template-columns: 68px 1fr; gap: 13px; }
  .list-item img { width: 68px; height: 54px; } }

/* ------------------------------------------------------------- article -- */
.crumbs { font-size: .82rem; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: .5; }

.article-head { padding: 20px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-head h1 { margin: 14px 0 .35em; }
.article-head .lede { font-size: 1.14rem; color: var(--muted); max-width: var(--measure); }
.byline {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .86rem; color: var(--muted); margin-top: 18px;
}
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px;
          align-items: start; padding-bottom: 70px; }
@media (max-width: 1040px) { .layout { grid-template-columns: 1fr; gap: 0; } }

.toc { position: sticky; top: 92px; font-size: .875rem; }
@media (max-width: 1040px) {
  .toc {
    position: static; margin: 0 0 30px; border: 1px solid var(--line);
    border-radius: var(--r); background: var(--wash);
  }
  .toc summary { padding: 13px 16px; }
  .toc .toc-body { padding: 0 16px 14px; }
}
.toc h2 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .11em;
  color: var(--muted-2); font-weight: 700; margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
  display: block; padding: 6px 0 6px 15px; margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; line-height: 1.4;
}
.toc li a:hover { color: var(--accent-ink); border-left-color: var(--accent-line); }
.toc li a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 620; }
.toc li.sub a { padding-left: 28px; font-size: .84em; }
.toc summary { cursor: pointer; font-weight: 650; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }

/* long-form typography */
.prose { font-family: var(--serif); font-size: 1.115rem; line-height: 1.75; max-width: var(--measure); }
.prose > * { max-width: 100%; }
.prose h2 {
  font-family: var(--sans); margin-top: 2.1em; margin-bottom: .55em;
  padding-top: .5em; scroll-margin-top: 92px;
}
.prose h3 { font-family: var(--sans); margin-top: 1.7em; margin-bottom: .5em; scroll-margin-top: 92px; }
.prose h4 { font-family: var(--sans); margin-top: 1.5em; font-size: 1.06rem; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.prose a:hover { background: var(--accent-wash); }
.prose img { border-radius: var(--r); margin: 1.9em auto; box-shadow: var(--sh-1); }
.prose figure { margin: 1.9em 0; }
.prose figcaption {
  font-family: var(--sans); font-size: .84rem; color: var(--muted);
  text-align: center; margin-top: .8em;
}
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.9em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-style: italic; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose code {
  font-family: var(--mono); font-size: .87em; background: var(--wash);
  border: 1px solid var(--line); border-radius: 5px; padding: .12em .4em;
}

.table-scroll { overflow-x: auto; margin: 1.9em 0; border: 1px solid var(--line);
                border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans);
               font-size: .92rem; }
.prose th, .prose td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--wash); font-weight: 700; font-size: .82rem;
                  text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--wash); }

/* ================================================================== SHOP == */

/* cart button in the header */
.cart-btn { position: relative; text-decoration: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid var(--paper); font-family: var(--sans);
}
.cart-count[hidden] { display: none; }

/* category tiles */
.cat-tiles {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.cat-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 24px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--paper);
  text-decoration: none; color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-tile:hover {
  transform: translateY(-3px); box-shadow: var(--sh-3);
  border-color: var(--accent-line); color: var(--ink);
}
.cat-tile h3 { font-size: 1.1rem; margin: 0; }
.cat-tile p { color: var(--muted); font-size: .875rem; margin: 0 0 12px; flex: 1; }
.cat-tile .more { color: var(--accent-ink); font-size: .85rem; }

/* product grid + card */
.shop-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1080px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .shop-grid { grid-template-columns: 1fr; } }

.shop-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.shop-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-3);
  border-color: var(--accent-line);
}
.shop-card-media { display: block; position: relative; background: var(--line-2); }
.shop-card-media img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.shop-card-media .tag { position: absolute; top: 12px; left: 12px; }
.shop-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.shop-card-cat {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted-2); font-weight: 700; margin-bottom: 6px;
}
.shop-card h3 { font-size: .98rem; line-height: 1.35; margin: 0 0 10px; }
.shop-card h3 a { color: var(--ink); text-decoration: none; }
.shop-card h3 a::after { content: ""; position: absolute; inset: 0; }
.shop-card:hover h3 a { color: var(--accent-ink); }

.price {
  margin-top: auto; font-family: var(--sans);
  font-weight: 750; font-size: 1.02rem; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
}
.price s { color: var(--muted-2); font-weight: 500; font-size: .86em; }
.price-lg { font-size: 1.9rem; margin: 6px 0 18px; }
.oos { font-size: .76rem; font-weight: 650; color: var(--muted); text-transform: uppercase;
       letter-spacing: .05em; }

/* product detail page */
.pdp {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px);
  align-items: start; padding: 24px 0 10px;
}
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.pdp-media {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; background: var(--wash); position: sticky; top: 92px;
}
@media (max-width: 860px) { .pdp-media { position: static; } }
.pdp-media img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.pdp-info h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 12px 0 0; }
.pdp-info .lede { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 24px 0 22px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--paper);
}
.qty-btn {
  width: 42px; height: 100%; min-height: 46px; border: 0; background: transparent;
  color: var(--ink); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.qty-btn:hover { background: var(--wash); color: var(--accent-ink); }
.qty input {
  width: 46px; text-align: center; border: 0; background: transparent;
  color: var(--ink); font-family: var(--sans); font-size: 1rem; font-weight: 650;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.btn-buy { flex: 1; min-width: 190px; min-height: 46px; }

.trust { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line);
         display: grid; gap: 11px; font-size: .875rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

.photo-credit {
  font-size: .76rem; color: var(--muted-2); margin: 10px 2px 0; text-align: right;
}
.photo-credit a { color: var(--muted); text-decoration: none; }
.photo-credit a:hover { color: var(--accent-ink); text-decoration: underline; }

.pdp-detail { max-width: none; margin-top: 40px; }
.pdp-detail table th { width: 40%; font-weight: 650; color: var(--ink-2);
                       background: var(--wash); text-transform: none;
                       letter-spacing: 0; font-size: .92rem; }

/* cart */
.cart-line {
  display: grid; grid-template-columns: 86px 1fr auto auto; gap: 18px;
  align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) {
  .cart-line { grid-template-columns: 66px 1fr auto; gap: 12px; }
  .cart-line .line-total { grid-column: 2 / -1; text-align: right; }
}
.cart-line img { width: 86px; height: 86px; object-fit: cover; border-radius: var(--r-sm);
                 border: 1px solid var(--line); }
@media (max-width: 620px) { .cart-line img { width: 66px; height: 66px; } }
.cart-line h3 { font-size: .99rem; margin: 0 0 4px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line .sku { font-size: .76rem; color: var(--muted-2); }
.cart-line .line-total { font-weight: 700; font-family: var(--sans); white-space: nowrap; }
.cart-line .qty { transform: scale(.88); }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer;
            font-size: .8rem; text-decoration: underline; padding: 4px 0; font-family: var(--sans); }
.link-btn:hover { color: var(--accent-ink); }

.cart-summary {
  margin-top: 30px; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--wash);
}
.cart-summary .row { display: flex; justify-content: space-between; gap: 20px;
                     margin-bottom: 11px; font-size: .95rem; color: var(--muted); }
.cart-summary .row.total { font-size: 1.25rem; font-weight: 750; color: var(--ink);
                           border-top: 1px solid var(--line); padding-top: 15px; margin-top: 16px; }
.cart-summary .btn { width: 100%; margin-top: 18px; }
.ship-note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.cart-empty { color: var(--muted); text-align: center; padding: 50px 20px; }

/* toast confirming an add-to-cart */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 13px 22px;
  border-radius: 999px; font-size: .9rem; font-weight: 600; font-family: var(--sans);
  box-shadow: var(--sh-3); z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.disclosure {
  font-family: var(--sans);
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--wash); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 14px 18px; margin: 0 0 30px;
  font-size: .855rem; color: var(--muted); line-height: 1.55;
}
.disclosure svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--accent); }
.disclosure strong { color: var(--ink-2); }

/* ------------------------------------------------------------- related -- */
.related { border-top: 1px solid var(--line); padding: 44px 0 0; margin-top: 50px; }
.related h2 { font-size: 1.4rem; margin-bottom: 24px; }

.pager { display: flex; gap: 16px; margin-top: 44px; }
.pager a {
  flex: 1; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s;
}
.pager a:hover { border-color: var(--accent); background: var(--wash); }
.pager span { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase;
              letter-spacing: .08em; margin-bottom: 6px; font-weight: 650; }
.pager b { font-weight: 620; font-size: .97rem; line-height: 1.35; display: block; }
.pager .next { text-align: right; }
@media (max-width: 620px) { .pager { flex-direction: column; } .pager .next { text-align: left; } }

/* -------------------------------------------------------------- search -- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(23,19,15,.45); backdrop-filter: blur(3px);
  padding: 12vh 20px 20px;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 620px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
}
.search-panel input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  padding: 20px 22px; font-size: 1.06rem; font-family: var(--sans);
  background: transparent; color: var(--ink);
}
.search-panel input:focus { outline: none; }
.search-results { max-height: 54vh; overflow-y: auto; }
.search-results a {
  display: block; padding: 13px 22px; text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.search-results a:hover, .search-results a.sel { background: var(--wash); }
.search-results b { display: block; color: var(--ink); font-size: .95rem; font-weight: 620;
                    margin-bottom: 2px; }
.search-results span { font-size: .8rem; color: var(--muted); }
.search-empty { padding: 26px 22px; color: var(--muted); font-size: .92rem; text-align: center; }

/* -------------------------------------------------------------- footer -- */
.site-foot {
  background: var(--wash); border-top: 1px solid var(--line);
  padding: 56px 0 30px; font-size: .9rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px; padding-bottom: 40px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h3 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted-2); margin-bottom: 14px; font-weight: 700;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-ink); }
.foot-about p { color: var(--muted); max-width: 40ch; margin: 14px 0 0; font-size: .875rem; }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .83rem;
}
.foot-bottom p { margin: 0; }

/* ----------------------------------------------------------------- 404 -- */
.center-page { text-align: center; padding: clamp(60px, 12vw, 130px) 0; }
.center-page p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.center-page .big {
  font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -.05em;
  color: var(--accent); line-height: 1; margin-bottom: .1em;
}

/* archive header */
.arch-head { padding: clamp(38px, 5vw, 64px) 0; background:
  radial-gradient(700px 300px at 20% -20%, var(--accent-wash), transparent 60%),
  var(--wash); border-bottom: 1px solid var(--line); }
.arch-head h1 { margin-bottom: .25em; }
.arch-head p { color: var(--muted); max-width: 60ch; margin: 0; }
