/* Bring a Bite: one stylesheet for every page. Victorian pub glass and gold-leaf signwriting, made modern. One dark world, chosen on purpose. */
:root {
  --bg: #0b1d18;
  --bg-deep: #07140f;
  --panel: rgba(240, 232, 214, 0.035);
  --panel-hi: rgba(240, 232, 214, 0.07);
  --line: rgba(214, 178, 104, 0.17);
  --line-hi: rgba(214, 178, 104, 0.55);
  --ivory: #efe8d8;
  --mist: #a4b8ad;
  --dim: #7a9186;
  --gold: #d6b268;
  --gold-hi: #f3dea4;
  --gold-lo: #a9803a;
  --copper: #dc9670;
  --on-gold: #1b1508;
  --land: rgba(239, 232, 216, 0.045);
  --land-line: rgba(214, 178, 104, 0.22);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(214, 178, 104, 0.16), transparent 62%),
    radial-gradient(900px 700px at -10% 40%, rgba(32, 84, 66, 0.35), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ivory);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page { max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); padding-block: 0 64px; }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mono-mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center;
  font: italic 500 22px/1 var(--display); color: var(--gold); padding-bottom: 3px; background: radial-gradient(circle at 35% 30%, rgba(243,222,164,.18), transparent 60%); }
.brand-name { font: 500 15px/1.1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brand-name small { display: block; font: 400 11px/1.4 var(--mono); letter-spacing: .16em; color: var(--dim); }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--mist); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--gold-hi); }
@media (max-width: 640px) { .nav { display: none; } }

/* hero */
.hero { padding-block: clamp(40px, 8vw, 96px) 36px; display: grid; gap: 26px; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 0L64 32L32 64L0 32Z' fill='none' stroke='%23d6b268' stroke-opacity='.07'/%3E%3Ccircle cx='32' cy='32' r='3' fill='none' stroke='%23d6b268' stroke-opacity='.08'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 20%, transparent 70%); }
.kicker { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: flex; gap: 14px; flex-wrap: wrap; }
.kicker span + span::before { content: "·"; margin-right: 14px; color: var(--dim); }
@media (max-width: 560px) { .kicker { gap: 8px 16px; } .kicker span + span::before { display: none; } }
h1 { margin: 0; font: 400 clamp(46px, 8.6vw, 112px)/.92 var(--display); letter-spacing: -.015em; text-wrap: balance; max-width: 16ch; }
h1 em { font-style: italic; display: block;
  background: linear-gradient(176deg, var(--gold-hi) 8%, var(--gold) 46%, var(--gold-lo) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lede { margin: 0; max-width: 56ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--mist); }

.search { position: relative; max-width: 760px; }
.search svg { position: absolute; z-index: 1; left: 22px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--gold); pointer-events: none; }
.search input { width: 100%; height: 66px; border-radius: 999px; border: 1px solid var(--line-hi); background: rgba(7, 20, 15, .6);
  color: var(--ivory); font: 400 18px var(--sans); padding: 0 120px 0 56px; outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 50px -20px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214,178,104,.16), 0 18px 50px -20px rgba(0,0,0,.6); }
.search .count { position: absolute; right: 22px; top: 50%; translate: 0 -50%; font: 400 12px var(--mono); letter-spacing: .08em; color: var(--mist); white-space: nowrap; }
@media (max-width: 520px) { .search input { padding-right: 22px; height: 58px; font-size: 16px; } .search .count { display: none; } }

