/* ============================================================
   GardenSync — A Quiet Almanac
   Warm paper, deep green ink, terracotta clay, gentle motion.
   ============================================================ */

:root {
  --paper:       #F5EFDF;
  --paper-deep:  #EDE4CD;
  --paper-edge:  #E3D7BA;
  --ink:         #2C3527;
  --ink-soft:    #5C6553;
  --ink-faint:   #8B927E;
  --moss:        #5E7350;
  --moss-deep:   #3D5135;
  --moss-pale:   #DCE5CB;
  --clay:        #B5613D;
  --clay-pale:   #F0DCCF;
  --gold:        #C09A2C;
  --gold-pale:   #F2E7C4;
  --soil:        #B49B79;
  --soil-deep:   #9C825F;
  --rose-pale:   #F0DBD3;
  --fruit-pale:  #F3E4C0;
  --herb-pale:   #E4E8CE;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Karla', 'Segoe UI', sans-serif;

  --shadow-soft: 0 1px 2px rgba(44,53,39,.06), 0 6px 18px rgba(44,53,39,.08);
  --shadow-lift: 0 2px 4px rgba(44,53,39,.08), 0 14px 30px rgba(44,53,39,.14);
  --ease-calm: cubic-bezier(.33,.8,.3,1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 70% -10%, #FAF6EA 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 100%, #EFE6CF 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

::selection { background: var(--moss-pale); }

/* paper grain over everything, very quiet */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--paper-edge);
  animation: settle .7s var(--ease-calm) both;
}

.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark .sprig { width: 34px; height: 34px; color: var(--moss-deep); flex: none; }
.wordmark h1 {
  font-family: var(--serif);
  font-weight: 550; font-size: 30px; line-height: 1;
  margin: 0; letter-spacing: -.01em;
  font-variation-settings: 'opsz' 100;
}
.tagline {
  margin: 4px 0 0;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}

.masthead-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.weather-chip {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink-soft); margin-right: 8px;
}

.tool-btn, .linklike {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--paper-edge); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  transition: all .25s var(--ease-calm);
}
.tool-btn:hover { color: var(--moss-deep); border-color: var(--moss); background: #FFFFFF66; }
.tool-btn:active { transform: translateY(1px); }
/* Link across to the other edition of the same app (the original planner). */
a.edition-link { text-decoration: none; display: inline-block; }

.linklike {
  border: none; padding: 0 2px; text-decoration: underline dotted;
  text-underline-offset: 3px; color: var(--clay); background: none;
}
.linklike:hover { color: var(--ink); }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #FCF8EC; border: 1px solid var(--paper-edge); border-radius: 12px;
  box-shadow: var(--shadow-lift);
  padding: 6px; min-width: 280px;
  animation: settle .25s var(--ease-calm) both;
}
.menu button {
  display: block; width: 100%; text-align: left;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  background: none; border: none; border-radius: 8px;
  padding: 10px 12px; cursor: pointer;
}
.menu button:hover { background: var(--moss-pale); }
.menu-rule { border: none; border-top: 1px solid var(--paper-edge); margin: 5px 8px; }

/* gentle "drag me" hint on the ribbon pin, first visit only */
.pin-hint {
  transform-box: fill-box; transform-origin: center;
  animation: pinHint 2.2s var(--ease-calm) 1.2s 3;
  opacity: 0;
}
@keyframes pinHint {
  0%   { opacity: 0;  transform: scale(1); }
  30%  { opacity: .7; transform: scale(1.7); }
  70%  { opacity: 0;  transform: scale(2.4); }
  100% { opacity: 0;  transform: scale(1); }
}

/* ---------- season ribbon ---------- */

.season-band { padding: 14px 28px 4px; animation: settle .7s .08s var(--ease-calm) both; }
#ribbon { display: block; width: 100%; max-width: 1240px; margin: 0 auto; cursor: pointer; touch-action: none; }

.season-caption {
  max-width: 1240px; margin: 2px auto 0;
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft);
}

/* ---------- trifold layout ---------- */

.trifold {
  display: grid;
  grid-template-columns: 252px minmax(0,1fr) 304px;
  gap: 0;
  max-width: 1500px; margin: 0 auto;
  padding: 10px 16px 60px;
  align-items: start;
}

