body.homelab-body {
    background:
        linear-gradient(180deg, #fff8ed 0%, #f7ead9 52%, #f3dfc8 100%);
    color: #3a2b20;
}

body.homelab-body footer {
    background: #7c5132;
}

body.homelab-body footer nav li a,
body.homelab-body footer nav li a:hover {
    color: #cccccc;
}

.homelab-site-header {
    position: relative;
    display: block;
    width: 100%;
    min-height: clamp(270px, 20vw, 310px);
    padding: 0;
    background-color: #f4dfc7;
    background-image:
        linear-gradient(90deg, rgba(255, 247, 236, 0.08), rgba(255, 247, 236, 0.2)),
        url("../../img/homelab/utakamo-homelab-main.png");
    background-repeat: no-repeat;
    background-position: center top, center top;
    background-size: 100% 100%, min(920px, 84%) auto;
    border-bottom: 4px solid #d7a36d;
}

.homelab-site-header > h1 {
    position: absolute;
    inset: 0;
    margin: 0;
}

.homelab-site-header > h1 > a,
.homelab-site-header > h1 > a:hover {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: transparent;
    text-decoration: none;
    white-space: nowrap;
    text-indent: 100%;
}

#homelab-page {
    --lab-cream: #fff8ee;
    --lab-cream-strong: #fffdf8;
    --lab-paper: #f8e5cf;
    --lab-line: #e4c29b;
    --lab-text: #3a2b20;
    --lab-muted: #806550;
    --lab-brown: #845a3a;
    --lab-brown-dark: #6f4b34;
    --lab-wood: #b97843;
    --lab-rose: #d77b8f;
    --lab-leaf: #5c8a5a;
    --lab-sky: #5e86ad;
    --lab-shadow: 0 18px 34px rgba(91, 57, 28, 0.12);
    width: min(1180px, calc(100% - 28px));
    margin: 24px auto 52px;
    color: var(--lab-text);
}

#homelab-page a {
    color: inherit;
}

#homelab-page h2,
#homelab-page h3,
#homelab-page p {
    color: inherit;
}

#homelab-page h2,
#homelab-page h3,
#homelab-page p,
#homelab-page ul {
    margin-top: 0;
}

.homelab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.homelab-primary {
    min-width: 0;
}

.homelab-sidebar {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.homelab-side-card {
    width: 100%;
    margin: 0;
    border: 1px solid #e6c8a5;
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: 0 8px 18px rgba(91, 57, 28, 0.07);
}

.homelab-side-card > h2 {
    margin: 0 0 14px;
    color: var(--lab-brown-dark);
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
}

.homelab-side-profile {
    padding: 16px;
}

.homelab-side-profile-icon {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 2px solid #e4c29b;
    border-radius: 50%;
    background-color: #ffffff;
}

.homelab-side-profile p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.homelab-side-profile p + p {
    margin-top: 12px;
}

.homelab-side-site-link-card {
    padding: 16px;
}

.homelab-side-button-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.homelab-side-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d6ad7f;
    border-radius: 999px;
    background: #a57245;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.homelab-side-button:hover {
    border-color: #a57245;
    background: #94663f;
    color: #ffffff;
}

.homelab-side-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.homelab-side-menu a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e4c29b;
    border-radius: 8px;
    background: #fff8ee;
    color: var(--lab-brown-dark);
    text-decoration: none;
    font-weight: 700;
}

.homelab-side-menu a:hover {
    border-color: var(--lab-wood);
    background: #fff2df;
}

.homelab-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    align-items: stretch;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--lab-line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 246, 234, 0.96));
    box-shadow: var(--lab-shadow);
}

.homelab-hero-content {
    max-width: 820px;
}

.homelab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--lab-sky);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
}

.homelab-eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lab-rose);
    box-shadow: 0 0 0 6px rgba(215, 123, 143, 0.16);
}

