/**
 * Reset, tipografie de bază, shell layout, butoane.
 * Depinde de tokens.css (variabile --hts-*).
 */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--hts-ink);
    background: var(--hts-paper);
    font-family: var(--hts-font-ui);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--hts-blue);
    outline-offset: 3px;
}

/*
 * On dark (forest) surfaces the green-700 ring has poor contrast, so
 * header/nav/hero/footer/category components switch it to lime — see
 * components.css, grouped with each dark component instead of a global
 * attribute selector.
 */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.layout-shell {
    width: var(--hts-shell);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    clip: auto;
    color: var(--hts-surface);
    background: var(--hts-ink);
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.72rem 1.2rem;
    color: var(--hts-surface);
    background: var(--hts-dark);
    border: 1px solid var(--hts-dark);
    border-radius: var(--hts-radius-md);
    font-family: var(--hts-font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--hts-blue-dark);
    border-color: var(--hts-blue-dark);
}

.button--primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    color: var(--hts-surface);
    background: var(--hts-blue);
    border-color: var(--hts-blue);
}

.button--primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--hts-blue-dark);
    border-color: var(--hts-blue-dark);
}

.button--primary:active,
.woocommerce a.button.alt:active,
.woocommerce button.button.alt:active {
    background: var(--hts-blue-dark);
    border-color: var(--hts-blue-dark);
}

.button--ghost {
    color: var(--hts-on-dark-ui);
    background: transparent;
    border-color: var(--hts-on-dark-border);
}

.button--ghost:hover {
    color: var(--hts-surface);
    background: rgb(255 255 255 / 6%);
    border-color: var(--hts-on-dark-border);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
