/* style.css — the outfit. hand written, safe to edit.
   model.css is the brain and gets regenerated, keep weights out of here. */

:root {
  color-scheme: light dark;
  --bg1: #fdf1f5;
  --bg2: #f6e8ff;
  --card: #fffdfd;
  --ink: #4a3540;
  --muted: #9a7f8d;
  --acc: #f27daf;
  --acc-ink: #fff;
  --pill: #f7e3ec;
  --pill-border: #eccbda;
  --bubble: #ffffff;
  --warn-bg: #fff3d6;
  --warn-ink: #7a5c1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #241a22;
    --bg2: #1d1826;
    --card: #2e2230;
    --ink: #f0dce6;
    --muted: #a98a9b;
    --acc: #f27daf;
    --acc-ink: #33121f;
    --pill: #3b2b3a;
    --pill-border: #543f52;
    --bubble: #352838;
    --warn-bg: #4a3b1c;
    --warn-ink: #ffe1a1;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  color: var(--ink);
  font-family: "Segoe UI", ui-rounded, system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

::selection { background: var(--acc); color: var(--acc-ink); }

/* the radios do all the work but nobody needs to see them */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.page { width: min(44rem, 100%); }

header h1 {
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.paw {
  display: inline-block;
  font-size: 0.5em;
  margin-left: 0.3em;
  transform: rotate(20deg);
}

.tag {
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  line-height: 1.4;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.6rem 0 1.2rem;
}

.group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.glabel {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  width: 6.5rem;
  flex-shrink: 0;
}

.group label {
  border: 1px solid var(--pill-border);
  background: var(--pill);
  border-radius: 999px;
  padding: 0.32em 0.95em;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  transition: transform 80ms ease;
}

.group label:hover { transform: translateY(-1px); }
.group label:active { transform: translateY(0) scale(0.97); }

/* seed pills are literal model input, let them look like it */
.group label[for^="seed-"] {
  font-family: Consolas, ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.bubble {
  position: relative;
  background: var(--bubble);
  border-radius: 20px;
  padding: 1.3rem 1.5rem;
  margin-left: 2.4rem;
  box-shadow: 0 10px 30px rgb(90 40 70 / 0.12);
}

/* little speech tail pointing at the little speech dog */
.bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 26px;
  width: 16px;
  height: 16px;
  background: var(--bubble);
  transform: rotate(45deg);
  border-radius: 3px;
}

.avatar {
  position: absolute;
  left: -2.55rem;
  top: 14px;
  font-size: 1.7rem;
}

.out {
  margin: 0;
  font-family: Consolas, ui-monospace, monospace;
  font-size: 1.02rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* the prompt part of the text, so you can see where she takes over */
.lead::before { color: var(--acc); font-weight: 600; }

.end::before {
  content: "▊";
  color: var(--acc);
  animation: think 1.1s steps(2) infinite;
  margin-left: 1px;
}

@keyframes think {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .end::before { animation: none; }
  .group label, .group label:hover, .group label:active { transition: none; transform: none; }
}

footer {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 38rem;
}
