:root {
    --bg: #f5f1ea;
    --fg: #2a2a2a;
    --muted: #8a8a8a;
    --accent: #4a6b8a;
    --card: #ffffff;
    --border: #e0d8c8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

body.centered {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    max-width: 28rem;
    text-align: center;
}

.muted {
    color: var(--muted);
}

code {
    background: var(--bg);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.app-header h1 {
    margin: 0;
    font-size: 1.25rem;
}

.app-header nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tab {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    color: var(--fg);
}

.tab.active {
    background: var(--bg);
    border-color: var(--border);
}

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

.panel {
    display: none;
}

.panel.active {
    display: block;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

input,
select,
textarea,
button {
    font: inherit;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--card);
}

button {
    cursor: pointer;
    background: var(--accent);
    color: white;
    border: none;
}

#lookup-form {
    flex-direction: row;
    flex-wrap: wrap;
}

#lookup-form input {
    flex: 1 1 16rem;
}

.passage {
    white-space: pre-wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
}

.notes-list {
    list-style: none;
    padding: 0;
}

.notes-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
