/* CSS Reset - LOKL Project */
/* Modern reset approach with box-sizing and baseline normalization */

/* Reset all margins and padding */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Set up basic typography and colors */
html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles on ul, ol elements */
ul,
ol {
  list-style: none;
}

/* Set consistent link and button styles */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* Reset form elements */
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background-color: var(--card-bg);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 12px;
}

/* Remove default button styling */
input[type="submit"],
button[type="submit"] {
  background-color: var(--orange);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
}

/* Reset table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 12px;
}

/* Remove outline for better focus styling */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Reset and normalize images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hide but keep accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}