/* ============================================
   THE CANTILLON INSTITUTE
   style.css
   ============================================ */


/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}


/* --- Base --- */
body {
    background-color: #0b0c0d;
    color: #dedad0;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

em {
    font-style: italic;
}


/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* --- Shared --- */
.accent { color: #378ADD; }

.label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #378ADD;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #378ADD;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.75rem;
}


/* --- Navigation --- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
    border-bottom: 0.5px solid #1d1f21;
    position: sticky;
    top: 0;
    background: #0b0c0d;
    z-index: 100;
}

.nav-logo {
    font-size: 14px;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: #dedad0;
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
    font-size: 14px;
    color: #5c5a55;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: #dedad0; }


/* --- Hero --- */
.hero {
    padding: 4rem 2rem 3.5rem;
    border-bottom: 0.5px solid #1d1f21;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: center;
}

.hero-content { min-width: 0; }

.hero h1 {
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-size: clamp(38px, 8vw, 66px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: #dedad0;
    margin-bottom: 1.75rem;
}

.hero-body {
    font-size: 19px;
    line-height: 1.75;
    color: #6b6860;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.cta-link {
    font-size: 14px;
    color: #378ADD;
    letter-spacing: 0.08em;
    border-bottom: 0.5px solid #378ADD;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.cta-link:hover { opacity: 0.7; }

.cta-meta {
    font-size: 14px;
    color: #2d2c2a;
    letter-spacing: 0.06em;
}


/* --- Hero Graphic --- */
.hero-graphic {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-28px);
}

.hero-graphic svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}


/* --- Sections --- */
.section {
    padding: 2.5rem 2rem;
    border-bottom: 0.5px solid #1d1f21;
}

.section h2 {
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #dedad0;
    margin-bottom: 1.75rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section-header h2 { margin-bottom: 0; }

.author-tag {
    font-size: 13px;
    color: #3d3b37;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}


/* --- Full Report Card --- */
.full-report-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    background: #0d1117;
    border: 0.5px solid #378ADD;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.full-report-card:hover {
    background: rgba(55, 138, 221, 0.07);
    border-color: #5aa3e8;
}

.full-report-left { flex: 1; min-width: 0; }

.full-report-badge {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: #378ADD;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: block;
}

.full-report-title {
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #dedad0;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.full-report-meta {
    font-size: 13px;
    color: #4a4845;
    line-height: 1.6;
}

.full-report-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.full-report-cta {
    font-size: 13px;
    color: #378ADD;
    letter-spacing: 0.08em;
    font-weight: 600;
    white-space: nowrap;
}

.full-report-size {
    font-size: 11px;
    color: #2d2c2a;
    letter-spacing: 0.06em;
}


/* --- Papers --- */
.papers-list { display: flex; flex-direction: column; }

.paper-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 0.5rem;
    border-top: 0.5px solid #181a1b;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: border-left-color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.paper-row:last-child { border-bottom: 0.5px solid #181a1b; }

.paper-row:hover {
    border-left-color: #378ADD;
    background-color: rgba(55, 138, 221, 0.04);
}

.paper-num {
    font-size: 12px;
    color: #378ADD;
    font-weight: 700;
    letter-spacing: 0.1em;
    min-width: 36px;
    padding-top: 2px;
    flex-shrink: 0;
}

.paper-body { flex: 1; min-width: 0; }

.paper-title {
    font-size: 17px;
    font-weight: 600;
    color: #dedad0;
    line-height: 1.4;
    margin-bottom: 6px;
}

.paper-abstract {
    font-size: 14px;
    color: #252320;
    line-height: 1.65;
    transition: color 0.25s ease;
    max-width: 580px;
}

.paper-row:hover .paper-abstract { color: #6b6860; }

.paper-cta {
    font-size: 12px;
    color: #252320;
    letter-spacing: 0.08em;
    padding-top: 2px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.paper-row:hover .paper-cta { color: #378ADD; }


/* --- Data / Chart --- */
.chart-source {
    font-size: 14px;
    color: #3d3b37;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.chart-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.chart-svg {
    width: 100%;
    height: 175px;
    display: block;
}

.chart-annotations {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.ann {
    position: absolute;
    font-size: 9px;
    color: #378ADD;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
}

.chart-years {
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
}

.chart-years span { font-size: 11px; color: #2e2d2b; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: #0f1011;
    border: 0.5px solid #1d1f21;
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.stat-label {
    font-size: 12px;
    color: #3d3b37;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
    line-height: 1.4;
}

.stat-value {
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #dedad0;
    line-height: 1;
}

.stat-card.accent .stat-value { color: #378ADD; }


/* --- Fellows --- */
.fellows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.fellow-id {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #378ADD;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.fellow-name {
    font-size: 17px;
    font-weight: 700;
    color: #dedad0;
    margin-bottom: 6px;
    line-height: 1.3;
}

.fellow-role {
    font-size: 14px;
    color: #4a4845;
    line-height: 1.65;
}

.fellows-forthcoming {
    border-top: 0.5px solid #1d1f21;
    padding-top: 2rem;
}

.forthcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.forthcoming-name {
    font-size: 17px;
    font-weight: 600;
    color: #2e2c2a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.forthcoming-focus {
    font-size: 14px;
    color: #252320;
    line-height: 1.65;
}


/* --- About --- */
.about-body { max-width: 640px; }

.about-body p {
    font-size: 16px;
    color: #6b6860;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-body p:last-child { margin-bottom: 0; }


/* --- Footer --- */
.footer {
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0.5px solid #1d1f21;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer span {
    font-size: 12px;
    color: #5c5a55;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* --- Responsive --- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-graphic { display: none; }
}

@media (max-width: 640px) {
    .nav { padding: 1rem 1.25rem; }
    .nav-logo { font-size: 11px; }
    .nav-links { gap: 1.25rem; }
    .hero { padding: 2.5rem 1.25rem; }
    .section { padding: 2rem 1.25rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .hero-cta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .stat-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .fellows-grid, .forthcoming-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
    .ann { font-size: 7px; letter-spacing: 0.05em; }
    .chart-years span { font-size: 9px; }
    .full-report-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .full-report-right { align-items: flex-start; }
}
