/* web.canosoftware.net — shared tokens + boilerplate.
   Component markup lives inline per-page (see web-services-design-spec.md);
   this file only carries the color tokens, resets, and states the design
   spec says must be global (dark mode, link/selection color, hover/press/focus,
   the nav breakpoint, reduced motion). System fonts only — no webfonts. */

:root {
  --page: #F7F3EC;
  --surface-raised: #FBF8F2;
  --surface-sunken: #EFE9DD;
  --text-primary: #262220;
  --text-secondary: #6B6259;
  --border: #DDD4C4;
  --border-strong: #C9BEA9;
  --border-interactive: #8F8169;
  --accent: #2E5B4C;
  --accent-line: #4A7263;
  --on-accent: #F3EFE7;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: ui-serif, Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;

  --dur-press: 90ms;
  --ease-standard: cubic-bezier(.2, 0, .2, 1);
  --press-scale: .985;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #17140F;
    --surface-raised: #211D18;
    --surface-sunken: #100E0A;
    --text-primary: #EDE6DA;
    --text-secondary: #A79C8C;
    --border: #33291F;
    --border-strong: #463A2C;
    --border-interactive: #7F6C54;
    --accent: #7FAE9B;
    --accent-line: #3B6354;
    --on-accent: #F3EFE7;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --press-scale: 1; }
}

* { box-sizing: border-box; }

html {
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text-primary);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1, h2, h3 {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a:hover, button:hover {
  opacity: .72;
}

a:active, button:active {
  transform: scale(var(--press-scale));
  transition: transform var(--dur-press) var(--ease-standard);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  z-index: 100;
  transition: top var(--dur-press) var(--ease-standard);
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 639px) {
  [data-nav-links] { display: none !important; }
  [data-nav-menu] { display: inline-flex !important; }
}

@media (min-width: 640px) {
  [data-nav-menu], [data-nav-panel] { display: none !important; }
}

[data-nav-panel][hidden] {
  display: none !important;
}

[data-rail] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

[data-rail]::-webkit-scrollbar {
  display: none;
}

[data-compare-frame] {
  cursor: ew-resize;
  touch-action: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

[data-compare-frame] * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
