:root {
  --bg: #f3f1ec;
  --panel: #ffffff;
  --ink: #1c1b18;
  --muted: #4a4843;
  --line: rgba(28, 27, 24, 0.12);
  --gold: #b8891a;
  --gold-ink: #1a1404;
  --sage: #24614a;
  --danger: #9b1c1c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); }
.hidden { display: none !important; }
.top {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 20px;
  padding: calc(14px + var(--safe-t)) 28px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif);
  font-weight: 650; letter-spacing: -0.02em; font-size: 1.4rem;
  color: var(--ink); text-decoration: none;
}
.desk-nav { display: none; gap: 2px; margin-left: auto; }
.desk-nav a, .tabs a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 6px;
}
.desk-nav a.is-on, .tabs a.is-on { color: var(--ink); background: transparent; box-shadow: inset 0 -2px 0 var(--gold); }
.icon-btn {
  margin-left: auto; background: transparent; border: 1px solid var(--line);
  color: var(--ink); width: 44px; height: 44px; border-radius: 10px; font-size: 1.1rem;
}
.drawer {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 20;
  display: grid; place-items: start stretch; padding: calc(64px + var(--safe-t)) 16px 16px;
}
.drawer nav {
  background: var(--panel); border-radius: 16px; padding: 12px;
  display: grid; gap: 4px;
}
.drawer a {
  color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px; border-radius: 10px;
}
main { max-width: 1120px; margin: 0 auto; padding: 18px 16px calc(92px + var(--safe-b)); }
body.home-page { background: var(--bg); }
body.home-page main { max-width: none; padding: 0 0 calc(92px + var(--safe-b)); }
.hero {
  display: grid; gap: 18px;
  padding: 28px 0 10px;
}
.hero h1, .join-card h1 {
  font-family: var(--serif); font-weight: 650; font-size: clamp(1.7rem, 4.4vw, 2.35rem);
  letter-spacing: 0; line-height: 1.28;
  margin: 6px 0 12px;
}
.kicker {
  color: #6b5208; font-weight: 700; letter-spacing: 0.04em;
  text-transform: none; font-size: 1rem;
}
.lede {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 42rem;
  margin-bottom: 12px;
}
.muted { color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: #111;
}
.mosaic-home { gap: 3px; }
.mosaic-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #222;
}
.mosaic-tile img, .mosaic-tile .avatar-fill {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 3rem; color: #fff;
}
.mosaic-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.86));
  font-size: 1.05rem; line-height: 1.35; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.mosaic-cap span { display: block; font-weight: 400; opacity: 0.95; font-size: 0.95rem; }
