:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #202430;
  --muted: #5b6475;
  --accent: #3d6cff;
  --accent-dark: #2f56cb;
  --border: #e3e6ef;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

header {
  padding: 2rem 0 1rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0.25rem;
}

.layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 4%);
}

h1,
h2,
h3 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary {
  background: #eceffd;
  color: #2a3a7f;
}

.entries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

#entries-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.entry-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
}

.entry-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.entry-item p {
  margin: 0.35rem 0;
}

footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
