/*
 * Landing page styles.
 *
 * An external stylesheet rather than an inline <style> block, because the content security policy sets
 * style-src 'self' with no 'unsafe-inline'. An inline block is blocked outright, which renders the page
 * in the browser's default serif on a transparent background — and does so silently, with only a console
 * warning. Keeping the policy strict and the styles external is the right way round.
 */

:root {
  color-scheme: light dark;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #dfe3e9;
  --text: #10151c;
  --muted: #5a6472;
  --primary: #0b5fa5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151c;
    --surface: #182029;
    --border: #2b3644;
    --text: #eef2f7;
    --muted: #a3aebd;
    --primary: #6cb0e8;
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

main {
  width: 100%;
  max-width: 34rem;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tagline em {
  font-style: normal;
  color: var(--text);
}

.apps {
  display: grid;
  gap: 0.75rem;
}

a.app {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease;
}

a.app:hover,
a.app:focus-visible {
  border-color: var(--primary);
}

a.app strong {
  display: block;
  font-size: 1.0625rem;
}

a.app span {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.875rem;
}

a.app code {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
  font-size: 0.8125rem;
}

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

.note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
