* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

.content {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Typography */

h1, h2, h3, h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #1a1a1a;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Lists */

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.4rem;
}

li > ul, li > ol {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* Blockquotes */

blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

/* Horizontal rules */

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Links */

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Inline code */

code {
    background: #f6f8fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Bold */

strong {
    color: #1a1a1a;
}

/* Navigation */

nav {
    margin-bottom: 2rem;
}

nav a {
    color: #666;
    font-size: 0.9rem;
}

nav a:hover {
    color: #333;
}

/* Document list (index page) */

.doc-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.doc-list li {
    margin-bottom: 0.8rem;
}

.doc-list a {
    font-size: 1.15rem;
}

/* Prev/next document navigation */

.doc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

.doc-nav a.next {
    margin-left: auto;
}

/* Password form */

.password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.password-container form {
    text-align: center;
}

.password-container input {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    width: 250px;
}

.password-container input:focus {
    border-color: #999;
}

.password-container button {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.password-container button:hover {
    background: #555;
}

.error {
    color: #d73a49;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
