/* Product gallery: plain cards for the Products page and the Home grid.
   Deliberately none of the arcade chrome (no pixel type, scanlines, hard shadows,
   per-product colors); the pictures carry the color. Loaded after arcade.css. */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 62rem) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .pgrid { grid-template-columns: 1fr; } }
.pcard {
  display: block; text-decoration: none; color: #1e2229;
  background: #fff; border: 1px solid #e3e1da; border-radius: 14px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(30,34,41,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30,34,41,.13); color: #1e2229; }
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #f1efe9; border-bottom: 1px solid #e3e1da; }
.pcard .pname { display: block; padding: 1rem 1.15rem .15rem; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.pcard .pkind { display: block; padding: 0 1.15rem 1.1rem; font-family: var(--font-body); font-size: .88rem; color: #5b6472; }
.pcard .pname .out { font-weight: 500; color: #8a919c; margin-left: .3rem; }

/* The Products page itself: a quiet room around the cards. */
body.plain { background: #f6f5f1; background-image: none; color: #1e2229; }
body.plain::after, body.plain .hero::before, body.plain .hero::after,
body.plain .section::after, body.plain .section-head h2::after { display: none !important; content: none !important; }
body.plain .hero { background: none; border-bottom: 0; padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
body.plain .hero h1 { font-family: var(--font-body); font-weight: 800; letter-spacing: -.03em; font-size: clamp(2.4rem, 6vw, 3.6rem); color: #1e2229; text-shadow: none; }
body.plain .hero .lede { color: #5b6472; }
body.plain .kicker { font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; color: #92400e; }
body.plain .kicker::before { display: none; }
body.plain .section-head h2, body.plain .rule h3 { font-family: var(--font-body); font-weight: 750; letter-spacing: -.02em; color: #1e2229; }
body.plain .rule { background: #fff; border: 1px solid #e3e1da; border-radius: 12px; box-shadow: none; background-image: none; }
body.plain .rule p { color: #5b6472; }
.sign { background: #fff; border: 1px solid #e3e1da; border-radius: 14px; padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 44rem; }
.sign h2 { margin: 0 0 .5rem; }
.sign p { color: #5b6472; margin: 0 0 1.2rem; }
.sign form { display: grid; gap: .9rem; }
.sign label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: #1e2229; }
.sign input { font: inherit; padding: .7rem .8rem; border: 1px solid #cfccc2; border-radius: 10px; background: #fff; color: #1e2229; }
.sign input:focus { outline: 2px solid #b45309; outline-offset: 1px; }
.sign .btn { justify-self: start; }
/* the home grid sits on its own quiet band */
.section.quiet { background: #f6f5f1; border-top: 1px solid #e3e1da; border-bottom: 1px solid #e3e1da; }
.section.quiet::after { display: none; }
.section.quiet .section-head h2, .section.quiet .section-head .lede { color: #1e2229; }
.section.quiet .section-head .lede { color: #5b6472; }
body.plain .section { padding: 1.5rem 0; }
body.plain .hero { padding-bottom: .5rem; }
body.plain .rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 62rem) { body.plain .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { body.plain .rules { grid-template-columns: 1fr; } }
body.plain .rule { padding: 1.2rem 1.3rem; }
body.plain .rule h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
body.plain .rule p { margin: 0; font-size: .95rem; }
body.plain .section-head { margin-bottom: 1.2rem; }
.sign h2 { font-family: var(--font-body); font-weight: 750; letter-spacing: -.02em; color: #1e2229; font-size: 1.6rem; }
.sign .btn { border-radius: 10px; background: #1e2229; border-color: #1e2229; color: #fff; box-shadow: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.sign .btn:hover { background: #2c333e; border-color: #2c333e; color: #fff; transform: none; box-shadow: none; }

/* Dark appearance: follows the visitor's system, like the rest of the site. */
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .pgrid .pcard,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .sign,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .rule { background: #1a1c21; border-color: #2c2f37; color: #eceae4; box-shadow: none; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .pcard:hover { color: #eceae4; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .pcard img { background: #111317; border-bottom-color: #2c2f37; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .pcard .pkind,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .sign p,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .rule p,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .hero .lede { color: #a3a9b5; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .pcard .pname .out { color: #7d8492; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .section.quiet { background: #101114; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .section.quiet { border-color: #2c2f37; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .hero h1,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .section-head h2,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .rule h3,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .sign h2,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .sign label,
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .section.quiet .section-head h2 { color: #eceae4; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .section.quiet .section-head .lede { color: #a3a9b5; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) body.plain .kicker { color: #f2b266; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .sign input { background: #111317; border-color: #3a3e47; color: #eceae4; }
  :root:is([data-palette="night"],[data-palette="midnight"],[data-palette="ember"],[data-palette="coinop"]) .sign .btn { background: #eceae4; border-color: #eceae4; color: #14161a; }
