:root {
  --bg: #16130f;
  --surface: #1f1b15;
  --surface-2: #26211a;
  --border: #332b20;
  --text: #ece5d8;
  --muted: #9a8f7d;
  --accent: #d9a441;
  --accent-soft: #3a2f1c;
  --rating: #e8b83a;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #221a10, var(--bg) 130%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 28px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.hero .subtitle { margin: 8px 0 0; color: var(--text); }
.hero .updated { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 28px 0 8px; scroll-margin-top: 12px; }

.section h2 {
  font-size: 1.35rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
  color: var(--accent);
}

/* ---------- Chips / nav ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 4px;
}

.chips a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color .15s, color .15s;
}

.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Taps ---------- */

.taps { display: flex; flex-direction: column; gap: 10px; }

.tap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.tap-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.tap-body { flex: 1 1 auto; min-width: 0; }

.tap-name { font-weight: 600; }
.tap-brew { color: var(--muted); font-size: 0.9rem; }
.tap-style { color: var(--muted); font-size: 0.82rem; }

.tap-price {
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}

.card:hover { transform: translateY(-2px); border-color: var(--accent); }

.card-img {
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }

.card-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; }

.card-body .brew { color: var(--muted); font-size: 0.88rem; }

.card-body .descr {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.card-body .descr.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .descr.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.card-body .descr-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.82rem;
  cursor: pointer;
}

.card-body .descr-toggle:hover { text-decoration: underline; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.meta span {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.meta .tag { color: var(--text); }
.meta .rating { color: var(--rating); border-color: #4a3d1d; }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 4px;
}

.card-foot .container { color: var(--muted); font-size: 0.82rem; }
.card-foot .price { color: var(--accent); font-weight: 700; font-size: 1.05rem; }

.untappd {
  align-self: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}

.untappd:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.footer {
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .tap { gap: 10px; padding: 10px 12px; }
  .tap-num { width: 34px; height: 34px; font-size: 1rem; }
}
