/* ──────────────────────────────────────────────────────────────────────────
   drinkr.css — the design system enqueued for every page.
   Imports the full app design system (typography, primitives, map look, the
   amber/gold palette, responsive rules) verbatim, then layers the WordPress-
   template structural classes (header, nav, card grids, sections, footer, map
   shell) on top. Tokens come from style.css (:root). Keep visual values in the
   tokens; this file is layout + the WP-specific component shells only.
   ────────────────────────────────────────────────────────────────────────── */
@import url("drinkr-app.css");

/* ── Layout primitives ─────────────────────────────────────────────────── */
.site-main { position: relative; z-index: 1; }
.section { padding-top: 56px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section__head h2, .section__head h1 { margin: 8px 0 0; }
.section__dek { color: var(--bone-2); max-width: 640px; margin: 10px 0 0; }

/* ── Status strip (newsroom ticker) ────────────────────────────────────── */
.status-strip { background: var(--ink); border-bottom: 1px solid var(--hair); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bone-3); }
.status-strip__inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.status-strip .dot { color: var(--hair-strong); }
.status-strip .accent { color: var(--amber); }
.status-strip .live-dot { display: inline-block; margin-right: 6px; }

/* ── Header / nav ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: oklch(0.05 0.008 50 / 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.site-logo__word { font-family: var(--serif-display); font-size: 24px; letter-spacing: 0.01em; }
.site-logo__word .accent, .accent { color: var(--amber); }
.site-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-2); }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--amber); }
.site-nav__toggle { display: none; flex-direction: column; gap: 5px; }
.site-nav__toggle span { width: 22px; height: 1.5px; background: var(--bone); }

/* ── Card grid + cards ─────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--hair); background: var(--ink-2); display: flex; flex-direction: column; }
.card__media { position: relative; display: block; overflow: hidden; }
.card__map { width: 100%; }
.card__status { position: absolute; left: 12px; top: 12px; z-index: 10; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); background: oklch(0.05 0.008 50 / 0.8); padding: 4px 8px; }
.card__stamp { position: absolute; left: 12px; bottom: 12px; z-index: 10; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-2); }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 24px; line-height: 1.02; margin: 2px 0 0; }
.card__title a:hover { color: var(--amber); }
.card__summary { font-size: 15px; line-height: 1.5; color: var(--bone-2); margin: 0; }
.card__meta { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-4); }

/* ── Tag + filter pills ────────────────────────────────────────────────── */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-3); border: 1px solid var(--hair-strong); padding: 3px 7px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-2); border: 1px solid var(--hair-strong); padding: 9px 14px; transition: color .2s, border-color .2s, background .2s; }
.filter-pill:hover { border-color: var(--amber); color: var(--amber); }
.filter-pill.is-active { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: 62vh; padding-top: 32px; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero__title { font-size: clamp(52px, 7vw, 116px); margin: 12px 0 0; }
.hero__dek { font-size: 20px; line-height: 1.5; color: var(--bone-2); max-width: 460px; }
.hero__copy .btn-solid, .hero__copy .btn-ghost { margin-right: 10px; }

/* ── Map shell + map page ──────────────────────────────────────────────── */
.drinkr-map { width: 100%; background: oklch(0.06 0.006 50); border: 1px solid var(--hair-strong); position: relative; z-index: 0; }
.drinkr-map .leaflet-container { background: oklch(0.06 0.006 50); font-family: var(--mono); }
.drinkr-map .leaflet-tile { filter: saturate(0.45) brightness(1.05) contrast(1.05); }
/* Map pins (built by assets/js/drinkr.js) */
.drinkr-pin .dot { position: absolute; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--amber)); box-shadow: 0 0 8px var(--c, var(--amber)); }
.drinkr-pin--destination .dot, .drinkr-pin .dm-num { display: inline-flex; align-items: center; justify-content: center; }
.drinkr-pin .dm-num { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--amber); color: var(--amber); background: oklch(0.05 0.008 50 / 0.85); font-family: var(--mono); font-size: 10px; }
.drinkr-pin .lbl { position: absolute; left: 9px; top: -7px; white-space: nowrap; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 4px oklch(0.02 0 0 / 0.95); opacity: 0; transition: opacity .15s; }
/* Only the hovered pin reveals its label (plus always-on destinations). Showing
   every label on map-hover crowded clustered areas like downtown — this keeps the
   map legible while still surfacing names on demand. */
