:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f7f3;
  color: #17201b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(33, 78, 91, 0.12), transparent 280px),
    #f4f7f3;
}

button,
textarea {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #567064;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #111815;
  font-size: 2rem;
  line-height: 1.05;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #cbd8d1;
  border-radius: 8px;
  background: #ffffff;
  color: #17342c;
  font-size: 1.2rem;
  cursor: pointer;
}

.composer,
.post {
  border: 1px solid #d6e0d9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(30, 55, 45, 0.08);
}

.composer {
  padding: 14px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #31443b;
  font-size: 0.9rem;
  font-weight: 700;
}

textarea {
  display: block;
  width: 100%;
  min-height: 124px;
  resize: vertical;
  border: 1px solid #c8d5cf;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfb;
  color: #17201b;
  line-height: 1.5;
}

textarea:focus,
button:focus-visible,
.file-picker:has(input:focus-visible) {
  outline: 3px solid rgba(20, 111, 88, 0.28);
  outline-offset: 2px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.file-picker {
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #b5c8bf;
  border-radius: 8px;
  padding: 9px 12px;
  background: #eef6f1;
  color: #17342c;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: #64786e;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #184f45;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.status-line {
  min-height: 34px;
  padding: 10px 2px 8px;
  color: #567064;
  font-size: 0.9rem;
}

.status-line[data-tone="success"] {
  color: #17613d;
}

.status-line[data-tone="error"] {
  color: #b42318;
}

.feed {
  display: grid;
  gap: 12px;
}

.post {
  overflow: hidden;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: #dfe8e2;
}

.post-body {
  margin: 0;
  padding: 14px 14px 10px;
  color: #17201b;
  line-height: 1.55;
  white-space: pre-wrap;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 14px;
}

time {
  color: #64786e;
  font-size: 0.84rem;
}

.like-button {
  min-width: 72px;
  min-height: 38px;
  border: 1px solid #cbd8d1;
  border-radius: 8px;
  background: #ffffff;
  color: #164338;
  font-weight: 800;
  cursor: pointer;
}

.empty {
  margin: 28px 0;
  color: #64786e;
  text-align: center;
}

@media (min-width: 680px) {
  .shell {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .composer {
    padding: 18px;
  }
}
