:root {
  --bg-1: #f8f4ea;
  --bg-2: #f4dcc7;
  --bg-3: #fef9f3;
  --ink: #1f1a17;
  --paper: #fffdf8;
  --accent: #d85f37;
  --accent-2: #2f6f5e;
  --danger: #b72727;
  --line: #e8d9ca;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SUIT", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, var(--bg-2), transparent 30%),
    radial-gradient(circle at 90% 10%, #ffd9b8, transparent 25%),
    linear-gradient(145deg, var(--bg-1), var(--bg-3));
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
}

.bg-one {
  width: 280px;
  height: 280px;
  background: #ffc89e;
  top: -80px;
  left: -60px;
}

.bg-two {
  width: 340px;
  height: 340px;
  background: #b8d9c4;
  bottom: -140px;
  right: -120px;
}

.container {
  width: min(960px, 92vw);
  margin: 32px auto 40px;
  display: grid;
  gap: 18px;
}

.hero {
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: rise 0.55s ease-out;
}

.hero-tag {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent-2);
}

h1 {
  margin: 8px 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.15;
}

.hero-desc {
  margin: 0;
  color: #5d5148;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(77, 51, 31, 0.08);
  animation: rise 0.6s ease-out;
}

h2 {
  margin-top: 0;
}

#note-form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d9c8b7;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

#submit-btn {
  background: var(--accent);
  color: #fff;
}

.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#refresh-btn {
  background: #edf6f2;
  color: #245646;
}

.status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #594c43;
}

.global-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.note-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.note-item {
  border: 1px dashed #d7c3b0;
  border-radius: 14px;
  padding: 12px;
  background: #fffaf5;
  animation: popIn 0.25s ease;
}

.note-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #69584a;
  font-size: 0.9rem;
}

.note-message {
  margin: 8px 0 0;
  font-family: "Nanum Pen Script", cursive;
  font-size: 1.85rem;
  line-height: 1.15;
  word-break: break-word;
}

.empty {
  text-align: center;
  color: #726155;
  padding: 18px 10px;
  border: 1px dashed #d7c3b0;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .container {
    width: min(100%, 94vw);
    margin-top: 18px;
  }

  .card,
  .hero {
    border-radius: 16px;
    padding: 16px;
  }
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.98);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
