/* ==========================================================================
   GET ENGINEERING SEAT — Lightweight Modern Reset (v1.0)
   Authoritative Reference: docs/05-FRONTEND.md
   ========================================================================== */

/* 1. Box-sizing and universal baseline */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Document and root settings */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* 3. Body element defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: var(--line-height-normal, 1.5);
  font-family: var(--font-family-primary, sans-serif);
  color: var(--color-text, #0f172a);
  background-color: var(--color-bg, #f8fafc);
  overflow-x: hidden;
}

/* 4. Responsive images, media, and SVGs */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Typography normalization */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-weight: var(--font-weight-bold, 700);
  line-height: var(--line-height-tight, 1.25);
  color: var(--color-text, #0f172a);
}

p {
  overflow-wrap: break-word;
}

/* 6. List styling */
ul,
ol {
  list-style: none;
}

/* 7. Hyperlinks */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* 8. Form controls normalization */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

/* 9. Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
}

/* 10. Horizontal Rules */
hr {
  border: 0;
  border-top: 1px solid var(--color-border, #e2e8f0);
  margin: var(--spacing-6, 1.5rem) 0;
}
