:root { --ink: #1d1d1b; --paper: #fbfaf7; --muted: #66635c; --accent: #c2410c; --line: #e4e0d8; --code: #f1eee7; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #ecebe6; --paper: #161615; --muted: #a29f97; --accent: #fb923c; --line: #34332f; --code: #24231f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Georgia, "Iowan Old Style", serif; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
code { background: var(--code); padding: 1px 4px; border-radius: 3px; }
pre { background: var(--code); padding: 14px 16px; border-radius: 6px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
.hidden { position: absolute; left: -9999px; }

.demo-bar { margin: 0; padding: 8px 16px; font: 14px/1.4 system-ui, sans-serif; text-align: center;
  background: var(--ink); color: var(--paper); }
.demo-bar a { color: inherit; font-weight: 600; }

.site-header, main, .site-footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.site-name { font-size: 1.3rem; font-weight: bold; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 18px; font-family: system-ui, sans-serif; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
/* The page variable set on each page puts a class on <body>; this highlights its menu item. */
.page-home .nav-home, .page-how .nav-how, .page-contact .nav-contact, .page-thanks .nav-contact {
  color: var(--ink); border-bottom-color: var(--accent); }

main { padding-top: 32px; padding-bottom: 32px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.cards section { border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px 10px; }
.cards h2 { font-size: 1.05rem; margin-top: 14px; }

.contact { display: grid; gap: 14px; max-width: 480px; margin-top: 24px; font-family: system-ui, sans-serif; font-size: 15px; }
.contact label { display: grid; gap: 4px; }
.contact input, .contact textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); }
.contact button { justify-self: start; font: inherit; font-weight: 600; padding: 9px 22px; border: 0; border-radius: 6px;
  background: var(--accent); color: #fff; cursor: pointer; }

.site-footer { padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted);
  font-family: system-ui, sans-serif; font-size: 14px; }
.source-list { font-family: system-ui, sans-serif; line-height: 2; }
