/* ══════════════════════════════════════════════════════════
   Sticky note - taped to the dashboard landing page, links to the
   current week's plan page.

   The paper follows the day/night slider like everything else: its
   surface, ink and tape are mixed from the shared theme variables
   rather than pinned to one set of colours, so it warms into paper
   in day and settles into a dim note at night.
   ══════════════════════════════════════════════════════════ */

body > .page { position: relative; }

.sitm-note {
  /* Paper mixed off the live palette. --card-bg carries the slider, and the
     warm tint keeps it reading as paper rather than another panel. */
  --note-paper: color-mix(in srgb, var(--card-bg) 72%, #f6f0e0);
  --note-edge:  color-mix(in srgb, var(--border) 60%, #b9ad8e);
  --note-ink:   color-mix(in srgb, var(--text) 88%, #000);
  --note-label: var(--accent-dk);
  --note-cta:   color-mix(in srgb, #b8862a 70%, var(--text));
  --note-tape:  color-mix(in srgb, var(--card-bg) 30%, #e2d29c);

  position: absolute;
  top: 104px;
  right: -14px;
  z-index: 6;
  width: 268px;
  display: block;
  padding: 15px 17px 14px;
  border-radius: 3px 4px 3px 5px;
  background: linear-gradient(178deg,
    var(--note-paper) 0%,
    color-mix(in srgb, var(--note-paper) 92%, var(--border)) 100%);
  border: 1px solid var(--note-edge);
  color: var(--note-ink);
  text-decoration: none;
  transform: rotate(-1.9deg);
  transform-origin: 50% 0;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.30),
    0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.5s ease, color 0.5s ease;
}
.sitm-note:hover {
  transform: rotate(-0.4deg) translateY(-3px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.36),
    0 3px 7px rgba(0, 0, 0, 0.2);
}
.sitm-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The tape strip, over the top edge at its own angle. */
.sitm-note::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 82px;
  height: 22px;
  transform: translateX(-54%) rotate(-5.5deg);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--note-tape) 82%, transparent) 0%,
    var(--note-tape) 48%,
    color-mix(in srgb, var(--note-tape) 78%, transparent) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.sitm-note-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--note-label);
  margin-bottom: 7px;
}
.sitm-note-label::before {
  content: '';
  width: 8px; height: 10px;
  border-radius: 60% 60% 60% 0;
  background: var(--note-label);
  transform: rotate(-14deg);
  flex-shrink: 0;
}

.sitm-note-body {
  display: block;
  font-family: 'Klee One', cursive;
  font-size: 14px;
  line-height: 1.46;
  color: var(--note-ink);
}
.sitm-note-hi {
  font-family: 'Patrick Hand SC', cursive;
  font-size: 25px;
  line-height: 1;
  color: var(--note-ink);
  margin-right: 5px;
}

.sitm-note-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--note-cta);
}
.sitm-note-cta svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2.2; fill: none;
  transition: transform 0.2s ease;
}
.sitm-note:hover .sitm-note-cta svg { transform: translateX(4px); }

/* Narrow enough that an absolute note would sit on the heading or the theme
   widget, so it joins the flow instead. */
@media (max-width: 1180px) {
  .sitm-note {
    position: static;
    width: 100%;
    max-width: 360px;
    margin: 0 0 26px auto;
    transform: rotate(-1deg);
  }
}
@media (max-width: 600px) {
  .sitm-note { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sitm-note, .sitm-note-cta svg { transition: none; }
  .sitm-note:hover { transform: rotate(-1.9deg); }
}
