[hidden] {
  display: none !important;
}
/* Layout: graph-paper hero (from the logo) → dark print-bed shop → paper order form. Single committed look. */
:root {
  color-scheme: light;
  --paper: #f3f2ee;
  --grid: #d9d7d0;
  --ink: #121214;
  --red: #d4261c;
  --red-hot: #ff3b2f;
  --bed: #15151a;
  --bed-2: #1f1f26;
  --bed-line: #2c2c35;
  --muted: #8a8a96;
  --paper-muted: #5d5b55;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body:
    "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, "Courier New", monospace;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--red-hot);
  outline-offset: 3px;
}
.pixel {
  font-family: var(--pixel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
[dir="rtl"] .pixel {
  letter-spacing: 0;
}

/* nav */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--ink);
}
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--ink);
  color: var(--paper);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.logo b span {
  color: var(--red-hot);
}
.nozzle {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-rows: 6px 6px 4px 6px;
  justify-items: center;
  gap: 0;
}
.nozzle i {
  display: block;
  background: var(--paper);
}
.nozzle i:nth-child(1) {
  width: 22px;
}
.nozzle i:nth-child(2) {
  width: 16px;
}
.nozzle i:nth-child(3) {
  width: 8px;
}
.nozzle i:nth-child(4) {
  width: 4px;
  background: var(--red-hot);
}
.navr {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--red-hot);
}
.btn.solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.sm {
  padding: 5px 10px;
  font-size: 0.85rem;
}

/* hero */
.hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 3px solid var(--ink);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding-block: 56px 48px;
}
.eyebrow {
  color: var(--red);
}
h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  line-height: 0.86;
  margin: 0.15em 0 0.2em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 .l {
  display: block;
  clip-path: inset(100% 0 0 0);
  animation: layer 1.4s steps(14) forwards;
}
h1 .l:nth-child(2) {
  color: var(--red);
  animation-delay: 0.6s;
}
@keyframes layer {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.lead {
  max-width: 34ch;
  font-size: 1.12rem;
  color: var(--paper-muted);
  margin: 0 0 24px;
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ctas .btn {
  padding: 12px 18px;
}
.printer {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border: 3px solid var(--ink);
  background: var(--bed);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.printer canvas {
  width: 62%;
  height: auto;
  image-rendering: pixelated;
}
.printer .head {
  position: absolute;
  top: 14px;
  left: 10%;
  width: 36px;
  height: 26px;
  background: var(--paper);
  border: 3px solid var(--ink);
  animation: sweep 2.4s ease-in-out infinite alternate;
}
.printer .head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--red-hot);
}
.printer .rail {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bed-line);
}
.printer .tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: var(--muted);
}
@keyframes sweep {
  to {
    left: calc(90% - 36px);
  }
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  color: var(--paper-muted);
}
.specs span::before {
  content: "■ ";
  color: var(--red);
}

/* shop */
.shop {
  background: var(--bed);
  color: var(--paper);
}
.shop .wrap {
  padding-block: 64px;
}
.sechead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  background: none;
  border: 2px solid var(--bed-line);
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.chip[aria-pressed="true"] {
  border-color: var(--red-hot);
  color: var(--paper);
  background: var(--bed-2);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--bed-2);
  border: 2px solid var(--bed-line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: var(--red);
}
.art {
  aspect-ratio: 4/3;
  max-width: 100%;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--bed-line);
  position: relative;
  background-image: radial-gradient(var(--bed-line) 1px, transparent 1px);
  background-size: 12px 12px;
}
.art canvas {
  width: 38%;
  image-rendering: pixelated;
}
.art .ph {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  color: var(--muted);
  font-size: 0.65rem;
}
.views {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 8px;
  color: var(--paper);
  background: var(--red);
  padding: 2px 6px;
  font-size: 0.65rem;
}
.cbody {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.cbody h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}
.cbody p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.crow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.price {
  font-family: var(--pixel);
  color: var(--red-hot);
  font-variant-numeric: tabular-nums;
}

/* how */
.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
  border-top: 2px dashed var(--bed-line);
  padding-top: 32px;
}
.how div {
  min-width: 0;
}
.how b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 6px 0;
}
.how p {
  margin: 0;
  color: var(--muted);
}
.how .pixel {
  color: var(--red-hot);
}

/* custom */
.custom {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.custom .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding-block: 64px;
}
.custom .intro p {
  color: var(--paper-muted);
  max-width: 38ch;
}
form {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 24px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 0.92rem;
}
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  border: 2px solid var(--ink);
  padding: 10px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--paper-muted);
  opacity: 0.7;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.out {
  border: 2px dashed var(--red);
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--paper);
}
.out pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--body);
  font-size: 0.9rem;
}
.out .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

footer {
  background: var(--ink);
  color: var(--paper);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 28px;
}
footer .sel {
  user-select: all;
  font-variant-numeric: tabular-nums;
}
footer small {
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero .wrap,
  .custom .wrap {
    grid-template-columns: 1fr;
  }
  .printer {
    max-width: 360px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .navr .hide-sm {
    display: none;
  }
  form {
    box-shadow: 5px 5px 0 var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  h1 .l {
    animation: none;
    clip-path: none;
  }
  .printer .head {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
