/*
 * One stylesheet for both pages.
 *
 * No frameworks and no external requests: the site exists to satisfy a store
 * listing and to be readable, and a privacy policy that pulls in third-party
 * assets to explain that it collects nothing would be answering itself.
 */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #14161c;
  --muted: #5b6170;
  --line: #e3e5ec;
  --accent: #d6336c;
  --accent-soft: #fdf2f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #171a23;
    --text: #e9eaf0;
    --muted: #9aa1b1;
    --line: #262a36;
    --accent: #ff7aa8;
    --accent-soft: #1e1620;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- header */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

header.site img {
  width: 30px;
  height: 30px;
  display: block;
}

header.site .name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The full name is 36 characters; beside four nav links it stops fitting on a
   phone well before the layout breaks anywhere else. */
@media (max-width: 700px) {
  header.site .name .also {
    display: none;
  }
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 15px;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero img {
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 auto;
  max-width: 540px;
  font-size: 19px;
  color: var(--muted);
}

.cta {
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.06);
}

.note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------- content */

main {
  padding-bottom: 72px;
}

section {
  padding: 8px 0 32px;
}

h2 {
  margin: 40px 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 650;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
}

/* Feature grid on the home page */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Tables, used by the permissions list */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 650;
  color: var(--muted);
  font-size: 14px;
}

/* A line worth not missing */

.callout {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

footer.site a {
  color: var(--muted);
}

footer.site .spacer {
  margin-left: auto;
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 36px;
  }
  .hero h1 {
    font-size: 34px;
  }
}
