/* Manchester Tonight. Printed gig-guide feel: warm black, paper text, one streetlight accent. */

/* Archivo (SIL Open Font License), served from this site so no visitor data goes to a font CDN. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #0f0d0b;
  --ink-2: #181512;
  --ink-3: #221e1a;
  --line: #2f2923;
  --line-strong: #4a4037;
  --paper: #efe6d8;
  --muted: #a99d8e;
  --faint: #776d61;
  --sodium: #ff7a1a;
  --sodium-soft: #ffa55c;
  --max: 1080px;
  --read: 720px;
  --gutter: 16px;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ink);
  /* Fine grain so the black reads as print rather than a flat screen. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--sodium); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--sodium); color: var(--ink); padding: 8px 12px; z-index: 20; }

/* Display type: narrow, heavy, poster-like. Used for headings only. */
.display, h1, .day-name, .nl-title, .wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 62;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15, 13, 11, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 6px; font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0; white-space: nowrap; line-height: 1; }
.logo:hover { color: var(--paper); }
.logo i { font-style: normal; color: var(--sodium); }
.nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; white-space: nowrap; padding: 16px 0 14px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--sodium); }
@media (max-width: 860px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding-top: 12px; }
  .nav { gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav a { padding: 12px 0 10px; }
}

main { padding-bottom: 72px; }
main p { max-width: 62ch; }

/* Masthead strip: the newspaper dateline */
.dateline { max-width: none !important; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; border-bottom: 1px solid var(--line); padding: 14px 0 12px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.dateline strong { color: var(--paper); font-weight: 600; }

/* Page heads */
.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(3.2rem, 15vw, 8.5rem); margin: 0; }
.page-head h1 em { font-style: normal; color: var(--sodium); display: block; }
.page-head .lede { margin: 20px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.crumbs { font-size: 0.82rem; color: var(--faint); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }

h2.section { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 56px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }

/* Filters: two big poster headings, WHERE and WHAT, with their options underneath */
.filters { display: grid; gap: 32px; padding: 36px 0 12px; }
@media (min-width: 720px) { .filters { grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; } }
.seg { display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 20px; }
.seg-label {
  flex-basis: 100%; margin-bottom: 10px;
  font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.4rem, 14vw, 6.5rem); line-height: 0.82; letter-spacing: -0.01em; color: var(--paper);
}
.seg button {
  appearance: none; background: none; border: 0; color: var(--muted); font: inherit; font-size: 1rem;
  padding: 10px 0; min-height: 44px; cursor: pointer; white-space: nowrap; position: relative;
}
.seg button:hover { color: var(--paper); }
.seg button[aria-pressed="true"] { color: var(--paper); font-weight: 600; }
.seg button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--sodium); }

/* Days */
.days { display: flex; flex-direction: column; }
.day { padding-top: 40px; }
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.day-name { margin: 0; font-size: clamp(2.4rem, 10vw, 3.6rem); }
.day-side { text-align: right; font-size: 0.82rem; color: var(--muted); line-height: 1.3; padding-bottom: 4px; }
.day-side b { display: block; color: var(--paper); font-weight: 600; font-size: 0.95rem; }
.day.is-tonight .day-name { font-size: clamp(5rem, 26vw, 11rem); color: var(--sodium); line-height: 0.8; }
.day.is-tonight .day-head { border-bottom-color: var(--sodium); }
.day.is-past { opacity: 0.45; }
.day-empty { color: var(--faint); font-size: 0.95rem; margin: 16px 0 0; }

