/* ============================================================
   MobilePC — store stylesheet
   Palette: bench paper, graphite ink, signal orange, stock green
   ============================================================ */

:root {
  --paper: #f2f3ec;
  --paper-2: #e9ebe1;
  --ink: #14181a;
  --ink-2: #2b3134;
  --muted: #5c665f;
  --line: #c8cec2;
  --line-strong: #a9b2a5;
  --accent: #e24a0c;
  --accent-ink: #b83a07;
  --green: #1d7a50;
  --green-soft: #dcebe0;
  --white: #fdfdfb;
  --radius: 2px;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

.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;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* ---------- announcement + masthead ---------- */

.announce {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px var(--gutter);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.announce span { padding-inline: 12px; }

.announce span + span { border-left: 1px solid #39403c; }

.masthead {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 20;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--ink);
}

.logo-mark svg { width: 18px; height: 18px; }

.logo-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.logo-word em {
  font-style: normal;
  color: var(--accent);
}

.mast-nav {
  display: flex;
  gap: 20px;
  margin-left: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.mast-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.mast-nav a:hover { border-color: var(--ink); }

.mast-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  background: var(--white);
  height: 38px;
  width: clamp(140px, 22vw, 250px);
}

.search svg { width: 15px; height: 15px; margin-left: 10px; flex-shrink: 0; }

.search input {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  padding: 0 10px;
  width: 100%;
  outline: none;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  height: 38px;
  padding-inline: 13px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.cart-btn:hover { background: var(--accent); border-color: var(--accent); }

.cart-btn .count {
  font-family: var(--mono);
  font-size: 12px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- category rail ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.rail-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 9px;
}

.rail-inner::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.chip svg { width: 14px; height: 14px; }

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  border-bottom: 2px solid var(--ink);
  padding-block: clamp(34px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(105deg, black 30%, transparent 78%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 7.6vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  max-width: 13ch;
}

.hero h1 .rule {
  display: inline-block;
  width: 0.62em;
  height: 0.1em;
  background: var(--accent);
  vertical-align: baseline;
  margin-left: 0.06em;
}

.hero-lede {
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 26px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:hover { background: var(--accent); border-color: var(--accent); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* bench card */

.bench {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--ink);
}

.bench-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--paper-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.bench-body { padding: 6px 14px 14px; }

.bench-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-block: 11px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.bench-row:last-of-type { border-bottom: 0; }

.bench-row .k { color: var(--muted); }
.bench-row .v { font-weight: 700; text-align: right; }

.bench-foot {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin: 4px 0 0;
}

/* ---------- service strip ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.service {
  padding: 18px 22px;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service:first-child { border-left: 0; padding-left: 0; }

.service svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }

.service b { display: block; font-size: 14.5px; }
.service span { font-size: 13px; color: var(--muted); }

/* ---------- catalogue ---------- */

.catalogue { padding-block: clamp(34px, 5vw, 60px); }

.cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.cat-meta select {
  font: inherit;
  font-size: 13.5px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  padding: 6px 8px;
}

.cat-meta strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

/* vertical trace spine */
.grid > .card { border-bottom: 1px solid var(--line-strong); }

.card {
  position: relative;
  padding: 20px 22px 22px;
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: background 0.15s ease;
}

.grid > .card:nth-child(3n + 1) { border-left: 0; padding-left: 0; }

.card:hover { background: var(--paper-2); }

.card-figure {
  height: 108px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card-figure svg {
  width: 112px;
  height: 92px;
  stroke: var(--ink);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .card-figure svg { stroke: var(--accent); }

.card-brand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 12px;
  flex-grow: 1;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}

.card-specs span {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--muted);
}

.card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.price small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}

.stock {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.stock::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.stock.low { color: var(--accent-ink); }
.stock.low::before { background: var(--accent); }

.add {
  border: 1.5px solid var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.add:hover { background: var(--ink); color: var(--paper); }

.empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

.empty b { display: block; font-size: 20px; color: var(--ink); font-family: var(--display); margin-bottom: 4px; }

/* ---------- promise section ---------- */

.promise {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(40px, 6vw, 72px);
}

.promise-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 5vw, 60px);
}

.promise h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}

.promise h2 em { font-style: normal; color: #f79a6e; }

.promise-list { display: grid; gap: 18px; }

.promise-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }

.promise-item .n {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid #49514c;
  height: 30px;
  display: grid;
  place-items: center;
}

.promise-item b { display: block; font-size: 15.5px; }
.promise-item p { margin: 2px 0 0; font-size: 13.5px; color: #b9c1bb; }

/* ---------- footer ---------- */

footer {
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  padding-block: 40px 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.foot-brand p { font-size: 13.5px; color: var(--ink-2); max-width: 30ch; }

.foot-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 500;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }

.foot-legal {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.foot-legal address { font-style: normal; line-height: 1.6; }

.pay {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.pay svg { height: 26px; width: auto; border: 1px solid var(--line-strong); background: var(--white); }

.secure {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 34ch;
}

.secure svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--green); }

/* ---------- cart drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(92vw, 420px);
  background: var(--paper);
  border-left: 2px solid var(--ink);
  z-index: 50;
  transform: translateX(102%);
  transition: transform 0.24s cubic-bezier(0.3, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 2px solid var(--ink);
}

.drawer-head h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.icon-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px; }

.line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.line-item .li-name { font-weight: 700; font-size: 14px; }
.line-item .li-sku { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.li-controls { display: flex; align-items: center; gap: 8px; }

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.qty button {
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.qty span { font-family: var(--mono); font-size: 12.5px; width: 24px; text-align: center; }

.li-price { font-family: var(--mono); font-size: 13.5px; align-self: center; }

.li-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.drawer-foot { border-top: 2px solid var(--ink); padding: 16px 18px; background: var(--paper-2); }

.totals { display: grid; gap: 6px; font-size: 13.5px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line-strong); padding-top: 8px; }
.totals .grand span:last-child { font-family: var(--mono); }

.drawer-foot .btn { width: 100%; }

.drawer-note { font-size: 11px; color: var(--muted); margin: 9px 0 0; text-align: center; }

.cart-empty { padding: 50px 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- legal / content pages ---------- */

.doc { padding-block: clamp(34px, 5vw, 64px); }

.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(26px, 5vw, 64px); align-items: start; }

.doc-nav {
  position: sticky;
  top: 64px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  font-size: 13.5px;
}

.doc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.doc-nav li a { text-decoration: none; color: var(--ink-2); }
.doc-nav li a:hover { text-decoration: underline; }
.doc-nav li.current a { font-weight: 700; color: var(--accent-ink); }

.doc-main h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 10px;
}

.doc-main .updated {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.doc-main h2 {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.015em;
  margin: 34px 0 8px;
}

.doc-main h3 { font-size: 16px; margin: 22px 0 6px; }
.doc-main p, .doc-main li { font-size: 15px; color: var(--ink-2); max-width: 72ch; }
.doc-main ul, .doc-main ol { padding-left: 20px; }
.doc-main li { margin-bottom: 6px; }

.doc-main .callout {
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14.5px;
}

.doc-main table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.doc-main th, .doc-main td { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-main th { background: var(--paper-2); font-family: var(--mono); font-size: 11.5px; }
.doc-main td { color: var(--ink-2); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }

.contact-box { border: 1px solid var(--line-strong); background: var(--white); padding: 16px; }
.contact-box h3 { margin: 0 0 4px; font-size: 14px; }
.contact-box p { margin: 0; font-size: 14px; }
.contact-box a { color: var(--accent-ink); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .mast-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .bench { max-width: 460px; }
  .services { grid-template-columns: 1fr; }
  .service { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .service:first-child { border-top: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .card:nth-child(3n + 1) { border-left: 1px solid var(--line-strong); padding-left: 22px; }
  .grid > .card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
  .doc-nav ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 620px) {
  .search { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid > .card, .grid > .card:nth-child(odd), .grid > .card:nth-child(3n + 1) {
    border-left: 0;
    padding-left: 0;
  }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .announce { font-size: 10px; }
  .announce span { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
