/* ==========================================================================
   YAZHI — BASE / RESET
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button { cursor: pointer; }

a {
    color: var(--yazhi-burgundy);
    text-decoration-color: rgba(110, 23, 39, 0.35);
    text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

ul, ol { padding-left: 1.25em; }

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

:focus-visible {
    outline: 2px solid var(--yazhi-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--yazhi-gold);
    color: var(--yazhi-deep-burgundy);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--yazhi-deep-burgundy);
    color: var(--yazhi-ivory);
    padding: 0.75em 1.25em;
    z-index: 10000;
    border-radius: 0 0 6px 0;
}
.skip-link:focus {
    left: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}
