:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(15,23,42,0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #eef2f7 60%);
  color: var(--text);
  padding: 32px;
  line-height: 1.5;
}

/* 페이지 컨테이너 */
.page {
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* 제목 */
h1 {
  margin-top: 0;
  font-size: 1.6rem;
  color: var(--text);
}
h2.text-xl {
  font-size: 1.3rem;
  margin: 20px 0 10px 0;
}

/* 정보 블록 */
div.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}
div.meta b {
  color: var(--text);
}

/* 버튼 */
button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.14);
  transition: transform .12s ease, box-shadow .12s ease;
}
button:hover { transform: translateY(-2px); }

/* 본문 */
pre {
  background: #f9fafc;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.08);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 18px 0;
  font-size: 0.95rem;
}

/* 댓글 영역 */
section {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fdfdfd;
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}
section h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

/* 댓글 입력 폼 */
form input[type="text"],
form input[type="password"],
form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.1);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
form textarea { min-height: 80px; resize: vertical; }

/* 댓글 */
.comment {
  margin-top: 14px;
  padding: 12px;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.08);
}
.comment .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.comment pre {
  margin: 8px 0 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* footer */
footer {
  margin-top: 20px;
  text-align: right;
}
footer a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}
footer a:hover { text-decoration: underline; }
