:root {
  color-scheme: dark;
  --ink: #f2efe7;
  --muted: #9ea9a1;
  --dim: #6f7d74;
  --dim-text: #8a978e;
  --forest: #0a1713;
  --forest-2: #10231d;
  --panel: #13241e;
  --panel-light: #183027;
  --line: rgba(226, 236, 228, 0.12);
  --lime: #c6ed85;
  --gold: #d7b977;
  --clay: #c38467;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--forest); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -8%, rgba(198, 237, 133, 0.09), transparent 30rem),
    var(--forest);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 24px;
}

button, a { color: inherit; font: inherit; }
button { border: 0; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -72px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--forest);
}

.skip-link:focus { top: 18px; }

.shell { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }

main { min-width: 0; overflow-wrap: anywhere; }

.voice-orb {
  position: relative;
  width: clamp(150px, 16vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(234,255,207,.72);
  background:
    radial-gradient(circle at 36% 31%, #f4ffe1 0, #b8d884 5%, #62886c 21%, #24483b 43%, #10231c 66%, #0a1713 75%);
  box-shadow:
    0 0 42px rgba(198,237,133,.18),
    0 0 130px rgba(88,151,113,.14),
    inset -24px -28px 58px rgba(0,0,0,.28);
}

.voice-orb::before,
.voice-orb::after {
  content: "";
  position: absolute;
  inset: -25px;
  border: 1px solid rgba(198,237,133,.13);
  border-radius: 50%;
}

.voice-orb::after { inset: -51px; border-color: rgba(198,237,133,.055); }
.voice-orb svg { width: 55%; height: 55%; }
.voice-orb svg path { stroke-width: 1; }
.voice-orb.live { animation: voice-live 1.4s ease-in-out infinite; }
.voice-orb.speaking { animation: voice-live .45s ease-in-out infinite alternate; }

@keyframes voice-live {
  50% {
    transform: scale(1.055);
    box-shadow: 0 0 70px rgba(198,237,133,.34), 0 0 170px rgba(88,151,113,.22);
  }
}

h1 {
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 36px;
  text-wrap: balance;
}

@media (max-width: 920px) {
  h1 { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-orb.live,
  .voice-orb.speaking { animation: none; }
}

/* Keyboard focus: a clear gold ring on every control in the conversation panel. */
.gs :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
