
:root {
  --background: 145 40% 96%;
  --foreground: 145 20% 22%;
  --card: 145 36% 100%;
  --card-foreground: 145 30% 18%;
  --primary: 145 45% 40%;
  --primary-foreground: 0 0% 100%;
  --muted: 145 24% 92%;
  --muted-foreground: 145 25% 40%;
  --border: 145 35% 86%;
  --input: 145 35% 92%;
  --ring: 145 45% 45%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
a {
  color: hsl(var(--foreground));
  text-decoration: none;
}
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  background: hsla(145, 40%, 92%, 0.95);
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: Lora, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
nav a {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: hsla(145, 45%, 90%, 0.85);
  transition: background 0.2s ease, color 0.2s ease;
}
nav a:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.hero {
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.06);
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: hsl(var(--foreground));
}
.hero p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}
.button,
.button-secondary {
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.button {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.button-secondary {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.button.danger {
  background: #c13d3d;
  color: white;
}
.posts {
  display: grid;
  gap: 1.5rem;
}
.post-card {
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.05);
}
.post-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: hsl(var(--foreground));
}
.post-card p {
  margin: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}
.post-card .meta {
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.post-media {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.post-media.small img,
.post-media.small video,
.post-media.small audio {
  max-width: min(360px, 100%);
}
.post-media.medium img,
.post-media.medium video,
.post-media.medium audio {
  max-width: min(640px, 100%);
}
.post-media.large img,
.post-media.large video,
.post-media.large audio {
  max-width: 100%;
}
.post-media img,
.post-media video {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.post-media audio {
  width: 100%;
}
.post-media a {
  color: hsl(var(--primary));
  font-weight: 700;
}
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hidden {
  display: none !important;
}
.editor-panel {
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.05);
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid hsl(var(--border));
  padding: 0.95rem 1rem;
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 1rem;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.status {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  display: none;
  font-weight: 700;
}
.status.visible {
  display: block;
}
.status.success {
  background: #e7f5e7;
  color: #1f5d22;
  border: 1px solid #b8ddac;
}
.status.error {
  background: #ffe7e7;
  color: #8b1a1a;
  border: 1px solid #f1c0c0;
}
@media (max-width: 680px) {
  .header-inner,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  nav {
    justify-content: center;
  }
}
