:root {
  --bg: #f8f8f6;
  --card: #ffffff;
  --text: #111318;
  --muted: #6a707a;
  --line: #e4e7eb;
  --accent: #111;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.wrap { width: min(920px, 92vw); margin: 0 auto; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; color: var(--text); text-decoration: none; }
.muted-small { color: var(--muted); font-size: 13px; }

.tabbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.tabbar-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}
.tab-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: #414955;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 14px;
  cursor: pointer;
  transition: all .22s ease;
}
.tab-btn:hover { border-color: #cbd1d8; }
.tab-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.kicker { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 12px; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.06; margin: 8px 0 14px; max-width: 13ch; }
.lead { max-width: 58ch; color: #313742; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin: 20px 0;
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; }
.muted { color: var(--muted); font-size: 14px; }

.panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .26s ease, transform .26s ease;
  padding-top: 28px;
  min-height: 46vh;
}
.panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.event-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.event-card .title { font-size: 1.15rem; font-weight: 640; margin: 4px 0; }
.event-meta { color: var(--muted); font-size: 14px; }
.post-list { display: grid; gap: 12px; margin-top: 12px; }
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px;
}
.post h3 { margin: 0 0 6px; font-size: 1.04rem; }
.post p { margin: 0; color: #303844; }
.post .meta { margin-top: 8px; color: var(--muted); font-size: 13px; }
.readmore {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #cfd5dd;
}
.readmore:hover { border-bottom-color: var(--text); }
.footer { padding: 24px 0 36px; color: var(--muted); }
