/* Still Near — sender PWA design tokens.
 *
 * Lifted verbatim from teaserpage/public/styles.css :root so the app and the
 * marketing page share one palette/type system by VALUE, not by eyeballing.
 * If a token changes on the teaser page, mirror it here. Do not invent a
 * parallel system. (Feature 401, AC-1 / AC-8.)
 */

/* Self-hosted variable fonts (latin subset), same families as the teaser.
 * Caveat is loaded for the handwriting accent only (never nav/CTA/pricing). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Fraunces-latin.woff2") format("woff2");
}

:root {
  --ink-950: #101214;
  --ink-900: #171a1d;
  --ink-800: #1f2429;
  --linen-100: #f5f0eb;
  --linen-200: #e7ded4;
  --fog-400: #7b8a99;
  --fog-600: #55616d;
  --rose: #d97979;
  --amber: #d7a46a;
  --dusk: #4e6276;
  --mint: #78c4a6;

  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-800);
  --text: var(--linen-100);
  --muted: var(--fog-400);
  --line: #2a3037;

  /* Send-state accents (shared status pill). Sent = mint (calm done),
   * failed = rose (gentle attention, never alarm red), in-flight = amber. */
  --state-queued: var(--fog-400);
  --state-sending: var(--amber);
  --state-sent: var(--mint);
  --state-failed: var(--rose);

  --maxw: 64rem;
  --readw: 30rem; /* readable measure for single-column product surfaces */
  --pad: 1.25rem;
  --radius: 14px;

  --serif: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Respect notches/home indicators on the spare phone. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Visible focus everywhere — 2px amber, 2px offset (spec §4). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Restrained motion. Old hardware + reduced-motion users get no transitions. */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink-950);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* Screen-reader-only utility (announcements, labels). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
