/* Petals — a tiny website for two
   Palette:
   cream  #FFF8F3   blush #FAE3E7   rose #C9405A
   wine   #6E2334   gold  #E8B86D   leaf #9BB089
*/

:root {
  --cream: #FFF8F3;
  --blush: #FAE3E7;
  --blush-deep: #F4CDD5;
  --rose: #C9405A;
  --wine: #6E2334;
  --gold: #E8B86D;
  --leaf: #9BB089;
  --ink: #4A2B33;
  --card: #FFFDFB;
  --shadow: 0 10px 30px rgba(110, 35, 52, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Karla", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--blush) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 100%, #FBEAE2 0%, transparent 55%),
    var(--cream);
}

/* Cute flower cursor — everywhere, including form fields and empty space. */
html, body, input, textarea, select {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26"><g><ellipse cx="13" cy="6" rx="4" ry="5.5" fill="%23F4A7B9"/><ellipse cx="13" cy="20" rx="4" ry="5.5" fill="%23F4A7B9"/><ellipse cx="6" cy="13" rx="5.5" ry="4" fill="%23F8C3CF"/><ellipse cx="20" cy="13" rx="5.5" ry="4" fill="%23F8C3CF"/><circle cx="13" cy="13" r="4" fill="%23C9405A"/></g></svg>') 13 13, auto;
}

/* Blossomed cursor on anything clickable: bigger, eight petals, fully open. */
a, a *, button, button *, input[type="radio"], input[type="checkbox"],
input[type="submit"], input[type="date"], label.who, label.who *, summary {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="38" height="38" viewBox="0 0 38 38"><g><ellipse cx="19" cy="7" rx="5.5" ry="8" fill="%23E86A86"/><ellipse cx="19" cy="31" rx="5.5" ry="8" fill="%23E86A86"/><ellipse cx="7" cy="19" rx="8" ry="5.5" fill="%23E86A86"/><ellipse cx="31" cy="19" rx="8" ry="5.5" fill="%23E86A86"/><ellipse cx="10.5" cy="10.5" rx="5" ry="7" transform="rotate(-45 10.5 10.5)" fill="%23F4A7B9"/><ellipse cx="27.5" cy="10.5" rx="5" ry="7" transform="rotate(45 27.5 10.5)" fill="%23F4A7B9"/><ellipse cx="10.5" cy="27.5" rx="5" ry="7" transform="rotate(45 10.5 27.5)" fill="%23F4A7B9"/><ellipse cx="27.5" cy="27.5" rx="5" ry="7" transform="rotate(-45 27.5 27.5)" fill="%23F4A7B9"/><circle cx="19" cy="19" r="6" fill="%236E2334"/><circle cx="19" cy="19" r="3" fill="%23E8B86D"/></g></svg>') 19 19, pointer;
}

/* ------------------------------------------------ magical layers */

#glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(232, 184, 109, 0.9));
  animation: sparkle-fade 0.9s ease-out forwards;
}

.sparkle.rosy {
  background: #F4A7B9;
  filter: drop-shadow(0 0 4px rgba(244, 167, 185, 0.9));
}

@keyframes sparkle-fade {
  0%   { opacity: 0.9; transform: scale(0.4) rotate(0deg); }
  60%  { opacity: 0.7; transform: scale(1) rotate(40deg); }
  100% { opacity: 0;   transform: scale(0.2) rotate(90deg) translateY(10px); }
}

/* ------------------------------------------------ layout */

.page {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 110px;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 20px 0;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--wine);
  text-decoration: none;
}

.nav-links a {
  color: var(--wine);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover { border-color: var(--rose); }
.nav-links a.quiet { opacity: 0.55; }

/* ------------------------------------------------ type */

.display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: italic;
  color: var(--wine);
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}

h1.display { font-size: 2.2rem; }
h1.display.big { font-size: clamp(2.2rem, 5vw, 3.1rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  color: var(--rose);
  margin: 0 0 6px;
  font-weight: 600;
}

.muted { color: rgba(74, 43, 51, 0.55); }
.center { text-align: center; }
.heart { color: var(--rose); }

.handwritten .note-text {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 6px 0;
  white-space: pre-wrap;
}

/* ------------------------------------------------ cards */

.card {
  background: var(--card);
  border: 1px solid rgba(201, 64, 90, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin: 0 0 18px;
}

.card-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--wine);
  margin: 0 0 8px;
}

.narrow { max-width: 460px; }
.center-card { margin: 9vh auto 0; }

.hero { text-align: center; padding: 30px 0 16px; }

