:root {
    --ink: #151812;
    --muted: #687064;
    --paper: #f3f0e8;
    --panel: #fffdf7;
    --line: #dcd8cc;
    --accent: #d5ff3f;
    --accent-dark: #252d09;
    --danger: #a63e2e;
    --success: #2d6a46;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 0, #e6f2c2 0, transparent 28rem), var(--paper); }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 12px; }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav a { padding: 9px 13px; border-radius: 99px; color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a.active { color: var(--ink); background: rgba(255,255,255,.72); }
main { flex: 1; padding: 54px 0 72px; }
.home-main { padding-top: 0; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(42px, 7vw, 84px); line-height: .94; letter-spacing: -.065em; }
h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.025em; }
.hero, .page-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 44px; }
.hero p:not(.eyebrow), .page-heading p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.search-hero { padding: 62px 0 56px; text-align: center; }
.search-hero h1 { margin-right: auto; margin-left: auto; }
.search-lead { max-width: 620px; margin: 0 auto 34px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.search-form { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(230px, 1.2fr) auto; gap: 10px; max-width: 1100px; margin: 0 auto; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-align: left; box-shadow: 0 24px 60px rgba(42, 47, 33, .09); }
.search-form .field { min-width: 0; }
.search-form label { padding-left: 3px; }
.search-button { align-self: start; min-height: 44px; margin-top: 24px; }
.date-picker { position: relative; }
.date-picker-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: white; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.date-picker-button:focus { outline: 3px solid rgba(213,255,63,.55); border-color: var(--ink); }
.date-picker-panel { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(390px, calc(100vw - 54px)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 50px rgba(42,47,33,.18); }
.date-picker-panel[hidden] { display: none; }
.calendar-header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; margin-bottom: 14px; text-align: center; }
.calendar-header strong { font-size: 17px; text-transform: capitalize; }
.calendar-navigation { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: inherit; font-size: 29px; line-height: 1; cursor: pointer; }
.calendar-navigation:hover:not(:disabled), .calendar-navigation:focus-visible { background: #ece9df; outline: none; }
.calendar-navigation:disabled { color: #b8b8b1; cursor: default; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.calendar-weekdays span:nth-child(6), .calendar-weekdays span:nth-child(7) { color: var(--danger); }
.calendar-days { row-gap: 3px; }
.calendar-day { position: relative; display: grid; min-width: 0; height: 39px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.calendar-day:hover:not(:disabled), .calendar-day:focus-visible { z-index: 1; background: #ece9df; outline: 2px solid var(--ink); outline-offset: -2px; }
.calendar-day:disabled { color: #b8b8b1; cursor: default; }
.calendar-day.outside-month { color: #a7a99f; }
.calendar-day.in-range { border-radius: 0; background: #dce9b5; color: var(--ink); font-weight: 700; }
.calendar-day.range-start { border-radius: 9px 0 0 9px; background: var(--ink); color: var(--panel); font-weight: 800; }
.calendar-day.range-end { border-radius: 0 9px 9px 0; background: var(--ink); color: var(--panel); font-weight: 800; }
.calendar-day.range-start.range-end, .calendar-day.range-pending { border-radius: 9px; }
.calendar-day.today:not(.range-start):not(.range-end) { box-shadow: inset 0 0 0 1px var(--ink); font-weight: 800; }
.date-picker-hint { min-height: 18px; margin: 13px 0 11px; color: var(--muted); font-size: 12px; text-align: center; }
.date-picker-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-presets { display: flex; margin-top: 7px; gap: 5px 10px; flex-wrap: wrap; }
.date-presets a { color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
.date-presets a:hover { color: var(--ink); }
.search-results { margin-top: 36px; }
.page-heading h1 { font-size: clamp(40px, 6vw, 68px); }
.eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 0 17px; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button.primary { background: var(--ink); color: var(--accent); }
.button.secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button.ghost { border-color: var(--line); background: transparent; color: var(--muted); }
.button:disabled { opacity: .45; cursor: default; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 42px; }
.stat-grid article { min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,247,.72); display: flex; flex-direction: column; justify-content: space-between; }
.stat-grid strong { font-size: 34px; letter-spacing: -.05em; }
.stat-grid span { color: var(--muted); font-size: 13px; }
.panel { margin-bottom: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 20px 50px rgba(42, 47, 33, .05); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 10px; border-top: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
th { border-top: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: #ece9df; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge.success { color: var(--success); background: #e2f1e4; }
.badge.warning { color: var(--danger); background: #f8e3dc; }
.field { min-width: 240px; }
label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(213,255,63,.55); border-color: var(--ink); }
.notice { margin-bottom: 18px; padding: 14px 17px; border-radius: 10px; font-size: 14px; }
.notice.success { color: var(--success); background: #e2f1e4; }
.notice.error { color: var(--danger); background: #f8e3dc; }
.counter { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: var(--accent); font-weight: 800; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; }
.error-text { margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.empty { padding: 26px; color: var(--muted); text-align: center; }
.concert-grid, .place-grid, .artist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.concert-card { display: grid; grid-template-columns: 94px 1fr; gap: 22px; min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.concert-card time { display: flex; width: 88px; min-height: 96px; align-items: center; justify-content: center; align-self: start; flex-direction: column; border-radius: 12px; padding: 9px 4px; background: var(--ink); color: var(--accent); }
.concert-card time strong { font-size: 30px; line-height: 1; }
.concert-card time span { font-size: 12px; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
.concert-card time .date-year { margin-top: 3px; color: #fffdf7; font-size: 12px; }
.concert-card time .date-time { margin-top: 5px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.22); color: #fffdf7; font-size: 13px; font-weight: 750; letter-spacing: .04em; }
.artist-links a { text-underline-offset: 4px; }
.concert-card p { color: var(--muted); }
.place-card { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.place-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.place-card p:not(.eyebrow) { color: var(--muted); }
.place-card span { display: block; margin-top: 44px; font-weight: 750; }
.artist-card { display: flex; min-height: 180px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); flex-direction: column; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.artist-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.artist-card span { margin-top: auto; padding-top: 36px; font-weight: 750; }
.city-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.city-strip a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.5); font-size: 13px; text-decoration: none; }
.city-strip a:hover, .city-strip a.active { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--muted); }
.place-detail { max-width: 800px; }
.place-detail .lead { color: var(--muted); font-size: 20px; }
.place-detail .description { margin: 36px 0; font-size: 18px; line-height: 1.7; white-space: pre-line; }
.artist-detail { max-width: 800px; }
.artist-detail .description { margin: 28px 0; font-size: 18px; line-height: 1.7; white-space: pre-line; }
.concert-detail { max-width: 920px; }
.concert-title { max-width: 900px; }
.concert-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 36px 0; }
.concert-facts div { display: flex; min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); flex-direction: column; justify-content: space-between; }
.concert-facts span { color: var(--muted); font-size: 12px; }
.concert-facts strong { font-size: 18px; }
.concert-detail .description { margin: 36px 0; font-size: 18px; line-height: 1.7; white-space: pre-line; }
.concert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-concerts { margin-top: 64px; }
footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.error-page { display: grid; place-items: center; }
.error-card { position: relative; width: min(780px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: clamp(36px, 8vw, 82px); background: var(--panel); box-shadow: 0 24px 60px rgba(42, 47, 33, .09); }
.error-card h1 { position: relative; max-width: 620px; font-size: clamp(42px, 7vw, 76px); }
.error-code { position: absolute; top: -42px; right: 20px; margin: 0; color: rgba(21, 24, 18, .045); font-size: clamp(150px, 30vw, 300px); font-weight: 900; letter-spacing: -.09em; line-height: 1; user-select: none; }
.error-lead { position: relative; max-width: 560px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.65; }

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .field { min-width: 0; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-button { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 22px, 1180px); }
    .site-header { align-items: flex-start; flex-direction: column; padding: 18px 0; gap: 12px; }
    nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    main { padding: 38px 0 54px; }
    .hero, .page-heading { align-items: flex-start; flex-direction: column; }
    .search-hero { padding-top: 34px; }
    .search-form { grid-template-columns: 1fr; }
    .search-button { grid-column: auto; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .concert-grid, .place-grid, .artist-grid { grid-template-columns: 1fr; }
    .concert-card { grid-template-columns: 78px 1fr; padding: 18px; }
    .concert-card time { width: 72px; min-height: 84px; }
    .concert-card time span, .concert-card time .date-year { font-size: 10px; }
    .concert-facts { grid-template-columns: 1fr; }
    footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
