/* Kesto on the web: the same paper and ink as the app, so the privacy page
   and the App Store listing feel like the same object. */
:root {
  --paper: #f6f3ec;
  --card: #fffdf7;
  --line: rgba(28, 27, 25, 0.12);
  --ink: #1c1b19;
  --muted: #6b675f;
  --healthy: #2e7d6b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --card: #201e1b;
    --line: rgba(237, 233, 223, 0.14);
    --ink: #ede9df;
    --muted: #9a948a;
    --healthy: #57b9a3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--healthy); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 700px; margin: 0 auto; padding: 48px 24px 96px; }

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.mark {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* The flap of an envelope, drawn rather than shipped as an image. */
.mark::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, transparent 48%, var(--line) 49%, transparent 51%),
              linear-gradient(225deg, transparent 48%, var(--line) 49%, transparent 51%);
}

.brand { font-weight: 700; font-size: 20px; letter-spacing: 0.2px; }
.brand small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 32px 0 8px; }
p, li { color: var(--ink); }
p.meta { color: var(--muted); font-size: 13px; margin-top: 0; }
ul { padding-left: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
