:root {
  --rose: #cc8780;
  --cherry: #ad3029;
  --strawberry: #cd5252;
  --ink: #6f2724;
  --shadow: rgba(149, 56, 49, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(204, 135, 128, 0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(254, 239, 205, 0.9), transparent 30%),
    linear-gradient(135deg, #fffaf6 0%, #fff4ee 40%, #fff9ef 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 82, 82, 0.14), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
  z-index: 0;
}

body::before {
  top: -70px;
  right: -50px;
}

body::after {
  bottom: -90px;
  left: -40px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 32px auto;
  padding: 28px;
  border: 1px solid rgba(204, 135, 128, 0.35);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 247, 241, 0.97)),
    repeating-linear-gradient(90deg, rgba(205, 82, 82, 0.04) 0, rgba(205, 82, 82, 0.04) 1px, transparent 1px, transparent 22px);
  box-shadow: 0 26px 60px var(--shadow);
  overflow: hidden;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(205, 82, 82, 0.1);
  border-radius: 28px;
  pointer-events: none;
}

.hero,
.card {
  border: 1px solid rgba(173, 48, 41, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 241, 0.95));
  box-shadow: 0 18px 30px rgba(149, 56, 49, 0.08);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(254, 239, 205, 0.9), rgba(247, 224, 218, 0.72));
}

.hero-copy small,
.panel-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(173, 48, 41, 0.18);
  background: rgba(255, 250, 243, 0.75);
  color: var(--strawberry);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1,
.card-header h2,
.hero-badge .time,
.stat strong,
.calendar-title {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  color: var(--cherry);
}

.hero-copy h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.95;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--rose);
  font-weight: 400;
}

.hero-copy p,
.card-header p,
.selected-date-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(111, 39, 36, 0.72);
}

.hero-badge {
  min-width: 210px;
  padding: 20px 18px;
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.9);
  text-align: center;
}

.hero-badge .time {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-badge .date {
  margin-top: 6px;
  color: rgba(111, 39, 36, 0.72);
}

.dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 22px;
}

.left-column,
.right-column {
  display: grid;
  gap: 22px;
}

.card {
  position: relative;
  padding: 22px;
  border-radius: 30px;
  overflow: hidden;
}

.card::before {
  content: "✦";
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(205, 82, 82, 0.24);
  font-size: 1.1rem;
}

.card-header {
  margin-bottom: 18px;
}

.card-header h2 {
  margin: 8px 0 0;
  font-size: 1.8rem;
}

.task-form,
.reminder-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.reminder-form {
  grid-template-columns: 1fr;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(173, 48, 41, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

button {
  border: none;
  cursor: pointer;
}

.accent-button,
.calendar-nav button,
.mini-button {
  transition: transform 160ms ease;
}

.accent-button:hover,
.calendar-nav button:hover,
.mini-button:hover {
  transform: translateY(-2px);
}

.accent-button {
  min-width: 58px;
  border-radius: 18px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--strawberry), var(--cherry));
  color: #fff9f8;
  box-shadow: 0 10px 20px rgba(173, 48, 41, 0.22);
  font-size: 1.4rem;
}

.task-list,
.reminder-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-item,
.reminder-item {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(173, 48, 41, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.task-item {
  grid-template-columns: auto 1fr auto;
}

.reminder-item {
  grid-template-columns: 1fr auto;
}

.task-check {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(173, 48, 41, 0.35);
  display: grid;
  place-items: center;
  background: rgba(254, 239, 205, 0.55);
  margin: 0;
}

.task-check::before {
  content: "❤";
  font-size: 0.8rem;
  color: transparent;
}

.task-check:checked {
  background: rgba(205, 82, 82, 0.16);
}

.task-check:checked::before {
  color: var(--cherry);
}

.task-text strong,
.reminder-item strong {
  display: block;
}

.task-text span,
.reminder-item span,
.stat span,
.weekdays span {
  color: rgba(111, 39, 36, 0.62);
}

.task-item.is-done strong,
.task-item.is-done span {
  text-decoration: line-through;
  opacity: 0.55;
}

.mini-button,
.calendar-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(204, 135, 128, 0.16);
  color: var(--cherry);
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat,
.selected-date-card {
  padding: 14px 15px;
  border-radius: 22px;
  background: rgba(254, 239, 205, 0.55);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
}

.calendar-shell {
  display: grid;
  gap: 16px;
}

.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-title {
  font-size: 1.6rem;
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekdays span {
  text-align: center;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 74px;
  border-radius: 22px;
  border: 1px solid transparent;
  padding: 10px 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.calendar-day small {
  display: block;
  margin-top: 8px;
  color: rgba(111, 39, 36, 0.52);
  font-size: 0.78rem;
}

.calendar-day.muted {
  opacity: 0.38;
}

.calendar-day.today {
  border-color: rgba(173, 48, 41, 0.32);
  background: rgba(254, 239, 205, 0.8);
}

.calendar-day.selected {
  background: linear-gradient(180deg, rgba(205, 82, 82, 0.22), rgba(204, 135, 128, 0.18));
  border-color: rgba(173, 48, 41, 0.3);
}

.calendar-day.has-notes::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cherry);
}

.selected-date-card {
  border: 1px dashed rgba(173, 48, 41, 0.2);
}

.selected-date-card strong {
  color: var(--cherry);
}

.reminder-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.ribbon,
.spark {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.ribbon {
  top: 20px;
  right: 72px;
  width: 64px;
  height: 26px;
  border: 2px solid rgba(173, 48, 41, 0.35);
  border-color: rgba(173, 48, 41, 0.35) transparent transparent transparent;
  border-radius: 50% 50% 0 0;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(173, 48, 41, 0.35);
  border-radius: 50% 50% 50% 0;
}

.ribbon::before {
  left: -4px;
  transform: rotate(42deg);
}

.ribbon::after {
  right: -4px;
  transform: rotate(132deg);
}

.spark {
  left: 22px;
  bottom: 20px;
  font-size: 1.3rem;
  color: rgba(205, 82, 82, 0.28);
}

.empty {
  padding: 16px;
  border-radius: 20px;
  background: rgba(254, 239, 205, 0.4);
  color: rgba(111, 39, 36, 0.64);
  text-align: center;
}

@media (max-width: 980px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto;
    padding: 16px;
    border-radius: 24px;
  }

  .card,
  .hero {
    padding: 18px;
    border-radius: 24px;
  }

  .task-form {
    grid-template-columns: 1fr;
  }

  .accent-button {
    min-height: 54px;
  }
}
