:root {
    --bg: #ffffff;
    --text: #111111;
    --accent: #555555;
    --light-grey: #f4f4f4;
    --border: #eeeeee;
    --mono: "SF Mono", "Fira Code", "Menlo", monospace;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Inter", "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    max-width: 680px;
    margin: 80px auto;
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

nav a {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Search Bar Styling */
form { margin: 0; }
input[type="text"] {
    border: 1px solid var(--border);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    background: var(--light-grey);
    outline: none;
    transition: border 0.2s;
}
input[type="text"]:focus { border-color: var(--accent); }

/* Typography */
h1, h2, h3 { 
    font-weight: 700; 
    margin-top: 2.5rem; 
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ddd; }
a:hover { text-decoration-color: var(--text); }

/* List View (The Index) */
.post-list { list-style: none; padding: 0; }
.post-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}
.post-list small {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: #999;
    min-width: 100px;
}

/* Textile Content Specifics */
blockquote {
    border-left: 3px solid var(--border);
    margin: 2rem 0;
    padding-left: 1.5rem;
    color: var(--accent);
    font-style: italic;
}

pre {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.85rem;
}

code {
    font-family: var(--mono);
    background: var(--light-grey);
    padding: 2px 4px;
    border-radius: 3px;
}

.footer {
    margin-top: 120px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.7rem;
    color: #bbb;
    text-align: center;
}
