/* Tanqueray Heights — hand-written, no framework, no CDN.
 *
 * Tokens are defined once on :root and overridden for dark mode. The status tokens
 * (--ok/--warn/--down) are unused today: they are the contract the future dashboard
 * status dots will consume. Renaming them later touches every panel, so they are
 * named now. */

:root {
    --bg: #faf9f7;
    --surface: #ffffff;
    --fg: #1c1b19;
    --muted: #6b6660;
    --border: #e3ded7;
    --accent: #2f6f4f;

    --ok: #2f8f4f;
    --warn: #b8860b;
    --down: #b03a2e;

    --radius: 10px;
    --gap: 1rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16151a;
        --surface: #1e1d24;
        --fg: #ece9e4;
        --muted: #9a948c;
        --border: #302e38;
        --accent: #6cc39a;

        --ok: #5fbf87;
        --warn: #d8a93a;
        --down: #e0705f;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
}

.brand {
    color: var(--fg);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.content {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

h1 { font-size: 1.5rem; margin: 0 0 0.35rem; }
h2 { font-size: 1.05rem; margin: 1.75rem 0 0.6rem; }
.muted { color: var(--muted); }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Card grid. auto-fit + minmax collapses to a single column on a phone with no media
 * query, and each card has room for a status line beneath the blurb. */
.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
}

.card-link:hover,
.card-link:focus-visible {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.card-icon { font-size: 1.9rem; line-height: 1; }
.card-body { display: flex; flex-direction: column; }
.card-name { font-weight: 650; }
.card-blurb { color: var(--muted); font-size: 0.9rem; }

.person { margin-bottom: 0.5rem; }
.key { margin: 0 0 0.9rem; }
.key-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }

/* user-select:all means one click selects the entire key. Replaces the old
 * <textarea readonly>, which was a fixed-height scrolling box that was awkward to
 * copy from. */
.key-value {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    user-select: all;
}

a { color: var(--accent); }
