/* Shared brand styles for the Bar Heretic / Heritage / Events sites.
   Colors are provisional (sampled from Suyoung's R2 deck). When the official
   values arrive, change them here only. */

:root {
  /* Bar Heretic */
  --bh-stone: #E1DDD2;
  --bh-taupe: #9C9688;
  --bh-brown: #593C34;
  --bh-espresso: #2E1F1A;
  /* Heritage Wine */
  --hw-pink: #F452B4;
  --hw-rose: #EB819C;
  --hw-coral: #F96A4E;
  --hw-wine: #69121F;
  /* Soulmate */
  --sm-sage: #B6B99A;
  --sm-olive: #A89F52;
  --sm-moss: #4C4C32;
  --sm-forest: #182720;
  /* Shared */
  --cream: #F3EFE7;
  --ink: #000000;
  --muted: #4A4A44;

  /* Formera once the license is bought; Jost is the stand-in */
  --font: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Per-site roles */
.site-bh { --page: var(--bh-stone); --band: var(--bh-brown); --dark: var(--bh-espresso); --accent: var(--bh-brown); --photo: var(--bh-taupe); }
.site-bh .band { color: var(--cream); }
.site-bh .band a:hover { color: var(--cream); opacity: .75; }
.site-hw { --page: var(--cream); --band: var(--hw-coral); --dark: var(--hw-wine); --accent: var(--hw-wine); --photo: var(--hw-rose); }
.site-ev { --page: var(--cream); --band: var(--bh-stone); --hero: var(--bh-taupe); --dark: var(--bh-espresso); --accent: var(--bh-brown); --photo: var(--bh-brown); }
.band-hero { background: var(--hero); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
.on-dark a:hover { color: var(--cream); opacity: .75; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.display { margin: 0; font-weight: 300; line-height: 1.04; font-size: clamp(40px, 6.5vw, 96px); }
.h2 { margin: 0; font-weight: 300; line-height: 1.08; font-size: clamp(30px, 4vw, 54px); }
.lede { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 36em; }
.on-dark { background: var(--dark); color: var(--cream); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.site-header .logo img { width: clamp(140px, 16vw, 190px); }
.site-header .logo.icon img { width: 60px; }
.site-header .logo.mark { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.site-header .logo.mark .sym { width: 52px; }
.nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 30px); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current] { border-bottom: 1.5px solid currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1.5px solid currentColor; background: none; font-family: var(--font); cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.site-hw .btn-solid { background: var(--hw-wine); border-color: var(--hw-wine); }
.site-hw .btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Split hero */
.split { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: stretch; padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.split > * { flex: 1 1 380px; min-width: 0; }
.split .copy { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.photo { background: var(--photo); min-height: clamp(280px, 40vw, 520px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px; color: var(--ink); }
.on-dark .photo { color: var(--cream); }
.photo-img { width: 100%; height: 100%; min-height: clamp(280px, 40vw, 520px); max-height: 640px; object-fit: cover; }
.photo-band { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }

/* Info grid */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 40px; padding-top: 64px; padding-bottom: 64px; font-size: 18px; }
.info h2 { margin: 0 0 10px; }
.info p { margin: 0; }
.band { background: var(--band); }

/* Event rows (compact list) */
.events-list { display: flex; flex-direction: column; }
.ev-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 72px; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(243, 239, 231, .35); text-decoration: none; }
.ev-row:last-child { border-bottom: 1px solid rgba(243, 239, 231, .35); }
.ev-row .when { font-size: 14px; letter-spacing: .12em; color: var(--bh-taupe); }
.ev-row .what { font-size: clamp(19px, 2vw, 24px); font-weight: 300; line-height: 1.25; }
.ev-row img { width: 64px; justify-self: end; }

/* Event cards (calendar) */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--cream); display: grid; grid-template-columns: 10px 84px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding-right: 22px; min-height: 110px; }
.card .stripe { align-self: stretch; }
.card .date { text-align: center; }
.card .date .m { margin: 0; font-size: 13px; letter-spacing: .14em; }
.card .date .d { margin: 0; font-size: 40px; font-weight: 300; line-height: 1; }
.card .tag { margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; color: var(--bh-brown); text-transform: uppercase; }
.card .name { margin: 0; font-size: clamp(19px, 2vw, 23px); font-weight: 300; line-height: 1.25; }
.card .meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.card .venue { width: 64px; }
.stripe-bh { background: var(--bh-brown); }
.stripe-hw { background: var(--hw-coral); }
.stripe-sm { background: var(--sm-olive); }

/* Features (wine club) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; font-size: 16px; }
.features h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.features p { margin: 0; }

/* Signup */
.signup { display: flex; flex-wrap: wrap; gap: 32px; align-items: end; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.signup form { flex: 1 1 400px; display: flex; flex-wrap: wrap; gap: 12px; }
.signup input { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 16px; font: 16px var(--font); border: 1.5px solid var(--ink); background: #FFFFFF; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Collective footer */
.collective { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding-top: 52px; padding-bottom: 52px; font-size: 14px; }
.collective .venues { display: flex; flex-wrap: wrap; gap: 36px; align-items: end; }
.collective .venues a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.collective .venues img { height: 44px; width: auto; }
.collective p { margin: 0; }

/* Mockup switcher bar (not part of the real sites) */
.mock-bar { background: #222; color: #ddd; font: 13px/1.4 -apple-system, Helvetica, sans-serif; padding: 8px var(--gutter); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.mock-bar a { color: #fff; }
.mock-bar a[aria-current] { font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .ev-row { grid-template-columns: 1fr 52px; gap: 6px 14px; }
  .ev-row .when { grid-column: 1; }
  .ev-row .what { grid-column: 1; }
  .ev-row img { grid-row: 1 / span 2; grid-column: 2; width: 48px; }
  .card { grid-template-columns: 8px 60px minmax(0, 1fr); gap: 14px; padding: 16px 16px 16px 0; }
  .card .venue { display: none; }
  .card .btn { grid-column: 3; justify-self: start; }
  .card .date .d { font-size: 32px; }
}

/* Dot icons (js/dots.js). SVG has padding around the shape for the scatter. */
.dots { display: flex; justify-content: center; align-items: center; }
.dots svg { width: 100%; height: auto; overflow: visible; }
.dots circle { transform-box: fill-box; }
.dot-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 300px); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 640px) { .dot-feature { grid-template-columns: 1fr; } .dot-feature .dots { max-width: 200px; margin: 0 auto; } }

/* Collective footer: three storefronts, addresses, corner map (from Suyoung's deck) */
.collective-foot { border-top: 1px solid rgba(0,0,0,.15); padding: 64px 0 48px; font-size: 15px; }
.collective-foot .wrap { display: flex; flex-direction: column; gap: 44px; }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.store { display: flex; flex-direction: column; gap: 16px; }
.store p { margin: 0; line-height: 1.6; }
.store img { height: 64px; width: auto; max-width: 100%; align-self: flex-start; }
.store .eyebrow { display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 12px; letter-spacing: 0; }
.store a { text-decoration: none; }
.store a:hover { text-decoration: underline; }
.map { width: 100%; max-width: 760px; height: auto; background: #FFFFFF; border: 1px solid rgba(0,0,0,.6); color: var(--ink); }
.map .lot { fill: var(--map, var(--bh-taupe)); }
.map .road path { stroke: var(--map, var(--bh-taupe)); fill: none; }
.map .lbl { font: 12px var(--font); fill: var(--ink); }
.map .pin circle { fill: var(--ink); }
.map .pin text { font: 500 11px var(--font); fill: #FFFFFF; text-anchor: middle; }
.collective-foot .fine { margin: 0; font-size: 13px; color: var(--muted); }
.site-hw { --map: var(--hw-rose); }

/* Photos shown at their native 3:2 frame so nobody gets cropped out */
.photo-native { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

@media (max-width: 640px) { .card .stripe { grid-row: 1 / span 2; } .card .date { grid-row: 1 / span 2; align-self: start; padding-top: 4px; } }
