:root{
  --bg:#0f1724;
  --card:#0b1220;
  --text:#e6eef8;
  --muted:#9fb0c9;
  --accent:#7cc0ff;
  --glass: rgba(255,255,255,0.02);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:linear-gradient(180deg,var(--bg) 0%, #071018 100%);
  color:var(--text);
  padding:24px;
  line-height:1.5;
}

header{margin-bottom:18px}
h1{margin:0;font-size:28px}
.subtitle{margin:4px 0;color:var(--muted)}
.muted{color:var(--muted)}

main{max-width:900px;margin:0 auto}

#posts{display:grid;gap:12px}
.post{
  background:var(--card);
  padding:14px;
  border-radius:10px;
  box-shadow: 0 4px 10px rgba(2,6,23,0.6);
}
.post h3{margin:0}
.post p.excerpt{color:var(--muted);margin:6px 0}

.loading{color:var(--muted)}
footer{text-align:center;margin-top:28px}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

form label{display:block;margin:8px 0}
input[type="text"], textarea, input {
  width:100%;
  padding:8px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,0.06);
  background:var(--glass);
  color:var(--text);
}
button{
  background:var(--accent);
  color:#042029;
  padding:8px 12px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  font-weight:600;
}
button:hover{filter:brightness(.95)}
