* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f8fa;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 1rem;
  color: #0070f3;
  text-decoration: none;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.posts .card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.posts .card a {
  color: #111;
  text-decoration: none;
}

.article h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.article .content {
  font-size: 16px;
  line-height: 1.8;
}

input, textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
}

.btns {
  display: flex;
  gap: 10px;
}

button {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: #0070f3;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

button.del {
  background: #e53e3e;
}

.pager {
  margin-top: 20px;
  display: flex;
  gap: 14px;
}

.pager a {
  color: #0070f3;
  text-decoration: none;
}

.login {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
  color: #0070f3;
  text-decoration: none;
}