@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #f7f2e9;
  --bg-accent: #fde7d0;
  --ink: #1b1a17;
  --muted: #5a5146;
  --accent: #d1495b;
  --accent-2: #00798c;
  --card: #ffffff;
  --border: #e6d8c5;
  --shadow: rgba(27, 26, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7ea 0%, var(--bg) 55%, #f1e2cd 100%);
  min-height: 100vh;
}

.hero {
  position: relative;
  padding: 36px 48px 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(209, 73, 91, 0.12), transparent 55%),
              radial-gradient(circle at 20% 80%, rgba(0, 121, 140, 0.12), transparent 50%);
  z-index: -1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline {
  color: var(--muted);
  margin-top: 6px;
}

button,
select,
input {
  font-family: inherit;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(209, 73, 91, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(209, 73, 91, 0.25);
}

main {
  max-width: 1100px;
  margin: 24px auto 80px;
  padding: 0 48px;
  display: grid;
  gap: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid.list-view {
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px var(--shadow);
  animation: fadeIn 0.4s ease;
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.entry {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff7ee;
  display: grid;
  gap: 12px;
}

.entry.entry-deleted {
  opacity: 0.6;
}

.grid.list-view .entry {
  grid-template-columns: 140px 1fr;
  align-items: start;
}

.grid.list-view .entry-media {
  grid-row: 1 / span 3;
}

.grid.list-view .entry-actions {
  justify-content: flex-start;
}

.entry-title {
  font-size: 16px;
  font-weight: 600;
}

.entry-media img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 140px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.entry-summary {
  font-size: 14px;
  color: var(--muted);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-actions button {
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.list-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.entry-edit {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
}

.entry-edit textarea {
  min-height: 80px;
  resize: vertical;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}

.hidden {
  display: none;
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1dc;
  border: 1px solid var(--border);
  font-size: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .hero,
  main {
    padding: 0 24px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}
