/* =========================================================
   OPENDATAMATT
   Simple site framework
   ========================================================= */

:root {
    --bg: #090a0c;
    --sidebar: #0d0f12;
    --panel: #111418;

    --text: #f3f3ef;
    --muted: #8f969f;
    --line: #292e35;

    --blue: #246bfe;
    --teal: #00a6a6;
    --orange: #ff6b21;

    --sidebar-width: 250px;

    --max-width: 920px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}


/* SITE */

.site {
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    width: var(--sidebar-width);

    padding: 32px 28px;

    background: var(--sidebar);
    border-right: 1px solid var(--line);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    z-index: 50;
}

.brand {
    display: inline-block;

    font-size: 24px;
    line-height: 1;

    font-weight: 900;
    letter-spacing: -0.05em;
}

.brand span {
    color: var(--orange);
}

.identity {
    margin-top: 42px;
}

.identity strong {
    display: block;
    font-size: 15px;
}

.identity p {
    margin: 7px 0 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}

.identity small {
    display: block;

    margin-top: 12px;

    color: var(--muted);

    font-family: monospace;
    font-size: 10px;

    letter-spacing: .12em;
    text-transform: uppercase;
}


/* NAV */

.nav {
    margin-top: 46px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.nav a {
    padding: 8px 0;

    color: var(--muted);

    font-size: 14px;

    transition: color .15s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a.active::before {
    content: "—";

    color: var(--blue);

    margin-right: 8px;
}

.sidebar-bottom a {
    color: var(--blue);

    font-size: 14px;
    font-weight: 700;
}


/* CONTENT */

.content {
    margin-left: var(--sidebar-width);

    width: calc(100% - var(--sidebar-width));

    padding:
        70px
        clamp(40px, 7vw, 110px)
        40px;
}

.content > section,
.footer {
    width: 100%;
    max-width: var(--max-width);
}


/* TYPOGRAPHY */

.eyebrow {
    margin: 0;

    color: var(--muted);

    font-family: monospace;
    font-size: 11px;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
    margin: 20px 0 0;

    font-size: clamp(64px, 8vw, 108px);
    line-height: .82;

    letter-spacing: -.065em;
    text-transform: uppercase;
}

.roles {
    margin-top: 30px;

    font-size: clamp(18px, 2vw, 25px);
    font-weight: 700;
}

.roles span:nth-of-type(1) {
    color: var(--orange);
}

.roles span:nth-of-type(2) {
    color: var(--teal);
}

.intro {
    max-width: 650px;

    margin: 28px 0 0;

    color: var(--muted);

    font-size: 20px;
    line-height: 1.6;
}

h2 {
    margin: 12px 0;

    font-size: 25px;
    line-height: 1.15;

    letter-spacing: -.03em;
}


/* SECTIONS */

.hero {
    padding-bottom: 75px;
}

.page-heading {
    padding-bottom: 65px;
}

.section {
    padding: 55px 0;

    border-top: 1px solid var(--line);
}

.section > p:not(.eyebrow) {
    max-width: 650px;

    color: var(--muted);
}


/* LINK LIST */

.links {
    margin-top: 25px;

    border-top: 1px solid var(--line);
}

.links > a {
    padding: 23px 0;

    border-bottom: 1px solid var(--line);

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}

.links strong {
    display: block;

    font-size: 18px;
}

.links p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 14px;
}

.links > a > span {
    color: var(--teal);

    transition: transform .15s ease;
}

.links > a:hover > span {
    transform: translateX(4px);
}


/* SIMPLE GRID */

.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 45px;
}

.simple-grid p:not(.eyebrow) {
    color: var(--muted);

    font-size: 14px;
}


/* BUTTON */

.button {
    display: inline-block;

    padding: 12px 17px;

    background: var(--blue);

    font-size: 14px;
    font-weight: 700;
}


/* FOOTER */

.footer {
    margin-top: 40px;

    padding-top: 25px;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-family: monospace;
    font-size: 10px;

    letter-spacing: .08em;
    text-transform: uppercase;

    display: flex;
    justify-content: space-between;

    gap: 30px;
}


/* MOBILE */

.mobile-header,
.sidebar-mobile-top,
.menu-overlay {
    display: none;
}


@media (max-width: 900px) {

    .mobile-header {
        height: 62px;

        padding: 0 20px;

        background: var(--bg);
        border-bottom: 1px solid var(--line);

        display: flex;
        align-items: center;
        justify-content: space-between;

        position: sticky;
        top: 0;

        z-index: 40;
    }

    .mobile-header .brand {
        font-size: 19px;
    }

    .menu-button,
    .close-button {
        padding: 6px 10px;

        background: transparent;
        border: 1px solid var(--line);

        cursor: pointer;
    }

    .sidebar {
        width: min(84vw, 330px);

        padding: 25px;

        transform: translateX(-100%);

        transition: transform .2s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .desktop-brand {
        display: none;
    }

    .sidebar-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;

        background: rgba(0,0,0,.65);

        z-index: 45;
    }

    .menu-overlay.open {
        display: block;
    }

    .content {
        width: 100%;

        margin-left: 0;

        padding:
            50px
            22px
            30px;
    }

    .hero h1,
    .page-heading h1 {
        font-size: clamp(58px, 17vw, 86px);
    }

    .hero {
        padding-bottom: 55px;
    }

    .simple-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer {
        flex-direction: column;

        gap: 6px;
    }

}
