/* Jackline Namanda — personal site & portfolio */

:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --surface: #ffffff;
    --page: #f8fafc;
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --accent-soft: rgba(13, 148, 136, 0.07);
    --accent-muted: rgba(13, 148, 136, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 2px 8px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
    --max: 46rem;
    --max-wide: 56rem;
    --pad: clamp(1.25rem, 4.5vw, 2.5rem);
    --section-space: clamp(2.25rem, 5vw, 2.75rem);
    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --header-h: 3.75rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.62;
    font-feature-settings: "kern" 1, "liga" 1;
    background-color: #eef2f6;
    background-image:
        linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(241, 245, 249, 1) 40%, rgba(238, 242, 246, 1) 100%),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.06), transparent 50%);
}

/* —— Site chrome —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0.85rem var(--pad);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-logo:hover,
.site-logo:focus-visible {
    color: var(--accent-dark);
}

.site-logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
}

.site-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.site-nav a[aria-current="page"] {
    color: var(--accent-dark);
    font-weight: 600;
    background: var(--accent-soft);
}

.site-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.site-main {
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad) clamp(2.5rem, 6vw, 3.5rem);
}

.site-footer {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 1.5rem var(--pad) 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--accent-dark);
    font-weight: 500;
    text-decoration: none;
}

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

/* —— Home —— */
.home-hero {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
    max-width: 38rem;
    margin: 0 auto;
}

.home-hero__kicker {
    margin: 0 0 0.85rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.home-hero h1 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.08;
}

.home-hero__lead {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    color: var(--ink-soft);
    line-height: 1.55;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
    background: var(--accent-dark);
    color: #fff;
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: #0d9488;
    color: #fff;
}

.btn--ghost {
    background: var(--surface);
    color: var(--ink-soft);
    border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--accent-muted);
    color: var(--accent-dark);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.home-panel {
    max-width: var(--max-wide);
    margin: 0 auto;
    background: var(--surface);
    border-radius: calc(var(--radius) + 6px);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    position: relative;
}

.home-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    opacity: 0.95;
}

.home-panel__inner {
    padding: clamp(1.75rem, 4vw, 2.5rem);
}

.home-intro {
    margin: 0 0 1.75rem;
    font-size: 0.98rem;
    color: var(--ink-soft);
    max-width: 42rem;
}

.home-intro:last-of-type {
    margin-bottom: 0;
}

.home-intro code {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 0.12em 0.35em;
    border-radius: 4px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.home-intro a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-muted);
}

.home-intro a:hover {
    border-bottom-color: var(--accent-dark);
}

.section-label {
    display: block;
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.highlight-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .highlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-card {
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, #fafbfc 0%, #f8fafc 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    border-color: var(--accent-muted);
    box-shadow: var(--shadow-hover);
}

.highlight-card h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.highlight-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.55;
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding-top: 0.25rem;
}

.home-cta__text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

/* —— Page card (résumé / portfolio inner) —— */
.page-card {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--surface);
    border-radius: calc(var(--radius) + 6px);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    position: relative;
}

.page-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    opacity: 0.95;
}

.page-card__inner {
    padding: clamp(2rem, 5vw, 3.25rem);
    padding-top: clamp(2.35rem, 5vw, 3.4rem);
}

.page-header {
    margin-bottom: 0.5rem;
}

.page-header__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    max-width: 36rem;
}

.page-card .page-header + .section {
    margin-top: 1.5rem;
}

