/*
 * dogpal noir — the shared theme for dogpal.app and every app under it.
 * Served at https://dogpal.app/shared/dogpal-theme.css.
 * Apps link this file and read the --dp-* tokens; Tailwind apps map their
 * neutral/red scales onto these tokens in their own CSS.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Lacquer&display=swap");

:root {
  color-scheme: dark;

  /* Surfaces, darkest to lightest */
  --dp-bg: #050505;
  --dp-surface-0: #0b0b0c;
  --dp-surface-1: #111113;
  --dp-surface-2: #18181b;
  --dp-surface-3: #212125;
  --dp-surface-4: #2b2b30;

  /* Lines */
  --dp-border: #26262b;
  --dp-border-strong: #36363c;

  /* Text, brightest to faintest */
  --dp-text: #f2f2f3;
  --dp-text-2: #d4d4d8;
  --dp-text-3: #bdbdc3;
  --dp-text-muted: #a1a1a8;
  --dp-text-subtle: #82828a;
  --dp-text-faint: #5c5c63;

  /* The one accent: blood red */
  --dp-accent: #e00000;        /* fills, white text on top */
  --dp-accent-hover: #f21a1a;
  --dp-accent-press: #b30000;
  --dp-accent-text: #ff2d2d;   /* red text/icons on dark */
  --dp-accent-strong-text: #ff6b6b;
  --dp-accent-soft: rgb(224 0 0 / 14%);
  --dp-accent-line: rgb(224 0 0 / 45%);
  --dp-accent-glow: 0 0 24px rgb(255 0 0 / 35%);

  /* Status (small doses only; errors use the accent) */
  --dp-success: #3fb950;
  --dp-warning: #d29922;
  --dp-info: #58a6ff;

  /* Type: Lacquer is the logo face (wordmarks and app names), never UI text */
  --dp-font-display: "Lacquer", "Inter", system-ui, sans-serif;
  --dp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dp-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --dp-radius-sm: 6px;
  --dp-radius-md: 10px;
  --dp-radius-lg: 14px;
  --dp-radius-pill: 999px;
  --dp-shadow-pop: 0 12px 32px rgb(0 0 0 / 60%);

  /* Shared header */
  --dp-header-height: 64px;
}

html {
  background: var(--dp-bg);
}

body {
  background: var(--dp-bg);
  color: var(--dp-text);
  font-family: var(--dp-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(224 0 0 / 40%);
  color: var(--dp-text);
}

:focus-visible {
  outline: 2px solid var(--dp-accent-text);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dp-border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--dp-text-faint); }

/* Decorative textures from the aesthetic board: a faint red grid and scattered red stars. */
.dp-grid-bg {
  background-image:
    repeating-linear-gradient(90deg, rgb(255 0 0 / 7%) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgb(255 0 0 / 5%) 0 1px, transparent 1px 22px);
}

.dp-stars-bg {
  background-image:
    radial-gradient(circle at 12% 18%, rgb(255 0 0 / 70%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 12%, rgb(255 0 0 / 55%) 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 63% 64%, rgb(255 0 0 / 45%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 82%, rgb(255 0 0 / 60%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 76%, rgb(255 0 0 / 50%) 0 1.2px, transparent 1.7px);
  background-size: 340px 260px;
}

/*
 * The dogpal logo treatment ("retro extrude"): bone letters, a thin black edge and a
 * red 3D block falling down-right. Everything is in em, so set font-size and it scales.
 *   <h1 class="dp-logo">dogpal.app</h1>
 *   <span class="dp-logo dp-logo--sm">substarr</span>   (fewer layers, for small sizes)
 */
.dp-logo {
  display: inline-block;
  padding: 0.08em 0.3em 0.3em 0.04em; /* room for the extrusion */
  color: var(--dp-text);
  font-family: var(--dp-font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
  -webkit-text-stroke: 0.024em var(--dp-bg);
  text-shadow: 0.016em 0.016em 0 #ff1a1a, 0.032em 0.032em 0 #ff1a1a, 0.048em 0.048em 0 #ff1a1a, 0.064em 0.064em 0 #e00000, 0.08em 0.08em 0 #e00000, 0.096em 0.096em 0 #e00000, 0.112em 0.112em 0 #b30000, 0.128em 0.128em 0 #b30000, 0.144em 0.144em 0 #b30000, 0.16em 0.16em 0 #8a0000, 0.176em 0.176em 0 #8a0000, 0.192em 0.192em 0 #8a0000, 0.26em 0.26em 0.22em rgb(0 0 0 / 85%);
}

.dp-logo--sm {
  -webkit-text-stroke-width: 0.03em;
  text-shadow: 0.02em 0.02em 0 #ff1a1a, 0.04em 0.04em 0 #ff1a1a, 0.06em 0.06em 0 #e00000, 0.08em 0.08em 0 #b30000, 0.1em 0.1em 0 #b30000, 0.12em 0.12em 0 #8a0000, 0.16em 0.18em 0.14em rgb(0 0 0 / 85%);
}
