@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600;6..72,700&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #10243e;
  background: #f6f1e7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ticket-red: #c94f32;
  --night-navy: #10243e;
  --paper: #fffdf8;
  --warm-cream: #f6f1e7;
  --graphite: #34383d;
  --stone: #76736d;
  --warm-border: #ddd6ca;
  --local-green: #35634f;
  --marigold: #d99a29;
  --soft-red: #f3ddd6;
  --soft-green: #dde8e1;
  --shadow-hover: 0 4px 16px rgba(16, 36, 62, 0.08);
  --shadow-overlay: 0 12px 36px rgba(16, 36, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: page-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

::view-transition-old(root) {
  animation: page-out 160ms ease both;
}

::view-transition-new(root) {
  animation: page-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

::view-transition-old(site-brand),
::view-transition-new(site-brand),
::view-transition-old(day-picker),
::view-transition-new(day-picker) {
  animation-duration: 360ms;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--warm-cream);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-170%);
  background: var(--night-navy);
  color: var(--paper);
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.site-hero {
  min-height: 156px;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--warm-border);
}

.hero-inner {
  width: min(1200px, calc(100% - 64px));
  min-height: 156px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  color: var(--night-navy);
  text-decoration: none;
  view-transition-name: site-brand;
}

.brand-ticket {
  width: 240px;
  max-height: 126px;
  flex: 0 1 auto;
  object-fit: contain;
}

.brand-divider {
  width: 2px;
  height: 58px;
  flex: 0 0 2px;
  background: var(--ticket-red);
}

.brand-region {
  max-width: none;
  color: var(--night-navy);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.09em;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-lockup:focus-visible,
.day-picker a:focus-visible,
.instagram-link:focus-visible,
.card-link:focus-visible,
.back-link:focus-visible,
.action-list a:focus-visible,
.region-switcher summary:focus-visible,
.region-menu a:focus-visible,
.fact-list a:focus-visible {
  outline: 2px solid var(--ticket-red);
  outline-offset: 3px;
}

.region-main {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 88px;
}

.event-toolbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--warm-border);
}

.day-picker {
  flex: 0 0 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  view-transition-name: day-picker;
}

.day-picker a {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--stone);
  text-align: center;
  text-decoration: none;
}

.day-picker a[aria-current="page"] {
  background: var(--night-navy);
  color: var(--paper);
}

.day-picker span {
  display: block;
}

.day-picker span {
  font-size: 1rem;
  font-weight: 700;
}

.toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.region-switcher {
  position: relative;
}

.region-switcher summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--night-navy);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
  white-space: nowrap;
}

.region-switcher summary::-webkit-details-marker {
  display: none;
}

.region-switcher summary::after {
  content: "↓";
  margin-left: 8px;
  color: var(--ticket-red);
}

.region-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-overlay);
}

.region-menu a {
  display: block;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.region-menu a:hover,
.region-menu a:focus-visible {
  background: var(--warm-cream);
}

.instagram-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--ticket-red);
  border-radius: 8px;
  background: var(--ticket-red);
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.instagram-link:hover {
  border-color: var(--night-navy);
  background: var(--night-navy);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.instagram-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1.75px solid currentColor;
  border-radius: 5px;
}

.instagram-mark::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  inset: 0;
  margin: auto;
  border: 1.75px solid currentColor;
  border-radius: 50%;
}

.instagram-mark::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  top: 2px;
  right: 2px;
  border-radius: 50%;
  background: currentColor;
}

.event-section {
  margin-top: 28px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  min-width: 0;
  align-self: start;
  border: 1px solid var(--warm-border);
  border-top: 3px solid var(--ticket-red);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  transition:
    transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 170ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: #beb5a7;
  border-top-color: var(--ticket-red);
  box-shadow: var(--shadow-hover);
}

.card-link {
  min-height: 172px;
  height: 100%;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  padding: 12px 13px 12px 12px;
  text-decoration: none;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  align-self: center;
  overflow: hidden;
  border-radius: 8px;
  background: #e7dfd2;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-photo img {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-card:hover .card-photo img {
  transform: scale(1.025);
}

.card-body {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 0;
}

