*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bone);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-moss); }
a:hover { color: var(--c-moss-dark); }
:focus-visible { outline: 3px solid var(--c-vig); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.2vw, 30px); }
h3 { font-size: 22px; }
p { margin: 0 0 12px; }
.small { font-size: 13px; color: var(--c-muted); }
h1 .small, h2 .small { font-family: var(--f-sans); font-size: 13px; white-space: nowrap; letter-spacing: 0; }
.muted { color: var(--c-muted); }
.hand { font-family: var(--f-hand); color: var(--c-heather); font-size: 20px; line-height: 1.1; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--c-moss);
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0 8px; }
.header-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); }
.wordmark { font-family: var(--f-serif); font-size: 26px; letter-spacing: -0.02em; color: var(--c-ink); }
.nav { display: flex; gap: 4px 26px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--c-ink); text-decoration: none; font-size: 14px; padding: 6px 0; }
.nav a.active { color: var(--c-moss); font-weight: 600; }
.nav a:hover { color: var(--c-moss); }
.header-cta { margin: 0; }
@media (max-width: 719px) {
  .header-row { gap: 10px 16px; }
  .header-cta { margin-left: auto; order: 2; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 4px 18px; border-top: 1px solid var(--c-hairline); padding-top: 6px; }
  .wordmark { font-size: 23px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--c-moss); color: #fff; border: 2px solid var(--c-moss);
  border-radius: var(--r-pill); padding: 10px 22px; font: 600 14px/1.2 var(--f-sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--c-moss-dark); border-color: var(--c-moss-dark); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-xs { padding: 5px 13px; font-size: 12.5px; }
.btn-ghost { background: transparent; color: var(--c-moss); }
.btn-ghost:hover { background: var(--c-moss-tint); color: var(--c-moss-dark); }
.btn-danger { background: var(--c-danger); border-color: var(--c-danger); }
.btn-danger:hover { background: #7d2f24; border-color: #7d2f24; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link-arrow { font-weight: 600; font-size: 13.5px; text-decoration: none; }
.inline-form { display: inline; margin: 0; }

/* Hero */
.hero { display: grid; gap: 24px; padding: 40px 0 8px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 268px; align-items: end; padding-top: 56px; } }
.hero h1 {
  font-size: clamp(36px, 9.6vw, 86px); color: var(--c-moss); letter-spacing: -0.025em; line-height: 1; margin: 4px 0 16px;
}
.hero .lead { font-size: 16px; color: var(--c-muted); max-width: 520px; margin: 0; }
.status-box { background: #fff; border-radius: var(--r-card); padding: 20px; font-size: 13.5px; }
.status-box p { margin: 0 0 10px; }
.status-box .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4caf50; margin-right: 8px; vertical-align: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; padding: 0; list-style: none; }
.chip {
  display: inline-block; border: 1.5px solid var(--c-hairline); background: transparent; color: var(--c-ink);
  padding: 7px 15px; border-radius: var(--r-pill); font-size: 13px; text-decoration: none;
}
.chip:hover { border-color: var(--c-moss); color: var(--c-moss); }
.chip[aria-current='page'] { background: var(--c-moss); border-color: var(--c-moss); color: #fff; font-weight: 600; }

/* Sections */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head .aside { font-size: 12.5px; color: var(--c-muted); }
.section-head .hand { font-size: 19px; }
.rule { border: 0; border-top: 1.5px solid var(--c-ink); margin: 14px 0 22px; opacity: 0.8; }

/* Cards */
.card { background: #fff; border-radius: var(--r-card); padding: 20px; border: 2px solid transparent; }
.grid { display: grid; gap: 16px; }
.grid-dates { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-projects { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.date-card { display: flex; flex-direction: column; min-height: 168px; }
.date-card.is-mine { border-color: var(--c-moss); }
.date-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.date-card .big { font-family: var(--f-serif); font-size: 32px; white-space: nowrap; line-height: 1; color: var(--c-ink); letter-spacing: -0.02em; }
.date-card .meta { font-size: 11.5px; color: var(--c-muted); margin: 4px 0 12px; }
.date-card .desc { font-size: 12.5px; color: var(--c-ink); margin-bottom: 14px; }
.date-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.date-card .foot .places { font-weight: 600; }
.mine-mark { font-family: var(--f-hand); color: var(--c-moss); font-size: 19px; }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill); background: var(--c-moss-tint); color: var(--c-moss); white-space: nowrap;
}
.tag-rengoring { background: #E3E8EC; color: #3E6173; }
.tag-arrangement { background: #EEE6EC; color: #6E5169; }
.tag-projekt { background: #F1E9D3; color: #6F5A22; }

.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.project-card:hover { color: inherit; border-color: var(--c-hairline); }
.project-card img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; background: var(--c-oat); }
.project-card .ph { aspect-ratio: 2.1 / 1; background: var(--c-oat); }
.project-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font-size: 23px; margin: 6px 0 10px; }
.project-card .desc { font-size: 12.5px; color: var(--c-muted); margin-bottom: 12px; }
.role-lines { list-style: none; margin: 0 0 10px; padding: 8px 0 0; border-top: 1px solid var(--c-hairline); font-size: 12px; }
.role-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.role-lines .places { color: var(--c-muted); white-space: nowrap; }
.role-lines .places.is-full { color: var(--c-danger); }
.project-card .foot { margin-top: auto; font-size: 11.5px; color: var(--c-muted); }

.empty { background: #fff; border-radius: var(--r-card); padding: 28px; text-align: center; color: var(--c-muted); }

/* Event page */
.back { display: inline-block; margin: 28px 0 14px; font-size: 13.5px; text-decoration: none; }
.event-head { display: grid; gap: 24px; }
@media (min-width: 900px) { .event-head.has-img { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.event-head h1 { color: var(--c-moss); font-size: clamp(34px, 6vw, 56px); margin: 10px 0 14px; }
.event-head img { border-radius: var(--r-card); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--c-muted); margin: 8px 0 0; padding: 0; list-style: none; }
.facts strong { color: var(--c-ink); font-weight: 600; }
.date-block { margin-top: 28px; }
.date-block h2 { font-size: 22px; margin-bottom: 10px; }
.role-row { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--c-hairline); flex-wrap: wrap; }
.role-row:first-of-type { border-top: 0; padding-top: 4px; }
.role-row .name { font-weight: 600; }
.role-row .sub { font-size: 12.5px; color: var(--c-muted); }
.role-row .act { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.role-row .places { font-size: 12.5px; color: var(--c-muted); }
.role-row .places.is-full { color: var(--c-danger); font-weight: 600; }

/* Forms */
.narrow { max-width: 620px; }
.form-card { margin-top: 20px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.field input, .field select, .field textarea, select, textarea, input[type='text'], input[type='email'], input[type='number'], input[type='date'], input[type='time'] {
  width: 100%; font: 15px/1.4 var(--f-sans); color: var(--c-ink); background: #fff;
  border: 1.5px solid #CFC5AE; border-radius: var(--r-field); padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--c-vig); outline-offset: 1px; border-color: var(--c-vig); }
.hint { font-size: 12.5px; color: var(--c-muted); margin: 6px 0 0; }
.row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 1fr 1fr 1fr; } .row-4 { grid-template-columns: 2fr 1fr 1fr auto; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-moss); }
details.partner { background: var(--c-bone); border-radius: 14px; padding: 12px 16px; margin: 4px 0 18px; }
details.partner summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--c-moss); }
details.partner[open] summary { margin-bottom: 12px; }
details.partner .hint { margin-bottom: 14px; }
.summary { background: var(--c-oat); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 8px 22px; font-size: 14px; }
@media (min-width: 560px) { .summary { grid-template-columns: auto 1fr; } }
.summary dt { color: var(--c-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding-top: 1px; }
.summary dd { margin: 0; font-weight: 600; }
.privacy { font-size: 12.5px; color: var(--c-muted); margin: 14px 0 16px; }
.cf-turnstile { margin: 6px 0 16px; min-height: 65px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.notice { border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-size: 14px; }
.notice p:last-child { margin: 0; }
.notice-info { background: #E6EDF0; color: #23404E; }
.notice-ok { background: var(--c-moss-tint); color: #1E3B26; }
.notice-warn { background: #F5E3DC; color: #6B2A20; }

/* Min side */
.page-head { padding: 36px 0 6px; }
.page-head h1 { color: var(--c-moss); font-size: clamp(36px, 6vw, 56px); }
.hours-card { background: #fff; border-radius: var(--r-card); padding: 22px; margin-top: 20px; }
.hours-card .num { font-family: var(--f-serif); font-size: 40px; color: var(--c-moss); line-height: 1; }
.hours-card .num small { font-size: 18px; color: var(--c-muted); }
.progress { height: 12px; background: var(--c-oat); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; background: var(--c-moss); border-radius: 999px; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { background: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; }
.list .what { flex: 1 1 240px; }
.list .what strong { display: block; }
.list .when { font-size: 13px; color: var(--c-muted); }
.status { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--c-oat); color: var(--c-ink); }
.status-active { background: var(--c-moss-tint); color: var(--c-moss); }
.status-no_show, .status-event_cancelled { background: #F5E3DC; color: #6B2A20; }

/* Tables (committee/admin) */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-card); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--c-hairline); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.pill-full { background: var(--c-moss-tint); color: var(--c-moss); }
.pill-missing { background: #F5E9CF; color: #6F5A22; }
.dash-role { background: #fff; border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 14px; }
.dash-role header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-role ol { margin: 0; padding-left: 22px; font-size: 13.5px; }
.dash-role ol li { padding: 3px 0; }

.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 8px; }
.admin-nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--c-ink); border: 1.5px solid var(--c-hairline); }
.admin-nav a[aria-current='page'] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.panel { background: #fff; border-radius: var(--r-card); padding: 20px; margin: 16px 0; }
.panel h2 { font-size: 22px; margin-bottom: 12px; }
.split { display: grid; gap: 16px; }
@media (min-width: 960px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* Footer */
.site-footer { margin-top: 96px; }
.footer-wave { display: block; width: 100%; height: 48px; }
.footer-body { background: var(--c-oat); padding: 18px 0 44px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-mark { font-size: 24px; margin: 0 0 8px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 13px; }
.footer-cols a { display: block; color: var(--c-ink); text-decoration: none; padding: 2px 0; }
.footer-cols a:hover { color: var(--c-moss); text-decoration: underline; }
.footer-h { font-weight: 600; font-size: 13px; margin: 0 0 6px; }
