/* ============================================================
   HERBCEO.COM — RETRO CANNABIS DIRECTORY
   Inspired by old seedfinder.eu — dense, editorial, functional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --cream:        #f5f0e8;
  --cream-dark:   #ede7d9;
  --cream-darker: #e0d8c8;
  --ink:          #1e1e18;
  --ink-mid:      #3d3d30;
  --ink-light:    #6b6b58;
  --green:        #2d5a27;
  --green-light:  #3d7a35;
  --green-pale:   #e8f0e6;
  --amber:        #b85c00;
  --amber-pale:   #fdf0e0;
  --rule:         #c8c0aa;
  --tag-bg:       #ddd8cc;
  --white:        #ffffff;
  --font-body:    'Source Sans 3', Georgia, serif;
  --font-head:    'Bitter', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); text-decoration: underline; }
img { max-width: 100%; display: block; }
p { margin-bottom: 1rem; }

/* HEADER */
.site-header { background: var(--green); border-bottom: 3px solid var(--amber); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 54px; }
.site-brand { display: flex; flex-direction: column; text-decoration: none; }
.site-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.site-tagline { font-family: var(--font-mono); font-size: 0.58rem; color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.main-nav { display: flex; gap: 1.25rem; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--amber); text-decoration: none; }

/* FOOTER */
.site-footer { background: var(--ink); border-top: 3px solid var(--amber); color: rgba(255,255,255,0.5); font-size: 0.78rem; padding: 1.75rem; text-align: center; margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }

/* BREADCRUMB */
.breadcrumb { background: var(--cream-darker); border-bottom: 1px solid var(--rule); padding: 0.45rem 1.5rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--green); text-decoration: none; }

/* LOADING / ERROR */
.loading { text-align: center; padding: 4rem; color: var(--ink-light); font-family: var(--font-mono); font-size: 0.8rem; }
.error { text-align: center; padding: 4rem; color: var(--amber); }
.no-results { text-align: center; padding: 4rem 2rem; color: var(--ink-light); }
.no-results h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-mid); margin-bottom: 0.5rem; }

/* TAGS */
.tag { display: inline-block; background: var(--tag-bg); color: var(--ink-mid); font-family: var(--font-mono); font-size: 0.62rem; padding: 0.15rem 0.45rem; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag.green { background: var(--green-pale); color: var(--green); }
.tag.amber { background: var(--amber-pale); color: var(--amber); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 0.35rem; padding: 2rem; flex-wrap: wrap; }
.pagination button { min-width: 36px; height: 36px; padding: 0 0.5rem; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mid); background: var(--white); cursor: pointer; transition: border-color 0.15s; }
.pagination button:hover { border-color: var(--green); color: var(--green); }
.pagination button.active { background: var(--green); color: #fff; border-color: var(--green); }

/* LISTING CARD */
.listing-card { display: block; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.listing-card:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(30,30,24,0.08); text-decoration: none; color: var(--ink); }
.listing-card-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 0.15rem; line-height: 1.2; }
.listing-card:hover .listing-card-name { color: var(--green-light); }
.listing-card-dba { font-size: 0.78rem; color: var(--ink-light); font-style: italic; margin-bottom: 0.4rem; }
.listing-card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.listing-card-location { font-size: 0.78rem; color: var(--ink-light); margin-top: 0.35rem; }

/* LISTING GRID */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; }

/* ARCHIVE HEADER */
.archive-header { background: var(--green); padding: 2.5rem 1.5rem; border-bottom: 3px solid var(--amber); }
.archive-header-inner { max-width: 1200px; margin: 0 auto; }
.archive-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.archive-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin: 0; }
.archive-meta { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

.listing-grid-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .main-nav { gap: 0.85rem; }
  .main-nav a { font-size: 0.7rem; }
  .listing-grid-wrap { padding: 1rem; }
  .archive-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .listing-grid { grid-template-columns: 1fr; }
  .main-nav .hide-mobile { display: none; }
}
