/* PiecePic — shared styles for the marketing site.
   Palette mirrors src/ui/theme.ts so the site matches the app. */

:root {
  --primary: #108B81;
  --secondary: #4F46E5;
  --accent: #F59E0B;
  --background: #FAF6EE;
  --surface: #FFFFFF;
  --foreground: #1F2937;
  --heading: #1E2A5E;
  --muted: #687280;
  --border: #EADFCB;
  --shadow: 0 10px 22px -8px rgba(30, 42, 94, 0.22), 0 2px 6px rgba(30, 42, 94, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3CC4B0;
    --secondary: #8B8BFF;
    --accent: #FDBA3B;
    --background: #141633;
    --surface: #1E2148;
    --foreground: #EEF0FA;
    --heading: #FFFFFF;
    --muted: #B3B8D6;
    --border: #2B2F5E;
    --shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 46rem; margin: 0 auto; }

header { text-align: center; margin-bottom: 3rem; }

header img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

h1 { font-size: 2rem; line-height: 1.2; margin: 1.25rem 0 0.25rem; color: var(--heading); }

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
  color: var(--heading);
}

h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; color: var(--heading); }

a { color: var(--primary); }

.tagline { color: var(--muted); margin: 0; }

.updated {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card.highlight { border-left: 4px solid var(--primary); }

.nav { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }

.nav a {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 600;
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }

th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }

th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.table-wrap { overflow-x: auto; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
