:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #17212b;
  background: #f5f1e8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 2%, rgba(239, 99, 81, .13), transparent 32rem),
    #f5f1e8;
}

button,
textarea {
  font: inherit;
}

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #e9533f;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
}

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

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.7rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}

.count {
  display: grid;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  place-content: center;
  border: 1px solid #d8d0c1;
  border-radius: 50%;
  text-align: center;
}

.count strong {
  font-family: Georgia, serif;
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1;
}

.count span {
  margin-top: 5px;
  color: #7a7d78;
  font-size: .75rem;
}

.feed {
  margin-top: 56px;
}

h2 {
  margin-bottom: 7px;
  font-size: 1.1rem;
}

button {
  cursor: pointer;
  border: 0;
}

.section-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid #d8d0c1;
}

.section-heading h2 {
  margin: 0;
}

.refresh {
  padding: 7px 0;
  background: transparent;
  color: #e9533f;
  font-size: .82rem;
  font-weight: 700;
}

.message-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.message-card {
  padding: 26px 2px;
  border-bottom: 1px solid #ded6c8;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #8a8982;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .72rem;
}

.message-card > p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.75;
}

.empty {
  padding: 64px 24px;
  text-align: center;
}

.empty span {
  display: block;
  margin-bottom: 16px;
  color: #e9533f;
  font-size: 2.8rem;
}

.empty h3 {
  margin-bottom: 8px;
}

.empty p {
  margin: 0;
  color: #7a7d78;
  font-size: .9rem;
}

.admin-shell {
  width: min(980px, calc(100% - 32px));
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-header h1 {
  margin-bottom: 0;
}

.back-link {
  padding: 9px 15px;
  border: 1px solid #d8d0c1;
  border-radius: 999px;
  color: #17212b;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-total {
  color: #7a7d78;
  font-size: .82rem;
}

.notice {
  margin: 32px 0 -24px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: .88rem;
}

.notice-success {
  background: #e1eee5;
  color: #256342;
}

.notice-error {
  background: #f5dfdb;
  color: #9f3427;
}

.admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.admin-content {
  min-width: 0;
}

.admin-content > p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.delete-button {
  padding: 9px 15px;
  border: 1px solid #e3b7af;
  border-radius: 999px;
  background: transparent;
  color: #b93427;
  font-size: .8rem;
  font-weight: 700;
}

.delete-button:hover {
  background: #b93427;
  color: white;
}

@media (max-width: 640px) {
  .shell {
    padding: 42px 0;
  }

  .hero {
    align-items: flex-end;
  }

  .count {
    width: 84px;
    height: 84px;
  }

  .count strong {
    font-size: 1.8rem;
  }

  .feed {
    margin-top: 44px;
  }

  .admin-card {
    align-items: end;
    gap: 14px;
  }
}
