:root {
  color-scheme: light;
  --bg: #faf9f7;
  --text: #2b2a28;
  --muted: #6b6862;
  --accent: #2f6f5e;
  --border: #e2ddd4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro {
  text-align: center;
}

.brand {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro h1 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.subheadline {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--muted);
}

.tekst {
  margin: 0;
  font-size: 15px;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  min-height: 120px;
  max-height: 55vh;
  overflow-y: auto;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.4;
  font-size: 15px;
  white-space: pre-wrap;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.chat-message.assistant {
  align-self: flex-start;
  background: #f1efe9;
  color: var(--text);
}

.chat-form {
  display: flex;
  gap: 8px;
}

#chat-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
}

#chat-submit {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

#chat-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
