:root {
  color-scheme: light;
  --ink: #25332b;
  --muted: #66736c;
  --green: #326c4d;
  --green-dark: #24533a;
  --green-soft: #e8f1e9;
  --cream: #f7f4e9;
  --paper: #fffdf8;
  --line: #dce3dc;
  --yellow: #f3c653;
  --danger: #a33b3b;
  --danger-soft: #fff0ed;
  --shadow: 0 18px 45px rgba(45, 65, 52, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 3%, rgba(243, 198, 83, 0.18), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(73, 128, 91, 0.13), transparent 26rem),
    var(--cream);
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.hero {
  max-width: 700px;
  margin-bottom: 32px;
}

.eyebrow,
.section-heading__label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero__description {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.storage-status {
  margin: 0 0 22px;
  padding: 14px 17px;
  color: #7c302d;
  background: var(--danger-soft);
  border: 1px solid #efc4bd;
  border-radius: 14px;
  line-height: 1.5;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.38fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(206, 216, 207, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.composer {
  position: sticky;
  top: 24px;
  padding: 30px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

form {
  margin-top: 28px;
}

.field + .field {
  margin-top: 20px;
}

.field label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d0;
  border-radius: 13px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field input {
  min-height: 48px;
  padding: 11px 13px;
}

.field textarea {
  min-height: 152px;
  padding: 13px;
  line-height: 1.55;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #929b95;
}

.field input:hover,
.field textarea:hover {
  border-color: #aebcaf;
}

.field input:focus-visible,
.field textarea:focus-visible {
  background: #fffefb;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(50, 108, 77, 0.13);
}

.submit-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  margin-top: 22px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(50, 108, 77, 0.18);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(50, 108, 77, 0.24);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.submit-button:focus-visible,
.delete-button:focus-visible {
  outline: 3px solid rgba(50, 108, 77, 0.28);
  outline-offset: 3px;
}

.action-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.action-status[data-tone="success"] {
  color: var(--green);
}

.action-status[data-tone="error"] {
  color: var(--danger);
}

.local-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 13px 0 0;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  line-height: 1.45;
}

.local-note span {
  color: var(--green);
  font-size: 0.58rem;
}

.feed {
  min-height: 530px;
  padding: 30px;
}

.feed__heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.post-count {
  flex: none;
  margin-top: 4px;
  padding: 7px 11px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 350px;
  padding: 50px 20px;
  text-align: center;
}

.empty-state__flower {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
}

.empty-state__flower span,
.empty-state__flower i {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.empty-state__flower span {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 14px rgba(58, 74, 63, 0.08);
}

.empty-state__flower span:nth-child(1) {
  top: 0;
  left: 21px;
}

.empty-state__flower span:nth-child(2) {
  top: 21px;
  right: 0;
}

.empty-state__flower span:nth-child(3) {
  bottom: 0;
  left: 21px;
}

.empty-state__flower span:nth-child(4) {
  top: 21px;
  left: 0;
}

.empty-state__flower i {
  top: 25px;
  left: 25px;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  box-shadow: 0 3px 8px rgba(161, 124, 28, 0.18);
}

.empty-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.empty-state p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.post-list {
  display: grid;
  gap: 15px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.post-card {
  padding: 21px 22px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(44, 62, 49, 0.06);
}

.post-card__header {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.post-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.post-card__time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.post-card__content {
  margin: 17px 0 0;
  color: #435048;
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.delete-button {
  flex: none;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid #e7c6c1;
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.delete-button:hover {
  color: #7e2626;
  background: var(--danger-soft);
  border-color: #dba69d;
}

[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 28px, 680px);
    padding-top: 48px;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }

  .composer {
    position: static;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding: 34px 0 30px;
  }

  .hero {
    margin-bottom: 24px;
  }

  .panel,
  .storage-status {
    border-radius: 18px;
  }

  .composer,
  .feed {
    padding: 22px 18px;
  }

  .feed {
    min-height: 440px;
  }

  .post-card {
    padding: 18px;
  }

  .post-card__header {
    display: block;
  }

  .delete-button {
    width: 100%;
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
