:root {
  color-scheme: light;
  font: 1rem/1.55 system-ui, sans-serif;
  color: #152330;
  background: #f2f6f5;
}

body { margin: 0; }
.site-header { background: #153641; padding: .85rem clamp(1rem, 5vw, 4rem); }
.site-header a { color: white; font-weight: 700; text-decoration: none; }
main { max-width: 50rem; margin: 2rem auto; padding: 0 1rem 3rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
form, article, .thread {
  border: 1px solid #c2d2d2;
  border-radius: .75rem;
  background: white;
  padding: 1.15rem;
  margin-block: 1rem;
}
form { display: grid; gap: .4rem; }
form h2 { margin-block: 0 .55rem; }
label { font-weight: 600; }
input, textarea, button {
  box-sizing: border-box;
  font: inherit;
  min-height: 3rem;
  border: 1px solid #587477;
  border-radius: .4rem;
  padding: .55rem .75rem;
}
input, textarea { width: 100%; margin-bottom: .65rem; }
button { color: white; background: #15625a; cursor: pointer; justify-self: start; }
button:disabled { opacity: .6; cursor: default; }
a { color: #145d56; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #2451ac; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.hint { color: #3b555d; font-size: .95rem; margin-top: 0; }
.error { color: #9b2525; }
.thread { list-style: none; padding-inline: 1rem; }
.thread li + li { border-top: 1px solid #c2d2d2; padding-top: .65rem; }
.thread p, pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-list { display: grid; gap: .5rem; padding: 0; list-style: none; }
