:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #181625;
  background: #f5f3fb;
}

* { box-sizing: border-box; }
body { margin: 0; }

a { color: #49269d; }
:focus-visible { outline: 3px solid #7551e5; outline-offset: 4px; }

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  background: #211839;
  padding: 16px max(18px, calc((100% - 760px) / 2));
}

.top a { color: white; font-weight: 650; text-decoration: none; }
.top span { color: #d3c2ff; margin-left: 8px; font-weight: 500; }
main { width: min(760px, calc(100% - 36px)); margin: 32px auto 56px; }
h1 { margin: 0 0 24px; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.045em; }
h2 { margin: 0 0 16px; font-size: 1.25rem; }
h3 { margin: 0; font-size: 1rem; }
p { margin: 0 0 16px; line-height: 1.5; }

.card {
  background: #fff;
  border: 1px solid #ddd6ed;
  border-radius: 14px;
  margin-bottom: 16px;
  padding: clamp(16px, 5vw, 28px);
}

label { display: block; font-weight: 650; margin: 14px 0 6px; }
textarea, input[type="text"] {
  width: 100%;
  border: 1px solid #8f84a6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: inherit;
  font: inherit;
}

textarea { resize: vertical; }
.site-submit { margin-top: 12px; }
.suggestions { padding-inline-start: 22px; margin-bottom: 0; }
.suggestions li + li { margin-top: 9px; }
.button, button {
  display: inline-block;
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: #4d2ba4;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.muted, .history small { color: #5f586c; font-size: .875rem; }
.muted { margin-top: 10px; }
.notice { background: #fff4de; padding: 12px; border-radius: 8px; color: #613c09; }
.prompt { font-weight: 650; overflow-wrap: anywhere; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.profile-result { padding: 16px 0; border-top: 1px solid #eee8f5; }
.profile-result .muted { margin-bottom: 0; }
.profile-result .answer { margin-top: 12px; }
.cite { font-weight: 700; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 10px 0; overflow-wrap: anywhere; }
.history li + li { border-top: 1px solid #eee8f5; }
.history small { display: block; margin-top: 4px; }
