:root {
    --paper: #f4f6f7;
    --paper-2: #e4eaed;
    --ink: #0d1418;
    --muted: #65737b;
    --line: rgba(13, 20, 24, 0.14);
    --line-strong: rgba(13, 20, 24, 0.28);
    --panel: rgba(255, 255, 255, 0.64);
    --panel-solid: #f9fbfc;
    --charcoal: #151b20;
    --shadow: 0 22px 60px rgba(17, 24, 29, 0.12);
    --radius: 8px;
    --max: 1180px;
    --teal-text: var(--ink);
    --softer-teal: #50616a;
    --link-color: var(--ink);
    --accent-glow: rgba(255, 255, 255, 0.7);
    --panel-border: var(--line);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --calc-accent: var(--ink);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper-2);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(13, 20, 24, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 20, 24, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #f9fbfc 0%, #d9e1e5 100%);
    background-size: 36px 36px, 36px 36px, auto;
    font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 32%, rgba(255, 255, 255, 0.34));
}

a {
    color: inherit;
    text-decoration-color: rgba(13, 20, 24, 0.28);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-color: rgba(13, 20, 24, 0.8);
}

img {
    max-width: 100%;
}

main {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.05rem 1.2rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
        linear-gradient(110deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 24%, transparent 34%),
        linear-gradient(180deg, #22282e 0%, #080b0e 48%, #161b20 100%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(1.05);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.85rem;
    color: #f8fafb;
    text-decoration: none;
}

.brand-mark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-subtitle {
    display: block;
    max-width: 58ch;
    color: rgba(248, 250, 251, 0.72);
    font-size: 0.9rem;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(248, 250, 251, 0.76);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label,
main h2,
main h3 {
    font-family: "Orbitron", system-ui, sans-serif;
    letter-spacing: 0.05em;
}

.button,
.cta-button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary,
.cta-button {
    background: #fff;
    color: var(--ink);
}

.card,
.contribute-card,
.request-card,
.request-form-card,
.review-card,
.discussion-card,
.project-embed-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.card-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    padding: 1.1rem;
}

.card .title,
.project-title,
.review-author,
.discussion-title,
.form-title {
    font-weight: 900;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    font: inherit;
}

input,
select {
    min-height: 42px;
    padding: 0 0.75rem;
}

textarea {
    min-height: 130px;
    padding: 0.75rem;
    resize: vertical;
}

label {
    display: block;
    margin: 0.9rem 0 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: min(calc(100% - 2rem), var(--max));
    margin: 4rem auto 1rem;
    padding: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

footer h4 {
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 0.88rem;
}

footer p,
footer ul {
    margin: 0.28rem 0;
    padding: 0;
}

footer li {
    list-style: none;
}

.footer-meta {
    align-self: end;
    text-align: right;
}

@media (max-width: 760px) {
    main {
        width: min(calc(100% - 1rem), var(--max));
    }

    .topbar {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-subtitle {
        max-width: 100%;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        text-align: left;
    }
}
