:root {
  --bg: #fbf3ee;
  --ink: #3b2a22;
  --muted: #76594b;
  --line: #d9c2b5;
  --field: #fffaf7;
  --accent: #b83a68;
  --on-accent: #ffffff;
  --error: #a32a1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211713;
    --ink: #f6e8e0;
    --muted: #c9ae9f;
    --line: #58433a;
    --field: #2c201b;
    --accent: #f58db2;
    --on-accent: #2c1019;
    --error: #ffb4a8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.team { margin: 0 0 8px; font-size: 28px; }

h1 {
  margin: 0 0 8px;
  font-size: clamp(40px, 11vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead { margin: 0 0 32px; color: var(--muted); }

label { display: block; margin-bottom: 8px; font-weight: 600; }

textarea {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

textarea::placeholder { color: var(--muted); }
textarea:focus-visible { outline: none; border-color: var(--accent); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.count.over { color: var(--error); font-weight: 600; }

button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
button:disabled { opacity: 0.6; cursor: default; }

.reply {
  margin: 32px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.error { margin: 24px 0 0; color: var(--error); font-weight: 600; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  color: var(--muted);
  font-size: 15px;
}

footer p { margin: 0; }
