/* themeerkatz.com. Hand written, because the app's Tailwind is a 254 KB script that compiles classes in the
   browser - acceptable behind a login, not for the first page a stranger sees.

   The colour tokens are copied from gui/static/app.css rather than shared, since the two are deployed
   separately and a marketing page that broke because the app's stylesheet moved would be a silly way to lose a
   front door. Copied, not imported: if the palette changes there, change it here too. Light and dark are
   separately stepped, not an automatic flip. */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface-1: #fcfcfb;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --hairline: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface-1: #1a1a19;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --hairline: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
  }
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  /* The footer sits at the bottom of a short page rather than halfway up it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* 16px of gutter at phone width, and nothing wider than a comfortable measure. */
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; width: 100%; }
.band { border-bottom: 1px solid var(--hairline); }
footer.band { border-bottom: 0; border-top: 1px solid var(--hairline); }
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.bar nav { margin-left: auto; display: flex; gap: 16px; }

a { color: inherit; }
.wordmark {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.125rem; font-weight: 600; text-decoration: none;
}
.meerkat { width: 1.15em; height: 1.15em; flex: none; color: var(--accent); }
.navlink { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
.navlink:hover { color: var(--text-primary); }

.hero { padding: 64px 0 24px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 36rem;
}
.lede { margin: 16px 0 0; max-width: 40rem; color: var(--text-secondary); font-size: 1.0625rem; }
.note { color: var(--text-secondary); font-size: 0.875rem; }
.hero .note { margin-top: 8px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 32px 0 0; }
.btn {
  display: inline-block;
  border: 1px solid var(--hairline); border-radius: 6px;
  padding: 10px 18px; font-size: 0.9375rem; font-weight: 500;
  text-decoration: none;
  background: var(--surface-1); color: var(--text-primary);
}
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
/* Keyboard users get the same affordance as mouse users. */
.btn:focus-visible, .navlink:focus-visible, .wordmark:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

.cards {
  display: grid; gap: 16px; padding: 24px 0 64px;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem)  { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px;
}
.card h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.card p { margin: 4px 0 0; color: var(--text-secondary); font-size: 0.875rem; }

footer .bar { padding-top: 24px; padding-bottom: 24px; }
