/* Revolver guest directory — styling lifted from revolverhotel.co.uk.
 *
 * The website is black, white and one red; Bahnschrift everywhere, with
 * wide-tracked uppercase headings, 3px red rules and square-cornered buttons.
 * Tokens below are the values measured off the live site (2026-10-22):
 *   background #000, text #fff, red #B43A44 (buttons, dividers, red bands),
 *   headings Bahnschrift 600 with 3–6px letter-spacing, body Bahnschrift 300.
 *
 * Mobile first: a guest reads this on a phone they've just scanned a QR
 * code with, one-handed, possibly on venue Wi-Fi. Tap targets are >=44px,
 * there are no hover-only affordances, and the font ships with the page
 * rather than from a third party.
 */

@font-face {
  font-family: "Bahnschrift";
  src: local("Bahnschrift"), url("/fonts/Bahnschrift.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg:          #000000;
  --panel:       #101010;
  --panel-2:     #181818;
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text:        #ffffff;
  --muted:       #b3b3b3;
  --dim:         #808285;
  --red:         #b43a44;
  --red-hover:   #c9434e;
  --red-ink:     #ff5a66;
  --font:        "Bahnschrift", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --track-wide:  0.28em;
  --track:       0.12em;
  --radius:      3px;
  --max:         760px;
  --gutter:      18px;
  --topbar-h:    60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }

/* ------------------------------------------------------------------ */
/* Top bar                                                            */
/* ------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; height: 44px; }
.brand-logo { height: 26px; width: auto; }
.topbar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Page scaffolding                                                   */
/* ------------------------------------------------------------------ */
.page { min-height: 60vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.loading { padding: 80px var(--gutter); text-align: center; color: var(--muted); }
.loading-bar {
  width: 56px; height: 3px; margin: 0 auto 18px; background: var(--red);
  animation: pulse 1.1s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.35; transform: scaleX(0.6); } to { opacity: 1; transform: scaleX(1); } }

.error {
  margin: 40px auto; max-width: var(--max); padding: 22px var(--gutter);
  border-left: 3px solid var(--red); color: var(--muted);
}
.error a { color: var(--text); }

.noscript { padding: 24px var(--gutter); color: var(--muted); text-align: center; }

/* Section headings — the site's wide-tracked uppercase style with a
   short red rule beneath. */
.section { padding: 34px 0 6px; }
.section-head { margin-bottom: 18px; }
.section-head h2 {
  font-size: 15px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.section-head::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  margin-top: 12px;
  background: var(--red);
}
.section-head p { margin: 10px 0 0; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: var(--panel) center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 26px; }
.kicker {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(34px, 9vw, 54px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .tagline {
  margin: 10px 0 0;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--text);
}
.hero .lede { margin: 12px 0 0; color: var(--muted); max-width: 560px; }
.hero .address { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Location chooser — two squares over the map (Glasgow left,          */
/* Edinburgh right), the first thing a guest sees after scanning        */
/* ------------------------------------------------------------------ */
.chooser {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - env(safe-area-inset-top));
  min-height: calc(100svh - var(--topbar-h) - env(safe-area-inset-top));
  /* Squares sit low so the two pins on the map show just above them. */
  display: flex; align-items: flex-end;
  background: #000 url("/img/map.webp?v=8") center center / cover no-repeat;
  isolation: isolate;
}
.chooser::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.8) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.05) 75%, #000 100%);
}
.chooser-inner { width: 100%; padding-top: 28px; padding-bottom: 44px; text-align: center; }
.chooser h1 {
  font-size: clamp(24px, 6.4vw, 34px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.chooser .tagline {
  margin: 8px 0 26px;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.locations {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  margin: 0; padding: 0; list-style: none;
}
.location-card {
  position: relative;
  display: flex; align-items: flex-end;
  aspect-ratio: 1 / 1;
  min-width: 0; overflow: hidden;
  padding: 12px;
  text-align: left; text-decoration: none;
  background: var(--panel) center / cover no-repeat;
  border: 0;
  isolation: isolate;
  transition: transform 0.15s;
}
.location-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.location-card::after {
  /* the site's 3px red rule, along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red);
}
.location-card:active, .location-card:focus-visible { outline: none; transform: scale(0.985); }
.location-card.is-current::after { background: var(--red-ink); }
.location-card .location-text { display: block; min-width: 0; }
.location-card .name {
  display: block;
  font-size: clamp(15px, 4.6vw, 24px); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.location-card .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; line-height: 1.3; }
.location-card .arrow {
  position: absolute; right: 10px; top: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-size: 18px; line-height: 1;
}
.location-card.is-current .arrow { background: transparent; border: 1px solid var(--red); color: var(--red-ink); }

/* Holding page — same map, centred, nothing to tap but the staff button. */
.chooser.holding { align-items: center; background-image: none; background-color: #000; }
.chooser.holding::before { display: none; }
.chooser.holding .chooser-inner { padding-bottom: 60px; }
.holding-logo { height: 30px; width: auto; margin: 0 auto 26px; }
.holding-sub {
  display: inline-block;
  margin: 18px 0 0;
  padding: 10px 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: #fff;
  background: var(--red);
}
.chooser.holding .tagline { margin-top: 22px; }
.holding-enter { margin-top: 34px; }

/* ------------------------------------------------------------------ */
/* Quick facts                                                        */
/* ------------------------------------------------------------------ */
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.fact {
  padding: 14px 14px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.fact .label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase; color: var(--muted);
}
.fact .value { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.3; }

/* ------------------------------------------------------------------ */
/* "On this page" — a grid of square tiles, no horizontal scrolling      */
/* ------------------------------------------------------------------ */
.contents { padding-top: 22px; }
.contents-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.contents-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px;
  padding: 0 12px 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  line-height: 1.2;
}
.contents-link::after { content: "↓"; color: var(--red-ink); font-weight: 300; font-size: 16px; }
.contents-list > li.is-wide { grid-column: 1 / -1; }
.contents-link:active { background: var(--panel-2); }

/* ------------------------------------------------------------------ */
/* Info items                                                         */
/* ------------------------------------------------------------------ */
.items { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.item {
  padding: 16px 16px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.item h3 { font-size: 16px; letter-spacing: 0.02em; }
.item p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.item .cta { margin-top: 12px; }

/* Promotions — the red band treatment from the site. */
.promos { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.promo {
  padding: 18px 16px 16px;
  background: var(--red);
  color: #fff;
}
.promo .kicker { color: rgba(255,255,255,0.78); margin-bottom: 6px; }
.promo h3 { font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; }
.promo p { margin: 8px 0 0; color: rgba(255,255,255,0.9); font-size: 15.5px; }
.promo .btn { background: #fff; color: #111; margin-top: 14px; }
.promo .btn:active { background: #eee; }

/* FAQ accordion */
.faqs { margin: 0; padding: 0; display: grid; gap: 8px; }
.faq {
  background: var(--panel);
  border: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px;
  padding: 12px 16px;
  font-weight: 600; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--red-ink); font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform 0.18s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 16px 14px; color: var(--muted); font-size: 15.5px; }

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  background: var(--red); color: #fff;
  border: 0; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { background: var(--red-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: #fff; }
.btn-ghost:active { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.btn-row .btn-wide { grid-column: 1 / -1; }

/* Contact */
.contact { padding: 18px 16px; background: var(--panel); border: 1px solid var(--line); }
.contact .addr { margin: 0 0 14px; color: var(--muted); }
.contact .addr strong { color: #fff; font-weight: 600; display: block; }

/* ------------------------------------------------------------------ */
/* App download                                                       */
/* ------------------------------------------------------------------ */
.app-block {
  margin-top: 8px;
  padding: 22px 18px 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.app-block h2 {
  font-size: 15px; letter-spacing: var(--track-wide); text-transform: uppercase;
}
.app-block p { margin: 10px 0 16px; color: var(--muted); font-size: 15.5px; }
.stores { display: grid; gap: 10px; }
.store {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  background: #000; color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
}
.store:active { border-color: #fff; }
.store svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.store .small { display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.1; }
.store .big { display: block; font-size: 18px; font-weight: 600; line-height: 1.15; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.footer { margin-top: 44px; border-top: 3px solid var(--red); background: #000; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 30px; }
.footer-logo { height: 22px; width: auto; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; }
.footer-links a {
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  min-height: 32px; display: inline-flex; align-items: center;
}
.footer-links a:active { color: #fff; }
.footer small { display: block; color: var(--dim); font-size: 12.5px; }

/* ------------------------------------------------------------------ */
/* Wider screens                                                      */
/* ------------------------------------------------------------------ */
@media (min-width: 640px) {
  body { font-size: 17.5px; }
  .brand-logo { height: 30px; }
  .chooser .locations { max-width: 640px; margin: 0 auto; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .contents-list { grid-template-columns: repeat(3, 1fr); }
  .stores { grid-template-columns: 1fr 1fr; }
  .items.two-up { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-bar, .faq summary::after { animation: none; transition: none; }
}
