/*
 * The public site's own stylesheet: the root page and every landing page.
 *
 * SEPARATE FROM legal/legal.css, which the three long documents keep. These
 * pages are a heading, a sentence and a control; the documents are ten thousand
 * words with a table of contents. Sharing one sheet would mean every landing
 * page carrying the typography of a policy.
 *
 * A FILE RATHER THAN A <style> BLOCK, and that is load-bearing. The landing
 * pages send `Content-Security-Policy: default-src 'none'; style-src 'self'`,
 * which permits this sheet and forbids an inline one — so the policy stays
 * strict enough to be worth sending.
 *
 * The palette is legal.css's, restated rather than imported: an @import would be
 * a second round trip on a page whose whole point is to render before the reader
 * has finished reading the mail that sent them.
 */
:root {
  color-scheme: dark;
  --canvas: #111310;
  --surface: #1b1e19;
  --ink: #f4f6ef;
  --muted: #afb5a7;
  --line: #3c4238;
  --lime: #b7f000;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2rem 1.25rem;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

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

.brand {
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-decoration: none;
}

h1 {
  margin: 1.5rem 0 0;
  font-size: 1.75rem;
  line-height: 1.25;
}

p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.subject {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 600;
}

.open {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  background: var(--lime);
  color: #111310;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

/*
 * The install header. First child of the centred body column, so it is pulled
 * out to the edges over the body's padding, and the auto margins below it and
 * below `main` push it to the top while the card stays centred in what is left.
 */
.install {
  align-self: stretch;
  margin: -2rem -1.25rem auto;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.install ~ main {
  margin-bottom: auto;
  padding-top: 2rem;
}

.install-row {
  display: flex;
  max-width: 30rem;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}

.install-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.35;
}

.install-text span {
  color: var(--muted);
  font-size: 0.8125rem;
}

.install-action {
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 700;
}

.note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.note a {
  color: var(--lime);
}

nav {
  margin-top: 2rem;
  font-size: 0.875rem;
}

nav a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  color: var(--muted);
}

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

/* Edge to edge, so an outline outside it would be cut off by the viewport. */
.install:focus-visible {
  outline-offset: -3px;
}
