/* Briskmail site. Plain static CSS, no framework (rules/frontend-type.md). */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #5e5e63;
  --rule: #e3e3e8;
  --link: #0a5bd3;
  --note-bg: #f4f5f7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161618;
    --text: #ececef;
    --muted: #a1a1a8;
    --rule: #2e2e33;
    --link: #6ea8ff;
    --note-bg: #1f1f23;
  }
  :root:not([data-theme="light"]) body { -webkit-font-smoothing: antialiased; }
}
:root[data-theme="dark"] {
  --bg: #161618;
  --text: #ececef;
  --muted: #a1a1a8;
  --rule: #2e2e33;
  --link: #6ea8ff;
  --note-bg: #1f1f23;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
header.site .name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
header.site nav a { margin-left: 16px; color: var(--muted); }
header.site nav a:first-child { margin-left: 0; }

h1 { font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 36px 0 8px; }
p, ul { margin: 0 0 16px; }
li { margin-bottom: 6px; }
a { color: var(--link); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

.lede { font-size: 20px; color: var(--muted); }
.updated { color: var(--muted); font-size: 15px; }
.note {
  background: var(--note-bg);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--muted);
}

footer.site {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
footer.site a { color: var(--muted); }
