/* LiveConcertNearMe: indigo ink, spotlight yellow, ticket-stub dates.
   Change the colours and fonts in :root and the whole site follows. */

:root {
    --ink: #15172b;
    --indigo: #1b1f5e;
    --indigo-soft: #2a2f7a;
    --paper: #f6f7fb;
    --white: #ffffff;
    --spot: #ffd23f;
    --rule: #d9dce8;
    --muted: #575c75;
    --on-dark-muted: #d3d6f0;

    --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
    --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 1080px;
    --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.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;
}

:focus-visible {
    outline: 3px solid var(--indigo-soft);
    outline-offset: 2px;
}
.on-dark :focus-visible { outline-color: var(--spot); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 10px 14px;
    background: var(--spot);
    color: var(--ink);
    font-weight: 600;
    border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.on-dark { background: var(--indigo); color: var(--white); }

/* ---------- Header and footer ---------- */

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.site-nav a {
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}
.site-nav a:hover { text-decoration: underline; }

.site-footer { margin-top: 64px; padding: 36px 0 44px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.footer-note { margin-top: 8px; color: var(--on-dark-muted); font-size: 0.9rem; max-width: 60ch; }

/* ---------- Hero ---------- */

.hero { padding: 44px 0 52px; }
.hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 0.95;
    max-width: 12ch;
}
.hero-lead {
    margin-top: 16px;
    max-width: 52ch;
    font-size: 1.1rem;
    color: var(--on-dark-muted);
}

.notice {
    margin-top: 20px;
    padding: 12px 14px;
    max-width: 52ch;
    background: var(--indigo-soft);
    border-left: 4px solid var(--spot);
    border-radius: var(--radius);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
}

.city-form { display: flex; flex-wrap: wrap; gap: 10px; }
.city-form select {
    min-width: 220px;
    padding: 13px 14px;
    font: 500 1rem var(--body);
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: var(--radius);
}

.location-msg { min-height: 1.5em; margin-top: 14px; color: var(--spot); }
.last-city { margin-top: 6px; }
.last-city a { color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 20px;
    font: 600 1rem var(--body);
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-spot { background: var(--spot); color: var(--ink); }
.btn-spot:hover { background: #ffdc66; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline-dark { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline-dark:hover { background: var(--indigo); color: var(--white); }

/* ---------- Sections ---------- */

.block { padding-top: 40px; }
.section-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.05;
    margin-bottom: 8px;
}

.empty {
    padding: 24px 0;
    color: var(--muted);
}
.empty a { color: var(--indigo); font-weight: 600; }

/* ---------- Show list ---------- */

.shows { list-style: none; padding: 0; }

.show {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}
.show:hover .show-title { text-decoration: underline; }

/* The ticket stub: yellow, with a notch cut into each side */
.stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 9px;
    background: var(--spot);
    color: var(--ink);
    font-family: var(--display);
    line-height: 1;
    -webkit-mask:
        radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.stub-mon { font-size: 1.05rem; font-weight: 700; }
.stub-day { font-size: 2.4rem; font-weight: 800; padding: 3px 0 4px; }
.stub-dow { font-size: 0.95rem; font-weight: 700; }

.show-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.05;
}
/* Makes the whole row clickable through the title link */
.show-link { text-decoration: none; }
.show-link::after { content: ''; position: absolute; inset: 0; }

.show-where { margin-top: 4px; font-weight: 500; }
.show-meta { margin-top: 2px; color: var(--muted); font-size: 0.92rem; }
.show-genre {
    display: inline-block;
    margin-left: 10px;
    padding: 1px 8px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--white);
}

.price { font-weight: 600; white-space: nowrap; }

/* ---------- Home: cities by country ---------- */

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 28px 24px;
    margin-top: 16px;
}
.country h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.4rem;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--ink);
}
.country ul { list-style: none; padding: 0; }
.country li a { display: block; padding: 5px 0; text-decoration: none; }
.country li a:hover { text-decoration: underline; color: var(--indigo); }

/* ---------- City page ---------- */

.page-head { padding: 22px 0 34px; }
.page-head h1 {
    margin-top: 14px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    line-height: 0.98;
}
.page-count { margin-top: 10px; color: var(--on-dark-muted); }

.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); }
.crumbs [aria-current] { color: var(--white); }

.preview-banner {
    padding: 10px 0;
    background: var(--spot);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
}

.filters-block { padding-top: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row + .filter-row { margin-top: 10px; }
.filter-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }

