/* Public-editorial personality tokens (gui-premium-upgrade, design ADR-3).
   The first block is the former `styles.css :root` block moved verbatim; only the radius and easing names
   became value-identical foundation aliases that keep their previous values as fallbacks (R-1). */
:root {
  --paper: #f2ede4;
  --paper-deep: #e7dfd2;
  --surface: #fbf9f4;
  --surface-strong: #ffffff;
  --ink: #1d1d1a;
  --ink-soft: #55544d;
  --ink-faint: #79766d;
  --line: #d7d0c4;
  --line-strong: #bdb4a5;
  --accent: #8b4b38;
  --accent-dark: #663326;
  --olive: #5d6654;
  --gold: #b18a56;
  --whatsapp: #1f6c4c;
  --danger: #8b3e36;
  --display: "Newsreader", "Lora", Georgia, serif;
  --sans: "DM Sans", "Aptos", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-sm: 0 10px 24px rgba(37, 30, 23, 0.08);
  --shadow-md: 0 24px 64px rgba(37, 30, 23, 0.14);
  --shadow-lg: 0 32px 90px rgba(26, 22, 18, 0.22);
  --radius-sm: var(--fd-radius-3, 0.5rem);
  --radius-md: var(--fd-radius-6, 1rem);
  --radius-lg: var(--fd-radius-8, 1.75rem);
  --shell: min(1240px, calc(100vw - 2 * var(--pub-gutter-inline)));
  --header-height: 82px;
  --ease: var(--fd-ease-emphasized, cubic-bezier(.2, .72, .22, 1));
}

/* Public-editorial semantic roles; unused until the public slices consume them. */
:root {
  --pub-radius-mark: var(--fd-radius-1);
  --pub-radius-control: var(--fd-radius-2);
  --pub-radius-field: var(--fd-radius-3);
  --pub-radius-chip: var(--fd-radius-2);
  --pub-radius-surface: var(--fd-radius-3);
  --pub-radius-dialog: var(--fd-radius-3);
  --pub-radius-feature: var(--fd-radius-8);
  --pub-gutter-inline: clamp(var(--fd-space-4), 5vw, var(--fd-space-7));
  --pub-section-y: clamp(var(--fd-space-8), 9vw, var(--fd-space-10));
  --pub-focus-color: var(--accent);
  --pub-focus-color-inverse: var(--paper);
  --pub-line-control: var(--ink-faint);
  --pub-feedback-danger: var(--danger);
  --pub-feedback-success: var(--olive);
  --pub-skeleton-base: color-mix(in srgb, var(--ink) 8%, var(--paper));
  --pub-skeleton-highlight: color-mix(in srgb, var(--ink) 3%, var(--paper));

  /* Elevation (ADR-14): crisper than the panel (tighter ambient, stronger key). The shadow color is the warm near-black
     of the legacy shadows and never derives from --ink, which tenant presets make light on dark themes (R-22). */
  --pub-shadow-color: #251e17;
  --pub-shadow-resting: var(--fd-shadow-1) color-mix(in srgb, var(--pub-shadow-color) 12%, transparent),
                        var(--fd-shadow-3) color-mix(in srgb, var(--pub-shadow-color) 7%, transparent);
  --pub-shadow-raised:  var(--fd-shadow-2) color-mix(in srgb, var(--pub-shadow-color) 12%, transparent),
                        var(--fd-shadow-4) color-mix(in srgb, var(--pub-shadow-color) 12%, transparent);
  --pub-shadow-overlay: var(--fd-shadow-2) color-mix(in srgb, var(--pub-shadow-color) 12%, transparent),
                        var(--fd-shadow-5) color-mix(in srgb, var(--pub-shadow-color) 18%, transparent);
  --pub-shadow-modal:   var(--fd-shadow-3) color-mix(in srgb, var(--pub-shadow-color) 14%, transparent),
                        var(--fd-shadow-7) color-mix(in srgb, var(--pub-shadow-color) 26%, transparent);
  --pub-shadow-sheet:   var(--fd-shadow-up-1) color-mix(in srgb, var(--pub-shadow-color) 10%, transparent),
                        var(--fd-shadow-up-2) color-mix(in srgb, var(--pub-shadow-color) 16%, transparent);
  --pub-lift-hover: var(--fd-lift-2);
  --pub-sheen: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--paper-deep) 30%, transparent));
}
