:root {
    --bg-color: #f6f6f6;
    --text-color: #202122;
    --link-color: #0645ad;
    --link-visited: #0b0080;
    --border-color: #a2a9b1;
    --font-family: sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

#container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

h1 a {
    color: var(--text-color);
    text-decoration: none;
    font-family: serif;
    font-size: 1.8em;
}

#search-bar input {
    padding: 5px 8px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

#search-bar button {
    padding: 5px 12px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

a {
    color: var(--link-color);
    text-decoration: none;
}
a:hover { text-decoration: underline; }
a:visited { color: var(--link-visited); }

a.missing-link {
    color: #cc2200; /* Red links for words we don't have yet */
}

a.scanning {
    color: #888;
    text-decoration: underline dotted #ccc;
    animation: flicker 0.3s infinite alternate;
}

@keyframes flicker {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

h2 {
    font-family: serif;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 5px;
    font-size: 2em;
    font-weight: normal;
    margin-top: 0;
}

p {
    margin-bottom: 15px;
}

footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-size: 0.85em;
    color: #54595d;
    text-align: center;
}