/* Flat, shadcn-style theme. light-dark() picks each colour from the system
   theme, so there's no separate dark stylesheet. See docs/ui-style.md. */
:root {
    color-scheme: light dark;
    --bg: light-dark(#ffffff, #09090b);
    --fg: light-dark(#09090b, #fafafa);
    --muted: light-dark(#71717a, #a1a1aa);
    --hover: light-dark(#f4f4f5, #27272a);
    --border: light-dark(#e4e4e7, #27272a);
    --docker: light-dark(#1d6ce8, #4f94ff);
    --erlang: light-dark(#c1103f, #f0386b);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --display: "Space Grotesk", "Geist", sans-serif;
}

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

body {
    max-width: 992px;
    margin: 0 auto;
    padding: 0 16px;
    background: var(--bg);
    color: var(--fg);
    font: 14px/1.55 "Geist", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

code,
.mono {
    font-family: "Geist Mono", ui-monospace, monospace;
}

h1,
h2,
.brand,
.value {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.muted,
.label,
dt,
.hint,
footer {
    color: var(--muted);
}

/* Header and footer */

header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

header {
    height: 72px;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

footer {
    padding: 16px 0 28px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

footer a {
    color: var(--fg);
    font-weight: 500;
}

/* Buttons, badges, dots */

.button {
    display: inline-flex;
    height: 32px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    font-weight: 500;
}

.button:hover {
    background: var(--hover);
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--fg);
    font-size: 12px;
    font-weight: 500;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
}

.dot.docker {
    background: var(--docker);
}

.dot.erlang {
    background: var(--erlang);
}

/* Page */

main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0 56px;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
}

h1 {
    max-width: 620px;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.15;
}

h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

.label {
    font-size: 13px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stat {
    padding: 20px;
}

.value {
    margin: 4px 0;
    font-size: 26px;
}

/* Label and value rows, used by the cluster and detail cards */

dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border);
}

dl > div:last-child {
    border-bottom: 0;
}

dt .mono {
    color: var(--fg);
}

dd {
    overflow-wrap: anywhere;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    text-align: right;
}

.hint {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}
