:root {
  color: #172822;
  background: #f7faf7;
  font: 16px/1.58 "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --muted: #52655d;
  --line: #d9e5dc;
  --green: #126249;
  --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #1c7356; outline-offset: 3px; }
.frame { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; top: -200px; padding: 8px; background: white; }
.skip:focus { top: 8px; }
.header { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.header a { color: inherit; text-decoration: none; }
.header a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.22rem; font-weight: 800; letter-spacing: -.045em; }
.brand span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--green); color: white; }
.header nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: .92rem; font-weight: 650; }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; border-radius: 23px; overflow: hidden; background: #e6f1e7; }
.hero > div:first-child { padding: clamp(28px, 5vw, 62px); }
h1 { margin: 0; font-size: clamp(2.45rem, 5vw, 3.8rem); line-height: 1.14; letter-spacing: -.065em; word-break: keep-all; }
.hero p, .intro > p:first-of-type { color: var(--muted); max-width: 42rem; margin-block: 16px 20px; word-break: keep-all; }
.hero-image { min-height: 290px; background: #acc6a7 url("/hero.webp") center / cover no-repeat; }
.intro { padding: 38px 0 12px; }
.intro p { max-width: 47rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--green); color: white; padding: 10px 15px; text-decoration: none; font-weight: 700; }
.primary:hover { background: #0e4b38; }
.secondary { color: var(--green); background: #e6f1e7; }
.secondary:hover { background: #d9ebdd; }
.listing { margin-block: 30px 46px; }
h2 { margin: 0 0 14px; font-size: 1.55rem; letter-spacing: -.045em; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: end; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.filters label { display: grid; gap: 5px; color: var(--muted); font-size: .86rem; }
.filters input, .filters select { width: 100%; min-width: 0; padding: 8px 10px; min-height: 43px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #172822; }
#count, .fine { color: var(--muted); font-size: .87rem; }
.event-grid { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 12px; }
.event { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 17px; }
.event h3 { margin: 6px 0 8px; font-size: 1.12rem; line-height: 1.38; letter-spacing: -.025em; overflow-wrap: anywhere; }
.event p { margin: 0 0 5px; }
.event .category { color: var(--green); font-size: .77rem; font-weight: 750; }
.event-date { font-variant-numeric: tabular-nums; font-size: .86rem; font-weight: 700; }
.event .venue, .event-note { color: var(--muted); font-size: .87rem; }
.event .event-note { margin-block: 4px 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: auto; padding-top: 9px; font-weight: 675; font-size: .86rem; }
.ad-space { grid-column: 1 / -1; padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#more { margin-top: 15px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-block: 16px 26px; color: var(--muted); font-size: .87rem; }
@media (max-width: 850px) {
  .frame { width: calc(100% - 34px); }
  .event-grid { grid-template-columns: repeat(2,minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .frame { width: calc(100% - 26px); }
  .header { min-height: 59px; gap: 10px; }
  .header nav { gap: 9px; font-size: .8rem; }
  .brand { font-size: .98rem; gap: 5px; }
  .brand span { width: 22px; height: 22px; }
  .hero { grid-template-columns: 1fr; border-radius: 16px; }
  .hero-image { min-height: 155px; background-position: center 58%; }
  .filters { grid-template-columns: repeat(2,minmax(0, 1fr)); padding: 10px; }
  .filters label:first-child { grid-column: 1 / -1; }
  .event-grid { grid-template-columns: 1fr; }
  .intro { padding-top: 25px; }
}