/* ---------- seed drawer ---------- */

.seed-drawer {
  position: sticky; top: 12px;
  max-height: calc(100vh - 24px); overflow-y: auto;
  padding: 10px 14px 24px 8px;
  animation: settle .7s .16s var(--ease-calm) both;
  scrollbar-width: thin; scrollbar-color: var(--paper-edge) transparent;
}

.drawer-head h2 {
  font-family: var(--serif); font-weight: 550; font-size: 19px; margin: 6px 0 8px;
}
#seed-search {
  width: 100%;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  background: #FFFFFF73; border: 1px solid var(--paper-edge); border-radius: 999px;
  padding: 7px 14px; outline: none;
  transition: border-color .25s;
}
#seed-search:focus { border-color: var(--moss); }
#seed-search::placeholder { color: var(--ink-faint); font-style: italic; }

.drawer-group-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 18px 4px 6px;
  display: flex; align-items: center; gap: 8px;
}
.drawer-group-title::after { content:''; flex: 1; height: 1px; background: var(--paper-edge); }

.packet {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 6px 8px; margin: 1px 0; cursor: pointer;
  font-family: var(--sans);
  transition: all .22s var(--ease-calm);
}
.packet:hover { background: #FFFFFF8C; border-color: var(--paper-edge); transform: translateX(2px); }
.packet.armed {
  background: var(--moss-pale); border-color: var(--moss);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px) rotate(-1deg);
}

.packet .pk-emoji {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  font-size: 18px; border-radius: 50%;
  background: var(--moss-pale);
  box-shadow: inset 0 0 0 1px rgba(44,53,39,.07);
}
.packet[data-type="herb"]   .pk-emoji { background: var(--herb-pale); }
.packet[data-type="flower"] .pk-emoji { background: var(--rose-pale); }
.packet[data-type="fruit"]  .pk-emoji { background: var(--fruit-pale); }

.packet .pk-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pk-here {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss); margin-left: 6px; vertical-align: 2px;
}
.packet .pk-meta { font-size: 11px; color: var(--ink-faint); }

/* ---------- garden ---------- */

.garden { padding: 6px 22px 0; min-width: 0; animation: settle .7s .24s var(--ease-calm) both; }

.planting-note {
  position: sticky; top: 10px; z-index: 40;
  margin: 0 auto 14px; width: fit-content; max-width: 100%;
  background: #FCF6E3;
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: 8px 18px;
  font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink);
  transform: rotate(-.4deg);
  animation: settle .3s var(--ease-calm) both;
}

.beds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, max-content));
  justify-content: center;
  gap: 26px 30px;
}

.bed-card { width: max-content; max-width: 100%; }

.bed-head { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 6px; }
.bed-name {
  font-family: var(--serif); font-weight: 550; font-style: italic;
  font-size: 18px; margin: 0;
  outline: none; border-radius: 6px; padding: 0 4px;
  cursor: text; min-width: 40px;
}
.bed-name:focus { background: #FFFFFF99; box-shadow: inset 0 0 0 1px var(--moss); font-style: normal; }
.bed-mood { font-size: 11.5px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 5px; }
.bed-mood .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.bed-mood.thriving .dot { background: var(--moss); }
.bed-mood.content  .dot { background: var(--gold); }
.bed-mood.uneasy   .dot { background: var(--clay); }
.bed-del {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint); font-size: 15px; line-height: 1;
  border-radius: 50%; width: 22px; height: 22px;
  opacity: 0; transition: all .2s;
}
.bed-card:hover .bed-del { opacity: 1; }
.bed-del:hover { color: var(--clay); background: var(--clay-pale); }

.bed-svg { display: block; filter: drop-shadow(0 4px 10px rgba(44,53,39,.14)); max-width: 100%; height: auto; touch-action: none; }

