/* Direction: sunlit glasshouse — pale blue light, frosted glass cards,
   a rounded friendly display face, one sunflower accent for stars + the main button. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #eef4fd;
  --surface: #ffffff;
  --surface-2: #e2ecfb;
  --border: #cbddf4;
  --border-strong: #b1b3b3;
  --ink: #16263b;
  --muted: #4f6581;
  --accent: #f7c428;
  --accent-hover: #d2a722;
  --accent-ink: #231b06;
  --accent-text: #8a5c06;
  --accent-strong: #7d5205;
  --accent-soft: #fdf2cd;
  --accent-border: #f2de9d;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d4e6e6;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #e7e1e0;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #e8dae2;
  --danger-strong: #b91c1c;
  --chart-1: #ad8711;
  --chart-2: #479b57;
  --chart-3: #128491;
  --chart-4: #6a88db;
  --chart-5: #9a5498;
  --chart-6: #cf6a5e;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --radius-card: 26px;
  --radius-btn: 999px;
  --radius-input: 16px;
  --card-pad: 1.5rem;
  --shadow-card: 0 24px 60px -30px rgba(22, 38, 59, 0.45);
  --x-night: #152538;
  --x-on-photo: #ffffff;
  --x-on-photo-soft: rgba(255, 255, 255, 0.78);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #100c03;
  --surface: #28241c;
  --surface-2: #1c1810;
  --border: #312e26;
  --border-strong: #58554f;
  --ink: #eef4fd;
  --muted: #959799;
  --accent: #f7c428;
  --accent-hover: #f8cd48;
  --accent-ink: #231b06;
  --accent-text: #f7c428;
  --accent-strong: #f7c428;
  --accent-soft: #43340b;
  --accent-border: #785f14;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #112610;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #341c04;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #351009;
  --danger-strong: #d16969;
  --chart-1: #f7c428;
  --chart-2: #68da80;
  --chart-3: #1cc8dc;
  --chart-4: #a3bcfe;
  --chart-5: #e686e2;
  --chart-6: #fca396;
}

.stars svg,
.stars-input svg {
  fill: currentColor;
}

/* tap-a-star rating: inputs run 5 → 1 in the markup, row-reverse puts 1 on the left */
.stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
}
.stars-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.stars-input label {
  cursor: pointer;
  color: var(--border);
  transition: transform 0.15s ease, color 0.15s ease;
}
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label {
  color: var(--accent);
}
.stars-input label:hover {
  transform: scale(1.12) rotate(-4deg);
}
.stars-input input:focus-visible + label {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 8px;
}

.glass {
  background-color: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  box-shadow: var(--shadow-card);
}

.quote-mark {
  font-family: var(--font-display);
  display: block;
  line-height: 0.62;
}
