/*
 * Sukud design system - base
 * Reset, document typography, focus, and layout primitives.
 * Only pages on the ui/layouts shells load this file.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--sk-topbar-h) + var(--sk-space-4));
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sk-canvas);
  color: var(--sk-fg);
  font-family: var(--sk-font-sans);
  font-size: var(--sk-text-md);
  line-height: var(--sk-leading-md);
  font-weight: var(--sk-weight-regular);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--sk-border); margin: 0; }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }

::selection { background: var(--sk-selection); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--sk-focus);
  outline-offset: 2px;
  transition: outline-offset var(--sk-dur-fast) var(--sk-ease-out);
}

/* Quiet, theme-aware scrollbars. */
* { scrollbar-width: thin; scrollbar-color: var(--sk-ink-7) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--sk-ink-7); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sk-ink-8); }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
