/* EM app pages. System font stacks only: EM's brand fonts are licensed and never published. */
:root {
  --bg: #f7f4ed;
  --surface: #ffffff;
  --ink: #2e2b23;
  --muted: #635d4f;
  --rule: #e2d9cc;
  --link: #5b3b05;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b17;
    --surface: #26241f;
    --ink: #f1e8dd;
    --muted: #cdbba6;
    --rule: #413e32;
    --link: #ffcd77;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; }
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.site { padding-top: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
header.site a.brand { display: inline-block; }
header.site img { display: block; width: 240px; max-width: 70vw; height: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}
nav.app { margin-top: 20px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
nav.app a { text-decoration: none; color: var(--muted); }
nav.app a[aria-current="page"] { color: var(--ink); font-weight: 600; }
nav.app a:hover { text-decoration: underline; }
main { padding-top: 32px; padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: 2.1rem; margin: 0 0 12px; }
h2 { font-size: 1.4rem; margin: 40px 0 10px; padding-top: 8px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
p.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
p.meta { color: var(--muted); font-size: 15px; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 20px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; overflow-wrap: anywhere; }
blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--link); background: var(--surface); }
address { font-style: normal; }
footer.site { border-top: 1px solid var(--rule); padding-top: 20px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
footer.site a { color: var(--muted); }
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: 0; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
}