.days { margin-top: 14px; }
.days-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--rose);
  line-height: 1;
}
.days-label {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(74, 43, 51, 0.6);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.note-card { background: linear-gradient(180deg, #FFFDFB 0%, #FDF1ED 100%); }
.note-meta { font-size: 0.85rem; color: rgba(74, 43, 51, 0.5); margin: 4px 0 14px; }

.bloom-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, var(--blush) 0%, #FDEFE9 100%);
  border-color: rgba(201, 64, 90, 0.25);
}
.bloom { font-size: 1.8rem; color: var(--rose); animation: gentle-bloom 2.4s ease-in-out infinite; }
@keyframes gentle-bloom {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.15) rotate(8deg); }
}

.flower-list { list-style: none; padding: 0; margin: 0; }
.flower-list li { padding: 4px 0; }
.flower-list span { color: var(--rose); margin-right: 8px; }

/* ------------------------------------------------ forms */

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }

input, textarea {
  font: inherit;
  color: var(--ink);
  background: #FFFDFB;
  border: 1.5px solid var(--blush-deep);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(201, 64, 90, 0.10);
}
textarea { resize: vertical; }

.btn {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #A93350);
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  align-self: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(201, 64, 90, 0.30);
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(201, 64, 90, 0.38); }
.btn.small { padding: 8px 18px; font-size: 0.9rem; }

.error { color: var(--rose); font-weight: 600; }
.hint { font-size: 0.8rem; color: rgba(74, 43, 51, 0.5); margin: -6px 0 0; }

.question {
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--wine);
  margin: 4px 0 14px;
}

.gate-flower {
  font-size: 2.4rem;
  color: var(--rose);
  text-align: center;
  animation: gentle-bloom 3s ease-in-out infinite;
}
.login-card { text-align: center; }
.login-card .stack { text-align: left; }

.who-row { display: flex; gap: 10px; }
.who {
  flex: 1;
  border: 1.5px solid var(--blush-deep);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  transition: all 0.15s ease;
}
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who:has(input:checked) {
  border-color: var(--rose);
  background: var(--blush);
  color: var(--wine);
}

/* ------------------------------------------------ notes wall */

.page-head { text-align: center; padding: 18px 0 8px; }
.write-card textarea { width: 100%; }

.notes-wall {
  column-width: 290px;
  column-gap: 18px;
  margin-top: 22px;
}
.sticky {
  break-inside: avoid;
  margin-bottom: 18px;
}
.sticky.mine   { transform: rotate(-0.6deg); }
.sticky.theirs { transform: rotate(0.7deg); background: linear-gradient(180deg, #FFFDFB, #FBEDF0); }

/* ------------------------------------------------ bucket list */

.add-row { display: flex; gap: 12px; align-items: center; }
.add-row input { flex: 1; }
.add-row .btn { align-self: center; }

.bucket-list { list-style: none; padding: 0; margin: 22px 0 0; }
.bucket-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.bucket-item.done { opacity: 0.75; background: linear-gradient(90deg, #FFFDFB, var(--blush)); }
.bucket-item.done .bucket-title { text-decoration: line-through; text-decoration-color: rgba(201,64,90,0.5); }

.bloom-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--rose);
  line-height: 1;
  padding: 4px;
  transition: transform 0.2s ease;
}
.bloom-toggle:hover { transform: scale(1.3) rotate(15deg); }

.bucket-text { flex: 1; display: flex; flex-direction: column; }
.bucket-title { font-weight: 600; }
.bucket-meta { font-size: 0.78rem; color: rgba(74, 43, 51, 0.5); }

.x {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: rgba(74, 43, 51, 0.35);
  padding: 4px 8px;
}
.x:hover { color: var(--rose); }

/* ------------------------------------------------ thinking-of-you button */

#send-flower {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--wine);
  background: #FFFDFB;
  border: 1.5px solid var(--blush-deep);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
#send-flower:hover { transform: translateY(-2px) scale(1.03); border-color: var(--rose); }
#send-flower .flower-icon { color: var(--rose); font-size: 1.2rem; }
#send-flower.sent { background: var(--blush); border-color: var(--rose); }

.flower-burst {
  position: fixed;
  z-index: 6;
  pointer-events: none;
  font-size: 1.4rem;
  color: var(--rose);
  animation: burst 1.2s ease-out forwards;
}
@keyframes burst {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(60deg); }
}

/* ------------------------------------------------ small screens & motion */

@media (max-width: 560px) {
  .nav-links a { margin-left: 12px; }
  #send-flower .flower-label { display: none; }
  .page { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  #petals, #glow, .sparkle { display: none; }
  * { animation: none !important; transition: none !important; }
}
