:root {
  --bg: #f5f4ef;
  --fg: #182027;
  --muted: #5b6773;
  --card: #ffffff;
  --line: #d7d8d2;
  --accent: #d15f3f;
  --accent-2: #3a6f89;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
  color: var(--fg);
  background:
    radial-gradient(circle at 10% 20%, #fff 0, #f5f4ef 35%, #ece8df 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav {
  display: flex;
  gap: 14px;
}

.nav a {
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}

.nav a:hover {
  border-bottom-color: var(--accent);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e9ecef;
}

.card-body {
  padding: 12px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

input,
textarea,
select,
button {
  width: 100%;
  font: inherit;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
}

button.secondary {
  background: var(--accent-2);
}

button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0efea;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.actions button {
  flex: 1;
}

.notice {
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .row,
  .actions {
    flex-direction: column;
  }
}