.mosaic-tile .online { position: absolute; top: 10px; right: 10px; }
.person-hero { border-radius: 0; aspect-ratio: 4 / 5; }
.join-card {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: calc(100% - 32px);
  margin: 20px auto 24px;
  background: #fff;
  padding: 28px 26px 24px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.join-card.home-intro {
  margin-top: 24px;
  max-width: 760px;
}
.home-points { max-width: 760px; width: calc(100% - 32px); margin: 24px auto; }
.home-points ul { font-size: 1.08rem; line-height: 1.75; }
.home-points li { margin-bottom: 6px; }
.voor-wie h1 { margin-bottom: 16px; }
.voor-wie p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--ink);
}
.voor-wie .row { margin-top: 8px; }
body.home-mosaic .mini { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; }
body.home-mosaic .mosaic-home { margin-top: 8px; }
.grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
.card, .sheet, .person, .msg, .form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.person { overflow: hidden; border-radius: 4px; }
.online {
  width: 10px; height: 10px;
  background: #3dcc7a; border-radius: 50%; box-shadow: 0 0 0 3px rgba(61,204,122,0.35);
}
.person-body { padding: 18px 18px 20px; font-size: 1.05rem; }
.person-body p { margin-bottom: 10px; }
.person h3, h2 { font-family: var(--serif); font-weight: 650; line-height: 1.3; }
h2 { font-size: 1.75rem; margin-bottom: 10px; }
h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.meta { color: var(--muted); font-size: 1rem; margin: 4px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tags span, .chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 1rem; color: var(--sage); font-weight: 700;
}
.chip.is-on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.btn, .chip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; padding: 12px 18px; font: inherit; font-weight: 700;
  cursor: pointer; min-height: 48px; text-decoration: none; font-size: 1.02rem;
}
.btn { width: 100%; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-warn { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row .btn { flex: 1; min-width: 120px; width: auto; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
input, select, textarea {
  font: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); min-height: 46px;
}
.form { padding: 20px; }
.flash {
  max-width: 1120px; margin: 10px auto 0; padding: 12px 16px;
  background: #fff6d8; color: #6b5208; border-radius: 8px;
}
.empty {
  padding: 22px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); background: #fff;
}
.error { color: var(--danger); margin-bottom: 10px; }
.overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,0.72);
  display: grid; place-items: center; padding: 20px;
}
.sheet { max-width: 520px; width: 100%; padding: 28px; }
.sheet h1 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.3; margin: 8px 0 12px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff;
  padding: 6px 4px calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
}
.tabs a { text-align: center; }
.cookie-bar {
  position: fixed; left: 12px; right: 12px; z-index: 25;
  bottom: calc(64px + var(--safe-b));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(28, 27, 24, 0.16);
  padding: 16px 18px;
}
.cookie-inner { display: grid; gap: 14px; }
.cookie-title { font-weight: 700; margin-bottom: 6px; font-size: 1.05rem; }
.cookie-bar p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin: 0; }
.cookie-bar .cookie-title { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { width: auto; flex: 1; min-width: 140px; }
.cookies-page { max-width: 640px; }
.cookies-page h3 { margin-top: 18px; }
.cookies-page p { margin-bottom: 10px; }
body.has-cookie-bar main { padding-bottom: calc(220px + var(--safe-b)); }
body.has-cookie-bar.home-page main { padding-bottom: calc(220px + var(--safe-b)); }
@media (min-width: 860px) {
  .cookie-bar {
    left: 50%; right: auto; bottom: 24px;
    width: min(720px, calc(100% - 48px));
    transform: translateX(-50%);
  }
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
  .cookie-actions .btn { flex: 0 0 auto; width: auto; }
  body.has-cookie-bar main,
  body.has-cookie-bar.home-page main { padding-bottom: 160px; }
}
.thread { display: grid; gap: 8px; margin-top: 12px; }
.bubble {
  padding: 10px 12px; border-radius: 14px; max-width: 85%;
  background: #eee;
}
.bubble.me { margin-left: auto; background: #f3e4bf; color: #1a1404; }
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
footer.mini { margin-top: 28px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.admin-main { max-width: 720px; padding-top: 24px; }
.admin-body { font-size: 18.5px; }
.admin-body .join-card { position: relative; margin-top: 24px; max-width: 480px; }
.admin-body .loc { padding: 16px 18px; font-size: 1.05rem; }
.error { color: #8b1d1d; font-weight: 700; }
.q { margin-bottom: 22px; }
.q p { margin-bottom: 10px; font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
.tri, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tri label, .pills label {
  margin: 0; font-weight: 650; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 48px;
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
}
.tri input, .pills input { width: auto; min-height: 0; accent-color: var(--gold); }
.help-box { padding: 16px; margin: 14px 0; background: #f7f7f5; border-radius: 8px; }
.help-box h3 { font-family: var(--serif); margin-bottom: 8px; }
.loc { padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.role-bar { font-size: 0.9rem; color: #5a4308; padding: 8px 16px; background: #f3e4bf; }
body.easy { font-size: 20.5px; line-height: 1.7; }
body.easy h1, body.easy h2 { font-size: 1.9rem; line-height: 1.32; }
body.easy .btn, body.easy .tri label { min-height: 54px; }
body.easy .lede, body.easy .q p { font-size: 1.12rem; }
.top-tools { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.home { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; }
.home-hero {
  display: grid;
  gap: 36px;
  align-items: start;
  padding: 12px 0 8px;
}
.home-copy h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
  max-width: 18ch;
}
.home-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 0.95rem;
  max-width: 40rem;
}
.home-cta { margin-top: 22px; gap: 12px; }
.home-cta .btn { flex: 0 1 auto; width: auto; min-width: 168px; padding: 12px 22px; }
.home-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 280px;
}
.home-collage img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 10px; display: block; background: #ddd;
}
.home-collage img:first-child { grid-row: 1 / 3; min-height: 280px; }
.home-trust {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 36px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}
.home-how { margin: 40px 0 8px; }
.home-how h2, .home-people h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.home-steps {
  display: grid;
  gap: 14px;
}
.home-steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 18px;
}
.home-steps h3 { font-family: var(--sans); font-size: 1.05rem; margin: 4px 0 8px; }
.home-steps p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 1rem; }
.step-n { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; font-weight: 650; margin: 0; }
.home-people { margin: 44px 0 12px; }
.home-people-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.home-people-head h2 { margin: 0; }
.home-more { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--gold); }
.home-gallery.mosaic {
  gap: 8px;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}
.home-gallery .mosaic-tile { border-radius: 8px; aspect-ratio: 4 / 5; }
.home-foot {
  margin-top: 48px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.home-foot strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 8px;
}
@media (min-width: 700px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .mosaic { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 860px) {
  .desk-nav { display: flex; }
  .icon-btn, .tabs { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  main { padding-bottom: 48px; }
  body.home-page main { padding-bottom: 0; }
  .home { padding: 40px 32px 64px; }
  .home-hero { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
  .home-collage { min-height: 460px; }
  .home-collage img:first-child { min-height: 460px; }
  .home-trust { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .home-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .home-gallery.mosaic { grid-template-columns: repeat(4, 1fr); }
}
.profile-page { max-width: 680px; margin: 0 auto 24px; }
.profile-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin: 6px 0 12px;
}
.profile-head .lede { font-size: 1.12rem; }
.auth-tabs { display: flex; gap: 8px; margin: 8px 0 16px; }
.auth-tabs .chip { background: #fff; cursor: pointer; font: inherit; }
.profile-form { display: grid; gap: 16px; }
.profile-sec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 12px;
}
.profile-sec h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.field-hint { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; line-height: 1.55; }
.req { color: #7a4e00; font-size: 0.85rem; font-weight: 700; }
.q-title { font-weight: 700; font-size: 1.12rem; line-height: 1.45; margin-bottom: 10px; }
.profile-grid {
  display: grid;
  gap: 0 16px;
}
.choice-stack { display: grid; gap: 8px; margin-bottom: 16px; }
.choice-stack label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.4;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.choice-stack input { width: auto; min-height: 22px; flex: 0 0 auto; accent-color: var(--gold); }
.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.check-row input { width: auto; min-height: 22px; }
.profile-page textarea, .profile-page input, .profile-page select {
  font-size: 1.08rem;
  min-height: 52px;
  padding: 14px;
}
.profile-page textarea { min-height: 110px; line-height: 1.55; }
body.is-profile main { max-width: 720px; }
@media (min-width: 700px) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
}
