:root {
    /* Primary — muted yellow-green */
    --color-primary:        #C5CB52;
    --color-primary-light:  #D6DB7A;
    --color-primary-dark:   #9BA33D;
    --color-primary-subtle: #F0F2D0;

    /* Accent — complementary violet */
    --color-accent:         #7B6EC5;
    --color-accent-light:   #A99EDB;
    --color-accent-dark:    #5548A3;

    /* Neutrals */
    --color-bg:             #F7F8EE;
    --color-surface:        #FFFFFF;
    --color-border:         #DADBA0;

    /* Typography */
    --color-text:           #2A2C1A;
    --color-text-muted:     #666945;
    --color-text-on-primary: #2A2C1A;
    --color-text-on-accent:  #FFFFFF;

    /* States */
    --color-success:        #7AAF3E;
    --color-warning:        #D4A830;
    --color-danger:         #C25A3A;
    --color-info:           #4A8FC2;

    /* Shadows */
    --shadow:               0 2px 8px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-text-on-primary);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.9375rem);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 60px;
    background: var(--color-primary-dark);
    display: block;
    color: var(--color-primary-subtle);
    box-shadow: var(--shadow);
}

body {
    padding-top: 60px;
}

header .sleeve {
    height: 100%;
}

.title {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.25rem;
}

main, footer {
    display: block;
    padding: 0;
}

.sleeve {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

main {
    display: flow-root;
    background: var(--color-bg);
    padding-left: 170px;
}

nav {
    position: fixed;
    top: 60px;
    left: -140px;
    bottom: 0;
    width: 170px;
    z-index: 9;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
}

nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    line-height: 1.2;
}

nav a:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
}

nav a span:first-child {
    width: 150px;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
}

nav a span:last-child {
    width: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
