/* Random Ass Shop. A plain little shop: white, black, one loud yellow, system fonts only
   (no web fonts, so no third-party request on any page). */
:root {
  --ink: #111111;
  --soft: #444444;
  --dim: #6b6b6b;
  --line: #111111;
  --hi: #ffe600;
  --paper: #ffffff;
  --err: #c4001a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 3px solid var(--line); background: var(--hi); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.mark { font: 400 26px/1 Impact, "Arial Narrow Bold", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.top nav a { font-weight: 700; font-size: 14px; text-decoration: none; margin-left: 16px; }
.top nav a:hover { text-decoration: underline; }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.shot { border: 3px solid var(--line); background: #f4f4f4; }
.shot-cap { font-size: 13px; color: var(--dim); margin-top: 8px; }
h1 { font: 400 clamp(40px, 6vw, 64px)/0.95 Impact, "Arial Narrow Bold", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.tag { font-size: 18px; color: var(--soft); margin-top: 12px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 4px; flex-wrap: wrap; }
.price strong { font-size: 34px; font-weight: 900; background: var(--hi); padding: 0 6px; }
.price span { font-size: 15px; color: var(--soft); }
.taxline { font-size: 13px; color: var(--dim); }

fieldset { border: 0; margin: 24px 0 8px; }
legend { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sizes span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 44px; padding: 0 10px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 15px; cursor: pointer; user-select: none; }
.sizes input:hover + span { background: #fff8b3; }
.sizes input:checked + span { background: var(--ink); color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid #2f6bff; outline-offset: 2px; }

details.chart { margin: 10px 0 0; font-size: 14px; }
details.chart summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
table { border-collapse: collapse; margin-top: 10px; width: 100%; font-size: 14px; }
th, td { text-align: center; padding: 6px 4px; border-bottom: 1px solid #cccccc; }
th:first-child, td:first-child { text-align: left; }
.chart-note { color: var(--dim); font-size: 13px; margin-top: 6px; }

.buy { display: block; width: 100%; margin-top: 22px; height: 58px; border: 3px solid var(--line); background: var(--hi); color: var(--ink); font-weight: 900; font-size: 19px; cursor: pointer; box-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.buy:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.buy:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.buy:disabled { background: #eeeeee; color: #777777; border-color: #999999; box-shadow: none; cursor: not-allowed; }
.msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--err); }
.facts { margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--line); font-size: 15px; color: var(--soft); }
.facts li { list-style: none; padding: 3px 0 3px 18px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--ink); }

/* Splash: a grid of square tiles, one per thing for sale. auto-fill keeps every tile the same
   size however many there are, so a new product is just one more tile. */
.splash { padding-top: 40px; padding-bottom: 64px; }
.splash h1 { max-width: 16ch; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px; margin-top: 32px; }
.tile { display: block; height: 100%; text-decoration: none; border: 3px solid var(--line); background: #fff; box-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.tile:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.tile:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.tile:focus-visible { outline: 3px solid #2f6bff; outline-offset: 3px; }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4f4f4; border-bottom: 3px solid var(--line); }
.tile-name { display: block; padding: 14px 14px 16px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.tile-sub { display: block; padding: 0 14px 16px; font-size: 15px; color: var(--soft); }

.prose { max-width: 720px; padding: 40px 20px 64px; }
.prose h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 10px; }
.prose .lede { color: var(--soft); font-size: 18px; margin-bottom: 18px; }
.prose h2 { font-weight: 900; font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { margin: 8px 0; color: var(--soft); }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--ink); }
.cta { display: inline-block; margin-top: 18px; padding: 13px 20px; border: 3px solid var(--line); background: var(--hi); text-decoration: none; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }

footer { border-top: 3px solid var(--line); padding: 22px 0 40px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 780px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  table { font-size: 12.5px; }
  th, td { padding: 6px 2px; }
  .mark { font-size: 22px; }
  .top nav a { margin-left: 10px; font-size: 13px; }
}
/* Keep the masthead on one line: the wordmark and links never wrap, and on a phone only the
   first link stays up top (every link is also in the footer). */
.mark, .top nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .mark { font-size: 21px; }
  .top nav a + a { display: none; }
}