.chip {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.chip:hover { border-color: var(--indigo); }
.chip[aria-current='page'] {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

.list-block { padding-top: 12px; }

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 0 4px;
}
.pager-status { color: var(--muted); }

.about .prose { max-width: 68ch; }
.prose p { margin-top: 14px; }
.prose h3 { margin-top: 24px; font-family: var(--display); font-size: 1.5rem; }
.prose a { color: var(--indigo); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    .show { grid-template-columns: 64px 1fr; gap: 14px; }
    .show-side { grid-column: 2; }
    .stub-day { font-size: 2rem; }
    .show-title { font-size: 1.5rem; }
    .city-form select { min-width: 0; flex: 1 1 180px; }
    .hero-actions { align-items: stretch; }
    .hero-actions .btn-spot { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Event page: the page is a ticket ---------- */

.event-band { padding: 18px 0 92px; } /* leaves room for the ticket to overlap */

.ticket-wrap {
    position: relative;
    margin-top: -68px;
    filter: drop-shadow(0 14px 22px rgba(21, 23, 43, 0.22));
}

.ticket {
    --stub: 136px;
    --buy: 280px;
    --notch: 13px;
    --perf: #c4c8dc;

    display: grid;
    grid-template-columns: var(--stub) minmax(0, 1fr) var(--buy);
    overflow: hidden;
    border-radius: 10px;
    background: var(--white);

    /* Semicircle notches cut into the top and bottom edge at each perforation */
    -webkit-mask:
        radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000),
        radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000),
        radial-gradient(circle var(--notch) at calc(100% - var(--buy)) 0, #0000 97%, #000),
        radial-gradient(circle var(--notch) at calc(100% - var(--buy)) 100%, #0000 97%, #000);
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000),
        radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000),
        radial-gradient(circle var(--notch) at calc(100% - var(--buy)) 0, #0000 97%, #000),
        radial-gradient(circle var(--notch) at calc(100% - var(--buy)) 100%, #0000 97%, #000);
    mask-composite: intersect;
}

.ticket-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 8px;
    background: var(--spot);
    color: var(--ink);
    font-family: var(--display);
    line-height: 1;
}
.ticket-stub .mon { font-size: 1.7rem; font-weight: 700; }
.ticket-stub .day { padding: 4px 0 6px; font-size: 5.2rem; font-weight: 800; line-height: 0.9; }
.ticket-stub .dow { font-size: 1.5rem; font-weight: 700; }
.ticket-stub .yr  { margin-top: 10px; font-size: 1.05rem; font-weight: 700; opacity: 0.65; }
.ticket.is-past .ticket-stub { background: #cfd2e0; }

.ticket-main {
    padding: 28px 30px;
    border-left: 2px dashed var(--perf);
    min-width: 0;
}
.ticket-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1;
    overflow-wrap: anywhere;
}
.ticket-where { margin-top: 14px; font-size: 1.15rem; font-weight: 600; }
.ticket-when { margin-top: 2px; color: var(--muted); }
.ticket-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.ticket-buy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 26px;
    border-left: 2px dashed var(--perf);
}
.price-big { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.ticket-buy .btn { display: block; width: 100%; margin-top: 16px; }
.ticket-note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }

.btn-indigo { background: var(--indigo); color: var(--white); }
.btn-indigo:hover { background: var(--indigo-soft); }

/* Body under the ticket */

.event-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
.event-body.has-figure { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }

.event-lead { max-width: 52ch; font-size: 1.25rem; line-height: 1.5; text-wrap: pretty; }
.event-text { max-width: 64ch; margin-top: 16px; color: #2b2e47; }

.event-section-title {
    margin: 38px 0 14px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.05;
}

.event-figure { margin: 0; }
.event-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    background: var(--rule);
}

.status-note {
    margin-bottom: 24px;
    padding: 14px 16px;
    background: var(--white);
    border-left: 5px solid var(--indigo);
    border-radius: var(--radius);
    font-weight: 500;
}
.status-note.is-warning { border-left-color: #b3261e; }
.status-note a { color: var(--indigo); font-weight: 600; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px 32px;
    margin: 0;
}
.detail { padding-top: 10px; border-top: 2px solid var(--ink); }
.detail dt { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.detail dd { margin: 4px 0 0; font-weight: 600; }
.detail a { color: var(--indigo); }
.detail .sub { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); }
.detail .sub-link { display: inline-block; margin-top: 4px; font-weight: 600; }

.see-all { margin-top: 14px; }
.see-all a { color: var(--indigo); font-weight: 600; }

@media (max-width: 900px) {
    .event-body.has-figure { grid-template-columns: 1fr; gap: 28px; }
    .event-figure { order: -1; }
    .event-figure img { aspect-ratio: 16 / 9; }

    /* On small screens the ticket stacks: no notches, dashed lines run across */
    .ticket {
        grid-template-columns: 1fr;
        -webkit-mask: none;
        mask: none;
    }
    .ticket-stub {
        flex-direction: row;
        justify-content: flex-start;
        align-items: baseline;
        gap: 10px;
        padding: 14px 20px;
    }
    .ticket-stub .day { padding: 0; font-size: 2.6rem; }
    .ticket-stub .yr { margin: 0 0 0 auto; }
    .ticket-main { padding: 22px 20px; border-left: 0; border-top: 2px dashed var(--perf); }
    .ticket-buy { padding: 20px; border-left: 0; border-top: 2px dashed var(--perf); }
}
