/* Direction: NoteFlow — airy off-white paper, pastel note cards, sunny yellow actions, violet accents, rounded Nunito */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f4f1e9;
  --border: #e8e3d7;
  --border-strong: #bab6ad;
  --ink: #2d2a5a;
  --muted: #666481;
  --accent: #ffc83d;
  --accent-hover: #d9aa34;
  --accent-ink: #241c09;
  --accent-text: #5343cf;
  --accent-strong: #41309f;
  --accent-soft: #e9e5fd;
  --accent-border: #fce2a1;
  --success: #2e9e6b;
  --success-ink: #2d2a5a;
  --success-soft: #e2ede3;
  --success-strong: #21704c;
  --warning: #b4620f;
  --warning-ink: #ffffff;
  --warning-soft: #f2e6d8;
  --warning-strong: #99530d;
  --danger: #c93744;
  --danger-ink: #ffffff;
  --danger-soft: #f4e1de;
  --danger-strong: #b9333f;
  --chart-1: #ad851b;
  --chart-2: #53a059;
  --chart-3: #0d838e;
  --chart-4: #6689da;
  --chart-5: #97539a;
  --chart-6: #d67068;

  --font-display: "Nunito", "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", "Poppins", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.02em;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --shadow-card: 0 1px 2px rgba(45, 42, 90, 0.05), 0 8px 24px rgba(45, 42, 90, 0.07);
  --card-pad: 1rem;
  --x-c-coral: #ffd6cf;
  --x-c-coral-d: #5b332c;
  --x-c-peach: #ffe3c4;
  --x-c-peach-d: #5c4426;
  --x-c-sunshine: #fff1b8;
  --x-c-sunshine-d: #585021;
  --x-c-mint: #cff2dc;
  --x-c-mint-d: #23503a;
  --x-c-sage: #ddebc9;
  --x-c-sage-d: #3e4c2c;
  --x-c-sky: #cde8f7;
  --x-c-sky-d: #22485c;
  --x-c-lavender: #e3dafb;
  --x-c-lavender-d: #393266;
  --x-c-blossom: #fad7ea;
  --x-c-blossom-d: #592f45;
  --x-c-sand: #eadfcf;
  --x-c-sand-d: #4c4132;
  --x-pin: #d99b00;
  --gradient-g1: linear-gradient(135deg, #ffd6cf, #e3dafb 60%, #cde8f7);
  --gradient-g2: linear-gradient(140deg, #fff1b8, #cff2dc 70%);
  --gradient-g3: linear-gradient(120deg, #cde8f7, #fad7ea);
  --gradient-g4: linear-gradient(160deg, #ddebc9, #ffe3c4);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito", "Poppins", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #130e05;
  --surface: #2b261e;
  --surface-2: #1f1a12;
  --border: #343028;
  --border-strong: #5a5650;
  --ink: #faf8f3;
  --muted: #9e9a94;
  --accent: #ffc83d;
  --accent-hover: #ffd05a;
  --accent-ink: #241c09;
  --accent-text: #ffc83d;
  --accent-strong: #ffc83d;
  --accent-soft: #473711;
  --accent-border: #7d621e;
  --success: #2e9e6b;
  --success-ink: #ffffff;
  --success-soft: #192e1b;
  --success-strong: #3fa677;
  --warning: #b4620f;
  --warning-ink: #ffffff;
  --warning-soft: #362007;
  --warning-strong: #c58644;
  --danger: #c93744;
  --danger-ink: #ffffff;
  --danger-soft: #3b1713;
  --danger-strong: #d8707a;
  --chart-1: #ffc83d;
  --chart-2: #74d87d;
  --chart-3: #33cddd;
  --chart-4: #b5b5ff;
  --chart-5: #f888cd;
  --chart-6: #fba681;
}

summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}

.nf-card {
  animation: nf-pop 0.26s ease both;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background-color 0.35s ease;
}
@keyframes nf-pop {
  from {
    opacity: 0.5;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(45, 42, 90, 0.16);
}
.nf-card:focus-within {
  box-shadow: 0 10px 28px rgba(45, 42, 90, 0.14);
}

#composer {
  animation: nf-grow 0.22s ease both;
}
@keyframes nf-grow {
  from {
    transform: translateY(-6px) scale(0.99);
  }
  to {
    transform: none;
  }
}

.nf-strike {
  text-decoration: line-through;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.nf-check {
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.nf-check:active {
  transform: scale(0.82);
}
.nf-check[data-on="1"] {
  animation: nf-tick 0.26s ease;
}
@keyframes nf-tick {
  40% {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

#nf-side {
  transition: width 0.2s ease;
}
#nf-side.nf-rail {
  width: 4.25rem;
}
#nf-side.nf-rail .nf-side-text {
  display: none;
}

.nf-pop {
  box-shadow: 0 18px 40px rgba(45, 42, 90, 0.18);
}

mark {
  background: var(--accent);
  color: var(--ink);
  border-radius: 4px;
  padding: 0 2px;
}

.nf-drag {
  opacity: 0.45;
}

[data-dropping] {
  outline: 2px dashed var(--accent-text);
  outline-offset: 4px;
}

dialog.modal::backdrop {
  background: rgba(45, 42, 90, 0.42);
}

html.reduced-motion .nf-card,
html.reduced-motion #composer {
  animation: none;
  transition: none;
}
html.reduced-motion .nf-card:hover {
  transform: none;
}
