@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
  --cream: #fff8ec;
  --blush: #ffd8df;
  --rose: #cf7890;
  --sage: #b8c7a4;
  --moss: #6f8a62;
  --lavender: #d8c8ff;
  --butter: #fff0ad;
  --forest: #38513b;
  --paper: rgba(255, 252, 241, 0.9);
  --shadow: rgba(68, 91, 61, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  color: var(--forest);
  background:
    radial-gradient(circle at 15% 10%, #ffe0eb, transparent 25%),
    radial-gradient(circle at 82% 12%, #dcebc7, transparent 27%),
    radial-gradient(circle at 70% 80%, #e4d8ff, transparent 30%),
    linear-gradient(180deg, #fff7df, #f6e8ff 55%, #dce8cf);
  min-height: 100vh;
  overflow-x: hidden;
}

.sparkle {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#fff3a8 1.5px, transparent 1.5px),
    radial-gradient(#f6b5c9 1px, transparent 1px);
  background-size: 42px 42px, 75px 75px, 110px 110px;
  opacity: 0.5;
  animation: shimmer 12s linear infinite;
}

@keyframes shimmer {
  from { transform: translateY(0); }
  to { transform: translateY(-80px); }
}

header {
  text-align: center;
  padding: 74px 20px 28px;
  position: relative;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  margin: 0;
  color: #5d7b52;
  text-shadow: 2px 3px 0 #fff4bf, 0 12px 30px rgba(255,255,255,0.8);
}

header p {
  font-size: 1.1rem;
  margin: 14px auto 0;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.52);
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 12px 25px rgba(255, 200, 220, 0.22);
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px 32px;
}

nav a {
  text-decoration: none;
  color: var(--forest);
  background: #fffaf1;
  border: 2px solid #f3c9d5;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 5px 0 #e8b8c8;
  transition: 0.2s ease;
}

nav a:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 9px 0 #e8b8c8;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 34px;
  padding: 25px;
  box-shadow: 0 18px 42px var(--shadow);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(207,120,144,0.34);
  border-radius: 25px;
  pointer-events: none;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 14px;
  color: var(--rose);
}

.date {
  display: inline-block;
  background: var(--butter);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 14px;
}

textarea, input {
  width: 100%;
  border: 2px dashed #d8b5c9;
  border-radius: 22px;
  padding: 15px;
  font: inherit;
  background: #fffdf7;
  color: var(--forest);
  outline: none;
}

textarea {
  min-height: 245px;
  resize: vertical;
  line-height: 1.7;
}

input:focus, textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 5px rgba(184,199,164,0.35);
}

.row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd3df, #d9edc6);
  color: var(--forest);
  cursor: pointer;
  box-shadow: 0 6px 0 #b7c99f;
  transition: 0.15s ease;
  white-space: nowrap;
}

button:hover { transform: translateY(-3px); }
button:active { transform: translateY(2px); box-shadow: 0 3px 0 #b7c99f; }

.danger {
  background: linear-gradient(135deg, #ffd5d5, #ffe7aa);
  box-shadow: 0 6px 0 #e7b0a8;
}

.saved-note, .task {
  background: #fff9f2;
  border: 2px solid #f2d1dc;
  border-radius: 22px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 8px 18px rgba(120, 94, 80, 0.08);
}

.saved-note h3 {
  margin: 0 0 6px;
  color: #6d8759;
}

.saved-note p {
  margin: 0 0 10px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.note-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #8fae75;
  flex: 0 0 auto;
}

.task span {
  flex: 1;
  font-weight: 700;
}

.task.done span {
  text-decoration: line-through;
  opacity: 0.58;
}

.tiny-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tiny-list li {
  background: #fff9f2;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #f0d2da;
  font-weight: 700;
}

.quote {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: #edf6df;
  border-left: 8px solid var(--sage);
  font-style: italic;
  line-height: 1.55;
}

.floating {
  position: absolute;
  font-size: 2rem;
  animation: float 5s ease-in-out infinite;
}

.f1 { top: 40px; left: 8%; }
.f2 { top: 120px; right: 9%; animation-delay: 1s; }
.f3 { bottom: 18px; left: 18%; animation-delay: 2s; }
.f4 { bottom: 55px; right: 18%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

footer {
  text-align: center;
  padding: 25px;
  color: #57704c;
  font-weight: 800;
}

.empty {
  opacity: 0.72;
  font-style: italic;
  text-align: center;
  padding: 12px;
}

@media (max-width: 850px) {
  .container { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  button { width: 100%; }
}
