:root {
  --bg: linear-gradient(135deg, #f5eef8 0%, #fff9d2 100%);
  --surface: rgba(255, 255, 255, 0.9);
  --ink: #2d1a33;
  --muted: #6d5b74;
  --line: rgba(138, 58, 185, 0.15);
  --accent: #8a3ab9;
  --accent-2: #fccc63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

.layout {
  width: min(880px, 92vw);
  margin: 32px auto 56px;
  display: grid;
  gap: 18px;
}

.hero {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(131, 58, 180, 0.25);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.hero p {
  margin: 0;
  opacity: 0.95;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(4px);
}

h2 {
  margin-top: 0;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dce0ed;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
}

.status {
  margin-top: 0;
  min-height: 22px;
  color: #833ab4;
}

.feed {
  display: grid;
  gap: 12px;
}

.post {
  border: 1px solid var(--line);
  background: #fffdf9;
  border-radius: 14px;
  padding: 14px;
}

.post-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.post-author {
  color: #5a2a7a;
}

.post-time {
  color: #867394;
}

.post-content {
  margin: 10px 0;
  white-space: pre-wrap;
}

.post-actions {
  margin-bottom: 10px;
}

.like-btn {
  background: #faeaff;
  color: #833ab4;
}

.comments {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.comment {
  background: #fdf8ff;
  border: 1px solid #e9d5f3;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.93rem;
}

.comment-meta {
  color: #833ab4;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
}

@media (max-width: 760px) {
  .layout {
    width: min(880px, 94vw);
    margin-top: 20px;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }
}
