/* ============================================
   Saxho.net — CSS Reset & Base
   ============================================ */

/* Box sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Document */
html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--c-dark);
    background-color: var(--c-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--c-dark);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Links */
a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--c-primary-light);
}

a:focus-visible {
    outline: 2px solid var(--c-primary-light);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

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

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

/* Lists */
ul, ol {
    list-style: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Misc */
hr {
    border: none;
    border-top: 1px solid var(--c-surface);
    margin: var(--sp-xl) 0;
}

::selection {
    background-color: var(--c-primary);
    color: var(--c-white);
}

/* Skip to content (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-md);
    padding: var(--sp-sm) var(--sp-md);
    background: var(--c-primary);
    color: var(--c-white);
    border-radius: var(--radius-sm);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--sp-sm);
}
