/*******************************************************************************
*  work.mak.dev — style.css
*  
*  Styling for work.mak.dev subdomain landing page. Nocturne aesthetic.
********************************************************************************/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ──  1. Tokens  ───────────────────────────────────────────── */

:root {
    --color-bg: #161826;
    --color-surface: #232532;
    --color-text: #e9e9ed;
    --color-accent: #9184d9;
    --color-accent-2: #a7a1db;
    --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

    /* Tonal ramps */
    --color-neutral-100: #f3f5fe;
    --color-neutral-200: #e4e7f5;
    --color-neutral-300: #cfd3e5;
    --color-neutral-400: #b2b6ca;
    --color-neutral-500: #9397ab;
    --color-neutral-600: #75798c;
    --color-neutral-700: #595d6c;
    --color-neutral-800: #3f424d;
    --color-neutral-900: #292b31;

    --color-accent-100: #f5f4ff;
    --color-accent-200: #e7e5fe;
    --color-accent-300: #d2cefd;
    --color-accent-400: #b5abfc;
    --color-accent-500: #968ae0;
    --color-accent-600: #796cbf;
    --color-accent-700: #5d5294;
    --color-accent-800: #423a6a;
    --color-accent-900: #2b2741;

    --color-accent-2-100: #f5f4ff;
    --color-accent-2-200: #e7e5fe;
    --color-accent-2-300: #d2cefd;
    --color-accent-2-400: #b5afe8;
    --color-accent-2-500: #9690c9;
    --color-accent-2-600: #7972a9;
    --color-accent-2-700: #5c5783;
    --color-accent-2-800: #423e5d;
    --color-accent-2-900: #2b293a;

    /* Deep-indigo section ground - used here for the hero glow */
    --color-section: #262a60;
    --color-section-glow: #353b80;
    --color-section-ghost: #4c5397;

    --font-heading: "Inter", system-ui, sans-serif;
    --font-heading-weight: 500;
    --font-body: "Inter", system-ui, sans-serif;

    --space-1: 2.8px;
    --space-2: 5.6px;
    --space-3: 8.4px;
    --space-4: 11.2px;
    --space-6: 16.8px;
    --space-8: 22.4px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;

    --shadow-sm: 0 0 0 1px #3f424d;
    --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0,0,0,0.55);
    --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0,0,0,0.65);
}





/* ──  2. Base  ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; background: var(--color-bg); }

body {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }

a { color: var(--color-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }





/* ──  3. Design-system components  ─────────────────────────── */

.card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}





/* ──  4. Page layout  ──────────────────────────────────────── */

.wrap {
    min-height: 100vh;
    padding: 0 5vw 110px;
    color: var(--color-text);
    font-family: var(--font-body);
    background:
        radial-gradient(760px 480px at 50% -12%, var(--color-section) 0%, rgba(38, 42, 96, 0) 64%),
        var(--color-bg);
}

.shell { max-width: 760px; margin: 0 auto; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}





/* ──  5. Nav (subdomain switcher)  ─────────────────────────── */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 0 0;
    animation: rise .5s ease both;
}

.wordmark {
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--color-neutral-500);
}
a.wordmark:hover { color: var(--color-accent-300); }

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-neutral-400);
}
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--color-accent-300); }
.nav-links .is-current { color: var(--color-accent); }





/* ──  6. Hero  ─────────────────────────────────────────────── */

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(72px, 13vh, 140px) 0 0;
    animation: rise .55s .05s ease both;
}

.hero-rule {
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 26px;
    background: var(--color-accent);
}

.hero-title {
    margin: 0;
    font-size: clamp(38px, 7.4vw, 66px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: .95;
}
.hero-title .root { color: var(--color-neutral-600); }

.hero-lede {
    max-width: 44ch;
    margin: 26px 0 0;
    font-size: 17px;
    line-height: 1.62;
    color: var(--color-neutral-400);
    text-wrap: pretty;
}





/* ──  7. Item list  ────────────────────────────────────────── */

.items {
    margin-top: clamp(60px, 11vh, 104px);
    animation: rise .55s .1s ease both;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--color-neutral-500);
}

.section-note {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-neutral-500);
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.item-card {
    display: grid;
    grid-template-columns: 1fr 178px;
    gap: 28px;
    align-items: start;
    padding: 26px 28px;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.item-card:hover {
    color: inherit;   /* override the default link hover color - can remove this */
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--color-accent-700), 0 16px 40px rgba(0, 0, 0, .5);
    background:
        linear-gradient(120deg, rgba(145, 132, 217, .09), rgba(145, 132, 217, 0) 55%),
        var(--color-surface);
}

.item-text {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.item-name {
    margin: 0;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.item-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-neutral-500);
    text-wrap: pretty;
}

.item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.item-status {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-accent-400);
}
.item-status.is-live { color: var(--color-accent-200); }
.item-status.is-planned { color: var(--color-neutral-500); }

.item-path {
    font-size: 11px;
    letter-spacing: .05em;
    color: var(--color-neutral-500);
}

.list-note {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--color-neutral-600);
}





/* ──  8. Footer  ───────────────────────────────────────────── */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: clamp(64px, 11vh, 120px);
    padding-top: 24px;
    border-top: 1px solid var(--color-divider);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-neutral-500);
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--color-accent-300); }





/* ──  9. Mobile  ───────────────────────────────────────────── */

@media (max-width: 680px) {
    .wrap { padding-left: 22px; padding-right: 22px; }

    .site-nav { gap: 12px; }
    .nav-links { gap: 4px; }
    .nav-links a,
    .nav-links .is-current { padding: 14px 8px; margin: -14px 0; }

    .item-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px;
    }

    .item-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        text-align: left;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav, .hero, .items { animation: none; }
    .item-card { transition: none; }
    .item-card:hover { transform: none; }
}