:root {
  --forest: #1c3028;
  --olive: #777e66;
  --ivory: #f1eee5;
  --sand: #c5b69c;
  --charcoal: #252723;
  --brand-serif: Georgia, "Times New Roman", serif;
  --brand-sans: Arial, Helvetica, sans-serif;
}

/* Shared surface palette. These are separate from the existing interface tokens
   so a surface can be adopted without recoloring navigation or controls. */
:root {
  --brand-warm-ivory: #f0e7d9;
  --brand-soft-tan: #e9e1d5;
  --brand-deep-forest: #192f23;
  --brand-warm-ivory-grain: url("/brand/warm-ivory-grain-1280.webp");
  --brand-soft-tan-grain: url("/brand/soft-tan-grain-1280.webp");
  --brand-deep-forest-grain: url("/brand/deep-forest-grain-1280.webp");
}

:root .brand-surface {
  background-color: var(--surface-color, var(--brand-warm-ivory));
  background-image: var(--surface-grain, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: soft-light;
}

.brand-surface--warm-ivory { --surface-color: var(--brand-warm-ivory); }
.brand-surface--soft-tan { --surface-color: var(--brand-soft-tan); }
.brand-surface--deep-forest { --surface-color: var(--brand-deep-forest); }

.brand-surface--warm-ivory.brand-surface--textured { --surface-grain: var(--brand-warm-ivory-grain, none); }
.brand-surface--soft-tan.brand-surface--textured { --surface-grain: var(--brand-soft-tan-grain, none); }
.brand-surface--deep-forest.brand-surface--textured { --surface-grain: var(--brand-deep-forest-grain, none); }

@media (max-width: 640px) and (max-resolution: 1.5dppx) {
  :root {
    --brand-warm-ivory-grain: url("/brand/warm-ivory-grain-640.webp");
    --brand-soft-tan-grain: url("/brand/soft-tan-grain-640.webp");
    --brand-deep-forest-grain: url("/brand/deep-forest-grain-640.webp");
  }
}
