@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@1,600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.2/src/regular/style.css');

:root {
    --bg: #11120f;
    --panel: #181915;
    --cream: #f1eadc;
    --muted: #aaa99e;
    --line: #34352e;
    --lime: #c8ff3d;
    --sans: "DM Sans", Arial, sans-serif;
    --serif: "Playfair Display", Georgia, serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55
}

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

button, input, textarea {
    font: inherit
}

img {
    max-width: 100%;
    display: block
}

.site-header, .site-footer, .admin-header {
    max-width: 1440px;
    margin: auto;
    padding: 26px 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em
}

.brand > span:last-child span {
    color: var(--lime)
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--lime);
    color: var(--lime);
    font-family: var(--serif);
    font-size: 21px;
    font-style: italic
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14px
}

.site-nav a:hover, .footer-meta a:hover {
    color: var(--lime)
}

.nav-cta {
    border: 1px solid var(--line);
    padding: 12px 18px
}

.menu-button {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--cream);
    padding: 8px 12px
}

.hero {
    min-height: 720px;
    max-width: 1440px;
    margin: auto;
    padding: 86px 4vw 52px;
    display: grid;
    grid-template-columns:1fr 340px;
    grid-template-rows:auto 1fr auto;
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px
}

.hero-kicker {
    grid-column: 1/-1;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: 11px
}

.hero-kicker span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--lime);
    border-radius: 50%;
    margin-right: 10px
}

.hero h1 {
    align-self: center;
    margin: 30px 0 70px;
    font-size: clamp(74px, 11vw, 168px);
    line-height: .78;
    letter-spacing: -.065em;
    font-weight: 500
}

.hero h1 em {
    font-family: var(--serif);
    color: var(--lime);
    font-weight: 600
}

.hero-aside {
    align-self: center;
    margin-top: 80px;
    color: #cbc8bc;
    font-size: 18px
}

.text-link {
    display: inline-flex;
    gap: 50px;
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cream);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.hero-index {
    grid-column: 1/-1;
    color: #68695f;
    font-size: 11px;
    letter-spacing: .2em
}

.work-section, .about-section, .project-detail {
    max-width: 1440px;
    margin: auto;
    padding: 120px 4vw
}

.section-heading {
    display: grid;
    grid-template-columns:1fr 2fr;
    margin-bottom: 70px
}

.section-heading > p, .about-section > p, .section-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.section-heading h2, .about-grid h2 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -.04em;
    margin: 0;
    font-weight: 500
}

.project-card {
    --accent: var(--lime);
    display: grid;
    grid-template-columns:60px 150px 1fr 70px;
    align-items: center;
    gap: 34px;
    min-height: 240px;
    border-top: 1px solid var(--line);
    position: relative;
    transition: background .25s, transform .25s
}

.project-card:last-child {
    border-bottom: 1px solid var(--line)
}

.project-card:hover {
    background: #171814;
    transform: translateX(6px)
}

.project-number {
    align-self: start;
    padding-top: 28px;
    color: #75766b;
    font-size: 12px
}

.project-logo {
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: color-mix(in srgb, var(--accent) 13%, #1c1d19);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, #333);
    overflow: hidden
}

.project-logo span {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 48px
}

.project-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    border-radius: 12px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent, var(--lime));
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.project-copy h3 {
    margin: 0 0 12px;
    font-size: 42px;
    letter-spacing: -.04em
}

.project-copy > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted)
}

.project-arrow {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 23px;
    transition: .2s
}

.project-card:hover .project-arrow {
    background: var(--accent);
    color: #111;
    border-color: var(--accent)
}

.about-section {
    border-top: 1px solid var(--line)
}

blockquote {
    max-width: 1050px;
    margin: 80px 0 110px;
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 80px);
    font-style: italic;
    line-height: 1.12;
    letter-spacing: -.035em
}

.about-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 9vw;
    align-items: end
}

.about-grid p {
    color: var(--muted);
    font-size: 20px;
    max-width: 570px
}

.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    padding-top: 55px;
    padding-bottom: 55px;
    color: var(--muted)
}

.site-footer p {
    margin: 12px 0 0
}

.compact {
    color: var(--cream)
}

.footer-meta {
    display: flex;
    gap: 28px;
    font-size: 13px
}

.project-detail {
    --accent: var(--lime);
    padding-top: 60px
}

.project-hero {
    min-height: 590px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--line)
}

.back-link {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 80px
}

.project-hero-logo {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
    padding: 14px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--accent) 13%, #1c1d19);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, #333);
    overflow: hidden
}

.project-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px
}

.project-hero h1 {
    font-size: clamp(72px, 12vw, 170px);
    line-height: .85;
    letter-spacing: -.065em;
    margin: 10px 0 40px;
    color: var(--accent)
}

.project-lead {
    max-width: 780px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.3
}

.project-actions, .form-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 32px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lime);
    background: var(--lime);
    color: #111;
    padding: 14px 21px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer
}

.button.secondary {
    background: transparent;
    color: var(--cream);
    border-color: var(--line)
}

.project-body {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10vw;
    padding: 100px 0
}

