
:root {
    --bg: #111b15;
    --panel: #19251d;
    --green: #c8e5a8;
    --green-soft: #9bb887;
    --cream: #f0ecdf;
    --muted: #8d9b8e;
    --line: rgba(226, 237, 219, 0.17);

    --mono: "DM Mono", monospace;
    --sans: "DM Sans", sans-serif;
    --serif: "Playfair Display", serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--cream);
    font-family: var(--sans);
    overflow-x: hidden;
}

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

button,
input {
    font: inherit;
}

/* NAVIGATION */

.navbar {
    position: relative;
    z-index: 5;
    min-height: 76px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

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

.nav-center,
.nav-link {
    font: 10px var(--mono);
    letter-spacing: 1.3px;
}

.nav-center {
    color: var(--muted);
    text-align: center;
}

.nav-center span,
.nav-link span {
    color: var(--green);
}

.nav-link {
    flex-shrink: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--green-soft);
    transition: color 0.2s;
}

.nav-link span {
    margin-left: 7px;
}

.nav-link:hover {
    color: var(--green);
}

/* BACK BUTTON */

.page-back {
    width: min(1400px, 88%);
    margin: 0 auto;
    padding-top: 22px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.back-button:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--bg);
    transform: translateX(-3px);
}

.back-button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

/* INTRO */

.intro {
    position: relative;
    min-height: 700px;
    padding: 50px 10% 65px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 83% 40%, rgba(114, 149, 93, 0.12), transparent 38%),
        linear-gradient(120deg, #111b15, #142019 65%, #101912);
}

.intro-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.eyebrow,
.live-mark,
.intro-bottom .discover-link,
.category-label,
.category,
.micro-label,
.skill-note,
.person-index,
.person-identity p,
.exchange-middle,
.propose-btn,
.list-footer,
.manifesto > a,
.footer > span {
    font-family: var(--mono);
}

.eyebrow {
    color: var(--green-soft);
    font-size: 10px;
    letter-spacing: 1.8px;
}

.live-mark {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.live-mark i,
.mini-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(200, 229, 168, 0.5);
}

.intro h1 {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin-top: 64px;
    font-family: var(--serif);
    font-size: clamp(66px, 9.5vw, 132px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -5px;
}

.intro h1 span {
    display: block;
}

.intro h1 .line-two {
    padding-left: 9%;
    color: var(--green);
    font-style: italic;
}

.intro h1 .line-three {
    padding-left: 24%;
}

.intro h1 .line-four {
    padding-left: 34%;
}

.intro h1 em {
    color: var(--green);
    font-weight: 500;
}

.intro-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    max-width: 860px;
    margin-top: 52px;
}

.intro-bottom p {
    max-width: 300px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.discover-link {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--green);
    font-size: 10px;
    letter-spacing: 1.4px;
    white-space: nowrap;
    transition: color 0.2s, gap 0.2s;
}

.discover-link span {
    color: var(--green);
    font-size: 19px;
}

.discover-link:hover {
    gap: 38px;
    color: var(--green);
}

.giant-mark {
    position: absolute;
    top: 34%;
    right: 7%;
    color: rgba(200, 229, 168, 0.035);
    font-family: var(--serif);
    font-size: clamp(120px, 22vw, 300px);
    transform: rotate(-15deg);
    pointer-events: none;
}

/* DISCOVERY */

.discovery {
    width: min(1400px, 88%);
    margin: auto;
    padding: 100px 0 85px;
}

.discovery-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 50px;
}

.discovery-heading h2 {
    margin-top: 17px;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 500;
    letter-spacing: -1.7px;
}

.discovery-heading h2 em {
    color: var(--green);
    font-weight: 500;
}

.discovery-heading > p {
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

/* SEARCH */

.search-strip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding: 0 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: border-color 0.25s;
}

.search-strip:focus-within {
    border-color: var(--green-soft);
}

.search-symbol {
    color: var(--green);
    font-size: 36px;
    font-weight: 300;
}

.search-strip input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--cream);
    font-family: var(--serif);
    font-size: clamp(18px, 3vw, 28px);
}

.search-strip input::placeholder {
    color: #657468;
}

.search-strip input:focus-visible {
    outline: none;
}

.search-hint {
    color: var(--muted);
    font: 9px var(--mono);
    letter-spacing: 1px;
    white-space: nowrap;
}

