/*
  Placeholder styling only. sbc-tools has no sbc-brand theme yet — initiative 005
  prerequisite B decides whether one is added or an existing theme is borrowed.
  When it lands, this file styles against var(--sbc-*) tokens and defines no
  colours of its own, as sbc-www's site.css does.
*/
:root {
    color-scheme: light dark;
    --ink: #1a1a1a;
    --ground: #fbfbf9;
    --rule: #d9d6cd;
    --accent: #7a4b2a;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--ground);
    line-height: 1.5;
}

.appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--rule);
}

.appbar .wordmark {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink);
}

.appbar nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.appbar .who {
    color: #6b6b6b;
}

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

main {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.tag-filter a {
    text-decoration: none;
}

.tag-filter a[aria-current="true"] {
    text-decoration: underline;
    color: var(--ink);
}

.catalogue-section {
    margin: 1.5rem 0;
}

.catalogue-section h2 {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.25rem;
}

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}

.card {
    border: 1px solid var(--rule);
    border-radius: 0.4rem;
    padding: 0.9rem;
}

.badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--accent);
}

.catalogue-empty {
    border-left: 3px solid var(--rule);
    padding-left: 0.9rem;
    color: var(--ink);
}
