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

html, body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #fefce8, #ffedd5);
}

body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #1f2937;
    line-height: 1.6;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 252, 232, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(120, 53, 15, 0.1);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 36px;
    height: 36px;
}

.logo span {
    font-size: 18px;
    color: #1f2937;
    letter-spacing: 0.05em;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

nav a:hover {
    color: #78350f;
}

/* Hero */
.hero {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    text-align: center;
}

.benchmark-label {
    font-size: 12px;
    color: #92400e;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.subtitle {
    font-size: 14px;
    color: #78350f;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.last-updated {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.hero-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-links a {
    font-size: 13px;
    color: #78350f;
    text-decoration: none;
    border-bottom: 1px solid rgba(120, 53, 15, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.hero-links a:hover {
    border-color: #78350f;
}

/* Sections */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section h2 {
    font-size: 20px;
    font-weight: 500;
    color: #78350f;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Tables */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
    border: 1px solid rgba(120, 53, 15, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

thead {
    background: #78350f;
    color: white;
}

thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

thead th.sortable {
    cursor: pointer;
}

thead th.sortable:hover {
    background: #92400e;
}

thead th.sorted {
    background: #451a03;
}

thead th .arrow {
    margin-left: 4px;
    font-size: 10px;
}

tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

tbody tr:hover {
    background: #fffbeb;
}

tbody td {
    padding: 10px 14px;
    white-space: nowrap;
}

.rank-col {
    width: 40px;
    text-align: center;
}

.num-col {
    text-align: right;
}

tbody td.num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

tbody td.rank-cell {
    text-align: center;
    font-weight: 500;
    color: #78350f;
}

tbody td.model-cell {
    font-weight: 500;
    color: #111827;
}

/* Rank medals */
.rank-1 { color: #b45309; }
.rank-2 { color: #6b7280; }
.rank-3 { color: #92400e; }

/* Lift bar */
.lift-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.lift-bar {
    height: 6px;
    background: #78350f;
    border-radius: 3px;
    min-width: 2px;
}

/* Heatmap */
.heatmap td.heat-cell {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    padding: 12px 16px;
    transition: transform 0.15s;
}

.heatmap td.heat-cell:hover {
    outline: 2px solid #78350f;
    outline-offset: -2px;
}

/* Emotion table highlights */
.above-baseline {
    background: rgba(120, 53, 15, 0.06);
}

.high-value {
    font-weight: 600;
    color: #78350f;
}

/* Table footnote */
.table-footnote {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.5;
}

/* Methodology */
.method-single {
    background: white;
    border: 1px solid rgba(120, 53, 15, 0.15);
    padding: 28px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

.method-single p {
    margin-bottom: 12px;
}

.method-single p:last-child {
    margin-bottom: 0;
}

.method-single strong {
    color: #78350f;
}


/* Footer */
footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}

footer a {
    color: #78350f;
    text-decoration: none;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 48px 16px 24px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .section {
        padding: 32px 16px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
