/* ============================================================
   ASHWATH RAJ — PERSONAL TECHNICAL PROFILE
   style.css

   Design direction:
   - Editorial / newspaper
   - Wikipedia-inspired information architecture
   - Black, white and warm paper tones
   - Blue reserved primarily for hyperlinks
   - Strong typography and rules instead of decorative cards
   - Dense enough to feel like a real technical dossier
   - Responsive without turning into a generic portfolio

   This stylesheet is written specifically for index.html.
   No framework or external dependency is required.
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {

    /* Paper / ink */
    --paper: #f8f8f6;
    --paper-soft: #f1f1ed;
    --paper-dark: #e7e6e0;

    --ink: #111111;
    --ink-soft: #333333;
    --muted: #666666;
    --faint: #888888;

    /* Link colour — deliberately restrained */
    --link: #0645ad;
    --link-hover: #0b0080;

    /* Structural rules */
    --rule: #b8b8b2;
    --rule-dark: #222222;

    /* Small accent used only for labels / metadata */
    --accent: #3a3a36;

    /* Layout */
    --page-width: 1380px;
    --article-width: 900px;
    --toc-width: 220px;
    --aside-width: 250px;

    --page-padding: clamp(20px, 4vw, 64px);

    /* Typography */
    --sans:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    --serif:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    --display:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    --mono:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    /* Effects */
    --shadow-paper:
        0 1px 0 rgba(0, 0, 0, 0.04);

    --transition:
        160ms ease;
}


/* ============================================================
   02. RESET
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-width: 320px;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0,
            var(--paper) 180px,
            var(--paper) 100%
        );

    color: var(--ink);

    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.72;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

::selection {
    background: #d9e5f5;
    color: #000;
}


/* ============================================================
   03. GLOBAL TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
strong,
.site-header,
.table-of-contents,
.profile-table,
.entry-label,
.hero-kicker,
.section-number,
.tag-list,
.footer-links,
.footer-meta {
    font-family: var(--sans);
}

h1,
h2,
h3 {
    color: var(--ink);
}

p {
    margin: 0 0 1.15rem;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin-top: 0.5rem;
    margin-bottom: 1.4rem;
}

li + li {
    margin-top: 0.45rem;
}


/* ============================================================
   04. SITE HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--rule-dark);

    backdrop-filter: blur(8px);
}

.header-inner {
    width: min(var(--page-width), calc(100% - 2 * var(--page-padding)));
    min-height: 68px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    flex: 0 0 auto;

    color: var(--ink);

    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.site-name:hover {
    color: var(--ink);
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 3px 20px;
}

.main-navigation a {
    color: var(--ink-soft);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--link);
}

.menu-toggle {
    display: none;

    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink);

    padding: 7px 12px;

    cursor: pointer;

    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}


/* ============================================================
   05. PAGE FRAME
   ============================================================ */

.page {
    width: min(var(--page-width), calc(100% - 2 * var(--page-padding)));
    margin: 0 auto;
}


/* ============================================================
   06. HERO
   ============================================================ */

.profile-hero {
    padding: 42px 0 30px;

    border-bottom: 3px double var(--ink);
}

.hero-kicker {
    margin-bottom: 16px;

    color: var(--muted);

    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--aside-width);
    gap: 55px;
    align-items: end;
}

