/* 2027 Custom — shared styles. Monochrome: black, white, gray only. */

:root {
  --black: #0a0a0a;      /* header, hero, footer, buttons, headings */
  --paper: #ffffff;      /* page + card background */
  --line: #e4e4e4;       /* hairlines, borders */
  --line-dark: #2a2a2a;  /* hairlines on black */
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --muted-on-black: #9a9a9a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: "Chakra Petch", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--black);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-header .logo img { height: 22px; width: auto; }

.site-header nav { display: flex; gap: 28px; }

.site-header nav a {
  color: #ffffff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--muted-on-black); text-decoration: none; }

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

.hero {
  position: relative;
  background: var(--black);
  color: #ffffff;
  padding: 96px 0 84px;
  overflow: hidden;
}

/* blueprint grid, quiet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 30%, transparent 75%);
}

.hero .wrap { position: relative; }

.hero .logo-main {
  width: min(520px, 80%);
  margin-bottom: 28px;
}

.hero p.tag {
  font-size: 1.15rem;
  color: var(--muted-on-black);
  max-width: 34em;
}

.hero .fitment {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero .fitment span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  border: 1px solid #4a4a4a;
  padding: 5px 12px;
  border-radius: 3px;
}

/* ---------- product grid ---------- */

.catalog { padding: 72px 0 96px; }

.catalog > .wrap > h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.catalog .count { margin-bottom: 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  text-decoration: none;
}

.card .thumb {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.card h3 { font-size: 1.05rem; font-weight: 500; }

.card .price {
  margin-top: auto;
  padding-top: 10px;
  font-family: "Chakra Petch", sans-serif;
  color: var(--black);
  font-size: 0.95rem;
}

/* ---------- product page ---------- */

.product { padding: 56px 0 96px; }

.breadcrumb { margin-bottom: 28px; display: inline-block; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.gallery .main {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }

.gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.gallery .thumbs button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery .thumbs button.active { border-color: var(--black); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.details .fit-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.details h1 { font-size: 1.9rem; margin-bottom: 10px; }

.details .price {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 22px;
}

.details .desc { color: var(--muted); margin-bottom: 22px; }
.details .desc p + p { margin-top: 10px; }

.details ul.specs {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-bottom: 30px;
}
.details ul.specs li {
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.details ul.specs li span:first-child { color: var(--muted); }

.buy {
  display: inline-block;
  background: var(--black);
  color: #ffffff;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.buy:hover { background: #333333; text-decoration: none; color: #ffffff; }

.details .buy-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- custom service page ---------- */

.service-hero { padding: 80px 0 64px; }

.service { padding: 64px 0 40px; }

.service-block { margin-bottom: 64px; }
.service-block h2 { font-size: 1.4rem; margin-bottom: 20px; }

.service-copy { color: var(--muted); max-width: 44em; }

ol.steps { list-style: none; }
ol.steps li {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
ol.steps li:last-child { border-bottom: 1px solid var(--line); }
ol.steps .step-num {
  color: var(--black);
  font-size: 0.85rem;
  padding-top: 4px;
  min-width: 2em;
}
ol.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
ol.steps p { color: var(--muted); max-width: 40em; font-size: 0.95rem; }

.scan-group { margin-top: 34px; }
.scan-group h3 { font-size: 1.05rem; margin-bottom: 12px; }

.scan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.scan-grid figure { margin: 0; }
.scan-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2f2f2;
}
.scan-grid figcaption {
  margin-top: 7px;
  font-size: 0.66rem;
}

.scan-more { margin-top: 14px; }
.scan-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 16px;
  color: var(--black);
  user-select: none;
}
.scan-more summary::-webkit-details-marker { display: none; }
.scan-more summary:hover { border-color: var(--black); }
.scan-more[open] summary { margin-bottom: 14px; }

.details .manual-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.details .manual-note a { text-decoration: underline; }

/* manuals page */
.manual-actions { margin-top: 16px; }
.manual-actions .buy { padding: 11px 26px; font-size: 0.85rem; }
.manuals .page-title { font-size: 1.9rem; margin-bottom: 10px; }
.manuals .intro { margin-bottom: 48px; }
.manuals .manual h2 { margin-bottom: 4px; }
.manual-pages { margin-top: 20px; display: grid; gap: 16px; max-width: 820px; }
.manual-pages img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

/* homepage strip linking to the service */
.service-strip {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 36px;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.service-strip p { color: var(--muted); max-width: 34em; }
.service-strip h3 { font-size: 1.1rem; margin-bottom: 2px; }
.service-strip .buy { padding: 12px 28px; }

/* ---------- about / contact ---------- */

.about {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}
.about h2 { font-size: 1.4rem; margin-bottom: 14px; }
.about p { color: var(--muted); max-width: 44em; }
.about p + p { margin-top: 10px; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.contact-links a {
  border: 1px solid var(--black);
  color: var(--black);
  padding: 10px 22px;
  border-radius: 4px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-links a:hover { background: var(--black); color: #ffffff; text-decoration: none; }

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

.site-footer {
  background: var(--black);
  color: var(--muted-on-black);
  padding: 28px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.78rem;
}

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

@media (max-width: 800px) {
  .hero { padding: 64px 0 56px; }
  .hero p.tag { font-size: 1.02rem; }
  .product { padding: 36px 0 72px; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .details h1 { font-size: 1.55rem; }
  .site-header nav { gap: 18px; }
  .catalog { padding: 52px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .buy { transition: none; }
}
