/* www.ruffroutes.app — one stylesheet for all pages.

   Hand-written, no build step. Colours match the app's light/dark palette
   (src/theme.ts) by VALUE; nothing here is imported from the app, on purpose.

   Mobile first: most visitors arrive by tapping a link in an email on a phone.
   16px side gutter, nothing wider than the viewport at 320px, tap targets at
   least 44px. Everything must stay readable if Nunito never loads — the
   fallback stack is the real design, Nunito is a nicety. */

:root {
  --accent: #15803d;
  --text: #18181b;
  --page: #fafafa;
  --muted: #57575e;
  --card: #ffffff;
  --line: #e6e6e8;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #34d399;
    --text: #ffffff;
    --page: #141416;
    --muted: #9b9b9e;
    --card: #202024;
    --line: #2e2e33;
  }
}

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

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

body {
  margin: 0;
  background-color: var(--page);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.page {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px 3rem;
}

.masthead {
  padding: 1.5rem 0 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.0625rem;
}

.muted {
  color: var(--muted);
}

.notice {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.6rem;
  background-color: var(--card);
}

.notice p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  font-weight: 700;
}

/* Every link a thumb has to hit is at least 44px tall. */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background-color: var(--card);
  text-decoration: none;
}

.support a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
