:root {
  color-scheme: dark;
  --bg: #121311;
  --panel: #1b1d19;
  --raised: #22241f;
  --line: #373a33;
  --ink: #f5f5ed;
  --muted: #b2b6aa;
  --lime: #d6ff3f;
  --lime-ink: #15190d;
  --warm: #f4c591;
  --radius: 16px;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 12px; background: var(--lime); color: var(--bg); }
.wrap { width: min(100% - 96px, 1248px); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 24px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1;
}
.wordmark-period { color: var(--lime); }
.record-mark {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 14%, transparent 16% 42%, var(--bg) 44% 48%, transparent 50%), var(--lime);
}
.global-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.global-nav a { padding: 12px 0; }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--ink); }
.saved-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.saved-link:hover, .saved-link[aria-current="page"] { border-color: var(--lime); }
.saved-link > span:first-child { font-size: 21px; line-height: 1; }
.saved-count { color: var(--lime); min-width: 1ch; text-align: center; font-variant-numeric: tabular-nums; }

.hero { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(24px, 5vw, 75px); align-items: center; padding-block: 34px 39px; }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--lime); font-size: 13px; font-weight: 750; }
.small-line { width: 24px; height: 2px; background: currentColor; }
.hero-title { font-size: clamp(51px, 6.35vw, 91px); font-weight: 900; line-height: .99; letter-spacing: -.095em; margin-top: 19px; }
.hero-title span { color: var(--lime); }
.hero-description { margin-block: 20px 24px; font-size: 17px; line-height: 1.62; color: var(--muted); letter-spacing: -.03em; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 46px;
  max-width: 100%;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.primary-button { background: var(--lime); color: var(--lime-ink); }
.primary-button:hover { background: #e7ff8b; }
.primary-button span:last-child { font-size: 18px; }
.secondary-button { border-color: var(--line); background: transparent; color: var(--ink); }
.secondary-button:hover, .secondary-button[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.hero-art {
  position: relative;
  isolation: isolate;
  height: clamp(290px, 28vw, 390px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #2c3524, #8b7b50);
}
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 51% 49%; }

.directory { border-top: 1px solid var(--line); padding-block: 22px 68px; min-height: 390px; scroll-margin-top: 16px; }
.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.directory-heading h2 { margin-bottom: 7px; font-size: clamp(30px, 3.5vw, 44px); font-weight: 850; letter-spacing: -.065em; line-height: 1.15; }
.view-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; color: var(--muted); font-size: 13px; font-weight: 700; }
.view-tabs a { padding-block: 5px; border-bottom: 2px solid transparent; }
.view-tabs a:hover { color: var(--ink); }
.view-tabs a[aria-current="page"] { border-color: var(--lime); color: var(--lime); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 22px; }
.tag-filters, .search-filters { display: flex; align-items: center; gap: 8px; }
.tag-filters { flex-wrap: wrap; }
.tag-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 40px;
  padding-inline: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.tag-filters button:hover { border-color: var(--muted); color: var(--ink); }
.tag-filters button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.select-box select, .search-box {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 13px;
}
.select-box select { padding-inline: 9px; min-width: 105px; }
.search-box { display: flex; align-items: center; gap: 9px; width: 195px; padding-inline: 11px; }
.search-box:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.search-box input { width: 100%; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; color: var(--ink); outline: none; }
.search-box input::placeholder { color: var(--muted); }
.search-icon { position: relative; flex: none; border: 1.5px solid var(--muted); border-radius: 50%; width: 12px; height: 12px; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: var(--muted); transform: rotate(45deg); left: 8px; top: 9px; }
.results-count { margin-block: 16px 9px; font-size: 13px; color: var(--muted); }

.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.event-card {
  --ticket: #d6ff3f;
  --ticket-ink: #15190d;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  min-width: 0;
  cursor: pointer;
}
.event-card[data-theme="coffee"] { --ticket: #f4c591; --ticket-ink: #24190c; }
.event-card[data-theme="running"] { --ticket: #b5c9ff; --ticket-ink: #18243d; }
.event-card[data-theme="daytime"] { --ticket: #e1d5f7; --ticket-ink: #2c193c; }
.event-card:hover { border-color: #777d6b; }
.date-ticket {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 172px;
  overflow: hidden;
  padding: 15px 11px;
  color: var(--ticket-ink);
  background: var(--ticket);
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.date-ticket::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 125px;
  height: 125px;
  right: -42px;
  bottom: -13px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 6px, currentColor 7px 8px);
  opacity: .19;
}
.ticket-month, .ticket-weekday { font-size: 11px; letter-spacing: .025em; }
.ticket-day { font-size: clamp(50px, 4.9vw, 70px); line-height: .92; letter-spacing: -.07em; }
.event-card-content { padding: 13px 16px 13px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.event-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; }
.event-area { color: var(--muted); font-size: 12px; font-weight: 650; }
.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.event-card .favorite-button {
  flex: none;
  min-height: 36px;
  min-width: 48px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}
.favorite-heart { font-size: 23px; line-height: 1; }
.favorite-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.favorite-button:hover, .favorite-button[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); }
.event-card h3 { margin-block: 2px 4px; min-width: 0; }
.event-title {
  display: inline;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--ink);
  font-size: clamp(21px, 2.05vw, 31px);
  font-weight: 850;
  letter-spacing: -.053em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.event-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.event-when, .event-venue { color: var(--muted); font-size: 13px; line-height: 1.45; }
.event-when, .event-venue { color: var(--ink); font-weight: 680; }
.event-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 8px; }
.event-tags li { padding: 3px 7px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.event-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
.event-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.status-pill { border-radius: 4px; padding: 5px 7px; background: #30342c; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-pill[data-state="announced"] { color: var(--lime); background: #304013; }
.event-price { color: var(--ink); font-size: 12px; font-weight: 700; }
.detail-button { min-height: 34px; background: none; padding: 0; border: 0; color: var(--ink); font-size: 13px; font-weight: 750; white-space: nowrap; }
.detail-button span { margin-inline-start: 4px; color: var(--lime); font-size: 16px; }
.detail-button:hover { color: var(--lime); }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; padding: 32px 12px; }
.empty-state h3 { font-size: 20px; font-weight: 800; }
.empty-state p { margin-block: 8px 15px; color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 75px; padding-block: 14px; }
.footer-inner .wordmark { font-size: 19px; }
.footer-inner .record-mark { width: 19px; height: 19px; }
.footer-inner p { color: var(--muted); font-size: 12px; }
.event-dialog { width: min(100% - 32px, 545px); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.event-dialog::backdrop { background: #080906cc; }
.dialog-body { position: relative; padding: clamp(19px, 4vw, 31px); }
.close-form { position: absolute; top: 13px; right: 13px; }
.close-button { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); font-size: 21px; line-height: 1; }
.close-button:hover { color: var(--lime); }
.detail-area { padding-right: 45px; color: var(--lime); font-size: 12px; font-weight: 750; }
.event-dialog h2 { margin-top: 7px; padding-right: 24px; font-size: clamp(27px, 5vw, 37px); font-weight: 850; letter-spacing: -.057em; line-height: 1.15; }
.detail-description { margin-block: 15px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.detail-facts { margin: 0; border-top: 1px solid var(--line); }
.detail-facts div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.detail-facts div[hidden] { display: none; }
#detail-deadline { font-weight: 750; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; }
.detail-note, .detail-source-credit { margin-block: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toast {
  position: fixed;
  z-index: 4;
  inset: auto 16px 15px auto;
  max-width: calc(100% - 32px);
  padding: 10px 13px;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.toast:empty { visibility: hidden; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero-title { font-size: clamp(49px, 8vw, 70px); }
  .hero { grid-template-columns: 1fr 1fr; gap: 23px; }
  .event-card { grid-template-columns: 78px minmax(0, 1fr); }
  .date-ticket { padding-inline: 8px; }
  .ticket-day { font-size: 51px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 63px; grid-template-columns: 1fr auto; }
  .global-nav { display: none; }
  .wordmark { font-size: 21px; }
  .hero { grid-template-columns: 1fr; gap: 19px; padding-block: 27px 30px; }
  .hero-title { font-size: clamp(49px, 13vw, 72px); margin-top: 12px; }
  .hero-description { margin-block: 13px 16px; font-size: 15px; }
  .desktop-break { display: none; }
  .hero-art { height: clamp(175px, 47vw, 285px); }
  .directory { padding-block: 16px 38px; scroll-margin-top: 0; }
  .directory-heading { flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; gap: 5px 14px; }
  .directory-heading h2 { margin-top: 9px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .tag-filters { gap: 5px; }
  .tag-filters button { padding-inline: 9px; }
  .search-filters { width: 100%; }
  .search-box { width: auto; flex: 1; }
  .event-list { grid-template-columns: 1fr; }
  .event-title { font-size: 24px; }
  .footer-inner { flex-wrap: wrap; gap: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
