:root,
html[data-lm-theme="light"] {
  color-scheme: light;
  --lm-canvas: #f3ecdf;
  --lm-canvas-deep: #e8ddca;
  --lm-surface-1: #fffdf8;
  --lm-surface-2: #eee4d4;
  --lm-surface-3: #dfd0b8;
  --lm-text: #241f18;
  --lm-text-soft: #5b5348;
  --lm-text-faint: #746b5e;
  --lm-border: #c6b79e;
  --lm-border-strong: #9f8b68;
  --lm-gold: #9a6812;
  --lm-gold-bright: #c28a22;
  --lm-green: #285a43;
  --lm-green-soft: #dce8df;
  --lm-blue: #254bb8;
  --lm-blue-strong: #17388f;
  --lm-danger: #a42b32;
  --lm-focus: #126bc5;
  --lm-shadow: 0 16px 48px rgb(55 41 20 / 14%);
  --lm-radius-sm: 10px;
  --lm-radius-md: 16px;
  --lm-radius-lg: 24px;
  --lm-space-1: 0.5rem;
  --lm-space-2: 0.75rem;
  --lm-space-3: 1rem;
  --lm-space-4: 1.5rem;
  --lm-space-5: 2rem;
  --lm-space-6: 3rem;
  --lm-content: min(100% - 2rem, 90rem);
  --lm-reading: 68ch;
}

html[data-lm-theme="dark"] {
  color-scheme: dark;
  --lm-canvas: #07101f;
  --lm-canvas-deep: #040a14;
  --lm-surface-1: #0d172a;
  --lm-surface-2: #131f35;
  --lm-surface-3: #1c2a43;
  --lm-text: #f7f3eb;
  --lm-text-soft: #c0c9d8;
  --lm-text-faint: #98a5ba;
  --lm-border: #32415e;
  --lm-border-strong: #53617a;
  --lm-gold: #e0b84f;
  --lm-gold-bright: #f0ce71;
  --lm-green: #56b286;
  --lm-green-soft: #173a31;
  --lm-blue: #4f79eb;
  --lm-blue-strong: #7a9af1;
  --lm-danger: #ff757d;
  --lm-focus: #8cc8ff;
  --lm-shadow: 0 18px 56px rgb(0 0 0 / 38%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-lm-theme]) {
    color-scheme: dark;
    --lm-canvas: #07101f;
    --lm-canvas-deep: #040a14;
    --lm-surface-1: #0d172a;
    --lm-surface-2: #131f35;
    --lm-surface-3: #1c2a43;
    --lm-text: #f7f3eb;
    --lm-text-soft: #c0c9d8;
    --lm-text-faint: #98a5ba;
    --lm-border: #32415e;
    --lm-border-strong: #53617a;
    --lm-gold: #e0b84f;
    --lm-gold-bright: #f0ce71;
    --lm-green: #56b286;
    --lm-green-soft: #173a31;
    --lm-blue: #4f79eb;
    --lm-blue-strong: #7a9af1;
    --lm-danger: #ff757d;
    --lm-focus: #8cc8ff;
    --lm-shadow: 0 18px 56px rgb(0 0 0 / 38%);
  }
}

.lm-theme-surface {
  background: var(--lm-canvas);
  color: var(--lm-text);
}

.lm-eyebrow {
  color: var(--lm-gold);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lm-button,
.lm-icon-button,
.lm-event-rail button {
  min-height: 44px;
  min-width: 44px;
}

.lm-button:focus-visible,
.lm-icon-button:focus-visible,
.lm-event-rail button:focus-visible,
.lm-header a:focus-visible,
.lm-event-card a:focus-visible,
.lm-admin-shell a:focus-visible {
  outline: 3px solid var(--lm-focus);
  outline-offset: 3px;
}

@media (min-width: 48rem) {
  :root {
    --lm-content: min(100% - 4rem, 100rem);
  }
}
