/* Wayside site: the app's color tokens and type (DESIGN.md), light and dark. */
:root {
  --paper: #F6F0E4;
  --card: #FFFFFF;
  --ink: #1E1A16;
  --ink-secondary: #5C4A38;
  --sign-brown: #6B4A2B;
  --link: #6B4A2B;
  --marigold: #E8A33D;
  --idea-fill: #FFF9EE;
  --rule: #E4D9C6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171310;
    --card: #241E19;
    --ink: #F2EBDD;
    --ink-secondary: #BCAE98;
    --sign-brown: #9B7350;
    /* signBrown is too dim for text on dark paper; marigold reads well there. */
    --link: #E8A33D;
    --idea-fill: #2E2418;
    --rule: #3A3028;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }

/* Header: the detour mark and the name, like the app icon. */
.site-header { max-width: 680px; margin: 0 auto; padding: 24px 16px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 600 1.25rem/1 ui-serif, "New York", Georgia, serif; }

/* Titles in New York (serif), everything else in the system font, as in the app. */
h1, h2 { font-family: ui-serif, "New York", Georgia, serif; font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 0.25rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }
h3 + p { margin-top: 0; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }

.meta { color: var(--ink-secondary); margin: 0 0 1.5rem; font-size: 0.95rem; }
.lede { font-size: 1.2rem; color: var(--ink-secondary); }

/* The short version: an idea card (dashed marigold outline on ideaFill). */
.short {
  background: var(--idea-fill);
  border: 2px dashed var(--marigold);
  border-radius: 14px;
  padding: 4px 20px 8px;
  margin-top: 1rem;
}
.short h2 { margin-top: 1rem; }


.site-footer {
  max-width: 680px; margin: 0 auto; padding: 20px 16px 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-secondary); font-size: 0.95rem;
}
.site-footer a { margin-right: 16px; }
