:root {
  --color-bg: #f6f5f3;
  --color-surface: #ffffff;
  --color-border: #e7e5e1;
  --color-text: #232220;
  --color-text-muted: #8a8782;
  --color-accent: #d97757;
  --color-accent-hover: #c96444;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.app__header {
  margin-bottom: 28px;
}

.app__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.app__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.composer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 32px;
}

.composer__textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 15px;
  line-height: 1.6;
  font-family: inherit;
  color: var(--color-text);
  background: transparent;
  min-height: 64px;
}

.composer__textarea::placeholder {
  color: var(--color-text-muted);
}

.composer__save-btn {
  display: block;
  margin-left: auto;
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.composer__save-btn:hover {
  background: var(--color-accent-hover);
}

.composer__save-btn:active {
  transform: scale(0.97);
}

.memo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fade-in 0.2s ease;
}

.memo-card__content {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.memo-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memo-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.memo-card__delete-btn {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.memo-card__delete-btn:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

.empty-state {
  display: none;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 40px;
}

.empty-state.is-visible {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
