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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #2a2231;
}

/* Navigation */
.navbar {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
}

.navbar-icon {
    height: 1.5rem;
    width: 1.5rem;
    object-fit: contain;
}

.navbar a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.navbar a:hover {
    text-decoration: underline;
}

.navbar-disabled {
    color: #888;
    font-size: 0.9rem;
    cursor: default;
}

/* Hero Section */
.hero {
    background-image: url('lightningbeam_tilt_shift_transparent.png');
    background-size: cover;
    background-position: center;
    padding: 3rem 2rem;
    min-height: 840px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 200px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, transparent, #2a2231);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    color: #e0e0e0;
    text-align: center;
}

/* Main Content */
main {
    max-width: 1800px;
    margin: 0 auto;
    margin-top: -200px;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Screenshots Grid */
.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    flex: 0 1 40%;
    min-width: 400px;
    max-width: 600px;
}

.screenshot-item img {
    width: 100%;
    height: auto;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #3a3344;
}

.screenshot-item p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
}

/* Divider */
.divider {
    margin: 3rem auto;
    max-width: 400px;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-content h1 {
    margin-bottom: 1rem;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: #c0a0e0;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.embeddable-buttondown-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.embeddable-buttondown-form label {
    display: none;
}

.embeddable-buttondown-form input[type="email"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #3a3344;
    color: #e0e0e0;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.embeddable-buttondown-form input[type="submit"] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #c0a0e0;
    color: #2a2231;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.embeddable-buttondown-form input[type="submit"]:hover {
    background-color: #d4b8f0;
}

.buttondown-credit {
    width: 100%;
    font-size: 0.75rem;
    margin-top: 0;
}

.buttondown-credit a {
    color: #888;
}

/* Blog */
.post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.post-excerpt {
    margin-bottom: 2.5rem;
}

.post-excerpt h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.2rem;
}

.post-excerpt h2 a {
    color: #fff;
    text-decoration: none;
}

.post-excerpt h2 a:hover {
    text-decoration: underline;
}

.post-excerpt .post-date {
    display: block;
    margin-bottom: 0.5rem;
}

.post-excerpt p {
    margin-bottom: 0.5rem;
    color: #c0b8cc;
}

.read-more {
    font-size: 0.9rem;
    color: #c0a0e0;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
}

.post-body a {
    color: #c0a0e0;
    text-decoration: none;
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    border-radius: 4px;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.post-body code {
    background-color: #3a3344;
    padding: 0.15em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.post-body pre {
    background-color: #3a3344;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: 0.88em;
}

.all-posts-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

/* Footer Text */
.footer-text {
    text-align: center;
    padding: 1rem;
}

.footer-text p {
    font-size: 1rem;
}

.footer-text a {
    color: #c0a0e0;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}
