/* בסיס: איפוס, טיפוגרפיה ואלמנטים פרימיטיביים. תלוי ב-tokens.css. */

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
}

main {
    flex: 1;
    width: 100%;
    padding-block: var(--space-4);
}

h1, h2, h3 {
    line-height: 1.25;
    margin-block: 0 var(--space-2);
}

p {
    margin-block: 0 var(--space-2);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* מיכל מרכזי לרוחב מלא עד מקסימום */
.container {
    width: min(100% - var(--space-4), var(--container));
    margin-inline: auto;
}

/* טקסט לקוראי מסך בלבד */
.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;
}
