:root {
  --ink: #1a1f2e;
  --paper: #f7f3eb;
  --accent: #c45c26;
  --accent-dark: #8f3d12;
  --muted: #5c6478;
  --line: rgba(26, 31, 46, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Onest", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(196, 92, 38, 0.15), transparent),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(26, 31, 46, 0.08), transparent),
    linear-gradient(165deg, #faf6ef 0%, #ebe4d6 100%);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Literata", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-header nav a:hover { color: var(--accent); }

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-brand {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 28rem;
  margin-bottom: 2rem;
}

h1 {
  font-family: "Literata", Georgia, serif;
  font-size: 2rem;
  margin-top: 0;
}

h2 {
  font-family: "Literata", Georgia, serif;
  font-size: 1.25rem;
  margin-top: 2rem;
}

.muted, .hint, .meta { color: var(--muted); font-size: 0.95rem; }

.notice {
  color: var(--accent-dark);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-accent { background: var(--accent); }
.btn-danger { background: #8b2e2e; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.actions form { margin: 0; }

.tag-list, .news-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.tag-list li, .news-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.tag-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.tag-list a:hover { color: var(--accent); }

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.raw {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  background: rgba(255,255,255,0.5);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.inline-form { display: inline; margin-left: 1rem; }

@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .site-header nav a { margin-left: 0; margin-right: 1rem; }
}
