:root {
  --green-deep: #142b22;
  --green: #1b3b2f;
  --green-soft: #2a5243;
  --cream: #f7f4ec;
  --cream-dark: #ece6d4;
  --brass: #ae8a38;
  --brass-bright: #c9a85c;
  --ink: #20241f;
  --ink-soft: #5a6058;
  --paper: #fffdf7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Barlow", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.display {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* ---------- header ---------- */

.topbar {
  background: var(--green-deep);
  color: var(--cream);
  border-bottom: 3px solid var(--brass);
}

.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.wordmark .co { color: var(--brass-bright); }

.topnav { display: flex; gap: 22px; font-size: 0.95rem; }

.topnav a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.topnav a:hover, .topnav a:focus-visible { opacity: 1; border-bottom-color: var(--brass); }

/* ---------- hero ---------- */

.hero { background: var(--green); color: var(--cream); overflow: hidden; }

.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 20px 56px;
}

.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-bright);
}

.hero p.lede {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 1.08rem;
  opacity: 0.92;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247, 244, 236, 0.35);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  text-decoration: none;
}

.chip:hover, .chip:focus-visible { border-color: var(--brass-bright); color: var(--brass-bright); }

.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-bright); }

/* ---------- controls ---------- */

.controls {
  background: var(--paper);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 rgba(20, 43, 34, 0.06);
}

.controls-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.controls input[type="search"],
.controls select {
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 12px;
  border: 1.5px solid var(--cream-dark);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}

.controls input[type="search"] { flex: 1 1 180px; min-width: 150px; }

.controls input[type="search"]:focus,
.controls select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.dept-pills, .type-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.dept-pills button, .type-pills button {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  border: 1.5px solid var(--cream-dark);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
}

.dept-pills button:hover, .type-pills button:hover { border-color: var(--brass); color: var(--ink); }

.dept-pills button:focus-visible, .type-pills button:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

.dept-pills button.on, .type-pills button.on {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.count-note {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- shelf (listings) ---------- */

.shelf {
  max-width: 1060px;
  margin: 0 auto;
  padding: 34px 20px 70px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shelf-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}

.shelf-title::after { content: ""; flex: 1; height: 1px; background: var(--cream-dark); }

/* each listing = a shoebox end label */
.box {
  background: var(--paper);
  border: 1px solid var(--cream-dark);
  border-left: 6px solid var(--green);
  display: grid;
  grid-template-columns: 148px 1fr auto auto;
  align-items: center;
  gap: 0 22px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.box:hover {
  transform: translateX(6px);
  box-shadow: -6px 6px 0 rgba(20, 43, 34, 0.08);
}

.box-photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-right: 1px solid var(--cream-dark);
  background: var(--cream-dark);
}

.box-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.box-id { padding: 16px 0; min-width: 0; }

.box-brand {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.box-model {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.box-colorway {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-tags { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--cream-dark);
  color: var(--ink-soft);
}

.tag.new { border-color: var(--green-soft); color: var(--green-soft); }

/* the brass size stamp — signature element */
.box-size {
  text-align: center;
  padding: 12px 4px;
  border-left: 1px dashed var(--cream-dark);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 108px;
}

.box-size .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.box-size .num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--brass);
}

.box-size .conv {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

.box-buy {
  padding: 16px 20px 16px 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.price-was {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.price-now {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}

.btn-fb {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: var(--green);
  color: var(--cream);
  padding: 9px 16px;
  border: none;
  cursor: pointer;
  transition: background 120ms ease;
  white-space: nowrap;
}

.btn-fb:hover, .btn-fb:focus-visible { background: var(--green-soft); }

.btn-fb:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.empty .display { font-size: 1.6rem; color: var(--ink); }

/* ---------- pickup ---------- */

.pickup {
  background: var(--green-deep);
  color: var(--cream);
}

.pickup-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pickup h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 1;
}

.pickup p { margin-top: 12px; opacity: 0.9; max-width: 46ch; }

.addr-card {
  border: 1px solid rgba(247, 244, 236, 0.25);
  padding: 26px;
}

.addr-card .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.addr-card .addr {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 8px;
}

.addr-card a.map {
  display: inline-block;
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--brass-bright);
}

/* ---------- footer ---------- */

footer {
  background: var(--green-deep);
  color: var(--cream);
  border-top: 1px solid rgba(247, 244, 236, 0.15);
}

.foot-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.8;
}

.foot-inner a { color: var(--cream); }

/* ---------- privacy page ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.prose h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  text-transform: uppercase;
  line-height: 1;
}

.prose h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 34px 0 8px;
}

.prose p, .prose li { margin-top: 10px; color: var(--ink); }

.prose ul { padding-left: 22px; }

.prose .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .box, .btn-fb { transition: none; }
  .box:hover { transform: none; }
}

@media (max-width: 780px) {
  .box {
    grid-template-columns: 110px 1fr;
    grid-template-areas:
      "photo id"
      "photo size"
      "buy buy";
  }
  .box-photo { grid-area: photo; width: 110px; height: 100%; min-height: 150px; }
  .box-id { grid-area: id; padding: 14px 14px 0 0; }
  .box-size {
    grid-area: size;
    border-left: none;
    align-self: start;
    text-align: left;
    padding: 6px 0 12px;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .box-size .num { font-size: 2rem; }
  .box-buy {
    grid-area: buy;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-top: 1px dashed var(--cream-dark);
    width: 100%;
  }
  .pickup-inner { grid-template-columns: 1fr; }
  .count-note { margin-left: 0; width: 100%; }
}
