/* poster: the cream paper-and-ink look every public page wears today. Applies when poster is
   chosen or when nothing has chosen a theme (the static fallback link on public pages). */
:root[data-theme="poster"],
:root:not([data-theme]) {
  /* Colours */
  --color-bg: #f5ecd7;
  --color-surface: #fffaf0;
  --color-border: #8c7f63;
  --color-text-primary: #1c1916;
  --color-text-secondary: #5c5448;
  --color-accent: #003da5;
  --color-danger: #b3261e;
  --color-status-ok: #1b6b34;
  --color-status-warn: #8a4b00;

  /* Typography */
  --font-display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 25, 22, 0.25);
  --shadow-md: 0 4px 16px rgba(28, 25, 22, 0.25);
  --shadow-paper: 0 2px 20px rgba(28, 25, 22, 0.3);

  /* Buttons */
  --color-btn-primary: #003da5;
  --color-btn-primary-hover: #002d7a;
  --color-btn-primary-text: var(--color-surface);
  --color-btn-dark-hover: #3a3530;

  /* Danger */
  --color-danger-hover: #8c1d18;

  /* Overlays & surfaces */
  --color-preview-bg: #ddd2b8;
  --color-backdrop: rgba(28, 25, 22, 0.5);

  /* Contract tokens added at today's values */
  --color-field: var(--color-surface);
  --page-background: none;
  --color-link: var(--color-accent);
  --color-header-bg: var(--color-accent);
  --color-header-text: var(--color-bg);
  --color-selection-bg: var(--color-bg);
  --color-selection-text: var(--color-text-primary);
  --color-focus: var(--color-text-primary);
  --qr-ink: var(--color-bg);
  --qr-paper: var(--color-text-primary);
  --color-error-text: var(--color-danger);
  --color-on-solid: #ffffff;
  --color-scrim: rgba(0, 0, 0, 0.55);

  /* Type and shape */
  --font-chrome: var(--font-body);
  --font-root-size: 100%;
  --heading-transform: uppercase;
  --heading-weight: 700;
  --heading-tracking: 0.02em;
  --border-width: 1px;
  --bevel-raised: none;
  --bevel-pressed: none;
  --bevel-sunken: none;
  --frame: none;
  --target-min: 44px;

  /* Pin, dialog and popup elevation */
  --shadow-ring: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  --shadow-pin: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.18);
  --shadow-pin-hover: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.28);
  --shadow-battle-pin: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-battle-pin-hover: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-dialog: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-popup: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-ghost: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-modal: 0 8px 40px rgba(0, 0, 0, 0.35);

  /* Focus and motion */
  --focus-width: 2px;
  --focus-offset: 2px;
  --focus-style: solid;
  --motion-duration: 0.1s;
  --motion-ease: ease;

  /* Hooks: where the nav, panel titles and banner show (step 5) */
  --color-focus-header: var(--color-focus);
  --nav-header-display: none;
  --nav-brand-display: none;
  --nav-footer-display: flex;
  --panel-title-display: none;
  --banner-display: none;
  --color-banner-bg: var(--color-accent);
  --color-banner-text: var(--color-bg);
  --canvas-ctrl-inset: 0px;
  --duplicate-heading-position: static;
  --panel-padding: var(--space-md);
  --control-accent: auto;
}