.card-time {
  margin: 0 0 7px;
  color: var(--ticket-red);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.card-session-time {
  white-space: nowrap;
}

.detail-sessions {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.detail-sessions > li {
  padding: 14px 0;
}
.detail-sessions > li + li {
  border-top: 1px solid var(--warm-border);
}
.session-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.session-status,
.session-availability {
  color: var(--stone);
  font-size: 0.875rem;
}
.session-availability {
  margin: 8px 0 0 30px;
}
.session-ended .detail-time {
  color: var(--stone);
}
.detail-sessions .action-list {
  margin: 8px 0 0 30px;
}
.detail-sessions .action-list a {
  min-height: auto;
  padding: 0;
  background: none;
  border: none;
  color: var(--local-green);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-body h3 {
  margin: 0 0 7px;
  color: var(--night-navy);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.card-subtitle {
  margin: -2px 0 7px;
  color: var(--stone);
  font-size: 0.875rem;
  line-height: 1.3;
}

.card-location,
.card-price {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.card-location {
  color: var(--graphite);
}

.card-price {
  margin-top: 5px;
  color: var(--local-green);
  font-weight: 600;
}

.category-music,
.category-nightlife,
.category-family,
.category-community,
.category-food-drink,
.category-markets,
.category-outdoors,
.category-arts,
.category-games,
.category-sports,
.category-history,
.category-comedy,
.category-classes,
.category-other {
  --category-accent: var(--ticket-red);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 44px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--paper);
  text-align: center;
}

.empty-state > span {
  color: var(--ticket-red);
  font-size: 2.25rem;
}

.empty-state h2 {
  margin: 8px 0;
  color: var(--night-navy);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
}

.empty-state a {
  color: var(--local-green);
  font-weight: 700;
}

.detail-main {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 28px;
  color: var(--local-green);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link span {
  color: var(--ticket-red);
  font-size: 1.25rem;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
  padding: 15px 16px;
  border: 1px solid var(--ticket-red);
  border-radius: 8px;
  background: var(--soft-red);
  color: var(--night-navy);
}

.status-notice strong {
  font-size: 0.94rem;
}

.status-notice a {
  font-size: 0.875rem;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
  gap: clamp(42px, 6vw, 72px);
  align-items: start;
}

.detail-content {
  min-width: 0;
  padding-top: 4px;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--ticket-red);
  color: var(--ticket-red);
}

.detail-kicker strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-series {
  margin: -2px 0 8px;
  color: var(--stone);
  font-size: 0.875rem;
  font-weight: 700;
}

.detail-content > h1 {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--night-navy);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.detail-subtitle,
.detail-subvenue {
  color: var(--stone);
}

.detail-subtitle {
  margin: -2px 0 18px;
  font-size: 1.125rem;
  line-height: 1.45;
}

.detail-summary {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--warm-border);
  border-bottom: 1px solid var(--warm-border);
}

.detail-date,
.detail-time,
.detail-availability,
.detail-venue {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--night-navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.detail-date,
.detail-time {
  color: var(--ticket-red);
}

.detail-availability {
  color: var(--stone);
  font-weight: 500;
}

.detail-line-mark {
  width: 20px;
  flex: 0 0 20px;
  padding-top: 1px;
  color: currentColor;
}

.detail-line-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-schedule {
  margin: -1px 0 2px 30px;
  padding-left: 17px;
  color: var(--stone);
  font-size: 0.94rem;
  line-height: 1.45;
}

.detail-subvenue {
  margin: -3px 0 0 30px;
  font-size: 0.94rem;
}

.detail-media {
  position: sticky;
  top: 24px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--paper);
}

.detail-photo {
  display: grid;
  place-items: center;
}

.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}

.detail-category-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.detail-category-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
}

.fact-list > div {
  min-width: 0;
  padding-top: 0;
}

.fact-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ticket-red);
}

.fact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fact-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 7px 0 0;
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fact-list dd a {
  color: var(--local-green);
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.fact-list dd a:hover,
.fact-list dd a:focus-visible {
  text-decoration-color: currentColor;
}

.detail-copy {
  margin: 30px 0 0;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.6;
}

.detail-copy p {
  margin-bottom: 1.1em;
}

.action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.action-list a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  min-width: 150px;
  background: var(--night-navy);
  color: var(--paper);
}

.primary-action:hover {
  background: #1a3657;
}

.secondary-action {
  min-width: 120px;
  border: 1px solid var(--warm-border);
  background: var(--paper);
  color: var(--night-navy);
}

.secondary-action:hover {
  border-color: #beb5a7;
}

.source-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--warm-border);
  color: var(--stone);
  font-size: 0.875rem;
  line-height: 1.55;
}

.source-note > span:first-child {
  color: var(--ticket-red);
  font-size: 1.25rem;
  line-height: 1;
}

.not-found {
  width: min(620px, calc(100% - 40px));
  margin: 12vh auto;
  padding: 40px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-overlay);
}

.not-found .wordmark {
  color: var(--night-navy);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 28px 0 24px;
  color: var(--night-navy);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.not-found .primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 1240px) {
  .event-toolbar {
    flex-wrap: wrap;
  }

  .toolbar-actions {
    margin-left: auto;
  }

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

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 42px;
  }
}

@media (max-width: 800px) {
  .hero-inner,
  .region-main,
  .detail-main {
    width: min(100% - 32px, 1200px);
  }

  .site-hero,
  .hero-inner {
    min-height: 144px;
  }

  .brand-ticket {
    width: 210px;
    max-height: 112px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-media {
    position: static;
    width: min(100%, 640px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    align-items: center;
    justify-content: center;
    padding: 16px 0 18px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .brand-ticket {
    width: 190px;
    max-height: 100px;
  }

  .brand-divider {
    display: none;
  }

  .brand-region {
    max-width: none;
    font-size: 1rem;
    text-align: center;
  }

  .site-hero,
  .hero-inner {
    min-height: 154px;
  }

  .region-main {
    width: min(100% - 32px, 1200px);
    padding-bottom: 60px;
  }

  .event-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0 18px;
  }

  .day-picker,
  .toolbar-actions {
    grid-column: 1;
  }

  .day-picker {
    width: 100%;
    flex-basis: auto;
  }

  .toolbar-actions {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    width: 100%;
  }

  .toolbar-actions .instagram-link {
    flex: 0 1 auto;
  }

  .event-section {
    margin-top: 18px;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-link {
    min-height: 0;
    grid-template-columns: clamp(96px, 28vw, 124px) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 10px 9px 9px;
  }

  .card-body h3 {
    font-size: clamp(1.1rem, 4.7vw, 1.28rem);
  }

  .card-time,
  .card-location,
  .card-price {
    font-size: 0.8125rem;
  }

  .detail-main {
    width: min(100% - 32px, 1120px);
    padding: 26px 0 64px;
  }

  .back-link {
    margin-bottom: 22px;
  }

  .status-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .detail-content > h1 {
    font-size: clamp(2.6rem, 12vw, 4.1rem);
  }

  .fact-list {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .fact-list {
    grid-template-columns: 1fr;
  }

  .fact-list > div {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-hero .hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-hero .instagram-link {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .site-hero .hero-inner {
    flex-direction: column;
    gap: 16px;
  }
  .site-hero .instagram-link {
    padding: 10px 16px;
  }
}
