
:root {
  --bg: #fbf7f1;
  --bg2: #f3ebe0;
  --paper: #ffffff;
  --ink: #2a1f16;
  --muted: #6e5a48;
  --faint: #9a8674;
  --line: rgba(122, 84, 48, 0.14);
  --line2: rgba(122, 84, 48, 0.08);
  --coffee: #6f4e37;
  --coffee2: #4a3424;
  --gold: #c4a35a;
  --gold2: #e2c77a;
  --gold-soft: rgba(196, 163, 90, 0.16);
  --shadow: 0 10px 30px rgba(74, 52, 36, 0.08);
  --r: 16px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto }
.bg-orb {
  pointer-events: none; position: fixed; inset: auto -10% -20% auto;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,199,122,.28), transparent 65%);
  z-index: 0;
}
.top, main, .foot { position: relative; z-index: 1 }
.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(251,247,241,.86);
  border-bottom: 1px solid var(--line2);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700 }
.mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 40%, var(--coffee));
  box-shadow: 0 8px 20px rgba(111,78,55,.2);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1 }
.brand-txt small { color: var(--faint); font-size: 11px; font-weight: 500; margin-top: 2px }
.top-meta { display: flex; flex-wrap: wrap; gap: 8px }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); box-shadow: var(--shadow);
}
.pill b { color: var(--coffee2); font-weight: 700 }
.pill.link:hover { border-color: var(--gold); color: var(--coffee2) }

.hero { padding: 36px 0 10px }
.eyebrow {
  color: var(--coffee); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px;
}
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08;
  letter-spacing: -.02em; color: var(--coffee2);
}
h1 em { font-style: italic; color: var(--gold); font-weight: 600 }
.lead { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 1.05rem }

.search-panel {
  margin-top: 22px; padding: 16px; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.search-row { display: grid; grid-template-columns: 1fr 220px; gap: 10px }
#q, #cat {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: #fffdf9; color: var(--ink); font: inherit;
  padding: 12px 14px; outline: none;
}
#q:focus, #cat:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft) }
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 12px; color: var(--muted); font-size: 13px;
}
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none }
.check input { accent-color: var(--coffee) }
.result-count { margin-left: auto; color: var(--coffee2); font-weight: 600 }

.chips-wrap { padding: 18px 0 8px }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper);
  color: var(--muted); border-radius: 999px; padding: 8px 12px;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: .15s ease;
}
.chip em { font-style: normal; color: var(--faint); margin-left: 4px }
.chip:hover { border-color: var(--gold); color: var(--coffee2) }
.chip.active {
  background: linear-gradient(135deg, rgba(226,199,122,.35), rgba(196,163,90,.2));
  border-color: rgba(196,163,90,.55); color: var(--coffee2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; padding: 10px 0 20px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 16px 14px;
  box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
  min-height: 168px;
}
.card:hover { transform: translateY(-2px); border-color: rgba(196,163,90,.55) }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start }
.cat-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--coffee); background: var(--gold-soft); border-radius: 999px; padding: 4px 8px;
}
.card h3 { font-size: 1.05rem; line-height: 1.25; color: var(--coffee2); margin-top: 2px }
.card p { color: var(--muted); font-size: 13.5px; flex: 1 }
.badges { display: flex; flex-wrap: wrap; gap: 6px }
.badge {
  font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); background: #fffdf9;
}
.badge.ok { color: #3d6b4f; border-color: rgba(61,107,79,.25); background: rgba(61,107,79,.08) }
.badge.warn { color: #8a5a12; border-color: rgba(196,163,90,.35); background: var(--gold-soft) }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px }
.card-foot a {
  font-size: 12.5px; font-weight: 700; color: var(--coffee2);
  border-bottom: 1px solid transparent;
}
.card-foot a:hover { border-bottom-color: var(--gold); color: var(--coffee) }

.btn {
  appearance: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 45%, #a8843d);
  color: #2a1f16; font-weight: 700; font: inherit; font-size: 14px;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(196,163,90,.25);
}
.btn:hover { filter: brightness(1.03) }
.more-row { display: flex; justify-content: center; padding: 8px 0 40px }
.empty { text-align: center; color: var(--muted); padding: 40px 0 60px }

.foot {
  border-top: 1px solid var(--line2); padding: 28px 0 40px;
  color: var(--faint); font-size: 13px;
}
.foot a { color: var(--coffee); font-weight: 600 }
.fine { margin-top: 6px; font-size: 12px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

@media (max-width: 720px) {
  .search-row { grid-template-columns: 1fr }
  .result-count { margin-left: 0; width: 100% }
  .top-in { flex-direction: column; align-items: flex-start }
}
