/* Shared design system for the /recover-deleted-photos/ family.
   Trust-first, calm-confident. Native CSS, no build step. Self-hosted font
   (CSP font-src 'self'). One accent (recovery green), locked across pages. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/recover-deleted-photos/lib/fonts/bricolage-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/recover-deleted-photos/lib/fonts/bricolage-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/recover-deleted-photos/lib/fonts/bricolage-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #fbfcfb;
  --panel: #f1f6f2;
  --panel-2: #e9f0ea;
  --ink: #10201a;          /* near-black, faint green cast to tie to accent */
  --muted: #55665d;
  --border: #e0e8e2;
  --accent: #0e9e6e;       /* recovery green = restored/safe */
  --accent-deep: #0a7c56;
  --accent-wash: rgba(14,158,110,0.08);
  --warn: #b45309;
  --danger: #c2410c;
  --r-card: 16px;
  --r-ctl: 12px;
  --shadow: 0 1px 2px rgba(16,32,26,0.04), 0 8px 30px rgba(16,32,26,0.06);
  --shadow-cta: 0 8px 24px rgba(14,158,110,0.28);
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b120e;
  --panel: #131d17;
  --panel-2: #18241c;
  --ink: #e9f1ec;
  --muted: #8ea69a;
  --border: #223029;
  --accent: #26c58f;
  --accent-deep: #0e9e6e;
  --accent-wash: rgba(38,197,143,0.10);
  --warn: #f59e0b;
  --danger: #fb923c;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 34px rgba(0,0,0,0.34);
  color-scheme: dark;
}

body.wasm-tool { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Type scale - Bricolage for display, tight tracking, real hierarchy */
.rdp-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0; color: var(--ink); }
.rdp-h1 .accent { color: var(--accent); }
.rdp-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.9rem; color: var(--ink); }
.rdp-h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; margin: 0 0 0.4rem; color: var(--ink); }
.rdp-lead { font-size: clamp(1.02rem, 2.1vw, 1.18rem); color: var(--muted); line-height: 1.55; max-width: 42ch; }
.rdp-body { color: var(--muted); font-size: 1rem; line-height: 1.68; max-width: 66ch; }
.rdp-body strong, .rdp-lead strong { color: var(--ink); font-weight: 600; }

/* Buttons - pill primary (friendly), tactile press */
.rdp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--body); font-weight: 650; font-size: 0.95rem; border: 0; border-radius: 999px; padding: 0.7rem 1.4rem; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease; }
.rdp-btn:hover { background: var(--accent-deep); }
.rdp-btn:active { transform: translateY(1px); }
.rdp-btn:disabled { opacity: 0.45; cursor: default; }
.rdp-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.rdp-btn.ghost:hover { background: var(--panel); border-color: var(--accent); color: var(--accent); }

/* Cards / panels */
.rdp-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }

/* Reveal-on-scroll - calm, motivated (draws the eye down the page in order) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* Theme toggle (shared) */
.rdp-theme-toggle { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--panel); border: 1px solid var(--border); color: var(--ink); border-radius: 999px; width: 40px; height: 40px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s; }
.rdp-theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Article shell (explainer pages) */
.rdp-article { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.rdp-article .rdp-h1 { margin-bottom: 1rem; }
.rdp-article h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 2.4rem 0 0.7rem; color: var(--ink); }
.rdp-article p, .rdp-article li { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.rdp-article p { max-width: 66ch; }
.rdp-article strong { color: var(--ink); font-weight: 600; }
.rdp-article a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] .rdp-article a { color: var(--accent); }
