/* Aidewise site styles.
   Mirrors the app: system serif for the wordmark and headings, SF for body,
   indigo accent, light and dark. No dependencies, no webfonts, no trackers. */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --border: #e4e4e9;
  --ink: #1c1c1e;
  --ink-soft: #55555c;
  --ink-faint: #8a8a90;
  --accent: #5856d6;
  --accent-soft: #f0f0fb;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #17171b;
    --border: #2c2c33;
    --ink: #f2f2f5;
    --ink-soft: #b4b4bc;
    --ink-faint: #85858e;
    --accent: #8f8dff;
    --accent-soft: #1c1c2b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

/* --- wordmark and headings --- */

h1, h2, h3, .wordmark {
  font-family: "New York", ui-serif, "Iowan Old Style", Georgia, Cambria, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.wordmark {
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  margin: 0;
}

a.wordmark-link { color: inherit; text-decoration: none; }

h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.75rem 0 0.6rem; }
h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.35rem; }

p { margin: 0 0 1rem; }
p.lede { font-size: 1.1875rem; color: var(--ink-soft); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

/* --- pieces --- */

.status {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: 0.3rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero { padding-bottom: 1rem; }

.feature {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.feature h3 { margin-top: 0; }
.feature p { color: var(--ink-soft); margin-bottom: 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.meta { color: var(--ink-faint); font-size: 0.875rem; }

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}
footer nav { margin-bottom: 0.75rem; }
footer nav a { margin-right: 1.25rem; }
footer p { margin-bottom: 0.4rem; }

@media (max-width: 30rem) {
  .page { padding-top: 2.5rem; }
}
