/* Mirrors the extension's options page: white ground, a 3.5rem header with a 2px
   rose rule under it, and the logo at 80px. Everything else is plain CSS: this site
   has no build step on purpose. */

:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --ink: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --card: #fafafa;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
}

header {
  position: relative;
  height: 3.5rem;
  border-bottom: 2px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

header img {
  width: 80px;
  height: auto;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.intro {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 40rem;
}

.intro h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.intro p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
  padding: 1.5rem;
}

/* Firefox leads by default: this page exists for the self-distributed build. The
   detection script moves Chrome ahead of it when that is the browser in use. */
#firefox {
  order: 1;
}

#chrome {
  order: 2;
}

body[data-browser='chrome'] #chrome {
  order: 0;
}

.card h2 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Monochrome brand marks, inlined as SVG and drawn in the heading's own colour so
   they read as part of our design rather than as pasted-in vendor artwork.
   Sized in em to match the title text. The same numbers are set as width/height
   attributes on the elements: an inline SVG has no intrinsic size, so without them a
   stale stylesheet renders the mark stretched across the whole heading. */
.mark {
  width: 1em;
  height: 1em;
  flex: none;
}

.card .lede {
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}

.badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid var(--rose);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

body[data-browser='firefox'] #firefox .badge,
body[data-browser='chrome'] #chrome .badge {
  display: inline-block;
}

.button {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 0.375rem;
}

.button:hover,
.button:focus-visible {
  background: var(--rose-dark);
}

.notes {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.notes li {
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.notes li:first-child {
  border-top: 0;
}

.notes strong {
  color: var(--ink);
}

/* No border: a boxed label followed immediately by a comma or full stop leaves the
   punctuation looking detached from the sentence. */
kbd {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #f4f4f5;
  border-radius: 0.2rem;
  padding: 0.05rem 0.25rem;
}

.notfound {
  text-align: center;
  padding: 4rem 1.25rem;
}

.notfound h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.notfound p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* The Android install steps, which are an ordered list inside a note. */
.steps {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.steps li {
  border: 0;
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: inherit;
}