.drinkr-pin--destination .lbl, .drinkr-pin:hover .lbl { opacity: 1; }
.drinkr-pin:hover { z-index: 1000; }
.map-page__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; }
.map-page__title { font-size: 34px; margin: 0; }
.map-page__stats { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bone-3); }
.map-page__map { border-left: 0; border-right: 0; }

/* ── Venue / article layouts ───────────────────────────────────────────── */
.venue, .article, .page-content { padding-top: 40px; }
.venue__title, .article__title { font-size: clamp(40px, 6vw, 88px); margin: 14px 0 0; }
.venue__summary { font-size: 20px; color: var(--bone-2); max-width: 720px; margin: 16px 0 14px; }
.venue__map { margin: 24px 0; }
.venue__cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.venue__field { padding: 14px 0; border-top: 1px solid var(--hair); }
.venue__field p { margin: 6px 0 0; color: var(--bone-2); }
.venue__nearby { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.article__head { max-width: 820px; margin: 0 auto; text-align: center; padding-top: 20px; }
.article__byline { color: var(--bone-3); margin-top: 14px; }
.article__hero { margin: 36px 0; }
.article__body { max-width: 680px; margin: 0 auto; font-size: 19px; line-height: 1.7; color: var(--bone-2); }
.article__body p { margin: 0 0 1.4em; }
.link-arrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-2); }
.link-arrow:hover { color: var(--amber); }

/* ── Drip ticker + footer ──────────────────────────────────────────────── */
.drip-ticker { position: sticky; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 16px; background: oklch(0.05 0.008 50 / 0.96); border-top: 1px solid var(--hair-strong); padding: 9px 18px; overflow: hidden; }
.drip-ticker__label { flex: 0 0 auto; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
/* Track is the fixed viewport; the marquee inside it scrolls. min-width:0 lets the
   track shrink beside the label (without it, flex min-width:auto kept the row from
   ever overflowing, so the JS marquee never moved → "paused"). */
.drip-ticker__track { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.drip-ticker__marquee { display: flex; width: max-content; animation: drip-marquee 38s linear infinite; }
.drip-ticker__set { display: flex; gap: 28px; padding-right: 28px; flex: 0 0 auto; }
.drip-ticker:hover .drip-ticker__marquee { animation-play-state: paused; }
.drip-ticker__item { flex: 0 0 auto; white-space: nowrap; font-size: 11px; letter-spacing: 0.04em; color: var(--bone-2); }
/* Two identical sets → translate exactly one set width for a seamless loop. */
@keyframes drip-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.drip-ticker__marquee { animation: none; }
	.drip-ticker__track { overflow-x: auto; }
	.drip-ticker__set[aria-hidden="true"] { display: none; }
}
.drip-ticker__item .accent { margin-right: 6px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer { border-top: 1px solid var(--hair); margin-top: 56px; padding: 48px 0 28px; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.site-footer__tagline { font-style: italic; font-size: 23px; line-height: 1.18; color: var(--bone-2); margin: 18px 0 0; }
.site-footer__origin { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-3); margin-top: 20px; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.site-footer__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: var(--bone-2); font-size: 15px; }
.site-footer__links a:hover { color: var(--amber); }
.site-footer__legal { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-3); margin-top: 40px; }

/* ── Empty states (e.g. Stories with no posts yet) ─────────────────────── */
.empty-state { max-width: 640px; padding: 48px 0 40px; }
.empty-state__title { font-size: clamp(40px, 6vw, 80px); margin: 12px 0 0; }
.empty-state__dek { font-size: 19px; line-height: 1.6; color: var(--bone-2); margin: 16px 0 26px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.venue__cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
	.site-nav { display: none; }
	.site-nav__toggle { display: flex; }
	.section { padding-top: 50px; }
	.card-grid, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
