/* Homestead / Garden — white sticker planner */
:root {
  --paper: #ffffff;
  --cream: #fffdfb;
  --desk: #eeeeef;
  --ink: #2c2620;
  --ink-soft: #5c564e;
  --muted: #8a847a;
  --rule: #ece7de;
  --dot: #e4dfd4;
  --date-red: #c45c4a;
  --coral: #ef9a8f;
  --mint: #7fc4b0;
  --gold: #e6c36a;
  --sky: #8eb8d8;
  --lavender: #c9b4d8;
  --leaf: #6fad5c;
  --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: #f4f4f5;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.95), transparent 42%),
    linear-gradient(180deg, #f7f7f8 0%, #eeeeef 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
  );
}

.washi-june {
  position: absolute;
  top: -8px;
  left: 28%;
  width: 132px;
  height: 22px;
  transform: rotate(-2deg);
  background: repeating-linear-gradient(
    90deg,
    #c9b4d8 0 10px,
    #e8dcf0 10px 16px,
    #fff 16px 20px
  );
}

.deco {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: 72px;
  height: 72px;
}

.deco-can { top: 86px; right: 28px; transform: rotate(8deg); }
.deco-bunny { bottom: 88px; left: 28px; transform: rotate(-10deg); width: 64px; height: 64px; }
.deco-star { top: 200px; left: 22px; width: 48px; height: 48px; transform: rotate(-16deg); }

/* Bright die-cut plant stickers (CSS/SVG) */
.plant-sticker {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: 70px;
  height: 70px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(2px 3px 0 rgba(50, 50, 50, 0.14));
}

.plant-lettuce {
  top: 118px;
  left: 46%;
  transform: rotate(-8deg);
  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='28' ry='26' fill='%23fff'/><path d='M36 16c8 2 16 8 18 16 2 8-2 14-6 16 6 2 8 8 4 12-6 6-16 8-22 6-10 4-20-2-22-12 0-8 6-12 8-18 2-8 10-18 20-20z' fill='%237ec56a'/><path d='M28 28c6-6 16-4 18 4 4 8-2 14-8 14-8 2-14-6-10-18z' fill='%235aa34a'/></svg>");
}

.plant-carrot {
  top: 168px;
  right: 96px;
  transform: rotate(11deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'><path d='M16 20c8-8 24-8 32 2 8 10 4 28-8 36S16 64 14 48 8 28 16 20z' fill='%23fff'/><path d='M30 14c2 8 2 12 0 16h4c2-6 4-12 8-16-6 2-8 2-12 0z' fill='%235aa34a'/><path d='M28 30l8-2 10 22c2 6-2 12-8 14s-12-2-14-8l4-26z' fill='%23f08a2a'/></svg>");
}

.plant-kale {
  bottom: 210px;
  right: 22px;
  transform: rotate(-6deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'><path d='M14 36c0-16 12-26 24-26s22 8 24 22-8 28-24 28S14 52 14 36z' fill='%23fff'/><path d='M36 16c10 0 16 6 18 14 6-2 10 6 6 12-2 6-8 8-8 8 4 6-2 12-10 12-8 4-18 0-22-8-6-2-8-10-4-16 2-6 8-8 8-10 0-6 6-12 12-12z' fill='%232f7a3e'/></svg>");
}

.plant-garlic {
  bottom: 140px;
  left: 46%;
  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='M36 14c4 6 4 10 2 14 10 4 16 14 14 24-2 12-14 18-22 16-10 4-20-4-20-16 0-12 8-20 16-24-2-4 2-10 10-14z' fill='%23f4efe6'/><path d='M36 28c-6 8-8 16-6 26m6-26c6 8 8 16 6 26M36 28v28' stroke='%23c9b4d8' stroke-width='1.6' fill='none'/></svg>");
}

.plant-tomato {
  top: 320px;
  right: 18px;
  transform: rotate(-12deg);
  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 40c2-14 12-22 22-20 4-8 16-8 20 2 8 4 10 16 2 24-6 8-18 10-26 4-10 4-20-2-18-10z' fill='%233d8a3a'/><path d='M36 22c2 10 2 20 0 30M28 30c6 4 10 10 12 18M44 28c-6 6-8 14-8 22' stroke='%232a5c28' stroke-width='1.6' fill='none'/><path d='M34 16c2 6 4 8 2 12 4-2 8-6 12-12-6 2-10 2-14 0z' fill='%23c45c4a'/></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 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;
  color: var(--ink);
}

.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);
}

