/* Wardstow brand tokens and wordmark.

   Every brand-specific value lives in this file: the palette, the type stacks and the
   wordmark. Pages style themselves from these tokens and never repeat a colour.

   The wordmark is set in text until the mark exists. To add the mark, drop the SVG at
   /brand/mark.svg and uncomment the .wordmark::before rule at the end of this file. That
   is the whole swap: every page header and footer uses the same .wordmark markup.

   Palette, measured against WCAG 2.2 (contrast on the page ground):
     light  ink 14.7:1, muted 6.0:1, slate 9.5:1, green 5.5:1, cream on slate 9.5:1
     dark   ink 15.1:1, muted 7.9:1, slate 10.1:1, green 9.2:1
   No external font requests: system serif for display, system sans for body. */

:root {
  --ground:   #f4f1e8;   /* cream, the page */
  --surface:  #fbfaf5;   /* cards and the header */
  --ink:      #1b1f24;   /* body text */
  --muted:    #545c62;   /* secondary text */
  --line:     #ddd8cb;   /* rules and borders */
  --slate:    #22405a;   /* the primary: headings, links, reversed bands */
  --slate-ink:#f4f1e8;   /* text on a slate fill */
  --green:    #3a6b45;   /* the one accent, text-capable */
  --focus:    #3a6b45;

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #11151a;
    --surface:  #182028;
    --ink:      #ece9e1;
    --muted:    #a3abb2;
    --line:     #2a333c;
    --slate:    #a9c3db;
    --slate-ink:#11151a;
    --green:    #8fc49b;
    --focus:    #8fc49b;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--slate);
  text-decoration: none;
}

.wordmark .tm {
  font-family: var(--font-body);
  font-size: 0.5em;
  letter-spacing: 0;
  align-self: flex-start;
  margin-left: -0.35rem;
}

/* The mark, when it exists.
.wordmark::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background: url("/brand/mark.svg") center / contain no-repeat;
}
*/
