/* Prakash Chaudhary — shared styles
   Layout: fixed sidebar (identity + section nav + social icons) beside a scrolling content column.
   Quiet interface, engineering work in front. */

:root {
    --bg: #ffffff;
    --text: #262626;
    --text-2: #686868;
    --muted: #767676;
    /* #898989 fails 4.5:1 contrast on white for small text */
    --line: #e8e8e8;
    --surface: #f6f6f5;
    --accent: #285e8e;
    --accent-tint: #e8f0f7;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --measure: 66ch;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.7 var(--font);
    -webkit-font-smoothing: antialiased;
}

p {
    margin: 0 0 16px;
    max-width: var(--measure);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    margin: 0;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -64px;
    z-index: 10;
    background: var(--text);
    color: #fff;
    padding: 10px 16px;
    border-radius: 2px;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Layout ---------- */
.layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 80px;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 88px 0 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar h1 {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.hero-role {
    margin: 12px 0 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.hero-description {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 340px;
}

.navigation {
    margin-top: 48px;
}

.navigation ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.navigation a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-line {
    width: 32px;
    height: 1px;
    background: currentColor;
    transition: width .2s, background .2s;
}

.navigation a:hover,
.navigation a[aria-current="true"] {
    color: var(--text);
}

.navigation a:hover .nav-line,
.navigation a[aria-current="true"] .nav-line {
    width: 64px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -10px;
    color: var(--muted);
    border-radius: 50%;
    transition: color .15s;
}

.social-links a:hover {
    color: var(--text);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Content ---------- */
.content {
    padding: 88px 0 0;
    min-width: 0;
}

.section {
    margin-bottom: 88px;
    scroll-margin-top: 48px;
}

.section-title {
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow {
    margin: 40px 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-intro,
.section-footnote {
    color: var(--text-2);
}

.section-footnote {
    margin-top: 24px;
    font-size: 15px;
}

.writing-empty {
    color: var(--text-2);
}

/* Projects */
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 24px;
}

.section-heading .section-title {
    margin-bottom: 0;
}

.section-meta {
    font-size: 14px;
    color: var(--muted);
}

.project-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.project-title-row h3 {
    margin-bottom: 0;
}

.status {
    padding: 2px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-2);
    white-space: nowrap;
}

.project-list {
    margin: 0 -20px;
}

.project-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    padding: 22px 20px;
    border-radius: 10px;
    transition: background .15s;
}

.project-item:hover {
    background: var(--surface);
}

.project-index {
    padding-top: 3px;
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.project-content h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-item:hover .project-content h3 {
    color: var(--accent);
}

.project-content p {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.project-links {
    margin: 14px 0 0;
    font-size: 15px;
}

.project-links a {
    font-weight: 500;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.pill-list-plain .pill {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-2);
}

/* Writing */
.planned-list li {
    padding: 2px 0;
    color: var(--text-2);
}

/* About */
.about-content p {
    color: var(--text-2);
}

.education-entry {
    display: flex;
    align-items: center;
    gap: 20px;
}

.education-logo {
    flex: none;
    display: block;
    width: 64px;
    height: 64px;
}

.education-logo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.education-details h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.education-details p {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--text-2);
}

/* Experience */
.experience-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 24px;
}

.experience-dates {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.experience-details h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.experience-company {
    margin: 2px 0 0;
    color: var(--text-2);
}

.experience-description {
    margin: 8px 0 0;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.65;
}

/* Footer */
.site-footer {
    padding: 24px 0 56px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Tablet and mobile: single column, sidebar becomes the page header ---------- */
@media (max-width: 900px) {
    .layout {
        display: block;
        padding: 0 24px;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 56px 0 8px;
        gap: 24px;
    }

    .sidebar h1 {
        font-size: 34px;
    }

    .hero-description {
        max-width: var(--measure);
    }

    .navigation {
        margin-top: 28px;
    }

    .navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 24px;
    }

    .nav-line {
        display: none;
    }

    .navigation a {
        padding: 10px 0;
    }

    .navigation a[aria-current="true"] {
        text-decoration: underline;
        text-underline-offset: 6px;
    }

    .social-links {
        margin-top: 12px;
    }

    .content {
        padding-top: 40px;
    }

    .section {
        margin-bottom: 64px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .layout {
        padding: 0 20px;
    }

    .project-list {
        margin: 0 -12px;
    }

    .project-item {
        grid-template-columns: 1fr;
        padding: 20px 12px;
    }

    .project-index {
        padding-top: 0;
    }

    .education-entry {
        align-items: flex-start;
    }

    .experience-entry {
        grid-template-columns: 1fr;
    }

    .experience-dates {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}