/* Direction: shared notebook — pale lilac paper, rounded geometric display,
   one tangerine accent kept for money owed, the main button and the donut */
/* 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: #f3effb;
  --surface: #fffefb;
  --surface-2: #e9e2f8;
  --border: #ddd4f0;
  --border-strong: #b4acb1;
  --ink: #2b2347;
  --muted: #645b8a;
  --accent: #ea6f1f;
  --accent-hover: #c75e1a;
  --accent-ink: #211004;
  --accent-text: #a64811;
  --accent-strong: #9d420c;
  --accent-soft: #fce8d7;
  --accent-border: #efb598;
  --success: #1f7d53;
  --success-ink: #ffffff;
  --success-soft: #dae1e7;
  --success-strong: #1b6a46;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #ebdcde;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #ecd6e0;
  --danger-strong: #b91c1c;
  --chart-1: #dc6202;
  --chart-2: #8e8b1b;
  --chart-3: #1c8767;
  --chart-4: #1a92bc;
  --chart-5: #6f59cf;
  --chart-6: #d458a0;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --radius-card: 26px;
  --radius-btn: 999px;
  --radius-input: 16px;
  --shadow-card: 0 20px 44px -26px rgba(43, 35, 71, 0.38);
  --card-pad: 1.5rem;
  --x-av-a: #e2d7fa;
  --x-av-b: #d6ecf6;
  --x-av-c: #fbe3d1;
  --x-av-d: #dcf0e2;
  --x-line: rgba(43, 35, 71, 0.07);
  --x-cat-food: #ea6f1f;
  --x-cat-travel: #9d420c;
  --x-cat-home: #f4a469;
  --x-cat-fun: #fbcfac;
  --x-track: rgba(43, 35, 71, 0.08);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #110903;
  --surface: #29221c;
  --surface-2: #1d1510;
  --border: #322b26;
  --border-strong: #58534f;
  --ink: #f3effb;
  --muted: #999398;
  --accent: #ea6f1f;
  --accent-hover: #ed8541;
  --accent-ink: #211004;
  --accent-text: #ea6f1f;
  --accent-strong: #ea6f1f;
  --accent-soft: #411f09;
  --accent-border: #733710;
  --success: #1f7d53;
  --success-ink: #ffffff;
  --success-soft: #142315;
  --success-strong: #509a7a;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #351904;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #360d09;
  --danger-strong: #d16969;
  --chart-1: #ea6f1f;
  --chart-2: #bfba1b;
  --chart-3: #1d9673;
  --chart-4: #2dbdf0;
  --chart-5: #7e6ae0;
  --chart-6: #fd7dc4;
}

/* Evenly — notebook motion and trimmings */

.page-in {
  animation: page-in 0.42s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}
@keyframes page-in {
  from {
    transform: translateY(18px);
    opacity: 0.45;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 56px -28px rgba(43, 35, 71, 0.45);
}

html.reduced-motion .page-in,
html.reduced-motion .lift {
  animation: none;
  transition: none;
}
html.reduced-motion .lift:hover {
  transform: none;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.notebook-lines {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 35px,
    var(--x-line) 35px 36px
  );
}

.donut-in {
  animation: donut-in 0.6s cubic-bezier(0.2, 0.75, 0.3, 1) both;
  transform-origin: 50% 50%;
}
@keyframes donut-in {
  from {
    transform: rotate(-16deg) scale(0.94);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
html.reduced-motion .donut-in {
  animation: none;
}

.confetti-piece {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 70;
}

dialog.modal::backdrop {
  background: rgba(43, 35, 71, 0.42);
}
