/*
 * Memur Kahvesi foundation
 * Shared tokens and low-specificity primitives for every public surface.
 */

@font-face {
    font-family: "MK Inter";
    src: url("../fonts/inter/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "MK Inter";
    src: url("../fonts/inter/InterVariable-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --mk-font-sans: "MK Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mk-font-display: var(--mk-font-sans);
    --mk-font-body: var(--mk-font-sans);
    --mk-text-xs: 0.75rem;
    --mk-text-sm: 0.875rem;
    --mk-text-md: 1rem;
    --mk-text-lg: 1.125rem;
    --mk-text-xl: 1.375rem;
    --mk-text-2xl: 1.75rem;
    --mk-text-3xl: 2.25rem;
    --mk-leading-tight: 1.2;
    --mk-leading-normal: 1.55;
    --mk-weight-regular: 400;
    --mk-weight-medium: 500;
    --mk-weight-semibold: 600;
    --mk-weight-bold: 700;
    --mk-weight-extrabold: 800;
    --mk-color-ink: #111827;
    --mk-color-muted: #64748b;
    --mk-color-surface: #ffffff;
    --mk-color-surface-soft: #f7f8fa;
    --mk-color-canvas: #f4f3f1;
    --mk-color-line: #e5e0da;
    --mk-color-brand: #a61f24;
    --mk-color-brand-strong: #86191d;
    --mk-color-navy: #172033;
    --mk-color-success: #067647;
    --mk-color-warning: #a15c00;
    --mk-color-danger: #b42318;
    --mk-color-info: #175cd3;
    --mk-space-1: 0.25rem;
    --mk-space-2: 0.5rem;
    --mk-space-3: 0.75rem;
    --mk-space-4: 1rem;
    --mk-space-5: 1.25rem;
    --mk-space-6: 1.5rem;
    --mk-space-8: 2rem;
    --mk-space-10: 2.5rem;
    --mk-space-12: 3rem;
    --mk-radius-sm: 4px;
    --mk-radius: 6px;
    --mk-radius-md: 8px;
    --mk-radius-lg: 8px;
    --mk-control-height: 44px;
    --mk-container: 1400px;
    --mk-container-reading: 1180px;
    --mk-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --mk-shadow-md: 0 12px 28px rgba(15, 23, 42, 0.09);
    --mk-focus-ring: 0 0 0 3px rgba(166, 31, 36, 0.2);
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--mk-font-body);
    letter-spacing: 0;
}

body {
    color: var(--mk-color-ink);
    background: var(--mk-color-canvas);
    font-size: var(--mk-text-md);
    line-height: var(--mk-leading-normal);
}

:where(.mk-page-shell, .page-shell) {
    width: min(calc(100% - 32px), var(--mk-container));
    margin-inline: auto;
}

:where(.mk-page-hero, .page-hero) {
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-shadow-md);
}

:where(.mk-card, .page-card) {
    background: var(--mk-color-surface);
    border: 1px solid var(--mk-color-line);
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-shadow-sm);
}

:where(.mk-btn, .btn) {
    min-height: var(--mk-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mk-space-2);
    border-radius: var(--mk-radius);
    font-family: var(--mk-font-sans);
    font-size: var(--mk-text-sm);
    font-weight: var(--mk-weight-bold);
    line-height: 1;
    text-decoration: none;
}

:where(.mk-btn, .btn):focus-visible,
:where(button, input, select, textarea, a):focus-visible {
    outline: 0;
    box-shadow: var(--mk-focus-ring);
}

:where(.mk-badge, .badge) {
    display: inline-flex;
    align-items: center;
    gap: var(--mk-space-1);
    border-radius: 999px;
    font-size: var(--mk-text-xs);
    font-weight: var(--mk-weight-bold);
    line-height: 1;
}

:where(.mk-alert, .alert) {
    border: 1px solid var(--mk-color-line);
    border-left-width: 4px;
    border-radius: var(--mk-radius-md);
    background: var(--mk-color-surface);
}

.mk-shell-community {
    --mk-shell-accent: var(--mk-color-brand);
}

.mk-shell-editorial {
    --mk-shell-accent: #3159a7;
    --mk-container-reading: 1200px;
}

.mk-shell-conversation {
    --mk-shell-accent: #087c70;
}

.mk-shell-backoffice {
    --mk-shell-accent: #3159a7;
}

@media (max-width: 720px) {
    :where(.mk-page-shell, .page-shell) {
        width: min(calc(100% - 20px), var(--mk-container));
    }
}