.filters { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-label { font: 400 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); width: 74px; flex: none; }
@media (max-width: 640px) { .row-label { width: 100%; } }
.chip { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--ivory); font: 500 14px/1 var(--sans);
  padding: 10px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--line-hi); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip .n { font: 400 11px var(--mono); opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.confirmed { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dot.reported { background: var(--copper); }
.dot.ask { border: 1.5px solid var(--mist); }
.chip[aria-pressed="true"] .dot.confirmed { background: var(--on-gold); box-shadow: none; }
.chip[aria-pressed="true"] .dot.reported { background: var(--on-gold); }
.chip[aria-pressed="true"] .dot.ask { border-color: var(--on-gold); }
select { appearance: none; border: 1px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d6b268' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ivory); font: 500 14px var(--sans); padding: 10px 38px 10px 14px; border-radius: 999px; cursor: pointer; }
select option { background: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; } }
.summary { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.summary b { color: var(--gold); font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; display: grid; gap: 10px; min-width: 0;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel)); transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.card:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 24px 60px -30px rgba(214,178,104,.45); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.badge { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.badge.confirmed { background: linear-gradient(176deg, var(--gold-hi), var(--gold)); color: var(--on-gold); }
.badge.reported { border: 1px solid var(--copper); color: var(--copper); }
.badge.ask { border: 1px solid rgba(164,184,173,.45); color: var(--mist); }
.dist { font: 400 12px var(--mono); color: var(--gold); letter-spacing: .06em; }
.card h3 { margin: 0; font: 500 clamp(24px, 2.4vw, 30px)/1.05 var(--display); letter-spacing: -.005em; }
.where { margin: 0; font-size: 14px; color: var(--mist); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.where .pc { font: 400 13px var(--mono); color: var(--ivory); letter-spacing: .04em; }
.allowed { margin: 0; font-size: 17px; }
.card blockquote { margin: 2px 0 0; padding: 2px 0 2px 16px; border-left: 1px solid var(--gold); font: italic 400 17px/1.45 var(--display); color: var(--ivory); opacity: .88; }
.kitchen { margin: 0; font: 400 12px var(--mono); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.note { margin: 0; font-size: 14px; color: var(--copper); }
.hint { margin: 0; font-size: 14px; color: var(--mist); font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; font-size: 13.5px; }
.actions a { text-decoration: none; color: var(--gold); border-bottom: 1px solid transparent; }
.actions a:hover { border-bottom-color: var(--gold); }
.actions .src-date { color: var(--dim); }
.actions .src-plain { color: var(--mist); }
.card.ask { padding-block: 16px 14px; gap: 6px; }
.card.ask h3 { font-size: 22px; }
.empty { border: 1px dashed var(--line-hi); border-radius: 18px; padding: 32px 22px; text-align: center; color: var(--mist); }
.empty b { display: block; font: italic 400 26px var(--display); color: var(--ivory); margin-bottom: 6px; }

/* map */
.mapcard { position: sticky; top: max(16px, env(safe-area-inset-top, 0px)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, rgba(20, 52, 42, .9), var(--bg-deep)); display: grid; grid-template-rows: auto 1fr auto; height: min(780px, calc(100vh - 32px)); }
@media (max-width: 999px) { .mapcard { position: relative; top: 0; height: auto; } .mapcard svg { aspect-ratio: 1 / 0.9; height: auto; } }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.map-title { font: italic 400 22px var(--display); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--mist); font: 500 12.5px var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
#mapsvg { display: block; width: 100%; height: 100%; min-height: 0; }
.land { fill: var(--land); stroke: var(--land-line); stroke-width: .7; vector-effect: non-scaling-stroke; }
.dlabel { font-family: var(--mono); fill: rgba(239,232,216,.32); text-anchor: middle; letter-spacing: .05em; pointer-events: none; }
.pin { cursor: pointer; }
.pin circle.core { stroke: var(--bg-deep); vector-effect: non-scaling-stroke; stroke-width: 1.5; transition: r .2s; }
.pin.confirmed circle.core { fill: var(--gold); }
.pin.reported circle.core { fill: var(--copper); }
.pin.ask circle.core { fill: var(--bg-deep); stroke: var(--mist); stroke-width: 1.4; }
.pin circle.halo { fill: var(--gold); opacity: 0; transition: opacity .2s; }
.pin.confirmed circle.halo { opacity: .18; }
.pin.off { opacity: .14; pointer-events: none; }
.pin.on circle.halo { opacity: .42; fill: var(--gold-hi); }
.pin text { font-family: var(--sans); font-weight: 600; fill: var(--ivory); paint-order: stroke; stroke: var(--bg-deep); stroke-linejoin: round; pointer-events: none; opacity: 0; }
.pin.on text, .pin:hover text, .pin:focus text { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pin.confirmed circle.halo { animation: breathe 3.6s ease-in-out infinite; }
  @keyframes breathe { 50% { opacity: .32; } }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--mist); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

/* how */
.how { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.how h2 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1 var(--display); }
.how h2 em { color: var(--gold); }
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 10px; background: var(--panel); align-content: start; }
.tier p { margin: 0; color: var(--mist); font-size: 15px; }
.tier .badge { justify-self: start; }
.fine { display: grid; gap: 10px; max-width: 75ch; color: var(--dim); font-size: 14px; }
.fine p { margin: 0; }
.fine a { color: var(--mist); }
footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font: 400 12px var(--mono); color: var(--dim); letter-spacing: .06em; }

/* home: the towns */
.sect { display: grid; gap: 24px; }
.sect h2 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1 var(--display); }
.sect h2 em { color: var(--gold); }
.towns { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.town { text-decoration: none; border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; display: grid; gap: 14px; align-content: start;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel)); transition: border-color .2s, transform .2s, box-shadow .2s; }
a.town:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 24px 60px -30px rgba(214,178,104,.45); }
.town .place { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.town h3 { margin: 0; font: 400 clamp(38px, 4.6vw, 56px)/.95 var(--display); letter-spacing: -.01em; }
.town .counts { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 400 12px var(--mono); letter-spacing: .06em; color: var(--mist); }
.town .counts span { display: inline-flex; gap: 8px; align-items: center; }
.town .when { margin: 0; font: 400 12px var(--mono); letter-spacing: .06em; color: var(--dim); }
.town .go { color: var(--gold); font-weight: 500; }
.town.soon { border-style: dashed; background: none; }
.town.soon h3 { color: var(--mist); font-style: italic; }
.town.soon p:not(.place) { margin: 0; color: var(--mist); font-size: 15px; }
.town.soon a { color: var(--gold); }

/* town: the results heading, and every pub as plain text */
.find-h { margin: 0 0 6px; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--display); }
.every { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.every h2 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1 var(--display); }
.every h2 em { color: var(--gold); }
.every-lede { margin: 0; color: var(--mist); max-width: 60ch; }
.areas { display: grid; gap: 22px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.area h3 { margin: 0 0 10px; font: 400 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.area li { display: grid; grid-template-columns: 12px 1fr; gap: 0 10px; align-items: baseline; font-size: 15px; }
.area li .dot { translate: 0 -1px; }
.area li span.where-mini { grid-column: 2; font-size: 13px; color: var(--dim); }
.area li b { font-weight: 500; }

/* run a pub? */
.addpub { margin-top: 64px; border: 1px solid var(--line-hi); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; justify-items: start;
  background: radial-gradient(120% 140% at 0% 0%, rgba(214,178,104,.12), transparent 60%), var(--panel); }
.addpub .place { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.addpub h2 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1 var(--display); }
.addpub h2 em { color: var(--gold); }
.addpub p { margin: 0; max-width: 62ch; color: var(--mist); }
.addpub .small { font-size: 13.5px; color: var(--dim); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--sans);
  background: linear-gradient(176deg, var(--gold-hi), var(--gold)); color: var(--on-gold); box-shadow: 0 14px 40px -18px rgba(214,178,104,.7); }
.btn:hover { filter: brightness(1.06); }
.btn::after { content: "→"; }

footer a { color: var(--mist); }
footer a:hover { color: var(--gold-hi); }

/* privacy */
.prose { max-width: 72ch; padding-block: clamp(36px, 7vw, 80px) 0; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(44px, 7vw, 88px); margin-bottom: 12px; }
.prose h2 { margin: 26px 0 0; font: 400 clamp(26px, 3vw, 34px)/1.1 var(--display); }
.prose p { margin: 0; color: var(--mist); }
.prose b { color: var(--ivory); font-weight: 500; }
.prose a { color: var(--gold); }
.prose code { font: 400 .9em var(--mono); color: var(--ivory); }

/* cookie consent: both buttons alike, because refusing has to be as easy as agreeing */
.consent { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: 12px clamp(12px, 3vw, 24px) max(12px, env(safe-area-inset-bottom)); }
.consent__in { max-width: 1100px; margin: 0 auto; display: flex; gap: 14px 24px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line-hi); border-radius: 18px; padding: 16px 18px; background: rgba(7, 20, 15, .96); backdrop-filter: blur(8px);
  box-shadow: 0 -10px 50px -20px rgba(0,0,0,.8); }
.consent__text { margin: 0; font-size: 14.5px; color: var(--mist); max-width: 70ch; }
.consent__text strong { color: var(--ivory); font-weight: 600; }
.consent__text a { color: var(--gold); }
.consent__actions { display: flex; gap: 10px; flex: none; }
.consent__btn { appearance: none; border: 1px solid var(--line-hi); background: var(--panel-hi); color: var(--ivory); font: 600 14px/1 var(--sans);
  padding: 12px 18px; border-radius: 999px; cursor: pointer; min-width: 112px; }
.consent__btn:hover { border-color: var(--gold); color: var(--gold-hi); }
@media (max-width: 720px) { .consent__in { flex-direction: column; align-items: stretch; } .consent__btn { flex: 1; } }
