/* Best Water Tracker website: one small stylesheet, light and dark. */

:root {
  --bg: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --rule: #e5e5ea;
  --accent: #0a6cff;
  --header-bg: #001064;
  --header-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --text: #f2f2f7;
    --muted: #a1a1a8;
    --rule: #2c2c30;
    --accent: #5aa2ff;
    --header-bg: #000a3c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
}

.site-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
  font-weight: 600;
  text-decoration: none;
}

.site-header img { width: 32px; height: 32px; border-radius: 8px; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header .wrap { padding-top: 14px; padding-bottom: 14px; }

main.wrap { padding-top: 36px; padding-bottom: 56px; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.25rem; margin: 34px 0 6px; }

.updated { color: var(--muted); margin: 0 0 24px; }

.summary {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 4px 20px;
  margin: 0 0 8px;
}

.email-button {
  display: inline-block;
  margin-left: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #0a6cff;  /* the deeper blue in both themes, so white text stays readable */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.note { color: var(--muted); font-size: 0.92rem; }

ul { padding-left: 1.2em; }
li { margin: 6px 0; }

.sources li { margin: 10px 0; }
.sources .meta { color: var(--muted); font-size: 0.92rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap { padding-top: 20px; padding-bottom: 32px; }
.site-footer nav a { margin-right: 16px; }
.site-footer p { margin: 10px 0 0; }