.frost-wrap { max-width: 230px; }

.frost-sticker {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 10px 8px 6px;
  border: 0;
  background: #fff;
  border-radius: 40px 18px 22px 36px;
  box-shadow:
    2px 3px 0 rgba(50, 50, 50, 0.12),
    0 8px 16px rgba(50, 50, 50, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transform: rotate(2deg);
}

.frost-sticker:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.frost-icon { width: 52px; height: 52px; flex: 0 0 52px; }
.frost-icon svg { width: 100%; height: 100%; display: block; }

.frost-copy { display: flex; flex-direction: column; line-height: 1.15; }
.frost-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 800;
}
.frost-date {
  font-family: var(--hand);
  font-size: 1.55rem;
  font-weight: 700;
}
.frost-days { font-size: 0.86rem; color: var(--ink-soft); font-weight: 700; }
.frost-approx {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.frost-edit {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px dashed var(--rule);
}

.frost-edit label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.frost-edit-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.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%); }
.tab-gold { background: linear-gradient(180deg, transparent 60%, #f3e2a8 60%); }
.tab-soft { background: linear-gradient(180deg, transparent 60%, #e8e4dc 60%); }
.tab-june { background: linear-gradient(180deg, transparent 60%, #e4d4f0 60%); }

.sticker-head {
  transform: rotate(-1.5deg);
  display: inline-block;
}

.page-hint {
  margin: 0 10px 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.cards { display: grid; gap: 14px; }
.cards-row { grid-template-columns: 1fr; }

.card {
  position: relative;
  background: #ffffff;
  border: 3.5px solid var(--mint);
  border-radius: 28px 16px 24px 14px;
  padding: 16px 16px 14px 78px;
  box-shadow:
    3px 5px 0 rgba(40, 40, 40, 0.12),
    0 10px 18px rgba(40, 40, 40, 0.05);
  min-height: 124px;
  transform: rotate(-0.7deg);
}

.card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 20px;
  top: 7px;
  height: 12px;
  border-radius: 18px 10px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 48%, rgba(40,40,40,0.07) 48%);
  border-radius: 0 0 10px 0;
  pointer-events: none;
}

.card:nth-child(2n) {
  border-color: var(--coral);
  border-radius: 16px 26px 14px 22px;
  background: #fff8f6;
  transform: rotate(0.75deg);
}

.card:nth-child(3n) {
  border-color: var(--gold);
  border-radius: 22px 12px 26px 16px;
  background: #fffdf4;
  transform: rotate(-0.35deg);
}

.card:nth-child(4n) {
  border-color: var(--sky);
  border-radius: 14px 24px 18px 28px;
  background: #f6fbff;
  transform: rotate(0.5deg);
}

.card:nth-child(5n) {
  border-color: var(--lavender);
  border-radius: 26px 18px 12px 22px;
  background: #fbf7ff;
  transform: rotate(-0.85deg);
}

.card.planted {
  background: #f3faf3;
  border-color: var(--leaf);
}

.card.skip {
  background: #ffffff;
  opacity: 0.78;
  border-style: dashed;
}

.crop-sticker {
  position: absolute;
  left: 6px;
  top: 14px;
  width: 68px;
  height: 68px;
  transform: rotate(-7deg);
  filter: drop-shadow(2px 3px 0 rgba(50, 50, 50, 0.16));
}

.crop-sticker svg { width: 100%; height: 100%; display: block; }

.card:nth-child(even) .crop-sticker { transform: rotate(6deg); top: 14px; }
.card:nth-child(3n) .crop-sticker { transform: rotate(-2deg); }

.card h3 {
  margin: 8px 0 0;
  font-family: var(--hand);
  font-size: 2.05rem;
  line-height: 0.95;
  font-weight: 700;
}

.action-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f6efe4;
  color: #6a4e32;
}

.action-pill.direct-sow { background: #e3f2d8; color: #3d6a32; }
.action-pill.transplant { background: #ddeef8; color: #2d5674; }
.action-pill.last-sow { background: #fde4d6; color: #8a3e22; }
.action-pill.plant-garlic { background: #eee6f6; color: #5a3d72; }

.when {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 0.92rem;
}

.when strong { color: var(--date-red); font-weight: 700; }

.note, .math {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bed-pick { margin-top: 10px; }
.bed-pick label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.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);
  flex: 1 1 130px;
}

.sticker-btn.planted-btn {
  background: #fffef2;
  color: #2f6a28;
  box-shadow: 2px 3px 0 #7eb86a;
}

.sticker-btn.skip-btn {
  background: #fff;
  color: #5c564e;
  box-shadow: 2px 3px 0 #d8d2c6;
}

.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-ink {
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.btn-ghost, .btn-tiny {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-width: auto;
}

button:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.passed-wrap, .my-garden, .ask-june {
  margin-top: 22px;
  padding: 8px 10px 0;
  position: relative;
}

.ask-june {
  margin-top: 28px;
}

.june-card {
  position: relative;
  background: #ffffff;
  border: 3px solid var(--lavender);
  border-radius: 18px 28px 16px 22px;
  padding: 16px 16px 18px;
  box-shadow: 3px 5px 0 rgba(50, 50, 50, 0.10);
  transform: rotate(-0.3deg);
}

.june-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;
}

.june-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.june-auth label {
  flex: 1 1 160px;
  font-size: 0.82rem;
  font-weight: 800;
}

.june-status {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.ask-form { display: grid; gap: 10px; }

.ask-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1.5px solid #e4dfd4;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 27px,
      #f0ebe3 27px 28px
    ),
    #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
  min-height: 88px;
}

.june-thread {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.june-note {
  background: #fffef8;
  border: 1px solid #efece6;
  border-radius: 4px 12px 8px 6px;
  padding: 10px 12px;
  box-shadow: 1px 2px 0 rgba(50, 50, 50, 0.05);
}

.june-note .from {
  font-family: var(--hand);
  font-size: 1.35rem;
  font-weight: 700;
}

.june-note .when-asked {
  font-size: 0.78rem;
  color: var(--muted);
}

.june-note .q {
  margin: 6px 0 0;
}

.june-note .a {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #ece7de;
  font-family: var(--serif);
  font-style: italic;
}

.june-note .a-label {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  font-weight: 800;
}

.june-pending-wrap h3 {
  margin: 14px 0 6px;
  font-family: var(--hand);
  font-size: 1.45rem;
}

.garden-grid {
  display: grid;
  gap: 16px;
}

.lined-panel {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 27px,
      #f0ebe3 27px 28px
    ),
    #fff;
  border: 1px solid #efece6;
  padding: 12px 14px 16px;
}

.lined-panel h3 {
  margin: 0 0 8px;
  font-family: var(--hand);
  font-size: 1.6rem;
}

.item-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.item-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
}

.item-list .name { font-weight: 800; }
.item-list .meta { font-size: 0.85rem; color: var(--ink-soft); }

.add-form { display: grid; gap: 10px; }

.add-form label,
.frost-edit label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}

.opt { font-weight: 600; color: var(--muted); }

input[type="text"],
input[type="date"],
select {
  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;
}

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

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

.done-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #2f6a28;
}

.done-flag svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .spread { grid-template-columns: 1fr; }
  .gutter { display: none; }
  .spread-header { grid-template-columns: 1fr auto; }
  .frost-wrap { grid-column: 1 / -1; max-width: none; }
  .frost-sticker { transform: none; }
  .deco-can, .deco-star { display: none; }
  .plant-kale, .plant-garlic { display: none; }
  .notebook { padding: 32px 14px 24px 26px; }
  .plant-lettuce { top: 92px; left: auto; right: 8px; width: 52px; height: 52px; }
  .plant-carrot { top: auto; bottom: 24px; right: 12px; width: 48px; height: 48px; }
  .plant-tomato { top: auto; bottom: 72px; right: 8px; width: 48px; height: 48px; }
}

@media (min-width: 700px) {
  .garden-grid { grid-template-columns: 1fr 1fr; }
  .cards-row { grid-template-columns: 1fr 1fr; }
}