.large-copy {
    font-size: 23px;
    color: #d0cdc1
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.feature-list li {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px
}


.not-found {
    min-height: 70vh;
    padding: 12vw 4vw
}

.not-found h1 {
    font-size: 7vw
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s, transform .7s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.admin-body, .login-body {
    background: #12130f
}

.admin-header {
    max-width: none
}

.admin-header > div {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 13px
}

.admin-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 28px
}

.admin-shell.narrow {
    max-width: 880px
}

.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px
}

.admin-title h1, .login-card h1 {
    font-size: 52px;
    line-height: 1;
    margin: 5px 0
}

.admin-table-wrap {
    border: 1px solid var(--line);
    overflow-x: auto
}

.admin-table {
    width: 100%;
    border-collapse: collapse
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 18px;
    border-bottom: 1px solid var(--line)
}

.admin-table th {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.admin-table td span {
    display: block;
    color: var(--muted);
    font-size: 13px
}

.admin-table .status {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 9px
}

.admin-table .status.live {
    border-color: #6ee7b7;
    color: #6ee7b7
}

.actions {
    display: flex;
    gap: 18px
}

.actions form {
    margin: 0
}

.actions button {
    padding: 0;
    background: none;
    border: 0;
    color: #ff7867;
    cursor: pointer
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px
}

.login-card {
    width: min(460px, 100%);
    border: 1px solid var(--line);
    padding: 48px
}

.login-card > .eyebrow {
    margin-top: 70px
}

.form-grid, .editor-form {
    display: grid;
    gap: 20px;
    margin-top: 35px
}

.form-grid label, .editor-form label {
    display: grid;
    gap: 8px;
    color: #c5c2b6;
    font-size: 13px
}

.form-grid input, .editor-form input, .editor-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #1b1c17;
    color: var(--cream);
    padding: 13px;
    outline: none
}

.form-grid input:focus, .editor-form input:focus, .editor-form textarea:focus {
    border-color: var(--lime)
}

.editor-form {
    border: 1px solid var(--line);
    padding: 32px
}

.form-columns {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px
}

.editor-form small {
    color: var(--muted)
}

.editor-form .checkbox {
    display: flex;
    grid-template-columns:auto 1fr;
    align-items: center
}

.editor-form .checkbox input {
    width: auto
}

.flash {
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid #6ee7b7;
    color: #6ee7b7;
    background: rgba(110, 231, 183, .06)
}

.flash.error {
    border-color: #ff7867;
    color: #ff9b8f
}

.form-actions a {
    color: var(--muted)
}

@media (max-width: 800px) {
    .site-header {
        position: relative
    }

    .menu-button {
        display: block
    }

    .site-nav {
        display: none;
        position: absolute;
        z-index: 5;
        left: 0;
        right: 0;
        top: 87px;
        padding: 24px 4vw;
        background: #171814;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch
    }

    .site-nav.open {
        display: flex
    }

    .hero {
        min-height: 650px;
        display: block;
        padding-top: 70px
    }

    .hero h1 {
        margin: 90px 0 50px
    }

    .hero-aside {
        margin: 0;
        max-width: 450px
    }

    .hero-index {
        margin-top: 80px
    }

    .section-heading, .about-grid, .project-body {
        grid-template-columns:1fr;
        gap: 40px
    }

    .section-heading > p {
        margin-bottom: 30px
    }

    .project-card {
        grid-template-columns:42px 92px 1fr;
        gap: 15px;
        padding: 25px 0
    }

    .project-logo {
        width: 80px;
        height: 80px;
        border-radius: 17px
    }

    .project-logo span {
        font-size: 34px
    }

    .project-copy h3 {
        font-size: 28px
    }

    .project-copy > p:last-child {
        font-size: 14px
    }

    .project-arrow {
        display: none
    }

    .work-section, .about-section, .project-detail {
        padding-top: 80px;
        padding-bottom: 80px
    }

    blockquote {
        margin: 60px 0 80px
    }

    .site-footer {
        align-items: flex-start;
        gap: 40px
    }

    .footer-meta {
        flex-direction: column;
        gap: 10px
    }

    .project-hero {
        min-height: 520px
    }

    .project-hero-logo {
        width: 88px;
        height: 88px;
        margin-bottom: 24px;
        padding: 11px;
        border-radius: 19px
    }

    .project-hero-logo img {
        border-radius: 9px
    }

    .back-link {
        margin-bottom: 55px
    }

    .project-actions {
        align-items: stretch;
        flex-direction: column
    }

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

    .admin-title {
        align-items: flex-start;
        gap: 20px
    }

    .admin-title h1 {
        font-size: 42px
    }

    .login-card {
        padding: 30px
    }

    .admin-table th:nth-child(3), .admin-table td:nth-child(3), .admin-table th:nth-child(4), .admin-table td:nth-child(4) {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none
    }
}


/* Phosphor icon alignment */
.menu-button,
.text-link,
.back-link,
.button,
.actions a,
.actions button {
    align-items: center;
    gap: 8px;
}

.menu-button {
    justify-content: center;
}

.text-link i,
.back-link i,
.button i,
.actions i {
    font-size: 1.15em;
}

.project-arrow i {
    font-size: 24px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}


.feature-list li > i {
    flex: 0 0 auto;
    margin-top: .24em;
    color: var(--accent);
    font-size: 20px;
}


.back-link,
.actions a,
.actions button {
    display: inline-flex;
}


@media (max-width: 800px) {
    .menu-button {
        display: inline-flex;
    }
}