.clear-search {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(226, 237, 219, 0.18);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: 20px/1 var(--sans);
    transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.clear-search:hover {
    border-color: var(--green);
    background: rgba(200, 229, 168, 0.12);
    color: var(--green);
    transform: rotate(90deg);
}

.clear-search:focus-visible {
    outline: 1px solid var(--green);
    outline-offset: 3px;
}

.clear-search[hidden] {
    display: none !important;
}

/* CATEGORIES */

.category-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 25px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.category-label {
    margin-right: 10px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.category {
    position: relative;
    padding: 7px 0;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.category sup {
    margin-left: 3px;
    color: var(--green);
    font-size: 8px;
}

.category::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    content: "";
    transition: width 0.25s;
}

.category:hover,
.category.active {
    color: var(--green);
}

.category:hover::after,
.category.active::after {
    width: 100%;
}

/* PEOPLE */

.people-list {
    width: 100%;
}

.person-row {
    display: grid;
    grid-template-columns: 80px minmax(210px, 1fr) minmax(360px, 1.35fr) 112px;
    align-items: center;
    gap: 28px;
    min-height: 225px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    animation: appear 0.7s ease both;
    transition: background 0.3s, padding 0.3s;
}

.person-row:nth-child(2) {
    animation-delay: 0.12s;
}

.person-row:nth-child(3) {
    animation-delay: 0.24s;
}

.person-row:hover {
    padding-right: 12px;
    padding-left: 12px;
    background: linear-gradient(90deg, transparent, rgba(200, 229, 168, 0.045), transparent);
}

.person-index {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    align-items: flex-start;
    color: var(--green);
    font-size: 11px;
    letter-spacing: 1px;
}

.index-line {
    flex: 1;
    width: 1px;
    min-height: 40px;
    margin: 14px 0;
    background: linear-gradient(var(--green-soft), transparent);
    opacity: 0.55;
}

.mini-status {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.mini-status i {
    width: 5px;
    height: 5px;
    margin-right: 4px;
}

.person-identity {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.avatar {
    display: grid;
    flex: 0 0 66px;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: #17231a;
    font: 32px var(--serif);
    transition: transform 0.35s;
}

.person-row:hover .avatar {
    transform: rotate(-8deg) scale(1.05);
}

.avatar-r {
    background: linear-gradient(135deg, #d8c49c, #8d9d79);
}

.avatar-p {
    background: linear-gradient(135deg, #e5b9a3, #a1bba0);
}

.avatar-a {
    background: linear-gradient(135deg, #b8c8d8, #829c83);
}

.person-identity h3 {
    font-family: var(--serif);
    font-size: clamp(21px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.person-identity h3 em {
    color: var(--green);
    font-weight: 500;
}

.person-identity p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.8;
    letter-spacing: 0.65px;
}

.person-identity p span {
    margin: 0 3px;
    color: var(--green);
}

/* EXCHANGE */

.exchange {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.exchange-side {
    min-width: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(200, 229, 168, 0.6);
}

.exchange-side.wants {
    border-color: rgba(240, 236, 223, 0.35);
}

.micro-label {
    display: block;
    margin-bottom: 12px;
    color: var(--green-soft);
    font-size: 8px;
    letter-spacing: 0.8px;
}

.wants .micro-label {
    color: #b4b6a6;
}

.skill-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.skill-note {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.exchange-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--green);
}

.exchange-glyph {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(200, 229, 168, 0.35);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 22px;
    transition: background 0.3s, transform 0.3s;
}

.person-row:hover .exchange-glyph {
    background: rgba(200, 229, 168, 0.12);
    transform: rotate(180deg);
}

.exchange-middle > span:last-child {
    font-size: 7px;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.person-action {
    display: flex;
    justify-content: flex-end;
}

.propose-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 108px;
    padding: 13px 11px;
    border: 1px solid var(--green);
    background: var(--green);
    color: var(--bg);
    cursor: pointer;
    font-size: 9px;
    letter-spacing: 0.6px;
    transition: background 0.25s, color 0.25s;
}

.propose-btn b {
    font: 17px var(--sans);
}

.propose-btn:hover {
    background: transparent;
    color: var(--green);
}

.propose-btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.list-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

/* EMPTY STATE */

#emptyState {
    padding: 48px 20px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

#emptyState[hidden] {
    display: none !important;
}

.empty-state-title {
    color: var(--cream);
    font: 26px var(--serif);
}

.empty-state-text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.person-row[hidden] {
    display: none !important;
}

/* MANIFESTO */

.manifesto {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 80px 10%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 85% 50%, rgba(144, 179, 120, 0.15), transparent 45%),
        #17251c;
}

.manifesto > p {
    position: relative;
    z-index: 1;
    margin: 30px 0;
    font: 500 clamp(37px, 6vw, 72px)/1.15 var(--serif);
    letter-spacing: -1.5px;
}

.manifesto > p em {
    color: var(--green);
}

.manifesto > a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--green);
    font-size: 10px;
    letter-spacing: 1px;
}

.manifesto > a span {
    color: var(--green);
    font-size: 17px;
}

.manifesto-symbol {
    position: absolute;
    right: 9%;
    bottom: -90px;
    color: rgba(200, 229, 168, 0.045);
    font-size: clamp(200px, 34vw, 440px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -30px;
    pointer-events: none;
}

/* FOOTER */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 100px;
    padding: 25px 7%;
}

.footer .brand {
    font-size: 21px;
}

.footer p {
    color: var(--muted);
    font-size: 12px;
}

.footer > span {
    color: var(--green-soft);
    font-size: 9px;
    letter-spacing: 1px;
}

/* ANIMATION */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */

@media (max-width: 1100px) {
    .intro {
        min-height: 640px;
        padding-right: 7%;
        padding-left: 7%;
    }

    .person-row {
        grid-template-columns: 48px minmax(170px, 0.9fr) minmax(300px, 1.4fr);
        gap: 20px;
    }

    .person-action {
        grid-column: 2 / -1;
        justify-content: flex-end;
        margin-top: -8px;
    }

    .propose-btn {
        width: 150px;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .navbar {
        min-height: 68px;
        padding: 0 6%;
        gap: 12px;
    }

    .brand {
        font-size: 22px;
    }

    .nav-center {
        display: none;
    }

    .nav-link {
        font-size: 9px;
    }

    .page-back {
        width: 88%;
        padding-top: 17px;
    }

    .intro {
        min-height: auto;
        padding: 35px 6% 55px;
    }

    .intro-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .intro h1 {
        margin-top: 60px;
        font-size: clamp(55px, 12vw, 82px);
        line-height: 1;
        letter-spacing: -3px;
    }

    .intro h1 .line-two {
        padding-left: 4%;
    }

    .intro h1 .line-three {
        padding-left: 9%;
    }

    .intro h1 .line-four {
        padding-left: 15%;
    }

    .intro-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        margin-top: 35px;
    }

    .intro-bottom p {
        max-width: 280px;
    }

    .giant-mark {
        top: 30%;
        right: -20px;
        font-size: 180px;
    }

    .discovery {
        width: 88%;
        padding: 65px 0;
    }

    .discovery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 35px;
    }

    .discovery-heading h2 {
        font-size: 38px;
    }

    .search-strip {
        gap: 10px;
        min-height: 65px;
        padding: 0 12px;
    }

    .search-symbol {
        font-size: 29px;
    }

    .search-strip input {
        font-size: 18px;
    }

    .search-hint {
        display: none;
    }

    .clear-search {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .category-line {
        gap: 10px 18px;
        padding: 22px 0;
    }

    .category-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .person-row {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 15px;
        padding: 26px 0;
    }

    .person-index {
        grid-row: 1 / 4;
    }

    .person-identity {
        gap: 14px;
    }

    .avatar {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .person-identity h3 {
        font-size: 25px;
    }

    .person-identity p {
        font-size: 7px;
    }

    .exchange {
        grid-column: 2;
        grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
        gap: 8px;
        margin-top: 18px;
    }

    .exchange-glyph {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .skill-name {
        font-size: 13px;
    }

    .skill-note {
        font-size: 8px;
    }

    .micro-label {
        font-size: 7px;
    }

    .exchange-middle > span:last-child {
        font-size: 6px;
    }

    .person-action {
        grid-column: 2;
        margin-top: 8px;
    }

    .propose-btn {
        width: 100%;
        max-width: 220px;
        padding: 14px;
    }

    .list-footer {
        font-size: 8px;
        line-height: 1.8;
    }

    .manifesto {
        min-height: 330px;
        padding: 65px 6%;
    }

    .manifesto > p {
        font-size: clamp(36px, 8vw, 55px);
    }

    .manifesto-symbol {
        right: 4%;
        bottom: -35px;
        font-size: 220px;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding: 27px 6%;
    }
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* DISCOVER PROFILE PHOTO */

.discover-profile-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.avatar.has-photo {
    overflow: hidden;
    padding: 0;
}