/* Brand kit (docs/brand-kit.md): No-cap blue #2563EB, Fact yellow #FACC15, Ink #111827, Paper #F8F5EE. */
:root {
  --blue: #2563eb;
  --yellow: #facc15;
  --ink: #111827;
  --paper: #f8f5ee;
  --muted: #4b5563;
  --line: #e5e1d8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6;
    --paper: #0b0f19;
    --muted: #9ca3af;
    --line: #1f2937;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px / 1.5 Inter,
    system-ui,
    sans-serif;
}
a {
  color: var(--blue);
}
main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
h1,
h2 {
  font-family: "Archivo Black", Inter, system-ui, sans-serif;
  line-height: 1.15;
}
.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 0.9rem;
}
.site-header nav,
.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: "Archivo Black", Inter, sans-serif;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 1rem 0;
}
.button,
button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.card a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
}
.card img,
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: var(--line);
}
.card-title {
  font-weight: 600;
}
.price,
.fine,
.note {
  color: var(--muted);
}
.product {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .product {
    grid-template-columns: 1fr 1fr;
  }
}
.gallery {
  display: grid;
  gap: 0.75rem;
}
.source {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  border-left: 4px solid var(--yellow);
  padding-left: 0.75rem;
}
.add {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 22rem;
}
.add label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
}
select,
input {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
}
.cart-lines {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-lines li {
  display: grid;
  grid-template-columns: 1fr 4.5rem 5rem;
  gap: 0.75rem;
  align-items: center;
}
.cart-lines span {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.subtotal {
  font-weight: 600;
}
.error {
  color: #b91c1c;
}
.draft {
  background: var(--yellow);
  color: #111827;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
