/*
 * One stylesheet, no build step.
 *
 * This is three pages that change a few times a year. A bundler, a node
 * runtime and a deploy pipeline would all be machinery in service of nothing,
 * and each is a thing that can break between somebody clicking a link in an
 * App Store listing and the privacy policy appearing.
 *
 * Light only. The apps follow the reader's theme because people live in them;
 * a page somebody reads once does not need to.
 */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e3e6eb;
  --text: #14181f;
  --muted: #5b6674;
  --green: #3f8f5f;
  --blue: #1f5da8;
  --radius: 10px;
  --measure: 34rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- header --- */

header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand .beans {
  display: inline-flex;
}

/* Overlapped rather than side by side: the two marks read as one family at a
   glance, which is the whole point of putting them together. */
.brand .beans img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.brand .beans img + img {
  margin-left: -9px;
  box-shadow: -2px 0 0 var(--bg);
}

nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

/* --- type --- */

main {
  padding: 48px 0 72px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}

h3 {
  font-size: 1rem;
  margin: 26px 0 6px;
}

p,
li {
  max-width: var(--measure);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 0;
}

a {
  color: var(--blue);
}

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

.small {
  font-size: 0.9rem;
}

/* --- products --- */

.products {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  max-width: none;
}

.product img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
}

.product h3 {
  margin: 0 0 2px;
}

.product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* A product that does not exist yet says so, rather than being described in
   the present tense alongside two that do. */
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* --- footer --- */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer .spacer {
  flex: 1;
}

/* --- policy tables --- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  font-weight: 600;
}

@media (max-width: 34rem) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.6rem;
  }
  /* Tables of "what we collect" are the part people actually read on a phone,
     so they scroll rather than shrink to unreadable. */
  .scroll {
    overflow-x: auto;
  }
}
