/* ============================================
   THE OPEN ALBAYAN TIMES - CSS RESET
   ============================================
   Normalizes browser default styles so the
   site looks consistent across Chrome, Safari,
   Firefox, and Edge.
   ============================================ */

/* ==========================================
   1. BOX SIZING
   ========================================== */

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

/* ==========================================
   2. RESET MARGINS & PADDING
   ========================================== */

* {
    margin: 0;
    padding: 0;
}

/* ==========================================
   3. HTML & BODY
   ========================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ==========================================
   4. MEDIA ELEMENTS
   ========================================== */

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

/* ==========================================
   5. FORM ELEMENTS
   ========================================== */

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

textarea {
    resize: vertical;
}

/* Remove default search input styling in Safari */
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* ==========================================
   6. TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* ==========================================
   7. LISTS
   ========================================== */

ul, ol {
    list-style: none;
}

/* ==========================================
   8. LINKS
   ========================================== */

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ==========================================
   9. TABLES
   ========================================== */

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* ==========================================
   10. MISC
   ========================================== */

fieldset {
    border: none;
}

legend {
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

:focus {
    outline: none;
}

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

* {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   11. ACCESSIBILITY
   ========================================== */

.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;
}

@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;
    }
}