/* =========================================================
   MJ STUDIO65 AUTOTECH JOURNAL
   NEW PUBLIC DESIGN SYSTEM
   ========================================================= */

:root {
    --mj-orange: #f36b21;
    --mj-orange-dark: #d85b18;

    --mj-bg: #f3f2ef;
    --mj-surface: #ffffff;
    --mj-surface-soft: #f8f7f4;
    --mj-dark: #181818;

    --mj-text: #1b1b1b;
    --mj-text-secondary: #66635f;
    --mj-text-light: #888580;

    --mj-border: #dedcd7;
    --mj-border-dark: #cac7c1;

    --mj-container: 1280px;
    --mj-content: 1180px;
    --mj-article: 820px;

    --mj-radius-sm: 6px;
    --mj-radius-md: 10px;
    --mj-radius-lg: 16px;

    --mj-shadow-soft:
        0 4px 18px rgba(0, 0, 0, 0.06);

    --mj-shadow-card:
        0 8px 28px rgba(0, 0, 0, 0.08);

    --mj-space-xs: 6px;
    --mj-space-sm: 12px;
    --mj-space-md: 20px;
    --mj-space-lg: 32px;
    --mj-space-xl: 48px;
    --mj-space-2xl: 72px;
    --mj-space-3xl: 96px;
}


/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--mj-bg);
    color: var(--mj-text);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


/* Media */

img {
    display: block;
    max-width: 100%;
}


/* Links */

a {
    color: inherit;
}


/* Containers */

.mj-container {
    width: min(
        calc(100% - 40px),
        var(--mj-container)
    );

    margin-inline: auto;
}

.mj-content {
    width: min(
        calc(100% - 40px),
        var(--mj-content)
    );

    margin-inline: auto;
}


/* Category / eyebrow label */

.mj-label {
    display: inline-block;

    color: var(--mj-orange);

    font-size: 0.76rem;
    font-weight: 750;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}


/* Section heading */

.mj-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.mj-section-heading h2 {
    margin: 0;

    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.mj-section-heading p {
    max-width: 560px;

    margin: 8px 0 0;

    color: var(--mj-text-secondary);
}


/* Standard button */

.mj-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    border: 0;
    border-radius: var(--mj-radius-sm);

    background: var(--mj-orange);
    color: #ffffff;

    font: inherit;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.mj-button:hover {
    background: var(--mj-orange-dark);
    transform: translateY(-1px);
}


/* Accessibility */

:focus-visible {
    outline: 3px solid rgba(243, 107, 33, 0.35);
    outline-offset: 3px;
}


/* Mobile */

@media (max-width: 768px) {

    .mj-container,
    .mj-content {
        width: min(
            calc(100% - 36px),
            var(--mj-container)
        );
    }

    .mj-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

}