:root {
    --bg: #f4efe3;
    --paper: #fffdf7;
    --ink: #1c2118;
    --muted: #5c6154;
    --line: #d7d0bb;
    --sidebar: #2a3326;
    --sidebar-ink: #e8e2d2;
    --sidebar-dim: #b7b19f;
    --gold: #d4a017;
    --link: #3d5c2e;
    --code-bg: #1e241c;
    --code-ink: #e7efd8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 "Segoe UI", "PT Sans", sans-serif;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: #2a421f;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-ink);
    padding: 20px 16px 32px;
    border-right: 1px solid #1b2118;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}

.brand {
    display: block;
    color: #f3e6b3;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.brand-note {
    margin: 6px 0 16px;
    color: var(--sidebar-dim);
    font-size: 12px;
    line-height: 1.4;
}

.search input {
    width: 100%;
    border: 1px solid #4a5543;
    background: #1f261c;
    color: var(--sidebar-ink);
    padding: 8px 10px;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 14px;
    margin: 14px 0 18px;
    font-size: 14px;
}

.nav-links a {
    color: #f3e6b3;
}

.tree-host {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 8px;
}

.tree-object {
    margin: 0 0 4px;
}

.tree-object summary {
    list-style: none;
    cursor: pointer;
    padding: 4px 0;
}

.tree-object summary::-webkit-details-marker {
    display: none;
}

.tree-object summary a {
    color: var(--sidebar-ink);
    text-decoration: none;
    font-weight: 600;
}

.tree-object ul {
    margin: 0 0 8px 8px;
    padding: 0 0 0 8px;
    border-left: 1px solid #4a5543;
    list-style: none;
}

.tree-object li a {
    display: flex;
    gap: 8px;
    align-items: baseline;
    color: #d7d1c2;
    text-decoration: none;
    padding: 3px 4px;
    font-size: 13px;
}

.tree-object li a .kind {
    flex: 0 0 62px;
    color: var(--sidebar-dim);
    font-size: 11px;
}

.tree-object a.is-current {
    background: #3d4a33;
    color: #ffe7a3;
}

.main {
    padding: 36px 48px 72px;
    max-width: 920px;
}

.page-head h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-family: Georgia, "Times New Roman", serif;
}

.kicker {
    margin: 0 0 8px;
    color: #7a5a12;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.signature,
.code {
    background: var(--code-bg);
    color: var(--code-ink);
    padding: 14px 16px;
    overflow: auto;
    font: 13px/1.45 Consolas, "Cascadia Mono", monospace;
    border-left: 3px solid var(--gold);
}

.signature {
    margin-top: 16px;
}

section {
    margin-top: 32px;
}

h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-family: Georgia, "Times New Roman", serif;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.stats div {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 14px 16px;
}

.stats strong {
    display: block;
    font-size: 28px;
}

.stats span {
    color: var(--muted);
    font-size: 13px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.card h3 {
    margin: 0 0 4px;
}

.card p {
    margin: 0;
}

.muted {
    color: var(--muted);
    margin-top: 8px !important;
    font-size: 14px;
}

.members {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
}

.members th,
.members td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    font-size: 14px;
}

.members th {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.recipe-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.recipe-list p {
    margin: 4px 0 0;
    color: var(--muted);
}

.callout {
    background: #fff6d8;
    border: 1px solid #e4c86a;
    padding: 8px 16px 16px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.prose p {
    margin: 0 0 12px;
}

@media (max-width: 860px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        max-height: none;
    }

    .main {
        padding: 24px 18px 48px;
    }

    .cards,
    .stats {
        grid-template-columns: 1fr;
    }
}
