/* LaTeX-inspired minimal theme */

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;0,7..72,700;1,7..72,400&display=swap');

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography - LaTeX style */
html {
    font-family: 'Literata', Georgia, 'Times New Roman', serif;
}

body {
    font-family: 'Literata', Georgia, 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.6;
    color: #222;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    background: #fefefe;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Literata', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 1rem 0;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.5rem;
}

/* Navigation */
header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #222;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #555;
}

.nav-links a:hover {
    color: #222;
    text-decoration: underline;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Home page */
.hero {
    margin-bottom: 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Home content from markdown */
.home-content {
    margin: 2rem 0 3rem 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.home-content ul {
    margin-left: 0;
    list-style: none;
}

.home-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.home-content li:before {
    content: "–";
    position: absolute;
    left: 0;
}

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

.intro {
    text-align: left;
    margin: 2rem 0;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.quick-links {
    margin: 2rem 0;
    text-align: center;
    font-size: 1rem;
}

.quick-links a {
    color: #333;
    margin: 0 0.5rem;
}

.quick-links .separator {
    color: #ccc;
    margin: 0 0.5rem;
}

/* Highlights section */
.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.column h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.item {
    margin-bottom: 1.5rem;
}

.item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
}

.item time {
    color: #888;
    font-size: 0.9rem;
}

.item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.see-all {
    display: inline-block;
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.see-all:hover {
    color: #333;
}

/* Link list for Quick Links */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-list a {
    color: #333;
    font-size: 1.05rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.link-list a:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
    text-decoration: none;
}

/* Current focus */
.current-focus {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.current-focus h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.current-focus ul {
    margin-left: 0;
    list-style: none;
}

.current-focus li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.current-focus li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #666;
}

@media (max-width: 768px) {
    .highlights {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Posts */
.post-preview {
    margin-bottom: 2.5rem;
}

.post-preview h2,
.post-preview h3 {
    margin: 0 0 0.5rem 0;
}

.post-preview time,
.post time {
    color: #666;
    font-size: 0.95rem;
}

/* Article content */
article.post header {
    margin-bottom: 2rem;
}

article.post h1 {
    margin-bottom: 0.5rem;
}

/* Code blocks */
pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre code {
    background: none;
    padding: 0;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid #333;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

/* Lists */
ul, ol {
    margin: 0 0 1.5rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 17px;
    }

    .nav-links a {
        margin-left: 1rem;
    }
}