:root {
  --brick: #22C55E;
  --accent: #1F5FBF;
  --accent-hover: #16478F;
  --ink: #1B1F24;
  --text-2: #3E4550;
  --muted: #5A6270;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --border: #DDE1E7;
  --border-input: #C3C9D2;
  --yellow: #F2C230;
  --used: #D6E4F7;
  --placeholder: #E9ECF1;
  --ok: #1E7A46;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
}

h1, h2, h3, .logo, .price { font-family: var(--display); }

a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

[hidden] { display: none !important; }

/* Shipping bar */
.ship-bar { background: var(--yellow); color: var(--ink); font-size: 14px; text-align: center; padding: 8px 0; }
.ship-bar .wrap { line-height: 1.4; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo { font-family: "Titan One", var(--display); font-weight: 400; font-size: 24px; letter-spacing: .01em; }
.logo svg { fill: var(--brick); }
nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
nav a:hover { color: var(--accent); }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 72px 0; }
.pill-tag {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px;
}
.hero h1 { font-size: 56px; line-height: 1.05; margin: 20px 0 16px; max-width: 14ch; }
.hero p { font-size: 18px; max-width: 56ch; color: #DDE1E7; margin: 0 0 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font: 600 16px var(--body);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--border-input); }
.btn.secondary:hover { background: var(--bg); }

/* Listings */
.listings { padding: 56px 0 32px; }
.listings-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.listings-head h2 { font-size: 32px; margin: 0; }
#count { margin: 4px 0 0; color: var(--muted); }
.filter-groups { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badges .badge { position: static; }
.badge.retired { background: var(--ink); color: #fff; }
.badge.current { background: var(--card); border: 1px solid var(--border-input); }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-input); background: var(--card);
  color: var(--ink); font: 500 15px var(--body); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 24px; }
.tool { display: flex; flex-direction: column; flex: 1 1 220px; max-width: 360px; }
.tool label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.tool input, .tool select {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-input);
  border-radius: 8px; background: var(--card); font: 16px var(--body); color: var(--ink);
}
.empty { grid-column: 1 / -1; color: var(--muted); margin: 0; padding: 24px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--placeholder);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--used); color: var(--ink);
}
.badge.sealed { background: var(--yellow); }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.theme { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.card h3 { font-size: 18px; margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.meta:has(+ .notes) { margin-bottom: 8px; }
.notes {
  margin: 0 0 16px; font-size: 14px; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notes.full { display: block; overflow: visible; margin: 0 0 12px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 24px; font-weight: 700; white-space: nowrap; }
.status-pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--used); color: var(--ink);
}
.status-pill.sold { background: var(--placeholder); color: var(--muted); }
.card.is-sold { opacity: .75; }

/* Request panel */
.request {
  background: var(--card); border: 2px solid var(--accent); border-radius: 14px;
  padding: 24px; margin-bottom: 24px;
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px; position: relative;
}
.request .photo { border-radius: 10px; }
.request h2 { font-size: 24px; margin: 0 0 4px; }
.request .note { color: var(--text-2); margin: 0 0 16px; }
.close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.close svg { stroke: currentColor; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field label, .field legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.field input[type=text], .field input[type=email], .field textarea {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-input);
  border-radius: 8px; font: 16px var(--body); color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
fieldset.field { border: 0; margin: 0 0 14px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border-input); border-radius: 10px; cursor: pointer; font-weight: 500;
}
.choices label:has(input:checked) { border-color: var(--accent); background: var(--used); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.error { color: #A3241D; font-size: 14px; margin: 8px 0 0; }
.done { text-align: left; }
.done svg { stroke: var(--ok); }
.done h2 { margin-top: 12px; }

/* How it works */
.how { padding: 32px 0 56px; }
.how h2 { font-size: 32px; margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: var(--yellow); border-radius: 8px; font: 700 18px var(--display); margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer h2 { font-size: 20px; margin: 0 0 6px; }
.site-footer p { margin: 0 0 8px; color: var(--text-2); }
.site-footer .legal { font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 36px; }
  .request { grid-template-columns: 1fr; }
  .filter-groups { align-items: flex-start; }
}
