/* --- optimize.css --- */
/*
 * About: Minimal CSS reset and foundation styles
 * Author: Andriy Ovcharov
 * E-mail: ovcharovcoder@gmail.com
 * GitHub: https://github.com/ovcharovcoder/optimize.css
 * Build date: 20.09.2025
 * Version: 1.0.1
 * License: MIT
 * Description: A clean and universal CSS reset.
 *              Provides consistent default styling across browsers,
 *              including basic typography, forms, media, tables, and accessibility fixes.
 *              No colors, hover effects, or utility classes are included.
 */

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: 100%;
}

body {
  min-height: 100%;
  line-height: 1.5;
  font-family: system-ui, -apple-system, Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font: inherit;
  font-weight: inherit;
}

p {
  margin-bottom: 1em;
}

strong, b {
  font-weight: 700;
}

address, cite, code, dfn, em, var {
  font-style: normal;
  font-weight: 400;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
  margin: 0;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

select, input[type='checkbox'], input[type='radio'] {
  appearance: auto;
}

::placeholder {
  color: inherit;
}

input[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

input::-ms-clear {
  display: none;
}

button, [type='button'], [type='submit'] {
  cursor: pointer;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
  border: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 0.5em;
}

[hidden] {
  display: none !important;
}

fieldset, legend {
  border: 0;
  margin: 0;
  padding: 0;
}

details {
  display: block;
}

summary {
  display: list-item;
  cursor: pointer;
}