/* The Kellective. Warm, plain, big enough for thumbs. */
:root {
  --plum: #4a1e2c; --plum-2: #6b2c40; --gold: #e8b766; --cream: #f3d9a4;
  --paper: #fbf4e8; --card: #fffdf8; --ink: #2b1a1f; --muted: #7a6458; --line: #ead9bf;
  --ok: #2f6b4f; --ok-bg: #e4f1ea; --warn-bg: #fdf0d8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 19px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, .brand span { font-family: Georgia, "Times New Roman", serif; font-weight: normal; color: var(--plum); }
h1 { font-size: 2rem; line-height: 1.15; margin: .4em 0 .3em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; border-bottom: 2px solid var(--line); padding-bottom: .2em; }
a { color: var(--plum-2); }
main { max-width: 40rem; margin: 0 auto; padding: 0 16px 3rem; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--plum); color: var(--cream); padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { color: var(--cream); font-size: 1.3rem; }
.bell { color: var(--cream); text-decoration: none; padding: 10px 4px; }
.bell b { background: var(--gold); color: var(--plum); border-radius: 999px; padding: 1px 9px; margin-left: 4px; }

.lead { font-size: 1.1rem; color: var(--muted); }
.note { background: var(--warn-bg); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 8px; font-size: .95rem; }
.kicker { color: var(--muted); margin: 1em 0 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.back { margin: 1em 0 0; }
.back a { text-decoration: none; display: inline-block; padding: 8px 0; }
.empty { color: var(--muted); font-style: italic; }
.soon { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 10px 0; color: inherit; text-decoration: none;
}
.card p { margin: .3em 0; }
.card small { color: var(--muted); display: block; margin-top: 4px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
a.item:active, a.tile:active { transform: scale(.99); }
.item.taken { opacity: .78; }
.notice.new { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }

.tiles, .people { display: grid; gap: 12px; margin: 1rem 0; }
.tile {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-decoration: none; color: var(--ink); min-height: 72px;
}
.tile strong { display: block; font-family: Georgia, serif; font-size: 1.3rem; color: var(--plum); font-weight: normal; }
.tile span { color: var(--muted); }
.tile.mine { background: var(--plum); border-color: var(--plum); margin-top: 1rem; }
.tile.mine strong { color: var(--cream); }
.tile.mine span { color: var(--gold); }

.tag { display: inline-block; font-size: .85rem; border-radius: 999px; padding: 2px 10px; margin: 4px 6px 0 0; background: var(--line); }
.tag.open { background: var(--ok-bg); color: var(--ok); }
.tag.me { background: var(--gold); color: var(--plum); }

label { display: block; margin: 10px 0; font-weight: 600; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: normal;
  padding: 12px 14px; border: 1px solid #d9c3a0; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
button, .button {
  display: inline-block; font: inherit; font-weight: 600; min-height: 52px; padding: 12px 22px;
  border: 0; border-radius: 12px; background: var(--plum); color: var(--cream); cursor: pointer; text-decoration: none;
}
button.quiet { background: transparent; color: var(--plum-2); border: 1px solid var(--line); min-height: 48px; font-weight: normal; }
button.link { background: none; color: var(--muted); min-height: 44px; padding: 8px; text-decoration: underline; font-weight: normal; }
details.add summary { cursor: pointer; font-weight: 600; color: var(--plum-2); padding: 6px 0; min-height: 44px; list-style-position: inside; }

footer {
  max-width: 40rem; margin: 0 auto; padding: 16px; display: flex; justify-content: space-between;
  align-items: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line);
}
footer form { margin: 0; }

/* Events */
.event { display: flex; gap: 14px; align-items: flex-start; }
.event .date { flex: 0 0 56px; text-align: center; background: var(--plum); color: var(--cream); border-radius: 12px; padding: 6px 0; font-size: .8rem; text-transform: uppercase; }
.event .date b { display: block; font-size: 1.5rem; font-family: Georgia, serif; font-weight: normal; line-height: 1.1; }
.event .what strong { display: block; }
.event.status-off { opacity: .6; }
.event.status-off strong { text-decoration: line-through; }
.tag.off { background: #f3dcdc; color: #8a2b2b; }
.kicker.ok { color: var(--ok); }
.kicker.off { color: #8a2b2b; }
.details { white-space: pre-line; }
h2.flat { border: 0; margin: 0 0 .6em; font-size: 1.25rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 .6em; }
.choice { background: var(--card); color: var(--plum); border: 2px solid var(--line); flex: 1 1 8rem; }
.choice.chosen { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.slot-actions { display: flex; gap: 6px; align-items: center; }
.slot-actions form { margin: 0; }
.note.error { border-left-color: #b54848; background: #fbe9e9; }