.potting-shed { margin: 30px auto 10px; width: fit-content; max-width: 100%; }
.shed-row {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 0; color: var(--ink-faint);
}
.shed-row .add-label { width: 110px; text-align: right; flex: none; }
.add-label { font-family: var(--serif); font-style: italic; font-size: 14px; }
.add-plot {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  background: transparent; border: 1.5px dashed var(--paper-edge); border-radius: 10px;
  padding: 7px 14px; cursor: pointer;
  transition: all .25s var(--ease-calm);
}
.add-plot:hover { border-color: var(--moss); color: var(--moss-deep); background: #FFFFFF66; }

/* field notes under each plot */
.bed-note-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint); font-size: 13px; line-height: 1;
  border-radius: 50%; width: 22px; height: 22px;
  opacity: 0; transition: all .2s;
}
.bed-card:hover .bed-note-btn { opacity: 1; }
.bed-note-btn.has-note { opacity: .85; color: var(--moss-deep); }
.bed-note-btn:hover { color: var(--moss-deep); background: var(--moss-pale); }

.bed-note {
  margin-top: 8px; padding: 10px 12px;
  background: #FCF6E3; border: 1px solid var(--gold);
  border-radius: 10px; box-shadow: var(--shadow-soft);
  transform: rotate(-.3deg);
  max-width: 100%;
}
.bn-caretaker {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink-soft);
}
.bn-caretaker-input {
  flex: 1; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px dotted var(--paper-edge);
  outline: none; padding: 2px 4px;
}
.bn-caretaker-input:focus { border-bottom-color: var(--moss); }
.bn-notes {
  display: block; width: 100%; min-height: 64px; margin-top: 8px;
  font-family: var(--sans); font-size: 13px; color: var(--ink); line-height: 1.5;
  background: transparent; border: none; outline: none; resize: vertical;
}
.bn-notes::placeholder, .bn-caretaker-input::placeholder { color: var(--ink-faint); font-style: italic; }
.bed-tended {
  margin: 4px 6px 0; font-family: var(--serif); font-style: italic;
  font-size: 12px; color: var(--ink-faint);
}

/* svg chip behavior */
.chip { cursor: pointer; }
.chip .swayer { animation: sway 7s ease-in-out infinite; transform-origin: center 60%; }
.chip.stage-planned .swayer { animation: none; }
.chip.stage-rest .swayer { animation: none; }
.chip:hover .body-ring { stroke: var(--ink); stroke-opacity: .35; }
.chip.dragging { opacity: .35; }

