/* What the homepage and the guide share: the colours for day, night and the whale's blue, and the
   rounded buttons. The homepage loads it before hero.css; the guide (guide/) maps it onto Starlight. */

:root {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
  --brand-ink: #1b1626;
  --mark: #a7a5ad;
  --ink-rgb: 27 22 38;
  --surface-rgb: 255 255 255;
  --accent-rgb: 0 168 112;
  --on-accent: #fff;
  --ring-mint: #00a870;
  --ring-sand: #c9a774;
  --ring-mist: #7e9bb0;
  --ring-k: 1;
  --texture-filter: none;
  --texture-opacity: 1;
  transition: background-color .6s ease;
}
/* night: the page and the pet's own bubbles go dark together (pet-ui.css has the pet's half) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111316;
  --ink: #eceef2;
  --ink-soft: #a9adb6;
  --ink-dim: #737884;
  --accent: #2fd59b;
  --brand-ink: #f4f5f7;
  --mark: #6b6f79;
  --ink-rgb: 233 237 242;
  --surface-rgb: 30 33 40;
  --accent-rgb: 47 213 155;
  --on-accent: #07261b;
  --ring-k: .8;
  --texture-filter: invert(1);
  --texture-opacity: .45;
  /* the console tokens the wardrobe's tabs use */
  --sheet: #1b1e24;
  --sheet-2: #22262d;
  --sheet-3: #2a2f37;
  --line: #2a2e36;
  --line-2: #363b44;
}
/* the DeepSeek whale's blue, once it is chosen on the dressing screen; for the rest of the visit */
:root[data-skin="whale"] {
  --paper: #f2f4fa;
  --accent: #4d6bfe;
  --accent-rgb: 77 107 254;
  --ring-mint: #4d6bfe;
  --ring-sand: #8ea2f2;
  --ring-mist: #6c86c9;
}
:root[data-skin="whale"][data-theme="dark"] {
  --paper: #0e1120;
  --accent: #7d94ff;
  --accent-rgb: 125 148 255;
  --on-accent: #0b1030;
  --ring-mint: #6f88ff;
  --ring-sand: #5c6fb8;
  --ring-mist: #4a62a8;
}

/* ---------- buttons ---------- */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, opacity .6s ease;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.hero-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }
.btn-icon { width: 17px; height: 17px; flex: none; }
.hero-btn.ghost {
  color: var(--brand-ink);
  background: rgb(var(--surface-rgb) / .78);
  border-color: rgb(var(--ink-rgb) / .12);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / .04);
  backdrop-filter: blur(6px);
}
.hero-btn.ghost:hover { border-color: rgb(var(--ink-rgb) / .22); box-shadow: 0 8px 20px rgb(var(--ink-rgb) / .08); }
.hero-btn.ghost:hover .btn-icon { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-12deg); } 65% { transform: rotate(8deg); } }
.hero-btn.primary {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 6px 18px rgb(var(--accent-rgb) / .26), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hero-btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); box-shadow: 0 10px 24px rgb(var(--accent-rgb) / .32), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hero-btn.primary:hover .arrow { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop { 40% { transform: translateY(3px); } }
.hero-btn.small { height: 40px; padding: 0 18px; font-size: 14px; }
.hero-btn.icon-only { width: 40px; padding: 0; justify-content: center; }
