/* ==========================================================================
   01-base.css — Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--rentl-color-surface);
  color: var(--rentl-color-text);
  font-family: var(--font-body);
  line-height: var(--rentl-line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: var(--rentl-orange);
  text-decoration: none;
  transition: color var(--rentl-transition-fast);
}

a:hover {
  color: var(--rentl-orange-dark);
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(255, 87, 0, 0.20);
  color: var(--rentl-color-heading);
}

/* Focus visible */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--rentl-color-focus);
  outline-offset: 3px;
}

/* Skip link */
.rentl-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--rentl-color-surface);
  color: var(--rentl-orange);
  font-weight: 700;
  border: 2px solid var(--rentl-orange);
  border-radius: var(--rentl-radius-sm);
  text-decoration: none;
  transition: top var(--rentl-transition-fast);
}

.rentl-skip-link:focus {
  top: 1rem;
}

/* Reduced motion */
@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;
  }
}
