/* House — white sticker planner (same family as Homestead) */
:root {
  --paper: #ffffff;
  --cream: #fffdfb;
  --desk: #f3f1ec;
  --ink: #2c2620;
  --ink-soft: #5c564e;
  --muted: #8a847a;
  --rule: #ece7de;
  --dot: #e4dfd4;
  --date-red: #c45c4a;
  --coral: #ef9a8f;
  --mint: #7fc4b0;
  --gold: #e6c36a;
  --sky: #8eb8d8;
  --lavender: #c9b4d8;
  --sage: #8aaa78;
  --hand: "Caveat", "Segoe Script", cursive;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
  --tap: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: #f6f5f1;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.9), transparent 42%),
    linear-gradient(180deg, #faf9f6 0%, #f3f1ec 100%);
}

.desk {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 14px 56px;
}

.store-back { margin: 0 0 10px 8px; font-size: 0.92rem; }
.store-back a {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.store-back a:hover { color: var(--ink); }

.notebook {
  position: relative;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.05px, transparent 1.05px);
  background-size: 18px 18px;
  border-radius: 6px 18px 18px 8px;
  padding: 36px 22px 28px 36px;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #efece6, 0 18px 40px rgba(40, 40, 40, 0.08);
  overflow: hidden;
}

.binding {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(180deg, #c45c4a 0 10px, #d97a6a 10px 14px, #ffffff 14px 28px);
  box-shadow: 2px 0 0 rgba(40, 40, 40, 0.06);
}

.washi {
  position: absolute;
  height: 26px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 1px 2px 0 rgba(40, 40, 40, 0.1);
  opacity: 0.94;
}
.washi-coral {
  top: 10px; left: 12%; width: 148px;
  transform: rotate(-3.2deg);
  background: repeating-linear-gradient(90deg, #f3a399 0 12px, #f8c8c0 12px 18px, #fff6f3 18px 22px);
}
.washi-mint {
  top: 8px; right: 18%; width: 120px;
  transform: rotate(2.4deg);
  background: repeating-linear-gradient(-18deg, #7fc4b0 0 8px, #b7e0d4 8px 16px);
}
.washi-gold {
  top: 22px; left: 42%; width: 88px; height: 18px;
  transform: rotate(1.5deg);
  background: repeating-linear-gradient(90deg, #e6c36a 0 6px, #f3e2a8 6px 10px);
}

.deco {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: 72px; height: 72px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(2px 3px 0 rgba(50, 50, 50, 0.14));
}
.deco-basket {
  top: 92px; right: 22px; transform: rotate(7deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'><ellipse cx='36' cy='38' rx='26' ry='26' fill='%23fff'/><path d='M18 32h36l-4 22H22z' fill='%23e6c36a' stroke='%23c4a24a' stroke-width='2'/><path d='M22 32c0-10 8-16 14-16s14 6 14 16' fill='none' stroke='%238eb8d8' stroke-width='3'/><path d='M24 42h24M24 48h24' stroke='%23fff6d8' stroke-width='2'/></svg>");
}
.deco-shirt {
  bottom: 120px; left: 28px; transform: rotate(-8deg); width: 64px; height: 64px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'><circle cx='36' cy='36' r='26' fill='%23fff'/><path d='M20 24l10 6 6-8 6 8 10-6 4 8-8 6v18H24V38l-8-6z' fill='%238eb8d8'/><path d='M30 22c2 6 10 6 12 0' fill='%237fc4b0'/></svg>");
}
.deco-spoon {
  top: 210px; right: 18px; width: 52px; height: 52px; transform: rotate(-14deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'><circle cx='36' cy='36' r='26' fill='%23fff'/><ellipse cx='28' cy='24' rx='10' ry='12' fill='%23e6c36a'/><rect x='25' y='32' width='6' height='26' rx='3' fill='%23c4a24a'/></svg>");
}


.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-copy { min-width: 0; }
.brand-sticker {
  width: 96px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid #efece6;
  border-radius: 14px;
  box-shadow: 2px 3px 0 rgba(50, 50, 50, 0.08);
}
.spread-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 20px;
  align-items: start;
  padding: 8px 8px 4px 10px;
  border-bottom: 2px solid #efece6;
}
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
h1 {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(3rem, 8vw, 4.4rem);
  font-weight: 700;
  line-height: 0.9;
}
.place {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--date-red);
}
.date-block {
  text-align: center;
  min-width: 110px;
  padding: 6px 10px 10px;
  border: 1.5px solid #ece7de;
  background: #fff;
}
.date-block .dow {
  display: block;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.date-block .dom {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--date-red);
  font-weight: 700;
}
.date-block .moy {
  display: block;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.zone-line {
  margin: 10px 8px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.spread {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 0;
  margin-top: 10px;
}
.gutter {
  background: linear-gradient(90deg, rgba(40,40,40,0.04), transparent 45%, transparent 55%, rgba(40,40,40,0.03));
}
.page { position: relative; padding: 8px 10px 16px; min-width: 0; }
.page-rule {
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: #f0c8c0; opacity: 0.7;
}
.page h2 { margin: 0 0 4px 10px; }
.tab {
  display: inline-block;
  font-family: var(--hand);
  font-size: 2rem;
  font-weight: 700;
  padding: 0 10px 2px;
  background: linear-gradient(180deg, transparent 60%, #f7c8c0 60%);
  line-height: 1.1;
}
.tab-mint { background: linear-gradient(180deg, transparent 60%, #bfe8dc 60%); }
.page-hint { margin: 0 10px 12px; font-size: 0.88rem; color: var(--ink-soft); }

.check-list, .staple-list, .item-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.check-row, .staple-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 8px 8px 4px;
  background: #fff;
  border: 1px solid #efece6;
  border-radius: 4px 14px 10px 8px;
  box-shadow: 2px 3px 0 rgba(50, 50, 50, 0.05);
  margin-bottom: 10px;
}
.staple-card { flex-wrap: wrap; padding: 12px; }
.check-row.done .check-text {
  text-decoration: line-through;
  color: var(--muted);
}
.check-toggle, .out-btn {
  flex: 0 0 auto;
  min-width: var(--tap);
  min-height: var(--tap);
  border: 0;
  border-radius: 12px;
  background: #fff7ea;
  box-shadow: 2px 3px 0 var(--coral);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.check-toggle.is-on, .out-btn.is-on {
  background: #e3f2d8;
  box-shadow: 2px 3px 0 var(--sage);
  color: #2f6a28;
}
.check-text, .staple-name {
  flex: 1 1 140px;
  font-weight: 800;
  padding-top: 12px;
}
.staple-name { font-family: var(--hand); font-size: 1.55rem; padding-top: 4px; }
.meta { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; width: 100%; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.btn-sticker, .btn-ink, .btn-ghost, .btn-tiny, .sticker-btn {
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 16px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.sticker-btn {
  border-radius: 999px;
  background: #fff;
  box-shadow: 2px 3px 0 rgba(50, 50, 50, 0.14);
}
.btn-sticker {
  border-radius: 999px;
  background: #fff7ea;
  color: var(--ink);
  box-shadow: 2px 3px 0 var(--coral);
}
.btn-sticker-mint { box-shadow: 2px 3px 0 var(--mint); }
.btn-tiny {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-width: auto;
}
button:disabled, input:disabled { opacity: 0.55; cursor: not-allowed; }

.empty {
  margin: 0 0 12px;
  padding: 18px;
  border: 1.5px dashed #ece7de;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  background: #fff;
}

.add-form { display: grid; gap: 10px; }
.add-form label, .june-auth label, .life-auth-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}
.opt { font-weight: 600; color: var(--muted); }

input[type="text"], input[type="number"], input[type="date"] {
  width: 100%;
  min-height: var(--tap);
  margin-top: 4px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1.5px solid #e4dfd4;
  background: transparent;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
}
.cadence-input {
  width: 88px;
  min-height: 40px;
  margin: 0;
  font-weight: 700;
}

input:focus, button:focus-visible {
  outline: 3px solid #c9ddf0;
  outline-offset: 2px;
}

.life-auth { margin: 12px 8px 0; }
.life-lock-card {
  position: relative;
  background: #fff;
  border: 1px solid #efece6;
  border-radius: 8px 22px 12px 10px;
  padding: 18px 16px 20px;
  box-shadow: 3px 4px 0 rgba(50, 50, 50, 0.06);
  max-width: 520px;
}
.life-lock-card::after {
  content: "";
  position: absolute;
  right: 18px; top: -10px;
  width: 54px; height: 22px;
  background: repeating-linear-gradient(-12deg, #ef9a8f 0 8px, #f8c8c0 8px 14px);
  box-shadow: 1px 2px 0 rgba(50, 50, 50, 0.1);
  transform: rotate(4deg);
  pointer-events: none;
}
.life-lock-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.life-lock-title {
  margin: 4px 0 8px;
  font-family: var(--hand);
  font-size: 2.2rem;
}
.life-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}
.life-auth-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 4px;
}
.june-status, .life-auth-status {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
}
.life-pending h3 {
  margin: 14px 0 6px;
  font-family: var(--hand);
  font-size: 1.45rem;
}
.item-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.colophon {
  margin-top: 22px;
  padding: 12px 12px 0;
  border-top: 1px dashed #ece7de;
  color: var(--muted);
  font-size: 0.86rem;
}

.staple-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}
.staple-tools label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .spread { grid-template-columns: 1fr; }
  .gutter { display: none; }
  .deco-spoon, .deco-shirt { display: none; }
  .notebook { padding: 32px 14px 24px 26px; }
  .deco-basket { top: 88px; right: 8px; width: 52px; height: 52px; }
}


.intro-hint { margin: 16px 10px 8px; }
.house-cards {
  display: grid;
  gap: 16px;
  margin: 8px 8px 0;
}
.chore-card {
  position: relative;
  background: #fff;
  border: 1px solid #efece6;
  border-radius: 4px 18px 12px 8px;
  padding: 18px 16px 16px 78px;
  box-shadow: 2px 3px 0 rgba(50, 50, 50, 0.05);
  min-height: 140px;
}
.chore-card::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 8px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #ece7de 0 8px, transparent 8px 12px);
}
.chore-card.is-done { background: #f6fbf6; }
.chore-sticker {
  position: absolute;
  left: 8px; top: 22px;
  width: 62px; height: 62px;
  transform: rotate(-7deg);
  filter: drop-shadow(2px 3px 0 rgba(50, 50, 50, 0.14));
}
.chore-card:nth-child(2) .chore-sticker { transform: rotate(6deg); }
.chore-card:nth-child(3) .chore-sticker { transform: rotate(-2deg); }
.chore-card h3 {
  margin: 6px 0 0;
  font-family: var(--hand);
  font-size: 2rem;
  line-height: 1;
}
.chore-status {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.chore-status strong { color: var(--date-red); }
.chore-card.is-done .chore-status strong { color: #2f6a28; }
.chore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.day-field { margin-top: 12px; }
.day-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-soft);
}

@media (min-width: 800px) {
  .house-cards { grid-template-columns: 1fr 1fr 1fr; }
}

.life-lock { position: relative; background: #fff; border: 1px solid #efece6; border-radius: 8px 22px 12px 10px; padding: 18px 16px 20px; box-shadow: 3px 4px 0 rgba(50,50,50,0.06); max-width: 520px; }
.life-chip { margin: 0; font-family: var(--hand); font-size: 1.35rem; color: var(--date-red); }
.life-err { color: #c45c4a; font-size: 0.9rem; min-height: 1.2em; }
.ask-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
[hidden] { display: none !important; }
