/* Custom style overrides */

body {
    background: linear-gradient(150deg, #fdfcfa 0%, #f4f2fc 100%);
    min-height: 100vh;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #01242e;
    }
}

/* Section headers */
h3.h-prefix {
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    margin: 2em 0 0.65em;
}

h3.h-prefix::before {
    content: "/";
    color: #a89cd8;
    font-weight: 400;
}

.highlight {
    background-color: #f0f0f0;
    margin-left: calc(-12px - 0.5em);
    margin-right: calc(-12px - 0.5em);
    padding: 1em calc(12px + 0.5em);
    border-radius: 12px;
}

.highlight pre {
    background-color: transparent !important;
    margin: 0;
    padding: 0;
}

.highlight pre code {
    padding: 0;
}

/* App cards */
.apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25em;
    margin: 1.75em 0;
}

.app-card {
    background: #f6f4f1;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 1.25em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    text-decoration: none;
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

.app-screenshot {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e4dfd7;
    border-radius: 12px;
    overflow: hidden;
}

.app-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-screenshot img.align-top {
    object-position: top;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    margin-bottom: 0.25em;
}

.app-title strong {
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.badge {
    font-size: 0.65em;
    font-weight: 600;
    padding: 0.3em 0.5em;
    border-radius: 4px;
    letter-spacing: 0.03em;
    line-height: 1;
}

.badge-ios {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-macos {
    background: #ede9fe;
    color: #6d28d9;
}

.app-info p {
    margin: 0;
    font-size: 0.875em;
    line-height: 1.5;
    color: #666;
}

/* Blog posts list */
ul.blog-posts li {
    padding: 0.45em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

ul.blog-posts li:last-child {
    border-bottom: none;
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}
