/* =========================================================
   Saanidhya — shared tokens & base
   A quiet, ivory-toned interface for a supportive AI chat.
   ========================================================= */

:root {
  /* Palette: warm ivory ground, sage for presence/action,
     a soft lavender to mark the AI's voice, gold as a rare warm accent. */
  --ivory:        #FAF6ED;
  --ivory-deep:   #F2EBDA;
  --paper:        #FFFFFF;

  --ink:          #2C2A26;
  --ink-soft:     #756F60;
  --ink-faint:    #A79F8C;

  --sage:         #6E8F76;
  --sage-deep:    #4F6F58;
  --sage-tint:    #E4ECE2;

  --lavender:     #8B87B0;
  --lavender-deep:#6B6790;
  --lavender-tint:#EDEBF6;

  --mist:         #E7E0CE;
  --gold:         #C9A66B;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;

  --shadow-soft: 0 16px 40px -24px rgba(44, 42, 38, 0.35);
  --shadow-tight: 0 6px 18px -12px rgba(44, 42, 38, 0.30);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: var(--sage-deep); }

button {
  font-family: inherit;
}

/* Brand mark — Saanidhya logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

/* Original SVG mark kept for backward compatibility */
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand__mark circle {
  fill: var(--sage-tint);
}

.brand__mark path {
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-tight);
}

.brand__logo--sm {
  width: 34px;
  height: 34px;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__tagline {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
}

/* Focus visibility, kept soft but unmistakable */
:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Utility: visually hidden but available to assistive tech */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
