/* Hommio Brand Hub. Usage and state contracts are in ../hommio-system/. */
:root {
  color-scheme: light;

  --primary: #9c432d;
  --primary-hover: #7b3424;
  --primary-active: #60271c;
  --primary-disabled: #e8e4dc;
  --secondary: #494942;
  --accent: var(--primary);
  --background: #fff;
  --surface: #fff;
  --surface-secondary: #f5f3ef;
  --surface-elevated: var(--surface);
  --border: #8c887a;
  --border-subtle: #e3e2da;
  --border-divider: #d4d3c9;
  --text-primary: #282822;
  --text-secondary: var(--secondary);
  --text-tertiary: #626358;
  --text-disabled: #58584d;
  --on-primary: #fff;
  --on-dark: #fff;

  --success: #31634b;
  --success-background: #e9f2e9;
  --warning: #785417;
  --warning-background: #faf0d9;
  --error: #a32820;
  --error-hover: #88241d;
  --error-active: #661c17;
  --error-background: #fbece8;
  --info: #395760;
  --info-background: #e9f0f2;
  --sample-text: var(--primary-hover);
  --sample-background: var(--selected-background);
  --sample-border: var(--selected-border);
  --inverse-surface: #1f201d;
  --preview-frame: #202024;
  --collection-background: #f5ebdb;

  --interactive-default: var(--surface);
  --interactive-hover: var(--surface-secondary);
  --interactive-active: #eae6dd;
  --interactive-focus: var(--primary-hover);
  --interactive-disabled: var(--primary-disabled);
  --selected-background: #f4e7df;
  --selected-border: var(--primary);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-2xs: .625rem;
  --text-xs: .6875rem;
  --text-caption: .75rem;
  --text-small: .8125rem;
  --text-body: .875rem;
  --text-large: 1rem;
  --text-h4: var(--text-body);
  --text-h3: var(--text-large);
  --text-h2: 1.25rem;
  --text-h1: clamp(1.875rem, 2.85vw, 2.75rem);
  --text-display: clamp(2.5rem, 3.5vw, 3rem);
  --text-numeric: clamp(1.5rem, 2.45vw, 2.375rem);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-label: 600;
  --weight-strong: 650;
  --leading-display: 1.08;
  --leading-title: 1.12;
  --leading-heading: 1.25;
  --leading-label: 1.35;
  --leading-caption: 1.4;
  --leading-small: 1.45;
  --leading-body: 1.5;
  --leading-numeric: 1.1;
  --tracking-display: -.05em;
  --tracking-title: -.045em;
  --tracking-h2: -.025em;
  --tracking-h3: -.015em;
  --tracking-body: 0;
  --tracking-overline: .025em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-style: solid;
  --focus-width: 2px;
  --focus-offset: 3px;
  --elevation-0: none;
  --elevation-1: 0 2px 6px #30251c17;
  --elevation-2: 0 8px 20px #30251c1c;
  --elevation-3: 0 14px 40px #30251c26;
  --overlay-shadow: var(--elevation-3);
  --backdrop: rgb(40 40 34 / 40%);
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 240ms;
  --motion-spinner: 700ms;
  --ease-out: cubic-bezier(.2,.65,.35,1);
  --layer-raised: 1;
  --layer-sticky: 2;
  --layer-sidebar: 5;
  --layer-scrim: 10;
  --layer-mobile-nav: 12;
  --layer-feedback: 20;
  --layer-skip: 30;

  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --control-touch: 44px;
  --table-row: 44px;
  --icon-sm: 16px;
  --select-arrow-inset: var(--space-3);
  --icon-md: 20px;
  --icon-lg: 24px;
  --content-max: 1650px;
  --nav: 216px;
  --top: 60px;
  --drawer-width: 480px;
  --dialog-width: 550px;
  --page-gutter: clamp(32px, 3.05vw, 48px);
  --page-top: clamp(24px, 2.3vw, 40px);

  /* Existing styles use these names for the same roles. */
  --paper: var(--background);
  --soft: var(--surface-secondary);
  --ink: var(--text-primary);
  --muted: var(--text-tertiary);
  --quiet: var(--text-tertiary);
  --line: var(--border-subtle);
  --edge: var(--border-divider);
  --accent-deep: var(--primary-hover);
  --accent-soft: var(--selected-background);
  --green: var(--success);
  --green-soft: var(--success-background);
  --gold: var(--warning);
  --gold-soft: var(--warning-background);
  --radius: var(--radius-md);
  --shadow: var(--overlay-shadow);
}

/* Width boundaries also appear in the media queries that change columns. */
:root {
  --breakpoint-mobile: 760px;
  --breakpoint-compact-sidebar: 1000px;
  --breakpoint-wide: 1200px;
  --breakpoint-large-shell: 1700px;
}
@media (min-width: 1700px) { :root { --nav: 244px; } }
@media (max-width: 1199px) { :root { --page-gutter: var(--space-6); } }
@media (max-width: 1000px) { :root { --nav: 188px; } }
@media (max-width: 760px) {
  :root {
    --nav: 0px;
    --top: 56px;
    --page-gutter: var(--space-4);
    --page-top: var(--space-5);
    --control-md: var(--control-touch);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-normal: 0ms;
    --motion-slow: 0ms;
  }
}
