/* KORA public events site (phase 1). Light, plain, readable on a phone first. */
:root {
  --bg: #f6f6f4; --card: #ffffff; --ink: #15171c; --muted: #5b6270; --line: #e3e4e0;
  --accent: #0f766e; --accent-soft: #e6f4f2; --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.top { padding: 18px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { display: block; max-width: 1040px; margin: 0 auto; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand span { color: var(--accent); font-weight: 700; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 16px 56px; }
.foot { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

.page-title { margin: 0 0 20px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.empty { color: var(--muted); }

/* the listing: one column on a phone, then two, then three */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
          overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card a:hover, .card a:focus-visible { box-shadow: 0 10px 28px rgba(20, 24, 40, .10); transform: translateY(-1px); }
.card-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent-soft); }
.card-pic.blank { display: block; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.card-title { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.when { color: var(--accent); font-weight: 700; font-size: 15px; }
.where, .summary { color: var(--muted); font-size: 15px; }
.more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 700; font-size: 15px; }

/* an event's page */
.back { margin: 0 0 14px; font-size: 15px; }
.back a { text-decoration: none; }
.event { max-width: 720px; }
.hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; background: var(--accent-soft); }
.event h1 { margin: 2px 0 10px; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; }
.event .when { margin: 0; font-size: 16px; }
.event .where { margin: 0 0 18px; color: var(--ink); }
.map { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 600; }
.note { padding: 12px 14px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-weight: 600; }
.about p { margin: 0 0 14px; }
.days, .book { margin-top: 26px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.days h2, .book h2 { margin: 0 0 10px; font-size: 19px; }
.days ul { list-style: none; margin: 0; padding: 0; }
.days li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.days li:first-child { border-top: 0; padding-top: 0; }
.days li span { color: var(--muted); }
.days li small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.book p { margin: 0; color: var(--muted); }
.error { max-width: 560px; }
.error h1 { margin: 0 0 8px; font-size: 28px; }
