:root {
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #22252a;
  --muted: #686e78;
  --line: #d9dde4;
  --field: #fbfbf9;
  --accent: #b42332;
  --accent-strong: #8f1825;
  --green: #0f766e;
  --blue: #2457a6;
  --amber: #9a5b0b;
  --shadow: 0 16px 40px rgba(31, 35, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 24px 0;
}

.site-title h1 {
  margin: 2px 0 4px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.1;
}

.site-title p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

main {
  display: grid;
  gap: 28px;
  padding: 28px 0 48px;
}

.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.data-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-summary span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  background: var(--field);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 9px 11px;
  font-weight: 500;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 87, 166, 0.28);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

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

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--field);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #b8c0cc;
}

.notice {
  margin-top: 18px;
  border: 1px solid #ecd4a6;
  border-radius: 8px;
  background: #fff8e8;
  color: #6e4b13;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.notice a {
  color: #7a2b16;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.event-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px 14px 14px;
  background: var(--paper);
}

.event-card:not(.has-image) {
  grid-template-columns: 1fr;
  padding: 18px;
}

.event-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2f7;
}

.event-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-body {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.event-card-header {
  display: grid;
  gap: 8px;
}

.event-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.event-card h3 a {
  color: inherit;
  text-decoration: none;
}

.event-card h3 a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.event-card p {
  margin: 0;
}

.event-summary {
  color: #3d424b;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef2f7;
  color: #384150;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.status-scheduled {
  background: #fae9ec;
  color: var(--accent-strong);
}

.badge.status-ongoing {
  background: #e4f5f2;
  color: var(--green);
}

.badge.status-finished {
  background: #eceff4;
  color: #596171;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.event-meta div {
  display: grid;
  gap: 2px;
}

.event-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.event-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.event-link {
  justify-self: start;
  font-weight: 800;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-detail {
  display: grid;
  gap: 18px;
}

.event-detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.event-detail-media img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.event-detail-summary {
  max-width: 760px;
  margin: 0;
  color: #3d424b;
  font-size: 1.05rem;
}

.empty-state {
  margin-top: 18px;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 4px;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .header-inner,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .section-heading {
    display: grid;
  }

  .site-nav,
  .data-summary {
    justify-content: flex-start;
  }

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

  .filters .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: auto;
  }

  .section {
    padding: 16px;
  }

  .site-title h1 {
    font-size: 2rem;
  }

  .filters,
  .event-meta,
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card.has-image {
    padding: 14px;
  }

  .button {
    width: 100%;
  }
}