.homelab-hero h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.18;
    color: var(--lab-brown-dark);
    letter-spacing: 0;
}

.homelab-hero-actions,
.homelab-local-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.homelab-hero-actions {
    margin-top: 22px;
}

.homelab-button,
.homelab-local-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d9b383;
    border-radius: 999px;
    background: #fffdf7;
    color: var(--lab-brown-dark);
    text-decoration: none;
    font-weight: 700;
}

.homelab-button.primary {
    border-color: var(--lab-brown);
    background: var(--lab-brown);
    color: #fffaf1;
}

.homelab-local-nav {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.homelab-band {
    margin-top: 34px;
    padding: clamp(20px, 3vw, 30px) 0 0;
    border-top: 1px solid rgba(124, 81, 50, 0.24);
    background: transparent;
    box-shadow: none;
}

.homelab-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.homelab-section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--lab-brown-dark);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.homelab-section-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e4c29b;
    border-radius: 8px;
    background: #fff8ee;
}

.homelab-section-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.homelab-section-icon-note {
    color: var(--lab-sky);
}

.homelab-section-icon-latest {
    color: var(--lab-wood);
}

.homelab-section-icon-idea {
    color: var(--lab-rose);
}

.homelab-section-icon-oss {
    color: var(--lab-leaf);
}

.homelab-section-head p {
    margin: 8px 0 0;
    max-width: 42rem;
    color: var(--lab-muted);
    line-height: 1.8;
}

.homelab-kicker {
    margin: 0 0 7px;
    color: var(--lab-sky);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.homelab-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.homelab-entry {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    border: 1px solid #e6c8a5;
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.94);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(91, 57, 28, 0.07);
}

.homelab-entry.wide {
    grid-column: span 6;
}

.homelab-latest-entry {
    grid-column: span 4;
}

a.homelab-entry:hover {
    border-color: var(--lab-wood);
    transform: translateY(-1px);
}

.homelab-entry h3 {
    margin: 12px 0 8px;
    color: var(--lab-brown-dark);
    font-size: 1.08rem;
    line-height: 1.5;
}

.homelab-entry p {
    margin: 0;
    color: var(--lab-muted);
    line-height: 1.78;
    font-size: 0.95rem;
}

.homelab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.homelab-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f4e2cc;
    color: #6f482d;
    font-size: 0.78rem;
    font-weight: 800;
}

.homelab-pill.green {
    background: #deebd8;
    color: #456f3e;
}

.homelab-pill.red {
    background: #f8dde3;
    color: #9d4d61;
}

.homelab-pill.blue {
    background: #dfeaf4;
    color: #416485;
}

.homelab-entry-action {
    margin-top: auto;
    padding-top: 16px;
    color: var(--lab-sky);
    font-weight: 800;
    font-size: 0.9rem;
}

.homelab-empty {
    grid-column: 1 / -1;
    padding: 22px;
    border: 1px dashed #d6ad7f;
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
}

.homelab-empty p {
    margin: 0;
    color: var(--lab-muted);
    line-height: 1.8;
}

@media screen and (max-width: 1000px) {
    .homelab-site-header {
        min-height: clamp(190px, 36vw, 280px);
        padding: 0;
        background-position: center top, center top;
        background-size: 100% 100%, 100% auto;
    }

    #homelab-page {
        width: min(100% - 18px, 760px);
        margin-top: 18px;
    }

    .homelab-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .homelab-entry,
    .homelab-entry.wide {
        grid-column: span 6;
    }
}

@media screen and (max-width: 680px) {
    .homelab-hero {
        border-radius: 8px;
    }

    .homelab-band {
        margin-top: 28px;
        padding-top: 22px;
    }

    .homelab-section-head {
        display: block;
    }

    .homelab-entry,
    .homelab-entry.wide {
        grid-column: span 12;
    }

    .homelab-hero h2 {
        font-size: 1.45rem;
    }
}
