/* Mochi's notes and roadmap pages (also used by the desk's preview). */
[hidden] { display: none !important; }
:root {
  --m-happy: #FFCF6B; --m-calm: #9EDDC8; --m-neutral: #E3D5B8;
  --m-anxious: #A9CCF6; --m-angry: #F5917F; --m-sad: #7D93B8;
}
.note-paper {
  --paper-mood: var(--m-happy);
  position: relative; font-weight: 400; background: var(--paper); border-radius: 6px; padding: 26px 24px; min-height: 340px;
  box-shadow: inset 0 8px 0 var(--paper-mood), var(--shadow); overflow-wrap: anywhere;
  background-image: linear-gradient(color-mix(in srgb, var(--paper-mood) 14%, transparent), transparent 140px);
}
.note-paper .tape { --mood: var(--paper-mood); }
.note-paper h1 { font-size: 1.9rem; }
.note-paper h2 { font-size: 1.45rem; margin-top: .8em; }
.note-paper h3, .note-paper h4 { font-size: 1.15rem; margin-top: .8em; }
.note-paper blockquote { margin: 0 0 1em; padding: 6px 0 6px 16px; border-left: 4px solid var(--paper-mood); font: 400 1.15rem var(--hand); }
.note-paper hr { border: 0; height: 12px; background: radial-gradient(circle, var(--paper-mood) 3px, transparent 4px) center/22px 12px repeat-x; margin: 1.2em 0; }
.note-paper .lead { color: var(--ink-soft); }
.note-body a { color: inherit; text-decoration-color: var(--paper-mood); text-decoration-thickness: 3px; }
.note-body ul, .note-body ol { padding-left: 1.3em; }
.note-body li::marker { color: color-mix(in srgb, var(--paper-mood) 70%, var(--ink)); }

