.page { margin: 0 auto; max-width: 760px; padding: clamp(1.25rem, 5vw, 3rem); }

header { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 2rem; }
h1 { font-size: clamp(2rem, 9vw, 4rem); letter-spacing: -.055em; line-height: .95; margin: .65rem 0 0; }

.composer {
  background: rgba(18, 21, 29, .86);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .2);
  padding: clamp(1rem, 4vw, 1.5rem);
}

.composer label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .75rem; text-transform: uppercase; }
textarea {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  line-height: 1.55;
  min-height: 10rem;
  outline: none;
  padding: 0;
  resize: vertical;
  width: 100%;
}
textarea::placeholder { color: #676c79; }
.composer-footer { align-items: center; border-top: 1px solid var(--border); display: flex; justify-content: space-between; padding-top: 1rem; }
#counter { color: var(--muted); font-size: .78rem; }
#submit { background: var(--accent); border-radius: 999px; color: #18130a; font-weight: 800; padding: .85rem 1.2rem; }
#submit:hover { background: var(--accent-strong); }
#submit:disabled { cursor: wait; opacity: .55; }
.message { color: var(--danger); font-size: .85rem; min-height: 1.2em; padding-top: .75rem; }
.message.success { color: #62df93; }

.feed { margin-top: 2.5rem; }
.feed-heading { align-items: center; display: flex; justify-content: space-between; }
.feed-heading h2 { font-size: 1rem; margin: 0; }
.feed-heading a { color: var(--accent); font-size: .84rem; text-decoration: none; }
.empty { color: var(--muted); padding: 2rem 0; text-align: center; }
ol { counter-reset: blocks; list-style: none; margin: 1rem 0 0; padding: 0; }
li { align-items: start; border-top: 1px solid var(--border); display: grid; gap: .9rem; grid-template-columns: 2rem minmax(0, 1fr) auto; padding: 1rem 0; white-space: pre-wrap; word-break: break-word; }
li::before { color: var(--accent); content: counter(list-item, decimal-leading-zero); font-size: .72rem; padding-top: .3rem; }
.delete-block { background: transparent; color: var(--muted); font-size: .78rem; padding: .25rem 0 .25rem .5rem; }
.delete-block:hover { color: var(--danger); }
.delete-block:disabled { cursor: wait; opacity: .45; }

@media (max-width: 520px) {
  header { display: block; }
  header .status { margin-top: 1rem; }
  .page { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  li { grid-template-columns: 1.7rem minmax(0, 1fr); }
  .delete-block { grid-column: 2; justify-self: start; padding: .15rem 0; }
}