/* Listing rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 76px 1fr; gap: 0 16px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.row[hidden], [data-off] { display: none !important; }
.row-time { font-variation-settings: "wdth" 75; font-weight: 700; font-size: 1.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.row-time small { display: block; font-variation-settings: "wdth" 100; font-weight: 400; font-size: 0.74rem; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.row-time.tbc { color: var(--muted); }
.row-title { margin: 0; font-size: 1.15rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.row-title a { text-decoration: none; }
.row-title a::after { content: " →"; color: var(--sodium); opacity: 0; transition: opacity 0.15s; }
.row-title a:hover::after { opacity: 1; }
.row-meta { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.row-type { color: var(--paper); }
.row-rule { margin: 6px 0 0; font-size: 0.86rem; color: var(--sodium-soft); }
.row-note { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); max-width: 54ch; }
.row-source { margin: 8px 0 0; font-size: 0.78rem; color: var(--faint); }
.row-source a { color: var(--faint); }
.row-flag { display: inline-block; margin: 0 0 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--sodium); padding: 2px 6px; }
.row.sponsored { background: linear-gradient(90deg, rgba(255, 122, 26, 0.07), transparent 70%); }
@media (min-width: 720px) {
  .row { grid-template-columns: 120px 1fr; padding: 22px 0 24px; }
  .row-time { font-size: 1.6rem; }
  .row-title { font-size: 1.3rem; }
}

/* Indexes: ruled link lists with counts */
.index { list-style: none; margin: 0; padding: 0; }
.index a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index .ix-name { font-variation-settings: "wdth" 75; font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: -0.005em; }
.index .ix-meta { color: var(--muted); font-size: 0.88rem; text-align: right; }
.index a:hover .ix-name { color: var(--sodium); }
@media (min-width: 720px) { .index.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Venue facts */
.facts { margin: 24px 0 0; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 0.88rem; }
.facts dd { margin: 0; }

.btn { display: inline-block; background: var(--sodium); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; padding: 14px 22px; border: 0; border-radius: 2px; cursor: pointer; }
.btn:hover { background: var(--sodium-soft); color: var(--ink); }
.small { font-size: 0.88rem; }
.muted { color: var(--muted); }
.aside-note { margin-top: 40px; color: var(--muted); font-size: 0.92rem; }

/* Newsletter: the one full-colour band */
.newsletter { background: var(--sodium); color: var(--ink); }
.newsletter .wrap { display: grid; gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.nl-title { margin: 0; font-size: clamp(2.6rem, 11vw, 5.5rem); }
.newsletter p { margin: 0; max-width: 44ch; font-size: 1.02rem; color: #2a1606; }
.newsletter .btn { background: var(--ink); color: var(--paper); justify-self: start; }
.newsletter .btn:hover { background: #2a221b; color: var(--paper); }
.newsletter a:hover { color: inherit; }
@media (min-width: 860px) {
  .newsletter .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 48px; }
  .nl-copy { display: grid; gap: 20px; }
}

/* Footer */
.site-footer { padding: 48px 0 24px; color: var(--muted); font-size: 0.92rem; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-grid h2 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 12px; }
.foot-grid h2 a { text-decoration: none; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--muted); }
.foot-grid a:hover { color: var(--paper); }
.foot-legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.82rem; color: var(--faint); }
.foot-legal p { margin: 0; max-width: 70ch; }
.foot-legal .drink { color: var(--paper); font-size: 0.92rem; }
.foot-legal .drink a { color: var(--sodium); }
.wordmark { display: block; margin: 40px 0 0; font-size: min(calc((100vw - var(--gutter) * 2) / 8.3), 122px); line-height: 0.78; color: var(--ink-3); white-space: nowrap; user-select: none; }

@media (prefers-reduced-motion: no-preference) {
  .day { animation: rise 0.5s ease-out both; }
  .day:nth-child(2) { animation-delay: 0.05s; }
  .day:nth-child(3) { animation-delay: 0.1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* Tonight's heading is too wide to share a line, so its date line sits underneath. */
.day-side { white-space: nowrap; }
.day.is-tonight .day-head { flex-direction: column; align-items: flex-start; gap: 10px; }
.day.is-tonight .day-side { text-align: left; display: flex; gap: 12px; align-items: baseline; }
.day.is-tonight .day-side b { display: inline; color: var(--sodium); }
.newsletter .nl-small { font-size: 0.85rem; color: #3a2210; }
.newsletter .nl-small a { color: inherit; text-decoration-color: currentColor; }

/* Seasonal banner on the home page */
.season-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.season-banner[hidden] { display: none; }
.season-banner .sb-name { font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 0.9; color: var(--sodium); }
.season-banner .sb-meta { color: var(--paper); font-size: 1rem; }
.season-banner .sb-arrow { margin-left: auto; color: var(--sodium); font-size: 1.4rem; }
.season-banner:hover .sb-meta { color: var(--sodium); }
