:root {
  color-scheme: light;
  --page: #f0edff;
  --surface: #fff;
  --ink: #211a37;
  --muted: #625b78;
  --line: #ded8f1;
  --accent: #6546a5;
  --accent-hover: #4f3588;
  --focus: #493083;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

button:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 18px;
}

.outro {
  width: min(100%, 620px);
  padding: clamp(26px, 7vw, 58px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  animation: arrive 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 {
  max-width: 10ch;
  margin: 0 0 18px;
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro {
  max-width: 48ch;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.reply-form {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.reply-form label {
  font-size: 14px;
  font-weight: 750;
}

.reply-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid #aaa1c2;
  border-radius: 12px;
  color: var(--ink);
  background: #fcfbff;
  font-size: 15px;
  line-height: 1.6;
}

.reply-form textarea::placeholder {
  color: #625b78;
  opacity: 1;
}

.reply-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.reply-meta p {
  margin: 0;
}

.reply-meta span {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.reply-form button {
  min-height: 50px;
  margin-top: 6px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.reply-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.reply-form button:active:not(:disabled) {
  transform: translateY(1px);
}

.reply-form button:disabled {
  cursor: default;
  opacity: 0.72;
}

.reply-status {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 16px 12px;
  }

  .outro {
    padding: 28px 22px;
    border-radius: 17px;
  }

  .reply-meta {
    flex-direction: column;
    gap: 4px;
  }
}

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