.hero-main h1 {
    max-width: 850px;
    margin: 0;

    font-family: var(--display);
    font-size: clamp(3.4rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.hero-description {
    max-width: 870px;
    margin: 28px 0 0;

    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.document-link {
    display: inline-flex;
    align-items: center;

    padding: 8px 13px;

    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;

    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.document-link:hover {
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.document-link.secondary {
    border-color: var(--rule-dark);
    background: #fff;
    color: var(--ink);
}

.document-link.secondary:hover {
    border-color: var(--link);
    color: var(--link);
}

.hero-aside {
    border-left: 1px solid var(--rule-dark);
    padding-left: 24px;
}

.profile-image {
    width: 150px;
    height: 175px;
    margin-bottom: 17px;

    object-fit: cover;
    object-position: center top;

    filter: none;
    border: 1px solid var(--ink);

    background: #fff;
}

.identity-details {
    display: flex;
    flex-direction: column;
    gap: 3px;

    font-family: var(--sans);
    font-size: 0.76rem;
    line-height: 1.5;
}

.identity-details strong {
    font-size: 0.84rem;
}

.identity-details span {
    margin-bottom: 5px;
    color: var(--muted);
}


/* ============================================================
   07. ARTICLE LAYOUT
   ============================================================ */

.article-layout {
    display: grid;
    grid-template-columns: var(--toc-width) minmax(0, 1fr);
    gap: 48px;

    padding-top: 30px;
}


/* ============================================================
   08. TABLE OF CONTENTS
   ============================================================ */

.table-of-contents {
    position: sticky;
    top: 100px;
    align-self: start;

    max-height: calc(100vh - 125px);
    overflow-y: auto;

    border: 1px solid var(--rule);
    background: rgba(255, 255, 255, 0.55);

    padding: 15px 15px 17px;

    scrollbar-width: thin;
}

.toc-title {
    padding-bottom: 10px;
    margin-bottom: 8px;

    border-bottom: 1px solid var(--rule-dark);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.table-of-contents nav {
    display: flex;
    flex-direction: column;
}

.table-of-contents a {
    padding: 4px 5px;

    color: var(--link);

    font-size: 0.76rem;
    line-height: 1.35;
}

.table-of-contents a:hover {
    background: #e9edf3;
    text-decoration: none;
}

.table-of-contents a.active {
    background: var(--ink);
    color: #fff;
}

.table-of-contents .toc-subitem {
    padding-left: 17px;
    font-size: 0.72rem;
}


/* ============================================================
   09. ARTICLE
   ============================================================ */

.profile-article {
    min-width: 0;
    max-width: var(--article-width);
}

.profile-section {
    position: relative;

    padding: 0 0 48px;
    margin-bottom: 42px;

    border-bottom: 1px solid var(--rule-dark);
    scroll-margin-top: 95px;
}

.profile-section:last-child {
    border-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;

    margin-bottom: 21px;

    border-bottom: 1px solid var(--ink);

    line-height: 1;
}

.section-heading h2 {
    margin: 0;
    padding-bottom: 9px;

    font-family: var(--display);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.section-number {
    padding-bottom: 10px;

    color: var(--muted);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}


/* ============================================================
   10. OVERVIEW
   ============================================================ */

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
}

.lead {
    font-size: 1.18rem;
    line-height: 1.65;
}

.quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--rule);
}

.fact {
    min-height: 105px;

    padding: 13px;

    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fact strong {
    font-family: var(--display);
    font-size: 1.75rem;
    line-height: 1;
}

.fact span {
    margin-top: 7px;

    color: var(--muted);

    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.profile-note {
    margin-top: 28px;
    padding: 13px 15px;

    border-left: 4px solid var(--ink);
    background: var(--paper-soft);

    font-family: var(--sans);
    font-size: 0.79rem;
    line-height: 1.55;
}

blockquote {
    margin: 30px 0 0;
    padding: 5px 0 5px 22px;

    border-left: 3px solid var(--ink);

    font-family: var(--display);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.5;
}


/* ============================================================
   11. TABLES
   ============================================================ */

.profile-table {
    width: 100%;
    margin: 24px 0 24px;

    border-collapse: collapse;

    font-size: 0.79rem;
    line-height: 1.5;
}

.profile-table th,
.profile-table td {
    padding: 11px 12px;

    border: 1px solid var(--rule);

    text-align: left;
    vertical-align: top;
}

.profile-table th {
    background: var(--ink);
    color: #fff;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.profile-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.025);
}

.profile-table tbody tr:hover {
    background: #eeeeea;
}

.profile-table td:first-child {
    font-weight: 700;
}

.skills-table td:first-child {
    width: 190px;
}

.competition-table td:first-child {
    width: 250px;
}


/* ============================================================
   12. EXPERIENCE / RESEARCH / TOPIC / PROJECT ENTRIES
   ============================================================ */

.experience-entry,
.research-entry,
.topic-entry,
.project-entry {
    margin: 0 0 35px;
    padding: 0 0 31px;

    border-bottom: 1px solid var(--rule);
}

.experience-entry:last-child,
.research-entry:last-child,
.topic-entry:last-child,
.project-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 10px;
}

.entry-header h3,
.research-entry h3,
.topic-entry h3,
.project-entry h3,
.entrepreneurship-list h3 {
    margin: 0;

    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.entry-meta {
    margin: 4px 0 0;

    color: var(--muted);

    font-family: var(--sans);
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.4;
}

.entry-label {
    flex: 0 0 auto;

    padding: 4px 7px;

    border: 1px solid var(--rule-dark);

    color: var(--ink);

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.experience-entry ul,
.research-entry ul {
    padding-left: 23px;
}

.experience-entry li,
.research-entry li {
    padding-left: 3px;
}


/* ============================================================
   13. TAGS
   ============================================================ */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin: 15px 0 17px;
}

.tag-list span {
    display: inline-block;

    padding: 3px 7px;

    border: 1px solid var(--rule-dark);
    background: #fff;

    color: var(--ink-soft);

    font-size: 0.63rem;
    font-weight: 700;
    line-height: 1.3;
}


/* ============================================================
   14. DEFINITION LIST — RAG / CAG / GRAPHRAG / TEXT-TO-SQL
   ============================================================ */

.definition-list {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);

    margin: 20px 0 22px;

    border-top: 1px solid var(--rule-dark);
}

.definition-list dt,
.definition-list dd {
    margin: 0;
    padding: 10px 11px;

    border-bottom: 1px solid var(--rule);
}

.definition-list dt {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 850;
}

.definition-list dd {
    font-size: 0.88rem;
}


/* ============================================================
   15. KEY TAKEAWAY
   ============================================================ */

.key-takeaway {
    margin-top: 24px;
    padding: 14px 17px;

    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);

    font-family: var(--display);
    font-size: 1.02rem;
    font-style: italic;
}


/* ============================================================
   16. QUANTUM SECTION
   ============================================================ */

.quantum-entry {
    position: relative;

    padding-left: 20px;

    border-left: 3px solid var(--ink);
}

.quantum-entry::before {
    content: "QUANTUM";

    position: absolute;
    top: 0;
    right: 0;

    color: var(--faint);

    font-family: var(--sans);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}


/* ============================================================
   17. ENTREPRENEURSHIP
   ============================================================ */

.entrepreneurship-list {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin: 25px 0;

    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--rule);
}

.entrepreneurship-list article {
    padding: 20px;

    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.entrepreneurship-list p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 0.9rem;
}


/* ============================================================
   18. EXTERNAL LINKS
   ============================================================ */

.external-links {
    padding-left: 24px;
}

.external-links li {
    padding-left: 4px;
}

.profile-disclaimer {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid var(--rule);

    color: var(--muted);

    font-family: var(--sans);
    font-size: 0.74rem;
    line-height: 1.55;
}

.last-updated {
    margin-top: 15px;

    color: var(--faint);

    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ============================================================
   19. FOOTER
   ============================================================ */

.site-footer {
    margin-top: 20px;

    border-top: 5px solid var(--ink);

    background: #111;
    color: #fff;
}

.footer-inner {
    width: min(var(--page-width), calc(100% - 2 * var(--page-padding)));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px 50px;

    padding: 35px 0 28px;
}

.footer-inner strong {
    display: block;

    font-size: 0.85rem;
    font-weight: 850;
}

.footer-inner span {
    display: block;

    margin-top: 4px;

    color: #bbb;

    font-family: var(--sans);
    font-size: 0.72rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
}

.footer-links a {
    color: #fff;

    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: #fff;
}

.footer-meta {
    grid-column: 1 / -1;

    padding-top: 17px;

    border-top: 1px solid #444;

    color: #888;

    font-size: 0.63rem;
    letter-spacing: 0.04em;
}


/* ============================================================
   20. RESPONSIVE — LARGE TABLETS
   ============================================================ */

@media (max-width: 1050px) {

    :root {
        --toc-width: 190px;
        --aside-width: 215px;
    }

    .header-inner {
        gap: 18px;
    }

    .main-navigation {
        gap: 3px 12px;
    }

    .main-navigation a {
        font-size: 0.68rem;
    }

    .article-layout {
        gap: 30px;
    }

    .hero-grid {
        gap: 35px;
    }

}


/* ============================================================
   21. RESPONSIVE — TABLET / MOBILE NAVIGATION
   ============================================================ */

@media (max-width: 820px) {

    body {
        font-size: 16px;
    }

    .header-inner {
        min-height: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        border-bottom: 1px solid var(--ink);
        background: #fff;
    }

    .site-header.menu-open .main-navigation {
        display: flex;
    }

    .main-navigation a {
        padding: 13px var(--page-padding);

        border-top: 1px solid var(--rule);

        font-size: 0.72rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-aside {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;

        border-left: 0;
        border-top: 1px solid var(--rule-dark);

        padding: 20px 0 0;
    }

    .profile-image {
        width: 120px;
        height: 145px;
        margin: 0;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        position: static;

        max-height: none;

        display: none;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .quick-facts {
        grid-template-columns: repeat(4, 1fr);
    }

    .fact {
        min-height: 90px;
    }

    .article-layout {
        padding-top: 25px;
    }

}


/* ============================================================
   22. RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 560px) {

    :root {
        --page-padding: 18px;
    }

    .profile-hero {
        padding-top: 28px;
    }

    .hero-kicker {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .hero-main h1 {
        font-size: clamp(3rem, 15vw, 4.7rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-aside {
        grid-template-columns: 90px 1fr;
    }

    .profile-image {
        width: 90px;
        height: 110px;
    }

    .identity-details {
        font-size: 0.68rem;
    }

    .section-heading {
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 1.55rem;
    }

    .section-number {
        font-size: 0.57rem;
    }

    .quick-facts {
        grid-template-columns: 1fr 1fr;
    }

    .fact strong {
        font-size: 1.45rem;
    }

    .fact span {
        font-size: 0.55rem;
    }

    .profile-table {
        display: block;
        overflow-x: auto;
        white-space: normal;

        -webkit-overflow-scrolling: touch;
    }

    .profile-table th,
    .profile-table td {
        min-width: 145px;
    }

    .skills-table td:first-child,
    .competition-table td:first-child {
        width: auto;
    }

    .entry-header {
        flex-direction: column;
        gap: 8px;
    }

    .entry-label {
        align-self: flex-start;
    }

    .definition-list {
        grid-template-columns: 1fr;
    }

    .definition-list dt {
        padding-bottom: 4px;
        border-bottom: 0;
    }

    .definition-list dd {
        padding-top: 0;
    }

    .entrepreneurship-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

}


/* ============================================================
   23. PRINT STYLES
   ============================================================ */

/*
 * The page doubles as a printable technical profile.
 * Navigation and interactive elements disappear when printed.
 */

@media print {

    :root {
        --paper: #fff;
        --ink: #000;
        --link: #000;
    }

    body {
        background: #fff;
        color: #000;

        font-size: 11pt;
        line-height: 1.55;
    }

    .site-header,
    .table-of-contents,
    .hero-actions,
    .menu-toggle {
        display: none !important;
    }

    .page {
        width: 100%;
        max-width: none;
    }

    .profile-hero {
        padding-top: 0;
    }

    .hero-main h1 {
        font-size: 42pt;
    }

    .article-layout {
        display: block;
        padding-top: 20px;
    }

    .profile-article {
        max-width: none;
    }

    .profile-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .profile-table {
        font-size: 9pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .site-footer {
        background: #fff;
        color: #000;

        border-top: 2px solid #000;
    }

    .footer-links,
    .footer-meta {
        display: none;
    }

    .footer-inner span {
        color: #000;
    }

}


/* ============================================================
   END OF STYLESHEET
   ============================================================ */
