/* Base styles */ body { margin: 0; font-family: sans-serif; font-size: 1rem; line-height: 1.6; color: black; background-color: white; } main { max-width: 46rem; margin: 0 auto; padding: 0 1em; } /* Typography */ h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 600; } h1 { font-size: 1.4rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.2rem; } p { margin: 0 0 1em; } /* Links */ a { color: #047bc2; text-decoration: underline; } a:hover, a:focus, a:active { text-decoration: underline; } /* Lists */ ul { display: block; padding-left: 1em; } /* Code blocks */ code { font-family: monospace; font-size: 90%; border-radius: 4px; } pre { padding: 0.2rem 0.5rem; overflow-x: auto; font-size: 90%; background-color: #f5f5f5; } pre > code { display: block; } p > code { background: #f5f5f5; padding: 0.1em 0.3em; } /* Tables */ table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f5f5f5; font-weight: bold; } tr:nth-child(even) { background-color: #f9f9f9; } /* Blockquotes */ blockquote { font-style: italic; margin: 0 0 1.5em; padding-left: 1em; border-left: 0.2em solid #bdbdbd; } /* Post list */ .post-list { list-style-type: none; padding: 0; margin: 0; } .post-list li { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5em; } .post-list a { color: black; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; } .post-list a:hover { text-decoration: underline; } .post-date { font-size: 0.9em; color: #666; } /* Navigation */ .main-nav { padding: 1em 0; margin-bottom: 0.2em; } .main-nav ul { list-style-type: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; } .main-nav li { margin: 0 1.5em 0.5em 0; } .main-nav a { color: #047bc2; transition: color 0.3s; } .main-nav a:hover { color: #035891; } /* Responsive layout */ @media (max-width: 768px) { .main-nav { padding: 0.5em 0em; } .main-nav li { margin-right: 1em; } .post-list li { flex-direction: column; align-items: flex-start; } .post-list a { max-width: 100%; margin-bottom: 0.2em; } }