* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ek-color-bg);
    color: var(--ek-color-text);
    font-family: var(--ek-font-family);
    font-size: var(--ek-font-size-3);
    line-height: 1.85;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.ek-lock-scroll {
    overflow: hidden;
}

a {
    color: inherit;
}

img,
picture,
video {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
}

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

button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--ek-color-focus);
    outline-offset: 3px;
}

::selection {
    background: var(--ek-color-cream);
    color: var(--ek-color-text);
}

.ek-shell {
    inline-size: min(100% - 2rem, var(--ek-shell));
    margin-inline: auto;
}

.ek-main {
    min-block-size: 50vh;
    padding-block: var(--ek-space-8);
}

.ek-content {
    max-inline-size: 52rem;
    margin-inline: auto;
}

.ek-skip-link {
    position: fixed;
    inset-block-start: var(--ek-space-2);
    inset-inline-start: var(--ek-space-2);
    z-index: 10000;
    min-block-size: var(--ek-touch-target);
    padding: var(--ek-space-2) var(--ek-space-4);
    border-radius: var(--ek-radius-sm);
    background: var(--ek-color-text);
    color: #fff;
    text-decoration: none;
    transform: translateY(-200%);
}

.ek-skip-link:focus {
    transform: translateY(0);
}

.ek-icon {
    inline-size: 1.35rem;
    block-size: 1.35rem;
    flex: 0 0 auto;
}

.ek-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ek-space-2);
    min-block-size: 3rem;
    padding-inline: var(--ek-space-5);
    border: 1px solid transparent;
    border-radius: var(--ek-radius-pill);
    background: var(--ek-color-text);
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ek-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--ek-shadow-soft);
}

.ek-button--secondary {
    border-color: var(--ek-color-border);
    background: var(--ek-color-surface);
    color: var(--ek-color-text);
}

.ek-button--soft {
    background: var(--ek-color-cream);
    color: var(--ek-color-text);
}

.ek-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--ek-space-4);
    margin-block-end: var(--ek-space-6);
}

.ek-section-heading__text {
    max-inline-size: 42rem;
}

.ek-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--ek-space-2);
    margin: 0 0 var(--ek-space-2);
    color: var(--ek-color-muted);
    font-size: var(--ek-font-size-2);
    font-weight: 600;
}

.ek-section-title {
    margin: 0;
    font-size: var(--ek-font-size-6);
    line-height: 1.45;
}

.ek-section-copy {
    margin: var(--ek-space-2) 0 0;
    color: var(--ek-color-muted);
}

.ek-text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--ek-space-2);
    min-block-size: var(--ek-touch-target);
    color: var(--ek-color-text);
    font-size: var(--ek-font-size-2);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ek-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.ek-empty-state {
    padding: var(--ek-space-8);
    border: 1px dashed var(--ek-color-border);
    border-radius: var(--ek-radius-lg);
    background: var(--ek-color-surface-soft);
    color: var(--ek-color-muted);
    text-align: center;
}

.ek-visually-hidden {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767px) {
    body {
        padding-block-end: 4.75rem;
    }

    .ek-shell {
        inline-size: min(100% - 1.25rem, var(--ek-shell));
    }

    .ek-section-heading {
        align-items: start;
    }

    .ek-section-heading__action {
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