.notes-page main { padding-bottom: 40px; }
.notes-hero { display: flex; align-items: center; gap: 22px; margin: 30px 0 40px; }
.notes-hero h1 { margin: 0; }
.notes-hero .lead { font-size: 1.25rem; margin: 6px 0 0; max-width: 560px; }
/* At night the hero sits on the dark sky: light ink so it stays readable. */
:root[data-phase='night'] .notes-hero h1 { color: #fff; text-shadow: 0 2px 0 rgba(20, 18, 40, .35); }
:root[data-phase='night'] .notes-hero .lead { color: #F4F1FB; text-shadow: 0 1px 3px rgba(20, 18, 40, .5); }
.notes-hero__mochi { width: 120px; flex: none; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }
.empty-line { width: fit-content; max-width: 100%; margin: 10px auto; padding: 14px 22px; color: var(--ink); font-size: 1.2rem; text-align: center; background: var(--paper); border-radius: 14px; box-shadow: 0 6px 18px rgba(42, 36, 64, .14); rotate: -1deg; list-style: none; }

/* list */
.notes-grid { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 34px 28px; }
.note-card { rotate: var(--tilt); transition: rotate .25s, transform .25s; }
.note-card:hover { rotate: 0deg; transform: translateY(-6px); }
.note-card a {
  position: relative; display: block; height: 100%; text-decoration: none; padding: 30px 24px 22px;
  background: var(--paper); border-radius: 6px; box-shadow: inset 0 8px 0 var(--paper-mood), var(--shadow);
  background-image: linear-gradient(color-mix(in srgb, var(--paper-mood) 16%, transparent), transparent 120px);
}
.note-card .tape { --mood: var(--paper-mood); }
.note-card h2 { font-size: 1.5rem; margin: 4px 0 8px; }
.note-card p { color: var(--ink-soft); }
.note-card__mochi { position: absolute; right: 14px; top: 18px; width: 48px; transition: transform .3s; }
.note-card:hover .note-card__mochi { transform: rotate(-10deg) scale(1.1); }
.note-date { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* one note */
.back { margin: 20px 0 26px; }
.note-full { max-width: 760px; margin: 0 auto 80px; padding: 46px 52px 60px; rotate: -.3deg; font-size: 1.08rem; }
.note-full h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 6px; }
.note-sign { position: absolute; right: 26px; bottom: -26px; width: 74px; rotate: 8deg; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; margin-bottom: 60px; }
.road-col {
  border-radius: 16px; padding: 20px 16px 22px;
  background: color-mix(in srgb, var(--col) 24%, #F4EAD6);
  background-image: radial-gradient(rgba(42,36,64,.06) 1.2px, transparent 1.3px); background-size: 9px 9px;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--col) 50%, transparent);
}
.road-col header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.road-col header h2 { font-size: 1.6rem; margin: 0; }
.road-col header p { margin: 0; color: var(--ink-soft); }
.road-col__mochi { width: 54px; flex: none; }
.road-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.road-card { position: relative; background: #fff; border-radius: 4px; padding: 22px 16px 14px; box-shadow: var(--shadow); rotate: var(--tilt); transition: rotate .25s, transform .25s; }
.road-card:hover { rotate: 0deg; transform: translateY(-4px); }
.road-card .tape { --mood: var(--col); width: 72px; height: 22px; }
.road-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.road-card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 12px; }
.road-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jar { position: relative; width: 26px; height: 32px; border: 2.5px solid var(--ink); border-top-width: 4px; border-radius: 6px 6px 10px 10px; overflow: hidden; background: #fff; }
.jar__fill { position: absolute; inset: auto 0 0 0; height: var(--fill); min-height: 3px; background: var(--col); filter: saturate(1.4); animation: fill-up 1.2s cubic-bezier(.3,1.3,.5,1) both; }
@keyframes fill-up { from { height: 0; } }

/* ------------------------------------------------------- water-drop notice -- */
.drop-notice {
  position: fixed; top: 14px; left: 50%; z-index: 60; translate: -50% -140%;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 520px);
  background: #fff; border-radius: 22px; padding: 10px 18px 10px 12px;
  box-shadow: 0 4px 0 var(--mood-deep), 0 16px 30px -12px rgba(42,36,64,.4);
  font-weight: 600; transition: translate .45s cubic-bezier(.3,1.5,.5,1);
}
.drop-notice.in { translate: -50% 0; }
.drop-notice[data-tone='bad'] { box-shadow: 0 4px 0 #D9604B, 0 16px 30px -12px rgba(42,36,64,.4); }
.drop-notice__drop {
  width: 26px; height: 31px; flex: none; background: var(--mood);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: drip 1.8s ease-in-out infinite;
}
.drop-notice[data-tone='bad'] .drop-notice__drop { background: var(--m-angry); }
@keyframes drip { 50% { transform: translateY(3px) scaleY(.92); } }

/* -------------------------------------------------- votes on the web -- */
.love {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 700 1rem/1 var(--hand); color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 5px 14px 5px 6px;
  box-shadow: 0 3px 0 var(--line); transition: transform .15s, box-shadow .15s, background .3s;
}
.love:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 4px 0 var(--col); }
.love:active { transform: translateY(2px); }
.love--on { background: color-mix(in srgb, var(--col) 30%, #fff); box-shadow: 0 3px 0 color-mix(in srgb, var(--col) 70%, var(--ink)); }
.love .jar { width: 22px; height: 27px; }
.love--pop .jar { animation: squish .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes squish { 40% { transform: scale(1.3, .85); } 70% { transform: scale(.9, 1.15); } }
.votes-count { color: var(--ink-soft); }

/* -------------------------------------------------- suggestion box -- */
.idea-box { scroll-margin-top: 24px; display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: center; max-width: 860px; margin: 0 auto 80px; padding: 40px 40px 34px; rotate: .4deg; }
.idea-box__mochi { width: 120px; animation: bob 4s ease-in-out infinite; }
.idea-box h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .2em; }
.idea-box textarea {
  width: 100%; font: 400 1.05rem/28px var(--body); color: var(--ink); resize: vertical;
  background: #fff repeating-linear-gradient(transparent 0 27px, rgba(42,36,64,.06) 27px 28px);
  border: 2px solid var(--line); border-radius: 12px; padding: 4px 14px;
}
.idea-box textarea:focus { outline: none; border-color: var(--mood-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mood) 35%, transparent); }
.idea-box__label { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.needed { font: 700 .75rem/1 var(--body); text-transform: lowercase; letter-spacing: .02em; color: #B4432F; background: #FFE3DC; padding: 4px 8px; border-radius: 99px; rotate: -3deg; }
.idea-box__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 14px; }
.idea-box__note { color: var(--ink-soft); }
.idea-box__thanks { display: none; font-size: 1.2rem; margin: 14px 0 0; }
.idea-box--sent .idea-box__thanks { display: block; animation: pop .4s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .idea-box { grid-template-columns: 1fr; text-align: center; padding: 34px 22px 28px; }
  .idea-box__mochi { margin: -80px auto 0; }
  .idea-box__row, .idea-box__label, .idea-box .field-note { justify-content: center; }
  .idea-box .field-note { text-align: center; }
  .road { grid-template-columns: 1fr; }
  .note-full { padding: 40px 24px 56px; }
  .notes-hero { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .notes-hero__mochi, .jar__fill, .idea-box__mochi, .love--pop .jar, .drop-notice__drop { animation: none; }
  .note-card, .road-card { transition: none; }
}

/* A field Mochi still needs (see fields.js): coral edge, soft blush, a wiggle and a note. */
.is-wrong, .is-wrong:focus { border-color: #E2604A !important; background-color: #FFF4F1 !important; box-shadow: 0 0 0 4px rgba(226, 96, 74, .22) !important; animation: wiggle .45s ease-in-out; }
.field-note { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #B4432F; font-size: 1.05rem; font-weight: 700; text-align: left; animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
.field-note::before { content: ''; flex: none; width: 14px; height: 18px; background: #E2604A; border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%; clip-path: polygon(50% 0, 100% 62%, 92% 85%, 70% 100%, 30% 100%, 8% 85%, 0 62%); }
@keyframes wiggle { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
@media (prefers-reduced-motion: reduce) { .is-wrong, .field-note { animation: none; } }

/* roadmap: column limits + the Arrived page */
.road-more { display: inline-block; margin-top: 18px; }
button.road-more { width: 100%; }
.arrived { max-width: 760px; margin: 0 auto 30px; }
.arrived-month { margin-bottom: 34px; }
.arrived-month h2 { font-size: 1.5rem; color: var(--ink-soft); margin: 0 0 16px; }
.arrived-month ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
