:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --green: #059669;
    --green-hover: #047857;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--text);
}

h1::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.contributors {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    line-height: 1.7;
}

.funding {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.contributors strong {
    color: var(--text);
    margin-right: 0.25rem;
}

.contributors a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.contributors a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.contributors .affiliation {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9em;
}

.status {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.status-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.status-text .unicode-hammer {
    font-size: 1.6rem;
    opacity: 0.85;
}

.status-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.status-cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.9rem 1.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: var(--green);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
}

.status-cta:hover {
    background: var(--green-hover);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}

.status-cta-main {
    display: block;
}

.status-cta-caption {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.description {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow);
}

.description p {
    margin: 0;
    color: var(--text);
}

.description a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.description a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.references {
    margin-top: 1.5rem;
    padding-top: 0;
}

.description .ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.4rem 0;
    padding-left: 0.5rem;
}

.description .ref:last-child {
    margin-bottom: 0;
}

.features {
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
}

.feature {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.feature:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Match aiconstructlexis_dev network graph colors */
.feature-construct {
    border-left: 4px solid #1b5e20;
    background: linear-gradient(to right, rgba(46, 125, 50, 0.06), var(--surface));
}

.feature-construct h4 {
    color: #2e7d32;
}

.feature-measurement {
    border-left: 4px solid #0d47a1;
    background: linear-gradient(to right, rgba(21, 101, 192, 0.06), var(--surface));
}

.feature-measurement h4 {
    color: #1565c0;
}

.feature-behavior {
    border-left: 4px solid #880e4f;
    background: linear-gradient(to right, rgba(194, 24, 91, 0.06), var(--surface));
}

.feature-behavior h4 {
    color: #c2185b;
}

.substack {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.substack h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.substack p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.substack a {
    color: #be123c;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.substack a:hover {
    color: #9f1239;
    border-bottom-color: #9f1239;
}

.footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

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