/* Custom CSS for The Flying Squirrel blog */
/* Based on the original design at flyingsquirrel.ca */

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

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700&family=Ubuntu+Mono&display=swap');

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

header h1 a:hover {
    color: #666;
}

header p {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Main content area */
main {
    margin-bottom: 40px;
}

/* Article styles */
article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

article:last-child {
    border-bottom: none;
}

article header {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

article h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

article h2 a {
    text-decoration: none;
    color: #333;
}

article h2 a:hover {
    color: #666;
}

/* Cover image styles */
.coverImage {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Meta information */
article p i {
    font-size: 0.9rem;
    color: #666;
}

/* Content typography */
article p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

article p:last-child {
    margin-bottom: 0;
}

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

a:hover {
    text-decoration: underline;
}

/* Footer navigation */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

footer nav center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.button:hover {
    background-color: #e8e8e8;
    text-decoration: none;
    color: #333;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    footer nav center {
        flex-direction: column;
        gap: 8px;
    }

    .button {
        width: 100%;
        max-width: 200px;
    }
}

/* Special styles for the main page image */
header + main img:first-child,
article img:first-child {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 16px;
}

h1 {
    margin-top: 0;
}

p + p {
    text-indent: 0;
}

/* Code and preformatted text */
code {
    background-color: #f8f8f8;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Ubuntu Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: #f8f8f8;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}

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

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #ddd;
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    font-style: italic;
}
