/* ==========================================================
   ISAAH MHLANGA
   Global Design System
========================================================== */

:root {

    /* Brand */

    --navy-950: #080f1e;
    --navy-900: #0f172a;
    --navy-850: #142038;
    --navy-800: #1e293b;

    /* --blue-600: #2563eb;
    --blue-500: #3b82f6; */

    --blue-600: #d97706;
    --blue-500: #f59e0b;

    --blue-100: #dbeafe;

    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;


    /* Surfaces */

    --surface: #f8fafc;
    --surface-white: #ffffff;
    --surface-alt: #f1f5f9;

    --border:
        rgba(15, 23, 42, 0.09);

    --border-dark:
        rgba(255, 255, 255, 0.12);


    /* Text */

    --text-primary: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #cbd5e1;


    /* Typography */

    --font-display:
        "Playfair Display",
        Georgia,
        serif;

    --font-body:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;


    /* Layout */

    --container:
        1280px;

    --container-reading:
        760px;

    --gutter:
        clamp(20px, 4vw, 48px);


    /* Radius */

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;


    /* Shadows */

    --shadow-sm:
        0 5px 20px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 15px 40px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 30px 70px rgba(15, 23, 42, 0.12);


    /* Animation */

    --ease:
        cubic-bezier(.22, 1, .36, 1);

    --transition:
        300ms var(--ease);
}


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;

    color: var(--text-body);
    background: var(--surface);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.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;
}

.skip-link {
    position: fixed;

    top: 10px;
    left: 10px;

    z-index: 99999;

    padding: 12px 18px;

    color: white;
    background: var(--blue-600);

    border-radius: var(--radius-sm);

    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}


/* ==========================================================
   LAYOUT
========================================================== */

.site-container {
    width: min(calc(100% - (var(--gutter) * 2)),
            var(--container));

    margin-inline: auto;
}

.reading-container {
    width: min(calc(100% - (var(--gutter) * 2)),
            var(--container-reading));

    margin-inline: auto;
}


/* ==========================================================
   TYPOGRAPHY
========================================================== */

.display-heading {
    font-family: var(--font-display);

    font-size:
        clamp(2.8rem, 6vw, 6rem);

    line-height: .98;
    letter-spacing: -.045em;

    color: var(--navy-900);
}

.section-heading {
    font-family: var(--font-display);

    font-size:
        clamp(2.2rem, 4vw, 4rem);

    line-height: 1.05;
    letter-spacing: -.035em;

    color: var(--navy-900);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    font-size: .73rem;
    font-weight: 700;

    letter-spacing: .15em;
    text-transform: uppercase;

    color: var(--blue-600);
}

.section-eyebrow::before {
    content: "";

    width: 26px;
    height: 1px;

    background: currentColor;
}

.section-eyebrow-light {
    color: var(--amber-500);
    
}


/* ==========================================================
   GLOBAL BUTTON
========================================================== */

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 52px;

    padding: 0 24px;

    color: white;
    background: var(--blue-600);

    border-radius: var(--radius-sm);

    font-weight: 600;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.button-primary:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(37, 99, 235, .25);
}


/* ==========================================================
   SCROLL REVEALS
========================================================== */

.reveal-on-scroll,
.reveal-left,
.reveal-right {

    opacity: 0;

    transition:
        opacity 800ms var(--ease),
        transform 800ms var(--ease);
}

.reveal-on-scroll {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-35px);
}

.reveal-right {
    transform: translateX(35px);
}

.reveal-on-scroll.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 767px) {

    :root {
        --gutter: 20px;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

}