:root {
    --fg: #1c2430;
    --muted: #5b6775;
    --accent: #b4552d;
    --border: #d7dde4;
    --bg: #f7f8fa;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--fg);
    background: var(--bg);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.site-header .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.site-header nav { display: flex; gap: 1rem; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; }

main { max-width: 44rem; margin: 2.5rem auto; padding: 0 1.25rem; }

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.stack { display: flex; flex-direction: column; gap: 0.6rem; }

button, .button {
    font: inherit;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: var(--fg);
}

button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.link-button { border: none; background: none; padding: 0; color: var(--muted); cursor: pointer; }
.inline-form { display: inline; }

input[type="text"], input[type="email"], input[type="number"], select {
    font: inherit;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
}

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.muted { color: var(--muted); }
.error { color: #a33; }
code { background: #eef1f4; padding: 0.1rem 0.35rem; border-radius: 4px; word-break: break-all; }
