:root {
    --cc-ink: #202321;
    --cc-ink-soft: #343936;

    --cc-bronze: #a77d50;
    --cc-gold: #c4a16b;

    --cc-paper: #f5f5f2;
    --cc-white: #ffffff;

    --cc-muted: #8b918b;
    --cc-line: rgba(32, 35, 33, 0.13);

    --cc-font-heading: "Manrope", sans-serif;
    --cc-font-body: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--cc-font-body);
    color: var(--cc-ink);
    background: var(--cc-paper);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */

.topbar {
    min-height: 88px;
    padding: 0 clamp(22px, 6vw, 92px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--cc-line);

    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: var(--cc-paper);
    background: var(--cc-ink);

    font: 800 24px var(--cc-font-heading);
    letter-spacing: -2px;

    position: relative;
}

.brand-mark::after {
    content: "";

    position: absolute;

    width: 9px;
    height: 9px;

    border: 1px solid var(--cc-gold);

    right: -4px;
    top: -4px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    font: 800 17px var(--cc-font-heading);
    letter-spacing: 2px;
}

.brand-copy small {
    font-size: 8px;
    letter-spacing: 1.25px;
    color: var(--cc-muted);
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 27px;
}

.status-indicator {
    font-size: 9px;
    letter-spacing: 1.3px;
    font-weight: 700;
    color: #737a73;

    display: flex;
    align-items: center;
    gap: 9px;
}

.status-indicator i {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: #82977c;

    box-shadow: 0 0 0 4px rgba(130, 151, 124, .12);
}

.theme-toggle {
    border: 1px solid var(--cc-line);
    background: transparent;

    color: var(--cc-ink);

    padding: 9px 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--cc-ink);
    color: white;
}

/* DARK MODE */

body.dark-mode {
    --cc-paper: #191d1a;
    --cc-white: #242925;
    --cc-ink: #f1f1eb;
    --cc-ink-soft: #d6d8d2;
    --cc-muted: #a2a69e;
    --cc-line: rgba(255,255,255,.13);
}

body.dark-mode .brand-mark {
    background: #e9e9e2;
    color: #202321;
}

body.dark-mode .developer-modal {
    background: #242925;
    color: #f1f1eb;
}

body.dark-mode .form-control {
    background: #191d1a;
    color: white;
    border-color: #555;
}

/* FOOTER */

.gateway-footer {
    min-height: 70px;

    padding: 20px clamp(22px, 6vw, 92px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--cc-line);

    font-size: 9px;
    letter-spacing: .7px;
    color: var(--cc-muted);
}

.gateway-footer strong {
    color: var(--cc-ink);
}