:root { --bg: #fff8ec; --ink: #1b1b1b; --muted: #6b6457; --card: #fff; --line: #1b1b1b; --accent: #ff4d2e; --food: #ffcf3f; --drink: #7fd6ff; --club: #c79bff; --event: #8ef0a7; --other: #e5ddd0; }
@media (prefers-color-scheme: dark) { :root { --bg: #15130f; --ink: #f5efe3; --muted: #a59d8e; --card: #201d18; --line: #f5efe3; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font: 700 clamp(44px, 11vw, 88px)/0.9 "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 0; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
.sub { color: var(--muted); margin: 12px 0 32px; }
main.home { max-width: 1120px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.col-title { font: 700 36px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.col-title::after { content: ""; flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.deal { background: var(--card); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 4px 4px 0 var(--line); display: flex; flex-direction: column; }
.pic { position: relative; aspect-ratio: 16 / 9; background: var(--cat); display: grid; place-items: center; font-size: 64px; border-bottom: 2px solid var(--line); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rank { position: absolute; top: 10px; left: 10px; z-index: 1; font: 700 22px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 99px; min-width: 42px; padding: 8px 10px; text-align: center; }
.body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.tag { justify-self: start; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 10px; border-radius: 99px; border: 1.5px solid #1b1b1b; color: #1b1b1b; }
h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.25; }
.venue { color: var(--muted); }
.price { font-weight: 600; font-size: 18px; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.why { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.links a, .links button { font: 600 13px "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 12px; background: none; cursor: pointer; }
.links a.main { background: var(--accent); border-color: var(--accent); color: #fff; }
footer { margin-top: 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
footer a, .guide a { color: var(--ink); }
.guide h2 { font: 700 28px/1.1 "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 32px 0 12px; }
.guide ul { padding-left: 20px; }
.guide li { display: list-item; background: none; border: 0; box-shadow: none; padding: 2px 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.meta { color: var(--muted); }
.article p { font-size: 17px; }
.pic:not(:has(img)) { aspect-ratio: auto; height: 96px; font-size: 44px; }
.hero-img { margin: 20px 0; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 2px solid var(--line); border-radius: 14px; display: block; }
.hero-img figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.guide ul.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.guide ul.cards li { padding: 0; }
.cards a { display: grid; gap: 4px; text-decoration: none; }
.thumb { margin: 0; }
.thumb img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 2px solid var(--line); border-radius: 10px; display: block; }
.badge { position: absolute; top: 10px; right: 10px; z-index: 1; font: 700 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--accent); color: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 8px 12px; }
.credit { font-size: 12px; color: var(--muted); }
.step, #results { animation: rise .35s ease-out both; }
.q { font: 700 clamp(30px, 6vw, 48px)/1 "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 0 0 20px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.opts a { display: grid; gap: 2px; padding: 20px; background: var(--c); color: #1b1b1b; text-decoration: none; border: 2px solid var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; animation: rise .4s ease-out both; }
.opts a:nth-child(2) { animation-delay: .06s; } .opts a:nth-child(3) { animation-delay: .12s; } .opts a:nth-child(4) { animation-delay: .18s; }
.opts a:hover, .opts a:focus-visible { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 8px 8px 0 var(--line); }
.opts a:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--line); }
.opts span { font-size: 48px; line-height: 1.1; transition: transform .2s; }
.opts a:hover span { transform: scale(1.2) rotate(-8deg); }
.opts b { font: 700 24px/1.1 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.skip { display: inline-block; margin-top: 20px; color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
#summary { font: 700 clamp(22px, 4vw, 30px)/1.1 "Helvetica Neue", Helvetica, Arial, sans-serif; margin-right: auto; }
.chips a { font: 600 14px "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); text-decoration: none; border: 2px solid var(--line); border-radius: 99px; padding: 6px 14px; background: var(--card); }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid .deal { animation: rise .4s ease-out both; animation-delay: calc(var(--i) * 60ms); }
.empty { padding: 24px; border: 2px dashed var(--line); border-radius: 14px; }
.empty a { color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* A little Bristol character: soft colour, ticket edges and restrained motion. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
body {
  background-image: radial-gradient(circle at 10% 0%, #ffcf3f12, transparent 34rem), radial-gradient(circle at 95% 28rem, #c79bff12, transparent 32rem);
}
main.home > h1 { position: relative; isolation: isolate; width: fit-content; padding-right: 52px; }
main.home > h1::after {
  content: ""; position: absolute; right: 0; top: 12px; width: 30px; height: 30px;
  background: var(--food); border: 2px solid var(--line); border-radius: 7px;
  box-shadow: 3px 3px 0 var(--line); transform: rotate(12deg);
  animation: hello-stamp 3.8s var(--ease-out) both;
}
main.home > h1 span { position: relative; display: inline-block; }
main.home > h1 span::after {
  content: ""; position: absolute; left: 2px; right: 0; bottom: -8px; height: 5px;
  background: var(--accent); border-radius: 100%; opacity: .38; transform: rotate(-2deg);
  transform-origin: left; animation: draw-line .8s .15s var(--ease-out) both;
}
main.home > .sub { max-width: 720px; margin-top: 24px; }
.pic { overflow: hidden; }
.pic img { transition: transform .65s var(--ease-out); }
.deal { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
/* Individual translate keeps the entrance animation and hover independent. */
.grid .deal { transition: translate .3s var(--ease-out), box-shadow .3s var(--ease-out); animation-delay: min(calc(var(--i, 0) * 45ms), 270ms); }
.body { position: relative; }
.body::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0;
  border-top: 1px dashed var(--muted); opacity: .22;
}
.opts a { position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.opts a::after {
  content: ""; position: absolute; width: 92px; height: 92px; right: -32px; bottom: -44px;
  border: 1px solid #1b1b1b24; border-radius: 50%; box-shadow: 0 0 0 12px #ffffff14;
  pointer-events: none; transition: transform .6s var(--ease-out);
}
.opts span { transition: transform .4s var(--ease-out); }
.links a, .links button, .chips a {
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background-color .22s ease;
}
.skip, footer a, .crumbs a { text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s ease, text-underline-offset .2s ease; }
.cards a { padding: 9px; border: 1px solid transparent; border-radius: 14px; transition: background-color .25s ease, border-color .25s ease, transform .3s var(--ease-out); }
.thumb img { transition: box-shadow .3s var(--ease-out); }
footer { padding-top: 22px; border-top: 1px dashed var(--muted); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.deal:focus-within { box-shadow: 6px 6px 0 var(--line); }
@media (hover: hover) and (pointer: fine) {
  .grid .deal:hover { translate: 0 -3px; box-shadow: 6px 7px 0 var(--line); }
  .deal:hover .pic img { transform: scale(1.025); }
  .opts a:hover { transform: translateY(-3px); box-shadow: 5px 8px 0 var(--line); }
  .opts a:hover span { transform: translateY(-2px) rotate(-4deg) scale(1.04); }
  .opts a:hover::after { transform: translate(-6px, -6px); }
  .links a:hover, .links button:hover, .chips a:hover { transform: translateY(-2px); box-shadow: 2px 3px 0 var(--line); }
  .cards a:hover { background: var(--card); border-color: var(--muted); transform: translateY(-2px); }
  .cards a:hover .thumb img { box-shadow: 3px 3px 0 var(--line); }
  .skip:hover, footer a:hover, .crumbs a:hover { color: var(--accent); text-underline-offset: 6px; }
}
.links a:active, .links button:active, .chips a:active, .opts a:active { transform: translateY(1px); box-shadow: none; }
@keyframes draw-line { from { transform: scaleX(0) rotate(-2deg); } to { transform: scaleX(1) rotate(-2deg); } }
@keyframes hello-stamp {
  0% { opacity: 0; transform: translateY(8px) rotate(4deg); }
  25% { opacity: 1; transform: translateY(-2px) rotate(15deg); }
  60% { transform: translateY(1px) rotate(9deg); }
  100% { opacity: 1; transform: translateY(0) rotate(12deg); }
}
@media (max-width: 600px) { main.home > h1::after { width: 23px; height: 23px; top: 5px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .grid .deal:hover, .opts a:hover, .opts a:hover span, .deal:hover .pic img, .cards a:hover,
  .links a:hover, .links button:hover, .chips a:hover { transform: none; translate: none; }
}

/* Nightlife editorial guide: useful navigation above the directory. */
[hidden] { display: none !important; }
main.guide { max-width: 1120px; }
.guide-hero { position:relative; padding:35px 0 28px; max-width:900px; }
.editor-label,.topic-kind,.section-title>span { display:block; text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:600; margin-bottom:18px; }
.editor-label { color:var(--muted); }
.lead { font-size:clamp(19px,3vw,25px); line-height:1.45; max-width:780px; }
.guide-nav { display:flex; gap:10px; flex-wrap:wrap; margin:26px 0; }
.guide-nav a { border:1.5px solid var(--line); border-radius:99px; padding:9px 15px; text-decoration:none; color:var(--ink); font-size:14px; }
.guide-nav a:first-child { background:var(--club); color:#1b1b1b; }
.section-title { margin:45px 0 22px; padding-top:20px; border-top:2px solid var(--line); }
.guide .section-title h2 { margin:0; font-size:clamp(27px,4vw,40px); }
.topic-grid,.source-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.topic-card,.source-card { display:flex; flex-direction:column; padding:22px; background:var(--card); border:1.5px solid var(--line); border-radius:14px; box-shadow:3px 3px 0 var(--line); }
.topic-card { color:var(--ink); text-decoration:none; transition:translate .25s var(--ease-out),box-shadow .25s var(--ease-out); }
.topic-card:nth-child(3n+1) { border-top:7px solid var(--club); }
.topic-card:nth-child(3n+2) { border-top:7px solid var(--drink); }
.topic-card:nth-child(3n) { border-top:7px solid var(--food); }
.topic-card h3 { font:700 23px/1.15 "Helvetica Neue", Helvetica, Arial, sans-serif; margin:0; }
.topic-card p,.source-card p { color:var(--muted); font-size:14px; line-height:1.7; }
.topic-arrow { margin-top:auto; font-size:25px; align-self:end; }
.editor-note { background:var(--card); border-left:5px solid var(--club); padding:22px 26px; margin:35px 0; border-radius:0 12px 12px 0; }
.editor-note p { color:var(--muted); max-width:850px; }
.guide .editor-note h2 { margin-top:0; }
.directory-search { display:grid; gap:8px; max-width:650px; font-size:14px; font-weight:600; margin:25px 0 10px; }
.directory-search input { font:inherit; color:var(--ink); background:var(--card); border:2px solid var(--line); border-radius:10px; padding:15px; width:100%; }
.guide .article-title { font-size:clamp(36px,7vw,70px); line-height:1.05; max-width:920px; overflow-wrap:anywhere; }
.guide .article { max-width:780px; }
.guide .article p { line-height:1.85; }
.source-card .topic-kind { color:var(--muted); }
.guide .source-card h2 { margin:0; font-size:25px; }
.source-card a { margin-top:auto; text-underline-offset:4px; font-weight:600; }
.source-links { display:grid; gap:10px; }
@media(hover:hover) and (pointer:fine) { .topic-card:hover { translate:0 -3px; box-shadow:4px 6px 0 var(--line); } }
@media(max-width:900px) { .topic-grid,.source-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:550px) { .topic-grid,.source-grid { grid-template-columns:1fr; } .guide-nav { display:grid; } .guide-hero { padding-top:15px; } }
@media(prefers-reduced-motion:reduce) { .topic-card:hover { translate:none; } }

/* Clean Helvetica-style typography throughout. */
h1 { font-weight:700; line-height:.98; letter-spacing:-.045em; }
h2,h3,.q,.col-title,#summary { letter-spacing:-.025em; }
.guide .article-title { font-weight:700; letter-spacing:-.035em; }
.opts b { font-weight:700; letter-spacing:-.025em; }
.topic-card h3 { font-weight:700; line-height:1.18; }
.rank,.badge { font-weight:700; letter-spacing:-.02em; }

/* Keep the homepage bright, including when the device uses dark mode. */
body.home-theme {
  color-scheme: light;
  --bg: #fffcf5;
  --ink: #252621;
  --muted: #65665e;
  --card: #ffffff;
  --line: #41443b;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 5% 0%, #fff1c8, transparent 35rem), radial-gradient(circle at 100% 35rem, #edf5ff, transparent 35rem);
}
.home-theme .deal { border-color: #d9ddd3; box-shadow: 0 5px 18px #25321b0a; }
.home-theme .deal:focus-within { border-color: var(--line); box-shadow: 0 8px 24px #25321b15; }
.home-theme .pic { border-bottom-color: #d9ddd3; }
.home-theme .guide-nav a { background: #ffffffb8; border-color: #d9ddd3; }
.home-theme .guide-nav a:first-child { background: #eee2ff; border-color: #d5b8f4; }
.home-theme footer { border-top-color: #d9ddd3; }
@media (hover: hover) and (pointer: fine) {
  .home-theme .grid .deal:hover { box-shadow: 0 10px 26px #25321b16; }
}
