/* BucketSave site — one stylesheet for the landing, privacy and support pages. */

:root {
  color-scheme: light dark;
  --bg: #fdfdfc;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #63635e;
  --rule: #e6e4df;
  --accent: #3d6b4f;
  --accent-soft: #eef3ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --surface: #1e1e23;
    --text: #ecebe6;
    --muted: #a3a29b;
    --rule: #32323a;
    --accent: #8fc0a0;
    --accent-soft: #232b25;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

header.site {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

header.site .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--accent);
  flex: none;
}

header.site a.name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

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

header.site nav a:hover { color: var(--text); }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 0.98rem;
  margin: 1.6rem 0 0.4rem;
}

p, li { color: var(--text); }

.updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 2.5rem;
}

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

ul { padding-left: 1.15rem; }
li { margin: 0.35rem 0; }

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

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  padding: 1.1rem 1.3rem;
  margin: 1.75rem 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

dl.faq { margin: 0; }

dl.faq dt {
  font-weight: 620;
  margin: 1.7rem 0 0.35rem;
}

dl.faq dd {
  margin: 0;
  color: var(--muted);
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.87rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer.site a { color: var(--muted); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

@media (max-width: 34rem) {
  h1 { font-size: 1.6rem; }
  header.site nav { gap: 0.9rem; }
}
