/* 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; }

/* Jump links under the support intro; they wrap at phone width. */
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 1.5rem 0 0; font-size: 0.95rem; }
h2[id] { scroll-margin-top: 16px; }

.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; }
.site-footer .legal { margin: 10px 0 0; font-size: 0.85rem; }

/* Testing checklist (/testing): numbered steps with a tick box; ticks are saved on this phone by checks.js. */
.who { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 0.5rem; }
.chip { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--idea-fill); border: 1px solid var(--marigold); color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 8px; counter-reset: step; }
.checks li { counter-increment: step; margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.checks label { display: grid; grid-template-columns: 1.4em 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; cursor: pointer; }
.checks label::before { content: counter(step); color: var(--ink-secondary); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.checks input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sign-brown); }
.checks input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.checks .expect { display: block; color: var(--ink-secondary); font-size: 0.95rem; margin-top: 2px; }
.checks input:checked + span { color: var(--ink-secondary); text-decoration: line-through; text-decoration-thickness: 1px; }
.reset { font: inherit; font-size: 0.95rem; color: var(--link); background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 12px; cursor: pointer; margin-top: 2rem; }

/* For event publishers: the collector's name and a robots.txt sample */
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 0.75rem 1rem; border-radius: 8px; background: rgba(127, 127, 127, 0.12); }
