/* ==========================================================================
JamesDaRock | Identity, layout and document styles
========================================================================== */
:root {
    --jdr-accent: #54c9ee;
    --bs-body-bg: #0b0e13;
    --bs-body-color: #e5e9f0;
    --bs-link-color-rgb: 84, 201, 238;
}
body {
    min-height: 100vh;
}
a {
    text-underline-offset: .2em;
}
.brand .brand-word span, .accent, .eyebrow {
    color: var(--jdr-accent);
}
.eyebrow {
    font-family: monospace;
    font-size: .8rem;
    letter-spacing: .15em;
}
.hero {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(#54c9ee08 1px, transparent 1px), linear-gradient(90deg, #54c9ee08 1px, transparent 1px);
    background-size: 28px 28px;
}
.hero h1 {
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
}
.btn-accent {
    background: var(--jdr-accent);
    color: #0b0e13;
    font-weight: 600;
}
.btn-accent:hover {
    background: #a0e5f8;
    color: #0b0e13;
}
.project-card {
    background: #121720;
    border-color: #29313e;
}
.document {
    max-width: 850px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.document h1 {
    margin-bottom: 1.5rem;
}
.document h2, .document h3 {
    margin-top: 2rem;
    font-size: 1.35rem;
}
footer {
    font-size: .875rem;
}
/* Shared brand and accessible navigation. */
.brand {
    font-weight: 900;
    letter-spacing: -.06em;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.3rem;
}
.brand .brand-word {
    color: var(--bs-body-color);
}
.brand img {
    flex: 0 0 auto;
}
[data-bs-theme="dark"] {
    --bs-body-bg: #0b0e13;
    --bs-body-color: #e5e9f0;
    --bs-link-color-rgb: 84, 201, 238;
    --bs-link-hover-color-rgb: 160, 229, 248;
}
:focus-visible {
    outline: 2px solid var(--jdr-accent);
    outline-offset: 4px;
}
@media (max-width: 575px) {
    .hero {
        min-height: 340px;
    }
    .hero h1 {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }
}

/* Active navigation and readable mobile branding. */
.navbar .nav-link.active {
    color: var(--jdr-accent);
}

/* Server profiles: compact, responsive definition rows. */
.server-profile .text-secondary { color: #a3b1c2 !important; }
.server-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .55rem 1rem; }
.server-specs dt, .server-specs dd { margin: 0; overflow-wrap: anywhere; }
.server-specs dt { color: #a3b1c2; font-weight: 500; }
@media (max-width: 575px) { .server-specs { grid-template-columns: 1fr; gap: .25rem; } .server-specs dd { margin-bottom: .6rem; } }

/* Public service labels: decorative symbols with accessible text. */
.server-services li { display: flex; align-items: center; gap: .75rem; margin-bottom: .45rem; }
.server-services li:last-child { margin-bottom: 0; }
.service-icon { color: var(--jdr-accent); width: 1.4rem; text-align: center; flex-shrink: 0; }

/* ==========================================================================
   About page | Profile portrait
   ========================================================================== */
.about-portrait {
    display: block;
    width: 280px;
    height: 280px;
    max-width: 100%;
    object-fit: cover;
    object-position: center 12%;
    border: 1px solid #29313e;
    border-radius: 8px;
    margin-inline: auto;
}

/* Responsive portrait sizing for mobile devices. */
@media (max-width: 575px) {
    .about-portrait {
        width: 220px;
        height: 220px;
    }
}
