:root {
  --bg: #f4f1ea;
  --ink: #1c1f1d;
  --muted: #5d625e;
  --line: #d9d3c6;
  --card: #ece8df;
  --accent: #8a7550;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --ink: #ebe6db;
    --muted: #9a9e98;
    --line: #2a2e2b;
    --card: #1b1e1c;
    --accent: #c8b68e;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
a:hover { border-color: var(--accent); }
.sans, .top, footer, .meta, .note, .links, .contact, table, .doc p.updated {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 24px; }

.top { padding-top: 28px; }
.top a.mark {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  border: 0;
}

main { flex: 1; padding-top: 12vh; padding-bottom: 64px; }
main.doc { padding-top: 48px; }

/* Home */
.hero h1 {
  font-weight: 400;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 30em; }
.apps { margin-top: 72px; }
.apps h2 { font-weight: 400; font-size: 26px; margin-bottom: 4px; }
.note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.app { padding: 22px 0; border-top: 1px solid var(--line); }
.app h3 { font-weight: 400; font-size: 21px; margin-bottom: 6px; }
.app p { color: var(--ink); }
.app .meta { font-size: 14px; color: var(--muted); margin-top: 8px; }
.app .links { font-size: 14px; margin-top: 6px; }
.app .links a { margin-right: 16px; }
.contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.contact p + p { margin-top: 6px; }

/* Documents */
.doc h1 { font-weight: 400; font-size: clamp(30px, 5vw, 40px); line-height: 1.2; margin-bottom: 20px; }
.doc h2 { font-weight: 400; font-size: 23px; margin: 36px 0 10px; }
.doc h3 { font-weight: 400; font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc ul, .doc ol, .doc blockquote, .doc .table-wrap { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 600; }
.doc code { font-size: 0.9em; background: var(--card); padding: 1px 5px; border-radius: 4px; }
.doc blockquote { border-left: 2px solid var(--accent); padding-left: 14px; color: var(--muted); }
.doc .related { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.doc .related a { margin-right: 14px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--card); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

footer { padding-top: 24px; padding-bottom: 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
footer nav { margin-bottom: 10px; }
footer nav a { color: var(--muted); margin-right: 16px; display: inline-block; margin-bottom: 4px; }
footer p + p { margin-top: 4px; }

/* App pages */
.doc .cta { margin: 0 0 32px; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.doc .cta a {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--card);
  font-size: 15px;
}
.doc .cta a:hover { background: var(--accent); color: var(--bg); }
