* { box-sizing: border-box; }

body {
  font-family: "Noto Serif KR", "Malgun Gothic", serif;
  background: #14110f;
  color: #ece4d3;
  margin: 0;
  padding: 20px;
  line-height: 1.7;
}

.wrap { max-width: 640px; margin: 0 auto; }

h1, h2 {
  font-weight: 800;
  color: #d8a94e;
  letter-spacing: -0.01em;
}

.site-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}
.tagline {
  text-align: center;
  color: #a99f8c;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.nav a {
  color: #d8a94e;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: #d8a94e; }

.episode-item {
  display: block;
  background: #1e1a16;
  border: 1px solid #3a332a;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #ece4d3;
}
.episode-item:hover { border-color: #d8a94e; }
.episode-item .num {
  color: #d8a94e;
  font-size: 0.8rem;
  font-weight: 700;
}
.episode-item .title {
  font-size: 1.1rem;
  margin-top: 4px;
}

.episode-content {
  white-space: pre-wrap;
  font-size: 1.05rem;
  background: #1e1a16;
  border: 1px solid #3a332a;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 2rem;
}

label { display: block; margin-top: 14px; margin-bottom: 6px; color: #a99f8c; font-size: 0.85rem; }

input, textarea {
  width: 100%;
  background: #1e1a16;
  border: 1px solid #3a332a;
  border-radius: 4px;
  color: #ece4d3;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }

button, input[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 18px;
  background: #d8a94e;
  border: none;
  border-radius: 4px;
  color: #14110f;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
button:hover { background: #eac274; }
button:disabled { background: #3a332a; color: #766f62; }

.msg { margin-top: 12px; padding: 10px 12px; border-radius: 4px; font-size: 0.9rem; display: none; }
.msg.ok { background: #1f2e1f; color: #8fd08f; display: block; }
.msg.err { background: #2e1f1f; color: #e08f8f; display: block; }

.comment {
  border-top: 1px solid #3a332a;
  padding: 12px 0;
}
.comment .author { color: #d8a94e; font-weight: 700; font-size: 0.9rem; }
.comment .text { margin-top: 4px; font-size: 0.95rem; }
.comment .time { color: #766f62; font-size: 0.75rem; margin-top: 4px; }

.empty { color: #766f62; text-align: center; margin: 30px 0; }
