/* Section grounds. Each section sets one; components read only these roles,
   so a card or button works on any ground. Values come from tokens.css (semantic.ground). */

.ground-dark {
  --bg: var(--ground-dark-bg);
  --surface: var(--ground-dark-surface);
  --surface-strong: var(--ground-dark-surface-strong);
  --text: var(--ground-dark-text);
  --muted: var(--ground-dark-text-muted);
  --ink: var(--ground-dark-accent-ink);
  --mark: var(--ground-dark-accent-mark);
  --line: var(--ground-dark-line);
  --line-strong: var(--ground-dark-line-strong);
  --field-border: var(--ground-dark-field-border);
  --error: var(--ground-dark-error);
  --focus: var(--ground-dark-focus);
  --shadow: var(--primitive-shadow-deep);
  color-scheme: dark;
}

.ground-light {
  --bg: var(--ground-light-bg);
  --surface: var(--ground-light-surface);
  --surface-strong: var(--ground-light-surface-strong);
  --text: var(--ground-light-text);
  --muted: var(--ground-light-text-muted);
  --ink: var(--ground-light-accent-ink);
  --mark: var(--ground-light-accent-mark);
  --line: var(--ground-light-line);
  --line-strong: var(--ground-light-line-strong);
  --field-border: var(--ground-light-field-border);
  --error: var(--ground-light-error);
  --focus: var(--ground-light-focus);
  --shadow: var(--primitive-shadow-soft);
  color-scheme: light;
}

.ground-sand {
  --bg: var(--ground-sand-bg);
  --surface: var(--ground-sand-surface);
  --surface-strong: var(--ground-sand-surface-strong);
  --text: var(--ground-sand-text);
  --muted: var(--ground-sand-text-muted);
  --ink: var(--ground-sand-accent-ink);
  --mark: var(--ground-sand-accent-mark);
  --line: var(--ground-sand-line);
  --line-strong: var(--ground-sand-line-strong);
  --field-border: var(--ground-sand-field-border);
  --error: var(--ground-sand-error);
  --focus: var(--ground-sand-focus);
  --shadow: var(--primitive-shadow-soft);
  color-scheme: light;
}

.ground-dark,
.ground-light,
.ground-sand {
  background-color: var(--bg);
  color: var(--text);
}

/* Drops on the dark ground, like the outside of a cold glass. One seamless tile of light and
   shade on transparent, so it sits on any dark. The footer lays a black glass over them, to
   match the header's glass. */
section.ground-dark {
  background-image: url('/wp-content/themes/lemonade-creative/assets/images/drops.webp');
}

footer.ground-dark {
  background-image: linear-gradient(var(--footer-glass), var(--footer-glass)), url('/wp-content/themes/lemonade-creative/assets/images/drops.webp');
}
