/* Shared foundation for the Tools hub and static Favorites page. */
:root {
  --paper: #fdf7f9; /* page background */
  --paper-deep: #f8eef2; /* subtle fills */
  --ink: #2b2730; /* primary text, dark surfaces */
  --ink-soft: #7a7480; /* secondary text — see contrast note below */
  --pink: #e91e8c; /* THE brand pink — decorative use (dot, sparkline, curve, ring) */
  --pink-deep: #c91974; /* accents on light bg; AA as text (≥4.5:1 on paper/white) */
  /* Contrast-safe interactive pink (see handback §Contrast). White text on the
     vivid --pink is only 4.18:1 (fails AA). Filled primary buttons therefore use
     --pink-deep as base (white 5.42:1) and --pink-deeper on hover (7.29:1);
     --pink-deeper is also used for badge text on --blush, where --pink-deep is
     only 4.13:1. Local darkening per Spec §9 — the canonical tokens are unchanged. */
  --pink-deeper: #a6135f;
  --blush: #f6d9e8; /* badges, soft fills */
  --blush-line: #efc3dc; /* borders */
  --white: #ffffff;

  /* Contrast-safe secondary text (see handback §Contrast).
     --ink-soft (#7A7480) on --paper is ~4.0:1 which FAILS WCAG AA for
     normal body text. --ink-muted (#615B68) hits ~5.6:1 on --paper and
     is used wherever secondary text is normal-sized body copy. The raw
     token is preserved and only used for large text / decorative use. */
  --ink-muted: #615b68;

  --shadow-soft: 0 18px 40px -24px rgba(43, 39, 48, 0.4);
  --shadow-card: 0 24px 60px -32px rgba(43, 39, 48, 0.45);

  --radius-card: 20px;
  --radius-lg: 22px;
  --radius-sm: 16px;

  --maxw: 1080px;
  --pad: 24px;
}

/* ---- Focus visibility (Handoff Spec §9) ---- */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-inter), system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn-pink {
  background: var(--pink-deep);
  color: var(--white);
}
.btn-pink:hover {
  background: var(--pink-deeper);
}

.btn-charcoal {
  background: var(--ink);
  color: var(--white);
}
.btn-charcoal:hover {
  background: var(--pink-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--blush-line);
}
.btn-ghost:hover {
  border-color: var(--pink-deep);
  color: var(--pink-deep);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-fraunces), Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  flex: 0 0 auto;
}

