/* Generated by scripts/build-site-css.js; edit style.css. */
.home-page .container {
    max-width: 960px;
}
.home-section-header + .post-list > .post-item:first-child {
    border-top: none;
}
.home-page > nav:not(.admin-bar) {
    display: none;
}


.home-hero {
    padding: 16px 24px;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 24px;
    align-items: center;
}

.home-hero-portrait {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}

.home-hero-text {
    min-width: 0;
}

.home-hero h1 {
    font-size: clamp(0.95rem, 2.8vw, 1.2rem);
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: var(--leading-tight);
    white-space: nowrap;
}
[data-theme="dark"] .home-hero h1 {
    color: color-mix(in srgb, var(--accent-red) 80%, #fff);
}

@media (max-width: 440px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-hero-portrait {
        justify-self: center;
    }

    .home-hero h1 {
        white-space: normal;
    }
}

.home-description {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.03rem);
    line-height: var(--leading-normal);
    white-space: pre-line;
}

.home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.home-card.ui-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: none;
    padding: 14px 44px 14px 18px;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.home-card + .home-card {
    border-top: none;
}

.home-card-full {
    grid-column: 1 / -1;
}

a.home-card::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-md);
    transition: transform 0.15s, color 0.15s;
}

a.home-card:hover {
    background-color: var(--bg-surface-hover);
    text-decoration: none;
}

a.home-card:hover::after {
    color: var(--link);
    transform: translate(4px, -50%);
}

.home-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.home-card-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--accent-red);
}

.home-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
}
.home-card.home-card-group {
    padding: 14px 0 0;
}

.home-card-group h2 a::before {
    content: "";
    position: absolute;
    inset: 0;
}

.home-card-group .home-card-links {
    position: relative;
}

.home-card-group > h2,
.home-card-group > p {
    padding-inline: 18px 44px;
}

.home-card-group h2 a {
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}
.home-card-group h2 a::after {
    content: "→";
    position: absolute;
    top: calc(50% - 21px);
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-md);
    font-weight: 400;
    transition: transform 0.15s, color 0.15s;
}

.home-card-group:has(> h2 a:is(:hover, :active)) h2 a::after {
    color: var(--link);
    transform: translate(4px, -50%);
}
.home-card-group h2 a:is(:hover, :active, :focus) {
    background-color: transparent;
    text-decoration: none;
}

.home-card-group:has(> h2 a:is(:hover, :active)) {
    background-color: var(--bg-surface-hover);
}
.home-card-links {
    display: flex;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.home-card-links a {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 1px solid var(--border);
    transition: background-color 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.home-card-links a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-card-links a:first-child {
    border-left: none;
}

.home-card-links a:hover {
    background-color: var(--bg-surface-hover);
    text-decoration: none;
}

.home-card-link-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
@media (max-width: 480px) {
    .home-card-links a {
        gap: 4px;
        padding: 10px 2px;
        font-size: var(--text-sm);
    }

    .home-card-link-icon {
        width: 14px;
        height: 14px;
    }

    .home-card-links a span[data-short] {
        font-size: 0;
    }

    .home-card-links a span[data-short]::after {
        content: attr(data-short);
        font-size: var(--text-sm);
    }
}

.home-section {
    margin-top: 24px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-bottom: none;
    border-left-width: 3px;
    border-left-color: var(--accent);
    padding: 14px 20px;
}

.home-section-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
}

@media (max-width: 640px) {
    .home-hero {
        padding: 24px 18px;
    }

    .home-hero-inner {
        grid-template-columns: 112px 1fr;
        gap: 18px;
    }

    .home-hero-portrait {
        width: 112px;
        height: 112px;
    }

    .home-cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .home-card,
.home-card-full {
        grid-column: 1;
        grid-row: auto;
        padding: 14px 40px 14px 18px;
    }

    .home-section-header {
        padding: 12px 16px;
    }

    .home-section-header h2 {
        font-size: var(--text-md);
    }
}
.home-page .home-section {
    margin-top: 32px;
}
.home-page .home-section-header {
    background: transparent;
    border: 0;
    padding: 10px 12px;
    min-height: 52px;
    box-sizing: border-box;
    gap: 12px;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.home-page .home-section-header h2 {
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: var(--leading-snug);
}
.home-page .home-section .post-item {
    border-inline: 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
    border-bottom: 0;
    padding: 16px;
}
.home-page .home-section .post-item h3 {
    font-size: var(--text-md);
    font-weight: 600;
    line-height: var(--leading-snug);
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}
.home-page .home-section .post-meta {
    margin-bottom: 6px;
}
.home-page .home-section .post-excerpt {
    -webkit-line-clamp: 2;
    margin: 0;
    color: var(--text-secondary);
}
.home-page .home-section .post-item:hover .post-excerpt {
    color: var(--clr-cream);
}
@media (max-width: 560px) {
    .home-page .home-section-header h2 {
        font-size: var(--text-lg);
    }
    .home-page .home-section .post-item {
        padding: 14px 12px;
    }
}

.home-page .home-section-header:is(:hover, :active) {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    text-decoration: none;
}
.home-page .home-section-header:focus-visible {
    outline-offset: -2px;
}
.home-section-arrow {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: var(--text-lg);
}
