/* ============================================================
   LX RESET
   Modern, minimal reset. Inherits from tokens.
   Inspired by Andy Bell + Josh Comeau, Liman-tuned.
   ============================================================ */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.lx-motion-force) { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: var(--lx-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;             /* alt text shows in italic if broken */
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

/* Form inheritance */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

textarea:not([rows]) {
  min-height: 10em;
}

/* Heading defaults — kontrolü tipografiye bırak */
h1, h2, h3, h4, h5, h6 {
  font: inherit;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 70ch;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

ul, ol {
  list-style-position: inside;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Anchor target offset */
:target {
  scroll-margin-block: 5ex;
}

/* Hidden */
[hidden] {
  display: none !important;
}

/* Focus — accessibility-first */
:focus-visible {
  outline: 2px solid var(--lx-color-glow);
  outline-offset: 3px;
  border-radius: var(--lx-radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Selection */
::selection {
  background: var(--lx-color-primary-600);
  color: var(--lx-text-primary);
  text-shadow: none;
}
::-moz-selection {
  background: var(--lx-color-primary-600);
  color: var(--lx-text-primary);
  text-shadow: none;
}

/* Scrollbar — branded */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--lx-color-primary-700) var(--lx-surface-deep);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--lx-surface-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    var(--lx-color-primary-700),
    var(--lx-color-primary-500));
  border-radius: var(--lx-radius-md);
  border: 2px solid var(--lx-surface-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
    var(--lx-color-primary-600),
    var(--lx-color-glow));
}

/* SR-only utility (a11y) */
.lx-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link */
.lx-skip-link {
  position: absolute;
  top: -100%;
  left: var(--lx-space-4);
  padding: var(--lx-space-3) var(--lx-space-4);
  background: var(--lx-color-primary-600);
  color: #fff;
  border-radius: var(--lx-radius-md);
  z-index: var(--lx-z-tooltip);
  transition: top var(--lx-transition-fast);
}
.lx-skip-link:focus {
  top: var(--lx-space-4);
}
