/* PaceSet — shared styles for the static Pages site.
   Tokens mirror shared/design-tokens/tokens.json — keep in sync. */

:root {
  --ink: #1B1A17;
  --paper: #F5EFE4;
  --parchment: #EBE2D1;
  --rust: #B2481E;
  --moss: #4E6A4E;
  --fog: #8A857A;
  --hairline: rgba(27, 26, 23, 0.12);
  --logo-src: url("/assets/paws-rust.png");
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5EFE4;
    --paper: #1F1D18;
    --parchment: #2A2720;
    --rust: #C96744;
    --moss: #7E9A7E;
    --fog: #9C978C;
    --hairline: rgba(245, 239, 228, 0.12);
    --logo-src: url("/assets/paws-rust-dark.png");
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ───────────────────────────────────────────────────── */

.page { max-width: 460px; margin: 0 auto; }

/* ── Logo ─────────────────────────────────────────────────────── */

/* Rounded parchment tile with rust paws centered (matches the iOS AppIcon).
   Uses CSS mask so the paws retint themselves via currentColor → rust. */
.logo-tile {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--parchment);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.logo-tile .paws {
  width: 80%;
  height: 80%;
  background-image: var(--logo-src);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ── Typography ───────────────────────────────────────────────── */

.display {
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -0.014em;
  margin: 24px 0 8px;
}

.display.small { font-size: 32px; margin-top: 20px; }

.lead {
  color: var(--fog);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 36ch;
}

.meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--fog);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Calls to action ──────────────────────────────────────────── */

.stores {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

a.cta {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(178, 72, 30, 0.25);
}

a.cta.secondary { background: var(--moss); }
a.cta.secondary:hover { box-shadow: 0 4px 12px rgba(78, 106, 78, 0.25); }

a.store {
  display: block;
  margin-top: 12px;
  color: var(--moss);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ───────────────────────────────────────────────────── */

footer {
  margin-top: 48px;
  color: var(--fog);
  font-size: 13px;
}

footer a { color: var(--moss); }

/* ── Accessibility ────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  a.cta:hover { transform: none; }
}