@keyframes sway {
  0%, 100% { transform: rotate(-1.1deg); }
  50%      { transform: rotate(1.1deg); }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bloomIn {
  0%   { transform: scale(.2); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
.chip.just-planted .swayer { animation: bloomIn .55s var(--ease-calm) both, sway 7s .55s ease-in-out infinite; }

/* ---------- almanac ---------- */

.almanac {
  position: sticky; top: 12px;
  max-height: calc(100vh - 24px);
  display: flex; flex-direction: column;
  background: #FBF6E8;
  border: 1px solid var(--paper-edge);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: settle .7s .32s var(--ease-calm) both;
}

.almanac-body { padding: 20px 20px 14px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--paper-edge) transparent; }

.almanac h2 {
  font-family: var(--serif); font-weight: 550; font-size: 21px;
  margin: 0 0 2px; letter-spacing: -.01em;
}
.almanac .alm-sub {
  font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--ink-soft); margin: 0 0 14px;
}

.alm-stats { display: flex; gap: 18px; margin: 12px 0 4px; }
.alm-stat .n { font-family: var(--serif); font-size: 24px; font-weight: 550; line-height: 1; }
.alm-stat .l { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

.alm-section {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 20px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.alm-section::after { content:''; flex:1; height: 1px; background: var(--paper-edge); }

.task {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 2px; border-bottom: 1px dotted var(--paper-edge);
  font-size: 13.5px;
}
.task:last-child { border-bottom: none; }
.task .t-date {
  flex: none; width: 52px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-faint);
}
.task .t-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.task.k-indoor    .t-dot { background: var(--gold); }
.task.k-sow       .t-dot { background: var(--moss); }
.task.k-transplant.t-dot, .task.k-transplant .t-dot { background: var(--moss-deep); }
.task.k-harvest   .t-dot { background: var(--clay); }
.task.past { opacity: .45; }
.task.past .t-text { text-decoration: line-through; text-decoration-color: var(--ink-faint); text-decoration-thickness: 1px; }

.calm-empty {
  font-family: var(--serif); font-style: italic; font-size: 14.5px;
  color: var(--ink-soft); padding: 10px 0;
}

.ready-line {
  margin: 12px 0 0; padding: 8px 12px;
  background: var(--gold-pale); border: 1px solid var(--gold); border-radius: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .chip .swayer, .pin-hint, .chip.just-planted .swayer { animation: none !important; }
  .masthead, .season-band, .seed-drawer, .garden, .almanac, .menu, .planting-note { animation: none !important; }
}

.proverb {
  margin: 22px 0 4px; padding-top: 14px;
  border-top: 1px solid var(--paper-edge);
  font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--ink-faint); text-align: center;
}

/* plant page in almanac */
.plant-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.plant-hero .ph-emoji {
  width: 58px; height: 58px; flex: none;
  display: grid; place-items: center; font-size: 32px;
  border-radius: 50%; background: var(--moss-pale);
  box-shadow: inset 0 0 0 1px rgba(44,53,39,.08);
}
.plant-hero[data-type="herb"]   .ph-emoji { background: var(--herb-pale); }
.plant-hero[data-type="flower"] .ph-emoji { background: var(--rose-pale); }
.plant-hero[data-type="fruit"]  .ph-emoji { background: var(--fruit-pale); }

.plant-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.fact {
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
  background: #FFFFFF8C; border: 1px solid var(--paper-edge); border-radius: 999px;
  padding: 3px 10px;
}

.year-strip { margin: 14px 0 2px; }
.year-strip svg { display: block; width: 100%; }

.mate-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mate {
  font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 3px 10px 3px 7px;
  border: 1px solid var(--paper-edge); background: #FFFFFF73;
  display: inline-flex; align-items: center; gap: 4px;
}
.mate.present { border-color: var(--moss); background: var(--moss-pale); }
.mate.foe.present { border-color: var(--clay); background: var(--clay-pale); }

.plant-notes { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0; }
.plant-notes strong { color: var(--ink); }

details.howto { margin: 10px 0; }
details.howto summary {
  cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
}
details.howto p { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }

.alm-actions { display: flex; gap: 8px; margin-top: 16px; }
.alm-btn {
  flex: 1;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  border-radius: 10px; padding: 9px 12px; cursor: pointer;
  border: 1px solid var(--paper-edge); background: #FFFFFF8C; color: var(--ink-soft);
  transition: all .22s var(--ease-calm);
}
.alm-btn:hover { border-color: var(--moss); color: var(--moss-deep); }
.alm-btn.danger:hover { border-color: var(--clay); color: var(--clay); background: var(--clay-pale); }
.alm-btn.primary { background: var(--moss-deep); border-color: var(--moss-deep); color: #F5EFDF; }
.alm-btn.primary:hover { background: var(--moss); color: #fff; }

/* ---------- ask the almanac ---------- */

.ask-wrap { border-top: 1px solid var(--paper-edge); background: #F7F1DF; }
.ask-toggle {
  display: block; width: 100%;
  font-family: var(--serif); font-style: italic; font-size: 14.5px;
  color: var(--moss-deep); background: none; border: none;
  padding: 12px; cursor: pointer;
  transition: background .25s;
}
.ask-toggle:hover { background: var(--moss-pale); }

.ask-panel { padding: 0 14px 12px; }
.ask-messages { max-height: 240px; overflow-y: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.ask-hint { font-size: 12px; color: var(--ink-faint); font-style: italic; margin: 4px 0; }
.msg { margin: 8px 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.msg.user { color: var(--ink); font-weight: 600; }
.msg.user::before { content: 'you — '; color: var(--ink-faint); font-weight: 400; font-style: italic; }
.msg.bot { color: var(--ink-soft); }
.msg.bot::before { content: 'almanac — '; color: var(--moss); font-weight: 600; font-style: italic; }
.msg.thinking { color: var(--ink-faint); font-style: italic; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:.4 } 50% { opacity:1 } }

.ask-form { display: flex; gap: 6px; }
.ask-form input {
  flex: 1; font-family: var(--sans); font-size: 13px;
  background: #FFFFFFA6; border: 1px solid var(--paper-edge); border-radius: 999px;
  padding: 8px 14px; outline: none; color: var(--ink);
}
.ask-form input:focus { border-color: var(--moss); }
.ask-form button {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  background: var(--moss-deep); color: #F5EFDF; border: none; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
}
.ask-form button:hover { background: var(--moss); }

/* ---------- whisper toast ---------- */

.whisper {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(-.5deg);
  z-index: 200;
  background: #FCF6E3; border: 1px solid var(--gold);
  border-radius: 10px; box-shadow: var(--shadow-lift);
  padding: 9px 20px;
  font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink);
  animation: settle .35s var(--ease-calm) both;
  max-width: min(520px, 90vw); text-align: center;
}

/* ---------- harvest goal bar ---------- */

.goal-bar {
  position: relative; height: 18px; border-radius: 999px;
  background: #EDE4CD; border: 1px solid var(--paper-edge);
  overflow: hidden; margin: 2px 0 8px;
}
.goal-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; border-radius: 999px;
  background: var(--moss);
  opacity: .8;
  transition: width .8s var(--ease-calm);
}
.goal-fill.proj {
  background: linear-gradient(90deg, var(--moss-pale) 0%, var(--gold-pale) 100%);
  opacity: 1;
}

.log-form { display: flex; gap: 6px; align-items: center; }
.log-form input {
  width: 86px;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  background: #FFFFFF8C; border: 1px solid var(--paper-edge); border-radius: 999px;
  padding: 7px 12px; outline: none;
}
.log-form input:focus { border-color: var(--moss); }
.log-form button {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  background: var(--moss-deep); color: #F5EFDF;
  border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.log-form button:hover { background: var(--moss); }
.goal-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- frost watch ---------- */

.weather-chip.frosty { color: #5B7596; }

/* ---------- overlays (calendar, help) ---------- */

.overlay[hidden] { display: none; }
.overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(44,53,39,.35);
  backdrop-filter: blur(3px);
  display: grid; place-items: start center;
  overflow-y: auto; padding: 4vh 16px;
}
.overlay-page {
  background: var(--paper);
  border: 1px solid var(--paper-edge); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(44,53,39,.35);
  width: min(1060px, 96vw);
  padding: 26px 30px 30px;
  animation: settle .4s var(--ease-calm) both;
}
.overlay-narrow { width: min(560px, 96vw); }
.overlay-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 14px;
}
.overlay-head h2 {
  font-family: var(--serif); font-weight: 550; font-size: 26px; margin: 0;
}
.overlay-tools { display: flex; gap: 8px; }

.cal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px 22px;
}
.cal-month h3 {
  font-family: var(--serif); font-style: italic; font-weight: 550;
  font-size: 17px; margin: 4px 0 4px;
  border-bottom: 1px solid var(--paper-edge); padding-bottom: 4px;
}
.cal-month .task { font-size: 12.5px; padding: 4px 2px; }

.help-body p { font-size: 14px; color: var(--ink-soft); margin: 12px 0; }
.help-body strong { color: var(--ink); }

/* ---------- print: just the calendar ---------- */

@media print {
  body > *:not(#calendar-overlay) { display: none !important; }
  .grain { display: none !important; }
  #calendar-overlay { position: static; background: none; backdrop-filter: none; padding: 0; display: block; }
  .overlay-page { box-shadow: none; border: none; width: 100%; padding: 0; }
  .no-print { display: none !important; }
  .cal-grid { grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
  .task .t-dot { border: 1px solid #999; }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .trifold { grid-template-columns: 224px minmax(0,1fr); }
  .almanac { grid-column: 1 / -1; position: static; max-height: none; margin-top: 18px; }
}

@media (max-width: 760px) {
  .trifold { grid-template-columns: 1fr; padding: 8px 10px 40px; }
  .seed-drawer { position: static; max-height: 280px; }
  .masthead { padding: 16px 16px 10px; }
  .season-band { padding: 10px 12px 2px; }
  .garden { padding: 6px 2px 0; }
}
