﻿:root {
  --ink: #1d1b1b;
  --paper: #fff7ec;
  --accent: #ff7d6b;
  --accent-2: #57d3c6;
  --accent-3: #f7d66a;
  --shadow: rgba(28, 22, 22, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 196, 165, 0.65), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(120, 214, 201, 0.45), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(252, 222, 120, 0.45), transparent 45%),
    #fff3e2;
  overflow-x: hidden;
}

.orb {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  opacity: 0.6;
  filter: blur(40px);
  z-index: 0;
  animation: float 16s ease-in-out infinite;
}

.orb-a {
  background: #ff9d8d;
  top: -60px;
  left: -80px;
}

.orb-b {
  background: #7cdcd1;
  top: 15vh;
  right: -60px;
  animation-delay: -6s;
}

.orb-c {
  background: #f3da7a;
  bottom: -80px;
  left: 20vw;
  animation-delay: -3s;
}

.hero {
  z-index: 1;
}

.canvas-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: rgba(29, 27, 27, 0.6);
  margin-bottom: 0.4rem;
}

.title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  text-shadow: 3px 3px 0 rgba(255, 247, 236, 0.8);
}

.subtitle {
  max-width: 32rem;
  margin: 0.6rem auto 0;
  color: rgba(29, 27, 27, 0.75);
}

.note-panel {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  z-index: 2;
}

.note-shell {
  position: relative;
  width: min(760px, 100%);
  min-height: 340px;
  background: var(--paper);
  border-radius: 26px;
  border: 3px solid rgba(29, 27, 27, 0.2);
  box-shadow: 0 30px 60px var(--shadow);
  overflow: hidden;
}

#paperCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.note-input {
  position: relative;
  padding: 2.4rem 2.6rem;
  min-height: 340px;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  outline: none;
  z-index: 1;
  caret-color: #1d1b1b;
}

.note-input:empty::before {
  content: attr(data-placeholder);
  color: rgba(29, 27, 27, 0.4);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.hint {
  font-size: 0.85rem;
  color: rgba(29, 27, 27, 0.6);
}

.corner-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.corner-box {
  position: absolute;
  width: 45vw;
  height: 45vh;
}

.corner-box .thumb-note {
  pointer-events: auto;
}

.corner-tl {
  top: 0;
  left: 0;
}

.corner-tr {
  top: 0;
  right: 0;
}

.corner-bl {
  bottom: 0;
  left: 0;
}

.corner-br {
  bottom: 0;
  right: 0;
}

.thumb-note {
  position: absolute;
  width: 110px;
  min-height: 70px;
  padding: 0.6rem;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 1.1rem;
  border-radius: 14px;
  border: 2px solid rgba(29, 27, 27, 0.4);
  box-shadow: 0 12px 18px rgba(29, 27, 27, 0.18);
  opacity: 0;
  transition: transform 0.2s ease;
}

.thumb-note:hover {
  transform: scale(1.05);
}

.thumb-pop {
  animation: pop 0.35s ease-out;
}

.swoosh {
  position: fixed;
  border-radius: 26px;
  border: 3px solid rgba(29, 27, 27, 0.4);
  box-shadow: 0 20px 40px rgba(29, 27, 27, 0.2);
  z-index: 20;
  pointer-events: none;
}

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 30;
}

.toast {
  background: rgba(29, 27, 27, 0.9);
  color: #fff5e7;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 14px 28px rgba(20, 16, 16, 0.2);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .note-shell {
    min-height: 280px;
  }

  .note-input {
    padding: 1.8rem 1.6rem;
    min-height: 280px;
  }

  .thumb-note {
    width: 90px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .thumb-pop {
    animation: none;
  }
}
