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

:root {
    color-scheme: light;

    --ink: #0a0a0a;
    --paper: #ffffff;
    --basalt: #60606b;
    --line: #dedee2;
    --soft: #f4f4f5;
    --max: 1180px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --ink: #ffffff;
        --paper: #0a0a0a;
        --basalt: #60606b;
        --line: #303038;
        --soft: #16161a;
    }
}

html[data-theme="light"] {
    color-scheme: light;

    --ink: #0a0a0a;
    --paper: #ffffff;
    --basalt: #60606b;
    --line: #dedee2;
    --soft: #f4f4f5;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --ink: #ffffff;
    --paper: #0a0a0a;
    --basalt: #60606b;
    --line: #303038;
    --soft: #16161a;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Manrope", system-ui, sans-serif;
    line-height: 1.55
}

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

.site-header,
main,
.site-footer {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto
}

.site-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -.04em
}

.brand-name {
    font-size: 17px
}

.brand-mark {
    width: 30px;
    height: 30px
}

.brand-mark svg,
.footer-mark svg {
    width: 100%;
    height: 100%;
    fill: var(--ink)
}

nav {
    display: flex;
    gap: 28px;
    color: var(--basalt);
    font-size: 13px;
    font-weight: 700
}

nav a:hover,
.footer-links a:hover {
    color: var(--ink)
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
    border-bottom: 1px solid var(--line)
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--basalt);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--ink);
    vertical-align: 1px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    max-width: 760px;
    margin-bottom: 25px;
    font-size: clamp(52px, 7vw, 94px);
    line-height: .98;
    letter-spacing: -.075em
}

h1 span {
    color: var(--basalt)
}

.hero-text {
    max-width: 600px;
    color: var(--basalt);
    font-size: 16px
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px
}

.button {
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 800;
    transition: transform .16s ease, background-color .16s ease, color .16s ease
}

.button:hover {
    transform: translateY(-2px)
}

.button-primary {
    background: var(--ink);
    color: var(--paper)
}

.button-primary:hover {
    background: var(--basalt)
}

.button-secondary {
    background: var(--paper);
    color: var(--ink)
}

.button-secondary:hover {
    background: var(--soft)
}

.hero-mark {
    width: min(340px, 70%);
    justify-self: end;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.hero-mark svg {
    width: 72%;
    height: 72%;
    fill: var(--paper)
}

.section {
    padding: 110px 0;
    border-bottom: 1px solid var(--line)
}

.section-heading {
    display: grid;
    grid-template-columns: .35fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 55px
}

.section-heading .eyebrow {
    margin-top: 9px
}

h2 {
    margin-bottom: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1;
    letter-spacing: -.065em
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink)
}

.feature {
    min-height: 270px;
    padding: 30px;
    border-right: 1px solid var(--ink)
}

.feature:last-child {
    border-right: 0
}

.feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    font-size: 19px
}

.feature h3 {
    margin-bottom: 8px;
    font-size: 20px;
    letter-spacing: -.035em
}

.feature p {
    margin: 0;
    color: var(--basalt);
    font-size: 14px
}

.project-list {
    border-top: 1px solid var(--ink)
}

.project-row {
    min-height: 120px;
    display: grid;
    grid-template-columns: 70px 1fr 120px 24px;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    transition: padding .16s ease, background-color .16s ease
}

.project-row:hover {
    padding-left: 12px;
    padding-right: 12px;
    background: var(--soft)
}

.project-index,
.project-state {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: var(--basalt)
}

.project-main h3 {
    margin-bottom: 4px;
    font-size: 19px;
    letter-spacing: -.035em
}

.project-main p {
    margin: 0;
    color: var(--basalt);
    font-size: 13px
}

.project-state {
    text-align: right
}

.project-row>i {
    font-size: 18px
}

.about {
    padding: 110px 0;
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 80px
}

.about>p {
    max-width: 600px;
    margin: 0;
    color: var(--basalt);
    font-size: 18px;
    line-height: 1.75
}

.site-footer {
    padding: 55px 0 25px
}

.footer-mark {
    width: 24px;
    height: 24px
}

.footer-brand {
    font-size: 15px
}

.site-footer>div:first-child>p {
    margin: 12px 0 0 35px;
    color: var(--basalt);
    font-size: 12px
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--basalt);
    font-family: "DM Mono", monospace;
    font-size: 11px
}

.footer-bottom {
    margin-top: 70px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--basalt);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em
}

@media(max-width:760px) {

    .site-header,
    main,
    .site-footer {
        width: min(100% - 30px, var(--max))
    }

    .site-header {
        min-height: 68px
    }

    nav {
        gap: 14px;
        font-size: 11px
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
        grid-template-columns: 1fr;
        gap: 55px
    }

    .hero-mark {
        width: 210px;
        justify-self: start
    }

    .section {
        padding: 80px 0
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 35px
    }

    .feature-grid {
        grid-template-columns: 1fr
    }

    .feature {
        min-height: 0;
        padding: 25px;
        border-right: 0;
        border-bottom: 1px solid var(--ink)
    }

    .feature:last-child {
        border-bottom: 0
    }

    .feature-icon {
        margin-bottom: 30px
    }

    .project-row {
        grid-template-columns: 42px 1fr 22px;
        gap: 12px;
        padding: 18px 0
    }

    .project-state {
        display: none
    }

    .about {
        padding: 80px 0;
        grid-template-columns: 1fr;
        gap: 35px
    }

    .about>p {
        font-size: 16px
    }

    .footer-bottom {
        margin-top: 50px;
        gap: 15px
    }
}

.footer-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
}

.theme-switcher button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--basalt);

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    font-family: "DM Mono", monospace;
    font-size: 10px;
    line-height: 1;

    cursor: pointer;
    transition:
        background-color .15s ease,
        color .15s ease;
}

.theme-switcher button:hover {
    color: var(--ink);
    background: var(--soft);
}

.theme-switcher button.active {
    background: var(--ink);
    color: var(--paper);
}

.theme-switcher button i {
    font-size: 13px;
}