:root {
  --ink: #25191f;
  --paper: #fff7e7;
  --paper-deep: #f4dfb7;
  --grape: #6f225e;
  --grape-dark: #32112c;
  --nongrape-dark: #2f0f57;
  --green: #24784f;
  --red: #b71d2a;
  --gold: #f5b942;
  --shadow: 0 18px 50px rgba(37, 25, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 185, 66, 0.22), transparent 24rem),
    linear-gradient(135deg, #fdf2cf 0%, #f7d9cf 44%, #d8e7c7 100%);
  font-family: Georgia, "Times New Roman", serif;
}

button,
textarea,
.nav-link {
  font-family: "Segoe UI", Arial, sans-serif;
}

.grape-nav {
  background: rgba(255, 247, 231, 0.92);
  border-bottom: 3px solid rgba(50, 17, 44, 0.16);
  box-shadow: 0 8px 26px rgba(50, 17, 44, 0.08);
}

.navbar-brand {
  color: var(--grape-dark);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-link {
  color: var(--grape-dark);
  font-weight: 700;
}

.page-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.brand-mast {
  display: flex;
  align-items: end;
  min-height: 280px;
  padding: 56px 0 34px;
  border-bottom: 5px double rgba(50, 17, 44, 0.26);
}

.brand-mast h1,
.post-panel h1 {
  margin: 0;
  color: var(--grape-dark);
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  color: #fff;
  background: var(--red);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.35rem;
}

.toast-banner,
.empty-state,
.post-panel {
  background: rgba(255, 247, 231, 0.94);
  border: 3px solid rgba(50, 17, 44, 0.18);
  box-shadow: var(--shadow);
}

.toast-banner {
  margin: 22px 0;
  padding: 16px 18px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

.name-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 46px;
}

.name-stage form {
  min-width: 0;
}

.name-card {
  width: 100%;
  min-height: 116px;
  padding: 14px 12px;
  color: #fff;
  background: linear-gradient(160deg, var(--grape) 0%, var(--grape-dark) 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(50, 17, 44, 0.22);
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.name-card:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 18px 30px rgba(50, 17, 44, 0.26);
}

.name-card span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.name-card small {
  display: block;
  margin-top: 8px;
  color: #f8e9a9;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--grape-dark);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
}

.section-heading p {
  max-width: 440px;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.rumor-group {
  margin: 0 0 30px;
  padding: 18px 0 0;
  border-top: 3px solid rgba(50, 17, 44, 0.22);
}

.rumor-group header {
  margin-bottom: 14px;
}

.rumor-group h3,
.empty-state h3 {
  margin: 0;
  color: var(--grape-dark);
  font-size: 1.7rem;
  font-weight: 900;
}

.rumor-group header p,
.empty-state p {
  margin: 4px 0 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 650;
}

.message-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.message-card {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 2px solid rgba(50, 17, 44, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(37, 25, 31, 0.08);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.message-meta strong {
  color: var(--grape);
  font-size: 1.04rem;
}

.message-meta time {
  color: rgba(37, 25, 31, 0.62);
  font-size: 0.88rem;
  white-space: nowrap;
}

.message-card p {
  margin: 14px 0 18px;
  font-size: 1.2rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.action-button,
.post-form button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.deny {
  background: var(--paper-deep);
  color: var(--grape-dark);
}

.confirm {
  background: var(--green);
  color: #fff;
}

.publish {
  background: var(--red);
  color: #fff;
}

.empty-state {
  padding: 28px;
  border-radius: 8px;
}

.post-shell {
  min-height: calc(100vh - 150px);
  padding: 46px 0;
}

.edit-shell {
  padding: 38px 0;
}

.edit-login {
  margin: 20px 0 28px;
  padding: 18px;
  background: rgba(255, 247, 231, 0.94);
  border: 3px solid rgba(50, 17, 44, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: "Segoe UI", Arial, sans-serif;
}

.edit-login form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.edit-login label,
.edit-login span {
  font-weight: 900;
}

.edit-login input,
.edit-form textarea {
  border: 2px solid rgba(50, 17, 44, 0.24);
  border-radius: 8px;
  background: #fffdf7;
}

.edit-login input {
  min-height: 42px;
  padding: 8px 10px;
}

.edit-login button,
.edit-form button,
.delete-form button,
.locked-actions button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.edit-login button,
.edit-form button {
  background: var(--grape);
  color: #fff;
}

.edit-list {
  display: grid;
  gap: 14px;
}

.edit-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 2px solid rgba(50, 17, 44, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(37, 25, 31, 0.08);
}

.edit-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.edit-form textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

.edit-form button,
.delete-form button {
  justify-self: start;
}

.delete-form {
  margin-top: 8px;
}

.delete-form button {
  background: var(--red);
  color: #fff;
}

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

.locked-actions button {
  color: rgba(37, 25, 31, 0.54);
  background: rgba(244, 223, 183, 0.72);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--grape-dark);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.post-panel {
  max-width: 820px;
  padding: clamp(22px, 5vw, 46px);
  border-radius: 8px;
}

.post-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.post-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 260px;
  padding: 18px;
  color: var(--ink);
  background: #fffdf7;
  border: 3px solid rgba(50, 17, 44, 0.24);
  border-radius: 8px;
  font-size: 1.12rem;
  line-height: 1.5;
}

.post-form button {
  justify-self: start;
  background: var(--grape);
  color: #fff;
}

.validation-message {
  color: var(--red);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

.footer {
  position:static !important; 
  margin-top: 12px;
  padding: 26px 0;
  color: rgba(37, 25, 31, 0.68);
  font-family: "Segoe UI", Arial, sans-serif;
}

@media (max-width: 900px) {
  .name-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .message-stack {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 560px) {
  .page-wrap {
    width: min(100% - 20px, 1160px);
  }

  .brand-mast {
    min-height: 240px;
    padding-top: 36px;
  }

  .name-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .name-card {
    min-height: 104px;
  }

  .message-meta {
    display: block;
  }

  .message-meta time {
    display: block;
    margin-top: 3px;
  }
}
