:root {
  --plum: #4a154b;
  --plum-dark: #33103a;
  --plum-mid: #6d28a8;
  --plum-soft: #f3eafd;
  --gold: #d9a441;
  --gold-dark: #b9822e;
  --ink: #2b2130;
  --paper: #fffaf3;
  --line: #e3d5ef;
  --danger: #a02c2c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
}
a { color: var(--plum-mid); }
.topbar {
  background: var(--plum);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}
.brand { color: #fff; font-size: 1.35rem; font-weight: bold; text-decoration: none; }
.brand .gold, .gold { color: var(--gold); }
.topnav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topnav a { color: #f3eafd; text-decoration: none; }
.hello { color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: #7a6a86; padding: 24px 12px; font-size: 0.85rem; }
h1 { color: var(--plum); font-size: 1.7rem; margin: 8px 0 12px; }
h2 { color: var(--plum); font-size: 1.2rem; margin: 14px 0 8px; }
h3 { color: var(--plum); }
.hero { background: var(--plum); color: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero a { color: var(--gold); }
.hero .big { font-size: 1.15rem; }
.counts strong { color: var(--gold); font-size: 1.2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  display: block;
}
.narrow { max-width: 440px; margin: 24px auto; }
label { display: block; margin: 10px 0; font-weight: bold; color: var(--plum-dark); }
input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
button, .btnlink {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--plum-mid);
  background: #fff;
  color: var(--plum);
  padding: 8px 14px;
  text-decoration: none;
  display: inline-block;
}
button.primary {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--plum-dark);
  font-weight: bold;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font-size: 1.05rem;
}
.hero .btnlink { border-color: var(--gold); color: var(--gold); background: transparent; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbtn { border: none; background: none; color: inherit; padding: 0; text-decoration: underline; }
.inline { display: inline; }
.inline button { width: auto; }
.rowform { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.rowform label, .rowform select, .rowform input { width: auto; flex: 1; min-width: 130px; }
.memberrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.memberrow input[type="number"] { width: 80px; }
.memberrow select { width: auto; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tag { background: var(--plum-soft); color: var(--plum); border-radius: 20px; padding: 1px 9px; font-size: 0.8rem; }
.goldtag { background: var(--gold); color: var(--plum-dark); font-weight: bold; }
.cat { text-transform: capitalize; color: var(--gold-dark); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.soft { color: #7a6a86; font-weight: normal; }
.small { font-size: 0.85rem; }
.error { background: #fbe9e9; color: var(--danger); border: 1px solid #e5b4b4; border-radius: 8px; padding: 10px; }
.checkrow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: normal; }
.checkrow input[type="checkbox"] { width: 22px; height: 22px; }
.checkbtn { font-size: 1.2rem; width: 40px; height: 40px; padding: 0; }
.checkbtn.done { background: var(--plum-soft); }
.strike { text-decoration: line-through; color: #7a6a86; }
.winners li { padding: 4px 0; }
.steps { white-space: pre-wrap; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.post.depth1 { margin: 10px 0 4px 24px; background: var(--plum-soft); }
.posthead { margin: 0 0 4px; }
.reactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.reactbtn { border-radius: 20px; padding: 3px 10px; }
.reactbtn.on { background: var(--gold); border-color: var(--gold-dark); }
.replyform { display: flex; gap: 8px; margin-top: 10px; }
.replyform input { flex: 1; }
.smallbtn { padding: 2px 8px; font-size: 0.8rem; }
.resetform input { width: 140px; display: inline-block; }
/* Grocery list page: built for one hand on a phone in the store. */
.grocery-progress {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
  background: var(--plum);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.grocery-progress .hidelink { color: var(--gold); font-weight: bold; }
.grocery-card { padding: 6px 16px; }
.grocery-row { margin: 0; }
button.grocery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 2px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  color: var(--ink);
}
.grocery-row:last-of-type button.grocery-item { border-bottom: none; }
.gitem-box {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 2px solid var(--plum-mid);
  border-radius: 8px;
  background: #fff;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
button.grocery-item.done .gitem-box { background: var(--plum-mid); }
.gitem-text { font-size: 17px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.gitem-main { overflow-wrap: anywhere; }
.gitem-dishes { display: block; font-size: 0.82rem; color: #7a6a86; overflow-wrap: anywhere; }
button.grocery-item.done .gitem-main { text-decoration: line-through; color: #7a6a86; }
@media (max-width: 520px) {
  h1 { font-size: 1.4rem; }
  .wrap { padding: 12px; }
}

/* Landing page log in button (1.3.0). */
.btnlink.primary {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--plum-dark);
  font-weight: bold;
  padding: 12px 22px;
  font-size: 1.05rem;
}

/* Landing page (1.4.0): the public front door, a real little site. */
.landing-head {
  background: var(--plum);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}
.brand-mascot {
  height: 42px;
  width: auto;
  display: block;
}
.landing-login { padding: 8px 18px; font-size: 1rem; }
.landing-wrap { max-width: 880px; margin: 0 auto; padding: 20px 16px 8px; }
.landing-hero {
  background: var(--plum);
  color: #fff;
  border-radius: 18px;
  padding: 36px 22px 30px;
  text-align: center;
  margin-bottom: 22px;
}
.hero-mascot {
  width: 210px;
  max-width: 62vw;
  height: auto;
}
.landing-hero h1 {
  color: #fff;
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 18px auto 10px;
  max-width: 560px;
}
.hero-sub { color: var(--gold); font-size: 1.25rem; margin: 0 0 18px; }
.hero-login { font-size: 1.15rem; padding: 14px 34px; }
.hero-note { color: var(--plum-soft); margin: 18px 0 0; }
.landing-intro {
  text-align: center;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 22px;
}
.blurb-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 10px; }
.blurb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.blurb h2 { margin-top: 0; }
.blurb p { margin-bottom: 0; }
.landing-foot { text-align: center; color: #7a6a86; padding: 22px 12px 30px; }
@media (min-width: 640px) {
  .blurb-grid { grid-template-columns: 1fr 1fr; }
  .landing-hero h1 { font-size: 2.2rem; }
}
