:root {
  color-scheme: light;
  --paper: #f2f2ed;
  --white: #f8f7ef;
  --ink: #151512;
  --muted: #56564b;
  --line: #aaa99c;
  --acid: #d7fa39;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.45 var(--sans); color: var(--ink); background: white; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #526617;
  outline-offset: 4px;
}
p, h1, h2, h3 { margin: 0; }
h2 { font: 900 clamp(39px, 5.2vw, 66px)/.87 var(--display); }
.skip { position: absolute; top: 8px; left: 8px; z-index: 3; transform: translateY(-150%); background: var(--acid); padding: 8px; }
.skip:focus { transform: none; }
.corner { padding: 24px 28px 0; }
.corner img, footer img { display: block; image-rendering: pixelated; }
.gallery { width: min(1050px, calc(100% - 60px)); margin: 12px auto 0; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 23px; }
.category-card { display: grid; justify-items: center; align-content: start; gap: 7px; min-width: 0; padding: 7px 4px 3px; border: 0; background: white; }
.category-image { display: block; width: 100%; aspect-ratio: 1; position: relative; }
.category-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .16s ease; }
.open-icon { position: absolute; top: -4px; right: -2px; width: 25px; height: 25px; display: grid; place-items: center; background: white; border-radius: 50%; font: 500 21px/1 var(--mono); }
.category-card:hover img { transform: translateY(-4px); }
.category-card:hover .open-icon, .category-card:focus-visible .open-icon { background: var(--acid); }
.category-name { font: 700 12px/1.2 var(--mono); letter-spacing: -.025em; }
footer { display: grid; justify-items: center; padding: 54px 0 30px; }
.main-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 42px; padding: 8px 13px; border: 2px solid var(--ink); background: var(--acid); color: var(--ink); font: 700 13px/1.2 var(--mono); text-transform: uppercase; }
.main-button:hover { background: var(--ink); color: var(--acid); }
dialog { width: min(475px, calc(100% - 30px)); max-height: calc(100dvh - 30px); margin: auto; padding: 0; color: var(--ink); background: var(--white); border: 2px solid var(--ink); box-shadow: 7px 7px 0 #151512; }
dialog::backdrop { background: #11120ac2; }
.dialog-surface { padding: 18px 22px 21px; border-top: 8px solid var(--acid); }
.dialog-close { position: absolute; top: 16px; right: 12px; min-width: 35px; height: 35px; padding: 0 5px; border: 1px solid var(--ink); background: transparent; font-size: 25px; line-height: 1; }
.dialog-close:hover { background: var(--ink); color: var(--acid); }
.dialog-title { margin: 0 34px 8px 0; font-size: clamp(39px, 6vw, 54px); text-transform: uppercase; }
.dialog-intro { color: var(--muted); }
.parcel-preview { display: flex; gap: 9px; align-items: center; margin: 0 40px 10px 0; font: 600 12px/1.2 var(--mono); text-transform: uppercase; }
.parcel-preview img { width: 47px; height: 37px; object-fit: cover; border: 1px solid var(--ink); }
.budget-head { margin: 18px 0 2px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.budget-head output { padding: 3px 5px; background: var(--acid); font: 700 15px/1.2 var(--mono); }
input[type="range"] { accent-color: #435213; width: 100%; height: 27px; margin: 1px 0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font: 500 11px/1.3 var(--mono); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.presets button { border: 1px solid #7e7e6e; background: var(--white); padding: 6px 9px; min-width: 52px; font: 600 12px/1.1 var(--mono); }
.presets button:hover, .presets button[aria-pressed="true"] { color: var(--ink); background: var(--acid); border-color: var(--ink); }






.dialog-action { width: 100%; margin-top: 15px; }
.text-button { background: none; border: 0; padding: 5px 0; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.receipt { display: grid; gap: 8px; margin: 14px 0 3px; padding: 11px 0; border-block: 1px dashed #767667; font-size: 14px; }
.receipt div { display: flex; justify-content: space-between; gap: 9px; }
.receipt dd { margin: 0; text-align: right; font: 600 13px/1.4 var(--mono); }
.confirm-icon { display: grid; place-items: center; margin-bottom: 10px; width: 33px; height: 33px; border: 1px solid var(--ink); background: var(--acid); font-size: 20px; }
.order-list { padding: 0; margin: 11px 0 0; list-style: none; }
.order-list li { border-bottom: 1px dashed var(--line); background: var(--paper); padding: 8px 10px; }
.order-list strong { font: 600 13px/1.3 var(--mono); }
.order-list small { display: block; color: var(--muted); }
@media (max-width: 870px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
}
@media (max-width: 620px) {
  .corner { padding: 16px 16px 0; }
  .corner img { width: 36px; height: 36px; }
  .gallery { width: calc(100% - 30px); margin-top: 13px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
}
@media (max-width: 400px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .category-image img { transition: none; }
}

.mascot-logo {
  display: block;
  width: 190px;
  height: 105px;
  background: url("./assets/box-mascot.png") center -21px / 190px auto no-repeat;
}
.mascot-logo-footer {
  width: 155px;
  height: 86px;
  background-position: center -17px;
  background-size: 155px auto;
}
@media (max-width: 620px) {
  .mascot-logo { width: 150px; height: 83px; background-size: 150px auto; background-position: center -17px; }
}

.policy-links { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 18px; padding:18px; font-size:14px; }
.policy-page { max-width:760px; padding:28px 22px; margin:auto; font-size:16px; line-height:1.65; }
.policy-page h1 { font-family:var(--display); font-size:42px; }
.policy-page h2 { font:700 22px/1.3 var(--sans); margin:24px 0 8px; }
.policy-page p { margin:12px 0; }
.tier-options { border:0; padding:0; margin:18px 0; display:grid; gap:8px; }
.tier-choice { padding:10px; display:grid; align-items:center; grid-template-columns:20px 1fr auto; gap:4px 8px; border:1px solid var(--line); cursor:pointer; font-size:16px; }
.tier-choice:has(input:checked) { border:2px solid var(--ink); background:var(--acid); padding:9px; }
.tier-choice small { grid-column:2 / 4; font-size:14px; }
.agreement { display:flex; align-items:start; gap:9px; font-size:14px; }
.agreement input { flex-shrink:0; margin-top:4px; width:18px; height:18px; }
.main-button:disabled { opacity:.5; cursor:not-allowed; }
.secondary, .safety-note { font-size:14px; margin:8px 0; }
.safety-note { border-left:3px solid var(--acid); padding-left:10px; }
#checkout-message { margin-top:12px; font-size:14px; }
.open-icon { display:flex; justify-content:center; align-items:center; line-height:1; padding:0; inset:auto 0 auto auto; top:0; }
.open-icon::before { content:""; position:absolute; width:100%; height:100%; border-radius:50%; background:transparent; z-index:-1; }
.category-name { font-size:14px; }
.admin-card { padding:15px 0; border-bottom:1px solid var(--line); white-space:pre-wrap; }
.admin-card input, .admin-card button { padding:8px; margin:5px; max-width:95%; }