/* Hero (inside page card — résumé) */
.hero {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.hero__kicker {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero h1 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.08;
}

.tagline {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: -0.015em;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.contact {
    font-style: normal;
    font-size: 0.8125rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.6rem;
    align-items: center;
    max-width: 40rem;
    margin: 0 auto;
}

.contact__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 500;
}

.contact a.contact__pill {
    color: var(--accent-dark);
    border-color: var(--accent-muted);
    background: var(--accent-soft);
    border-bottom: 1px solid var(--accent-muted);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.contact a.contact__pill:hover,
.contact a.contact__pill:focus-visible {
    color: var(--ink);
    background: #ecfdf5;
    border-color: rgba(13, 148, 136, 0.35);
}

.contact a.contact__pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.section {
    margin-top: var(--section-space);
}

.section:first-of-type {
    margin-top: 2rem;
}

.section-title {
    display: block;
    margin: 0 0 1.25rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--line);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 3rem;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.section-title span {
    display: inline;
}

.skills-panel {
    background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.25rem 1.15rem;
}

.skills-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skills-list li {
    position: relative;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    margin-bottom: 0;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list strong {
    font-weight: 600;
    color: var(--ink);
}

@media (min-width: 640px) {
    .skills-panel {
        padding: 0.35rem 1.35rem;
    }
}

.job {
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.job:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(148, 163, 184, 0.5);
}

.job:last-of-type {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.job-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    flex: 1 1 14rem;
    letter-spacing: -0.015em;
}

.job-meta {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
    background: var(--surface);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.job-location {
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
    font-weight: 500;
}

.job ul {
    margin: 0;
    padding-left: 1.2rem;
}

.job li {
    margin-bottom: 0.55rem;
    color: var(--ink-soft);
}

.job li:last-child {
    margin-bottom: 0;
}

.job li::marker {
    color: var(--accent);
}

.repo-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 520px) {
    .repo-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    }
}

.repo-card {
    margin: 0;
}

.repo-card__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 10.5rem;
    height: 100%;
    padding: 1.2rem 1.25rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(165deg, #fafbfc 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.repo-card__link:hover,
.repo-card__link:focus-visible {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-muted);
    outline: none;
}

.repo-card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.repo-card__name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.repo-card__name svg {
    flex-shrink: 0;
    opacity: 0.75;
    color: var(--accent);
}

.repo-card__desc {
    font-size: 0.8125rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.repo-card__desc code {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.78em;
    font-weight: 500;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 0.12em 0.35em;
    border-radius: 4px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.repo-card__meta {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: auto;
    padding-top: 0.4rem;
}

.section-lede {
    margin: -0.35rem 0 1rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 42rem;
}

.section-lede:last-child {
    margin-bottom: 0;
}

/* Card with several explicit links (e.g. one doc hub + repo + sections) */
.repo-card__panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 10.5rem;
    height: 100%;
    padding: 1.2rem 1.25rem;
    background: linear-gradient(165deg, #fafbfc 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.repo-card__panel:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-muted);
}

.repo-card__panel .repo-card__name {
    margin: 0;
}

.repo-card__panel h3.repo-card__name {
    font-size: 0.9rem;
    font-weight: 600;
}

.repo-card__sublinks {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.repo-card__sublinks a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    width: fit-content;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.repo-card__sublinks a:hover,
.repo-card__sublinks a:focus-visible {
    color: var(--accent);
    border-bottom-color: rgba(13, 148, 136, 0.45);
}

.repo-card__sublinks a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.page-card footer {
    margin-top: var(--section-space);
    padding: 1.5rem 1rem 0.25rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.page-card footer p {
    margin: 0;
}

.page-card footer a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
}

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

@media print {
    @page {
        margin: 0.6in;
    }

    .site-header,
    .site-footer,
    .home-hero__actions,
    .btn,
    .btn--primary,
    .btn--ghost {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .site-main {
        padding: 0;
    }

    .home-panel,
    .page-card {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .home-panel::before,
    .page-card::before {
        display: none;
    }

    .home-panel__inner,
    .page-card__inner {
        padding: 0;
    }

    .skills-panel {
        background: #fff;
        border: 1px solid #ccc;
    }

    .contact__pill {
        background: transparent;
        border: 1px solid #ccc;
        color: var(--ink-soft);
    }

    .job:hover,
    .repo-card__link:hover,
    .repo-card__panel:hover {
        box-shadow: none;
    }

    .contact a.contact__pill {
        color: var(--ink-soft);
        border: 1px solid #ccc;
        background: transparent;
    }

    .repo-card__link,
    .repo-card__panel {
        break-inside: avoid;
    }

    .highlight-card {
        break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact a.contact__pill,
    .job,
    .repo-card__link,
    .repo-card__panel,
    .btn,
    .highlight-card {
        transition: none;
    }
}
