/* x.css */

/* Minimal “art” layer on top of Tailwind utilities */

:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.18);
}

body {
  background: var(--paper);
}

/* faint grid background */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
}

/* film grain-ish noise */
.noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* underline headline accent */
.underline-art {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-color: rgba(0,0,0,0.75);
}

/* inputs */
.input-art {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.input-art::placeholder {
  color: rgba(0,0,0,0.45);
}

.input-art:focus {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

/* button */
.btn-art {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.92);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
  user-select: none;
}

.btn-art:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,0.98);
}

.btn-art:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-art__arrow {
  font-size: 14px;
  opacity: 0.9;
}

/* cards/images */
.card-art {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.img-art {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* small UI polish */
::selection {
  background: rgba(0,0,0,0.12);
}

/* Responsive gallery heights */
.img-hero { height: 220px; }
.img-square { height: 200px; }

@media (min-width: 640px) {
  .img-hero { height: 260px; }
  .img-square { height: 260px; }
}

/* Slightly bigger targets on mobile */
@media (max-width: 639px) {
  .input-art { padding: 14px 16px; font-size: 16px; } /* avoids iOS zoom */
  .btn-art { width: 100%; justify-content: center; padding: 14px 16px; }
}

/* Prevent long receipt from breaking layout */
#receipt { word-break: break-word; }
