/* =========================================
   COLOR TOKENS
   Single accent colour used across the site.
   Change --accent here to restyle every page.
========================================= */

:root {
    --accent: #C6655B;          /* terracotta accent */
    --accent-soft: #f7f0ef;     /* accent tint for hover backgrounds */
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #111111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Inter",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   LAYOUT
========================================= */

.container {
    width: min(1100px);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

header {
    padding: 32px 0;
    border-bottom: 1px solid #eaeaea;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.logo span {
    font-weight: 400;
    color: #666666;
}

.nav-links {
    display: flex;
    gap: 28px;

    list-style: none;

    font-size: 14px;
    color: #555555;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}


/* =========================================
   HERO
========================================= */

.hero {
    max-width: 800px;
    padding: 130px 0 150px;
}

.eyebrow {
    margin-bottom: 24px;

    font-size: 13px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: #777777;
}

.hero h1 {
    max-width: 800px;
    font-size: clamp(48px, 7vw, 50px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 600;
}

.hero-description {
    max-width: 560px;

    margin-top: 32px;

    font-size: 19px;
    line-height: 1.6;

    color: #555555;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 0 0 140px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    padding-bottom: 20px;

    border-bottom: 1px solid #111111;
}

.section-title {
    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-count {
    font-size: 13px;
    color: #777777;
}


/* =========================================
   PROJECTS
========================================= */

.projects {
    border-bottom: 1px solid #e5e5e5;
}

.project {
    display: grid;
    grid-template-columns: 70px 1fr 30px;
    gap: 24px;

    align-items: center;

    padding: 34px 0;

    border-bottom: 1px solid #e5e5e5;

    transition:
        padding 0.25s ease,
        background 0.25s ease;
}

.project:last-child {
    border-bottom: none;
}

.project:hover {
    padding-left: 10px;
    padding-right: 10px;
}

.project-number {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 12px;
    color: #888888;
}

.project-info h2 {
    font-size: 20px;
    font-weight: 500;

    letter-spacing: -0.025em;

    transition: color 0.2s ease;
}

.project:hover .project-info h2 {
    color: var(--accent);
}

.project-description {
    margin-top: 6px;

    font-size: 14px;
    color: #666666;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    margin-top: 12px;
}

.tag {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 11px;
    color: #666666;

    transition: color 0.2s ease;
}

.project:hover .tag {
    color: var(--accent);
}

.tag:not(:last-child)::after {
    content: " · ";
    color: #aaaaaa;
}

.project-arrow {
    font-size: 20px;
    color: #777777;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.project:hover .project-arrow {
    transform: translateX(5px);
    color: var(--accent);
}


/* =========================================
   ABOUT
========================================= */

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;

    padding-top: 20px;
}

.about-label {
    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-content {
    max-width: 650px;
}

.about-content p {
    font-size: 19px;
    line-height: 1.65;

    color: #444444;
}

.about-content p + p {
    margin-top: 24px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    padding: 80px 0 140px;
}

.contact-inner {
    padding-top: 32px;

    border-top: 1px solid #111111;
}

.contact-title {
    font-size: clamp(36px, 5vw, 40px);
    line-height: 1;

    letter-spacing: -0.04em;
    font-weight: 500;
}

.contact-link {
    display: inline-block;

    margin-top: 28px;
    padding-bottom: 4px;

    font-size: 16px;

    border-bottom: 1px solid #111111;

    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 24px 0 32px;

    border-top: 1px solid #eaeaea;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 12px;
    color: #777777;
}

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

.footer-links a:hover {
    color: var(--accent);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 32px, 1100px);
    }

    header {
        padding: 24px 0;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links li:nth-child(1) {
        display: none;
    }

    .hero {
        padding: 90px 0 100px;
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 70px);
    }

    .hero-description {
        font-size: 17px;
    }

    .section {
        padding-bottom: 100px;
    }

    .project {
        grid-template-columns: 40px 1fr 20px;
        gap: 12px;

        padding: 26px 0;
    }

    .project-info h2 {
        font-size: 18px;
    }

    .project-description {
        font-size: 13px;
    }

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

    .about-content p {
        font-size: 17px;
    }

    .contact {
        padding-bottom: 100px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================================
   CALLABLE BONDS PROJECT PAGE
   ========================================= */

.project-page-hero {
    padding: 120px 0 90px;
}

.project-page-intro {
    max-width: 720px;
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.project-meta-item {
    padding: 24px 20px 24px 0;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-meta-item:last-child {
    border-right: none;
}

.project-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
}


/* Project sections */

.project-section-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 70px;
    max-width: 1100px;
}

.project-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    padding-top: 8px;
}

.project-section-content {
    max-width: 780px;
}

.project-section-content h2 {
    margin-top: 0;
    margin-bottom: 28px;
}

.project-section-content h3 {
    margin-top: 45px;
    margin-bottom: 18px;
}

.project-section-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}


/* Mathematical formulas */

.formula-box {
    margin: 38px 0;
    padding: 30px;
    overflow-x: auto;
}

.formula-large {
    padding: 40px 30px;
}

.formula-wide {
    padding-left: 20px;
    padding-right: 20px;
}

.formula-label {
    margin-bottom: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
}

.formula {
    font-size: 1.15rem;
    color: #111;
}

.formula mjx-container {
    margin: 0 !important;
}


/* Parameters */

.parameter-list {
    margin: 35px 0;
    border-top: 1px solid #ddd;
}

.parameter {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    line-height: 1.6;
}

.parameter-symbol {
    font-weight: 500;
    color: #111111;
}


/* Notes */

.project-note {
    margin: 35px 0;
    padding: 25px 30px;
    border-left: 2px solid var(--accent);
    background: #fafafa;
    line-height: 1.7;
}


/* Methodologies */

.methodology-list {
    border-top: 1px solid #ddd;
}

.methodology-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid #ddd;
}

.methodology-number {
    font-size: 12px;
    color: #888;
}

.methodology-content h3 {
    margin: 0 0 14px;
}

.methodology-content p {
    margin-bottom: 20px;
}

.methodology-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    border: 1px solid #ddd;
    padding: 7px 10px;
}


/* Back link */

.project-back {
    padding-top: 20px;
}

.back-link {
    color: #111;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent);
    text-decoration: underline;
}


/* Responsive */

@media (max-width: 800px) {

    .project-page-hero {
        padding: 80px 0 60px;
    }

    .project-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-meta-item {
        border-bottom: 1px solid #ddd;
    }

    .project-section-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-section-label {
        padding-top: 0;
    }

    .parameter {
        grid-template-columns: 100px 1fr;
        gap: 20px;
    }

    .formula {
        font-size: 1rem;
    }
}


@media (max-width: 500px) {

    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .project-meta-item {
        border-right: none;
    }

    .methodology-item {
        grid-template-columns: 45px 1fr;
        gap: 15px;
    }

    .parameter {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .formula-box {
        padding: 25px 15px;
    }
}

/* ABOUT HERO */

.about-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-hero-content {
    flex: 1;
}

.about-hero-photo {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.about-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ABOUT PAGE */

.project-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 100px 0 120px;
}
.project-hero h1 {
    font-size: 50px;
    line-height: 1.05;

}

.project-hero-content {
    max-width: 750px;
}

.project-intro {
    max-width: 700px;
    margin-top: 40px;
}

.about-photo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.project-section {
    padding: 70px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
}

.project-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-content {
    max-width: 800px;
}

.project-content p {
    margin-bottom: 28px;
}

.about-item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.about-item:last-child {
    border-bottom: none;
}

.about-item h3 {
    margin-bottom: 8px;
}
.interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
}

.interest-card {
    min-height: 180px;
    padding: 30px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: background-color 0.2s ease;
}

.interest-number {
    font-size: 13px;
    color: #888;
}

.interest-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.interest-card:hover {
    background-color: var(--accent-soft);
    box-shadow: inset 3px 0 0 0 var(--accent);
}

/* =========================================
   ACCENT — shared across every page
   Carries the same discreet accent used on
   the home page onto About and the project
   pages. One colour only: var(--accent).
========================================= */


/* Inline emphasis inside body copy */

.project-content strong,
.about-content strong {
    color: #111111;
    font-weight: 600;
}


/* About — education / experience items */

.about-item {
    transition: padding-left 0.25s ease, box-shadow 0.25s ease;
}

.about-item:hover {
    padding-left: 14px;
    box-shadow: inset 3px 0 0 0 var(--accent);
}

.about-item h3 {
    transition: color 0.2s ease;
}

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

/* Project page — methodology tags */

.methodology-tag {
    transition: color 0.2s ease, border-color 0.2s ease;
}

.methodology-item:hover .methodology-tag {
    color: var(--accent);
    border-color: var(--accent);
}

/* Project page — meta grid */

.project-meta-item {
    transition: box-shadow 0.25s ease;
}

.project-meta-item:hover {
    box-shadow: inset 0 3px 0 0 var(--accent);
}

/* Project page — notes keep the accent rule
   and pick up the accent tint */

.project-note {
    background: var(--accent-soft);
}

/* Current page marker in the nav */

.nav-links a.is-active {
    color: var(--accent);
}

/* Projects page — no underline on the My Projects header
   (the title itself is already accent-coloured by default) */

.projects-header {
    border-bottom: none;
}
