/* base.css — Reset & base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-16, 4rem);
  
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: var(--text-base, 1rem);
  color: var(--color-text, #111111);
  background-color: var(--color-bg, #ffffff);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
input[type="search"] { -webkit-appearance: none; border-radius: 0; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; overflow-wrap: break-word; word-break: break-word; }
p, li, figcaption { text-wrap: pretty; overflow-wrap: break-word; orphans: 3; widows: 3; }

::selection {
  background: rgba(37, 99, 235, 0.2);
  background: oklch(from var(--color-primary, #2563eb) l c h / 0.2);
  color: var(--color-text, #111111);
}

:focus-visible { outline: 2px solid var(--color-primary, #2563eb); outline-offset: 3px; border-radius: var(--radius-sm, 0.375rem); }
:focus:not(:focus-visible) { outline: none; }

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

button { cursor: pointer; background: none; border: none; appearance: none; -webkit-appearance: none; min-height: 44px; min-width: 44px; }
a { color: inherit; -webkit-touch-callout: none; }
table { border-collapse: collapse; width: 100%; }
a, button, [role="button"], [role="link"], input, textarea, select {
  transition: color var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
              background var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
              border-color var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border, #e0e0e0); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-faint, #aaaaaa); }
* { scrollbar-width: thin; scrollbar-color: var(--color-border, #e0e0e0) transparent; }