/* Mistletoe - one stylesheet, no web fonts, no CDN. The page has to look like
   Christmas without looking like a cracker: deep spruce, cream paper, one
   cranberry red for the things that matter and a thin gold rule. */
:root {
  --spruce: #0b2e24;
  --spruce-2: #10493a;
  --leaf: #2f6b4f;
  --cream: #fbf5e9;
  --paper: #fffdf7;
  --ink: #22312c;
  --ink-soft: #5b6b64;
  --berry: #9e2b2b;
  --berry-soft: #c2544e;
  --gold: #c9a227;
  --line: #e2d9c4;
  --shadow: 0 2px 10px rgba(8, 32, 25, .10), 0 12px 30px rgba(8, 32, 25, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--spruce);
  background-image:
    radial-gradient(900px 500px at 50% -10%, #15543f 0%, rgba(21, 84, 63, 0) 70%),
    linear-gradient(170deg, #0b2e24 0%, #092620 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}
h1, h2, h3, .brand span, .big {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  letter-spacing: .1px;
}

/* ---- falling snow: three drifting layers of dots, and none of it if the
   visitor has asked their phone to stop animating things ---- */
.snow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 120px 90px, #fff 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 220px 50px, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 70px 160px, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 180px 200px, #fff 50%, transparent 51%);
  background-size: 300px 260px, 300px 260px, 300px 260px, 300px 260px, 300px 260px;
  animation: snowfall 26s linear infinite;
}
@keyframes snowfall {
  from { background-position: 0 0, 60px 40px, 140px 10px, 20px 120px, 200px 170px; }
  to   { background-position: 40px 260px, 20px 300px, 180px 270px, -20px 380px, 240px 430px; }
}
@media (prefers-reduced-motion: reduce) { .snow { animation: none; opacity: .3; } }

/* ---- chrome ---- */
.top {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; padding: 18px 20px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand span { font-size: 25px; }
.sprig { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .linkish {
  color: #d7e7de; text-decoration: none; font-size: 14px;
  padding: 7px 11px; border-radius: 999px; border: 1px solid transparent;
}
.nav a:hover, .linkish:hover { background: rgba(255,255,255,.10); }
.nav a.on { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); color: #fff; }
.linkish { background: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 14px; }
.inline { display: inline; margin: 0; }

.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 10px 20px 40px; }
.foot {
  position: relative; z-index: 1; max-width: 980px; margin: 0 auto;
  padding: 0 20px 36px; color: #9fb8ab; font-size: 13px; text-align: center;
}
.sprigline { color: var(--cream); margin-right: 6px; }

/* ---- cards ---- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px 22px; margin: 0 0 18px;
}
.card.tight { padding: 14px 16px; }
.card h1 { margin: 0 0 4px; font-size: 27px; }
.card h2 { margin: 22px 0 10px; font-size: 20px; }
.card h2:first-child { margin-top: 0; }
.card > p:first-of-type { margin-top: 6px; }
.lede { color: var(--ink-soft); margin: 2px 0 14px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; margin: 18px 0; }
.ribbon {
  display: inline-block; background: var(--berry); color: #fff; font-size: 12px;
  letter-spacing: .4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.ribbon.green { background: var(--leaf); }
.ribbon.gold { background: var(--gold); color: #3b2d00; }
.ribbon.grey { background: #e7e0cd; color: #5b6b64; }

/* ---- the family grid ---- */
/* 148px so a phone gets two people side by side rather than one long column:
   a family of fifteen is a lot of scrolling otherwise. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.tile {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px; transition: transform .08s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(8,32,25,.12); border-color: #cdbf9e; }
.tile .who { font-family: Georgia, serif; font-size: 19px; display: block; }
.tile .cnt { color: var(--ink-soft); font-size: 13px; }
.tile.self { background: #f4efe0; border-style: dashed; }
.tile.mine { border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry-soft); }

/* ---- ideas ---- */
.idea { border-top: 1px solid var(--line); padding: 14px 0; }
.idea:first-of-type { border-top: 0; }
.idea .t { font-size: 17px; font-weight: 600; }
.idea .m { color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; }
.idea .m a { color: inherit; text-decoration: none; border-bottom: 1px solid #ded4bc; }
.idea .m a:hover { color: var(--ink); border-bottom-color: var(--ink-soft); }
.idea .m a.shop { color: var(--berry); border-bottom-color: #e3c5c3; }
.idea .n { margin-top: 6px; white-space: pre-wrap; }
.idea .acts { margin-top: 9px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.taken { background: #f7f2e3; border-radius: 10px; padding: 10px 12px; margin: 0 0 18px; }
a.shop { color: var(--berry); text-decoration: none; border-bottom: 1px solid #e3c5c3; }
a.shop:hover { border-bottom-color: var(--berry); }

/* ---- forms and buttons ---- */
label { display: block; font-size: 13px; color: var(--ink-soft); margin: 12px 0 4px; }
label.flat { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin: 8px 18px 8px 0; }
input[type=text], input[type=password], input[type=date], input[type=number], textarea, select {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #d8cfb8; border-radius: 9px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
textarea { min-height: 76px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.btn {
  display: inline-block; background: var(--berry); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 10px; text-decoration: none;
}
.btn:hover { background: #8a2424; }
.btn.green { background: var(--leaf); } .btn.green:hover { background: #255840; }
.btn.small { padding: 7px 12px; font-size: 14px; font-weight: 500; }
.btn.ghost { background: #efe8d6; color: var(--ink); } .btn.ghost:hover { background: #e4dac2; }
.btn.plain { background: none; color: var(--ink-soft); padding: 7px 8px; }
.btn.plain:hover { background: #f1ebdb; color: var(--ink); }
.err { background: #fdeceb; border: 1px solid #f0c3c0; color: #8a2424; padding: 11px 13px; border-radius: 9px; margin: 0 0 14px; }
.ok { background: #ecf6ef; border: 1px solid #bfdfc9; color: #1d5236; padding: 11px 13px; border-radius: 9px; margin: 0 0 14px; }
.note { color: var(--ink-soft); font-size: 13.5px; }
details.add summary { cursor: pointer; font-weight: 600; color: var(--berry); padding: 6px 0; }
details.add[open] summary { margin-bottom: 4px; }

/* ---- the secret ---- */
.secret {
  background: linear-gradient(135deg, #0f4132, #12523f); color: #eaf5ee;
  border-radius: 14px; padding: 18px 20px; margin: 0 0 18px; box-shadow: var(--shadow);
}
.secret .big { font-size: 28px; color: #fff; display: block; margin: 4px 0 2px; }
.secret a { color: #ffe9a8; }
.hidden-note {
  background: #f4efe0; border: 1px dashed #c9bb98; border-radius: 12px;
  padding: 14px 16px; color: #5b4a2a;
}

/* ---- tables (organizer) ---- */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); }
td.num, th.num { text-align: right; }
code { background: #f2ecdc; padding: 2px 6px; border-radius: 6px; font-size: 13.5px; }
.copyline { background: #f7f2e3; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; word-break: break-all; }
@media (max-width: 560px) {
  .brand span { font-size: 21px; }
  .card { padding: 16px 15px; }
  .nav a, .linkish { padding: 6px 9px; }
}
