:root {
  --accent: #d15c22;
  --surface: #f7f4ee;
  --surface-muted: #f3ede4;
  --text-strong: #171717;
  --text-muted: #6f655d;
  --display-font: Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
  font-family: system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.page-narrow {
  width: min(860px, calc(100vw - 32px));
}

.card {
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(24, 19, 15, 0.08);
}

.hero {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.hero-title,
.detail-title {
  margin: 8px 0 0;
  line-height: 0.96;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.hero-summary,
.detail-summary {
  margin: 18px 0 0;
  max-width: 72ch;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.section-block {
  margin-top: 18px;
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
  font-family: Georgia, serif;
}

.status {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.story-grid,
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lead-layout {
  display: grid;
  gap: 16px;
}

.lead-story {
  display: block;
  border-radius: 26px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.9);
  padding: 22px;
}

.lead-story h3 {
  margin: 18px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.lead-story p {
  margin: 14px 0 0;
  max-width: 60ch;
}

.story-note {
  margin-top: 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  padding: 14px 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.side-stack {
  display: grid;
  gap: 12px;
}

.story-card,
.result-card,
.featured-card,
.stream-item,
.section-card {
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
  transition: transform 120ms ease, border-color 120ms ease;
}

.compact-card h3 {
  font-size: 1.05rem;
}

.story-card:hover,
.result-card:hover,
.featured-card:hover,
.stream-item:hover,
.section-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(15, 15, 15, 0.08));
}

.story-card h3,
.result-card h3,
.featured-card h3,
.section-card h3,
.stream-item h3 {
  margin: 14px 0 0;
  font-size: 1.22rem;
  line-height: 1.35;
  font-family: var(--display-font);
}

.story-card p,
.result-card p,
.featured-card p,
.section-card p,
.stream-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 0.94rem;
}

.section-stack {
  display: grid;
  gap: 20px;
}

.section-group {
  display: grid;
  gap: 14px;
}

.section-heading h3,
.section-group h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--display-font);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.stream-list {
  display: grid;
  gap: 12px;
}

.stream-item {
  display: grid;
  gap: 12px;
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters-grid {
  display: grid;
  gap: 14px;
}

.filters-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-block {
  display: grid;
  gap: 8px;
}

.filter-block-wide {
  grid-column: 1 / -1;
}

.filter-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input,
.select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  color: var(--text-strong);
  font: inherit;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 16px;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.query-submit {
  width: fit-content;
}

.result-footer {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.result-shell {
  display: grid;
  gap: 14px;
}

.map-preview-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.map-preview {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
}

.detail-map .map-preview {
  min-height: 280px;
}

.empty-card {
  min-height: 120px;
  display: flex;
  align-items: center;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  gap: 14px;
  grid-template-columns: 120px minmax(0, 1fr);
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.event-time {
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  font-size: 0.95rem;
}

.event-copy h3 {
  margin: 12px 0 0;
  font-size: 1.24rem;
  line-height: 1.25;
  font-family: var(--display-font);
}

.event-copy p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-shell {
  margin-top: 20px;
  padding: 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.detail-fields {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.detail-field {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 15, 15, 0.08);
  padding: 14px 16px;
}

.detail-field-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-field-value {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-actions {
  margin-top: 24px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) 360px;
  }

  .lead-layout {
    grid-template-columns: minmax(0, 1.2fr) 380px;
  }

  .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 1fr;
  }
}
