:root {
  color: #1a1a1a;
  background: #f5f0e8;
  font-family: "DM Mono", "Courier New", monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid #f9a825; outline-offset: 2px; }
.site-shell { min-height: 100vh; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  color: #e8dcc8;
  background: #1b3a2d;
}
.eyebrow, .section-eyebrow { margin: 0 0 4px; color: inherit; font-size: 11px; letter-spacing: 4px; opacity: .6; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: 28px; letter-spacing: -1px; }
.view-switcher { display: flex; gap: 8px; }
.view-button, .clear-button {
  border: 1.5px solid #52b788;
  border-radius: 6px;
  padding: 8px 18px;
  color: #e8dcc8;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.view-button.is-active { color: #fff; background: #52b788; }
.content { padding: 24px 32px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-input { width: 220px; padding: 8px 14px; border: 1.5px solid #c5baa8; border-radius: 6px; color: #1a1a1a; background: #fff; font-size: 13px; }
.trip-filters, .category-filters, .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.trip-filter, .category-filter {
  border: 1.5px solid #c5baa8;
  border-radius: 20px;
  padding: 6px 14px;
  color: #555;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.trip-filter.is-selected { border-color: #1b3a2d; color: #fff; background: #1b3a2d; }
.category-filters { gap: 6px; margin-bottom: 24px; }
.category-filter { border-radius: 4px; padding: 5px 12px; color: #444; background: transparent; font-size: 11px; letter-spacing: .5px; }
.category-filter.is-selected { border-color: #1b3a2d; color: #fff; background: #1b3a2d; }
.category-filter.is-selected:not([data-category="All"]) { border-color: var(--category-color); background: var(--category-color); }
.results-label { margin-bottom: 16px; color: #888; font-size: 11px; letter-spacing: 2px; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gear-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid #e0d9cc; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.gear-card.is-packed { border: 2px solid #52b788; }
.gear-details { flex: 1; min-width: 0; }
.category-label { display: inline-block; margin-bottom: 4px; padding: 2px 7px; border-radius: 3px; color: #fff; background: var(--category-color); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.gear-card h3 { margin-bottom: 4px; font-size: 14px; line-height: 1.3; }
.gear-color, .pack-item span { margin: 0; color: #888; font-size: 11px; }
.gear-note { margin: 2px 0 0; color: #e65100; font-size: 11px; }
.gear-meta { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.tag { padding: 2px 7px; border-radius: 10px; color: var(--tag-text); background: var(--tag-bg); font-size: 10px; }
.purchase-date { margin-left: auto; color: #aaa; font-size: 10px; white-space: nowrap; }
.pack-toggle { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1.5px solid #c5baa8; border-radius: 6px; color: #888; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.pack-toggle.is-packed { border: 2px solid #52b788; color: #fff; background: #52b788; }
.empty-state { padding: 60px 0; color: #aaa; text-align: center; font-size: 14px; }
.empty-icon { margin-bottom: 12px; font-size: 48px; }
.pack-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-eyebrow { color: #888; letter-spacing: 3px; }
.pack-heading h2 { margin: 0; font-size: 22px; }
.clear-button { border-color: #c62828; color: #c62828; }
.pack-group { margin-bottom: 24px; }
.pack-group h3 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--category-color); color: var(--category-color); font-size: 11px; letter-spacing: 2px; }
.pack-group h3 span { font-weight: 400; }
.pack-items { display: flex; flex-direction: column; gap: 8px; }
.pack-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid #e0d9cc; border-radius: 6px; background: #fff; }
.pack-check { color: #52b788 !important; font-size: 18px !important; }
.pack-item div { flex: 1; min-width: 0; }
.pack-item strong, .pack-item span { display: block; }
.pack-item strong { margin-bottom: 3px; font-size: 14px; }
.remove-button { padding: 4px; border: 0; color: #ccc; background: transparent; cursor: pointer; font-size: 18px; }
.remove-button:hover { color: #c62828; }
noscript { display: block; padding: 16px; text-align: center; }
@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 20px; }
  .content { padding: 20px; }
  .view-switcher { width: 100%; }
  .view-button { flex: 1; padding-inline: 10px; }
  .search-input { width: 100%; }
  .filter-row { gap: 12px; }
  .trip-filters { width: 100%; }
  .gear-grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
