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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

nav {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

main {
    max-width: 90vw;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #34495e;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
}

details summary {
    cursor: pointer;
    list-style: none;
    display: inline-block;
    color: #3498db;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "▸ ";
}

details[open] summary::before {
    content: "▾ ";
}

blockquote {
    color: #2c3e50;
    border-left: 3px solid #bbb;
    margin: 1.2rem 0;
    padding: 0.4rem 1rem;
}

.post-list {
    list-style: none;
}

.post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: #555;
}

.crossword-blurb {
    margin-bottom: 1rem;
}

.crossword-blurb summary {
    cursor: pointer;
    list-style: none;
    display: inline-block;
    color: #3498db;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.crossword-blurb summary::-webkit-details-marker {
    display: none;
}

.crossword-blurb summary::before {
    content: "Hide description ▾";
}

.crossword-blurb:not([open]) summary::before {
    content: "Show description ▸";
}

.crossword-blurb summary:hover {
    text-decoration: underline;
}

.crossword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.crossword-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.crossword-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.crossword-thumbnail {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.crossword-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}


.crossword-card.is-in-progress {
    background: #fff8ec;
}

.crossword-card.is-solved {
    background: #eaf7ef;
}

.crossword-status {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: #ecf0f1;
    color: #7f8c8d;
}

.crossword-card.is-in-progress .crossword-status {
    background: #f39c12;
    color: #fff;
}

.crossword-card.is-solved .crossword-status {
    background: #27ae60;
    color: #fff;
}

.crossword-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.crossword-size {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: #ecf0f1;
    color: #7f8c8d;
}

.crossword-size[data-size="11x11"] {
    background: #3498db;
    color: #fff;
}

.crossword-size[data-size="15x15"] {
    background: #9b59b6;
    color: #fff;
}

.crossword-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.crossword-link {
    color: #3498db;
    text-decoration: none;
}

.crossword-link:hover {
    text-decoration: underline;
}

.crossword-pdf {
    margin-left: 1rem;
    color: #7f8c8d;
}

.home-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.home-hero p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

.home-section {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.home-section:last-child {
    border-bottom: none;
}

.home-section h2 {
    margin-top: 0;
}

.home-section h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.home-section h2 a:hover {
    color: #3498db;
}

.home-link {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.home-link:hover {
    text-decoration: underline;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}
