:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --line: #cfe1ff;
  --text: #1a2b45;
  --muted: #64748b;
  --primary: #0a5ad3;
  --primary-dark: #083f9d;
  --link: #0a5ad3;
  --success: #0a7f3f;
  --warning: #b65a00;
  --danger: #b3261e;
  --shadow: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
}

body {
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  background: #dfeefd;
  border-bottom: 2px solid var(--line);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.hero {
  padding: 24px 10px 12px;
}

.hero h1 {
  margin-top: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.feature-list ul {
  padding-left: 18px;
  margin: 10px 0;
}

h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--text);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  display: block;
  font-weight: bold;
  font-size: 0.95rem;
}

input, textarea, button {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b7c9eb;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

button, .btn {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--primary-dark);
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  transition: 0.15s ease;
}

button:hover, .btn:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: #edf3ff;
  color: var(--text);
  border-color: #b7c9eb;
}

.inline-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

.post, .friend-item, .message-item, .community-item, .guestbook-entry {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.post:first-child, .friend-item:first-child, .message-item:first-child, .community-item:first-child, .guestbook-entry:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.small-link {
  font-size: 0.85rem;
}

.status {
  display: inline-block;
  padding: 2px 8px;
  background: #edf3ff;
  border: 1px solid var(--line);
  color: var(--text);
  margin-top: 6px;
  font-size: 0.8rem;
}

.alert {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #edf3ff;
  color: var(--text);
  margin-top: 10px;
}

.user-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.float-right {
  float: right;
}

@media (max-width: 600px) {
  .main-nav {
    font-size: 0.8rem;
  }

  .container {
    padding: 12px;
  }

  .topbar {
    padding: 8px 12px;
  }
}
