* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f4ef;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

main {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  padding: 56px 0 72px;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero p {
  margin: 28px 0 0;
  font-size: clamp(18px, 2.4vw, 28px);
  color: #6b6b6b;
}

.status {
  border-top: 1px solid #d8d5cf;
  padding-top: 32px;
}

.status h2 {
  margin: 0 0 24px;
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid div {
  background: #ffffff;
  border: 1px solid #e2dfd8;
  border-radius: 14px;
  padding: 20px;
}

.grid strong {
  display: block;
  font-size: 32px;
  margin-bottom: 6px;
}

.grid span {
  color: #6b6b6b;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Shared public and editorial styles */
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: #56664a; }
:focus-visible { outline: 3px solid #61764c; outline-offset: 4px; }
.public-nav, .admin-nav, .actions, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.public-nav { padding: 24px 0; border-top: 1px solid #d8d5cf; }
.public-nav a { text-decoration: none; }
.public-nav small { margin-left: 8px; color: #6b6b6b; }
.content-section { padding: 48px 0; border-top: 1px solid #d8d5cf; scroll-margin-top: 24px; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; margin: 0 0 28px; }
h3 { font-size: 23px; line-height: 1.4; margin: 0 0 16px; overflow-wrap: anywhere; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.muted, .eyebrow { color: #64645e; line-height: 1.7; }
.eyebrow { font-size: 14px; }
footer { border-top: 1px solid #d8d5cf; padding-top: 24px; font-size: 13px; }
footer span { display: block; color: #64645e; margin-top: 8px; }
.admin-header, .section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.admin-nav { padding: 28px 0; margin-bottom: 40px; border-bottom: 1px solid #d8d5cf; }
.admin-nav [aria-current] { font-weight: 700; }
.page-title { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; letter-spacing: -.03em; margin: 32px 0; }
.form-section { max-width: 440px; margin-top: 64px; }
.editor-form { max-width: 760px; }
label { display: block; font-weight: 600; margin: 24px 0 10px; }
input:not([type=hidden]):not([type=checkbox]), textarea { width: 100%; background: #fffefb; border: 1px solid #96958e; border-radius: 2px; padding: 13px; font: inherit; color: inherit; }
textarea { resize: vertical; line-height: 1.7; }
button { font: inherit; cursor: pointer; }
.button { display: inline-block; border: 1px solid #111; background: #111; color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 2px; }
.button:hover { background: #384330; color: #fff; }
.form-section button { margin-top: 24px; }
.text-button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 5px; }
.notice, .error { padding: 16px; border: 1px solid #80916e; line-height: 1.6; }
.error { border-color: #a53625; color: #922f21; }
.danger { background: #922f21; border-color: #922f21; }
.dashboard-item { padding: 24px 0; border-top: 1px solid #d8d5cf; text-decoration: none; }
.entry-list { list-style: none; padding: 0; }
.entry-list li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid #d8d5cf; }
.entry-list li > span { overflow-wrap: anywhere; min-width: 0; }
.entry-list .actions { flex-shrink: 0; }
.pagination { margin-top: 32px; }
@media (max-width: 600px) {
  main { width: calc(100% - 32px); padding: 32px 0; }
  .content-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .admin-nav { gap: 18px; }
  .entry-list li { align-items: flex-start; flex-direction: column; gap: 14px; }
}

.article-image { display: block; width: 100%; height: auto; margin-bottom: 24px; }
.image-field { margin: 32px 0; padding: 24px; border: 1px solid #d8d5cf; min-width: 0; }
.image-field legend { font-weight: 600; padding: 0 8px; }
.image-preview { display: block; max-width: 100%; max-height: 320px; object-fit: contain; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.checkbox-label input { width: 18px; height: 18px; }
