/* 荔枝云 base layer (DESIGN.md §7.3–7.4): reset, typography, focus ring, reduced motion. Tokens only (--ly-*). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font: var(--ly-text-body);
  color: var(--ly-text);
  background: var(--ly-bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1 { font: var(--ly-text-h1); }
h2 { font: var(--ly-text-h2); }
h3, h4 { font-size: inherit; font-weight: 600; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ly-primary); text-underline-offset: 2px; }
a:hover { color: var(--ly-primary-hover); }
code, kbd, pre, samp { font-family: var(--ly-font-mono); font-size: .95em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
::placeholder { color: var(--ly-text-3); opacity: 1; }
::selection { background: var(--ly-primary-soft); color: var(--ly-primary-soft-text); }
[hidden] { display: none !important; }

/* One focus ring for everything, keyboard only (DESIGN.md §7.6). */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ly-primary); outline-offset: 2px; }

/* Phones: 16px form controls so iOS does not zoom on focus (DESIGN.md §7.3). */
@media (max-width: 767px) {
  input, select, textarea { font-size: var(--ly-control-font, 16px); }
}

/* Reduced motion: every animation / transition drops to 0ms; skeletons stop shimmering (DESIGN.md §7.4). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

.ly-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
