/* ============================================================================ * Project : localvm-research * File : web/public/style.css * Purpose : Light-theme styling for the research showcase platform (v2) * Author : Simon-Pierre Boucher * Contact : contact@spboucher.ai * Created : 2026-08-12 * Modified : 2026-08-12 * Platform : Web (deployed from macOS / Apple Silicon) * License : All rights reserved (research code) * ==========================================================================*/ :root { color-scheme: light; --page: #f9f9f7; --surface: #fcfcfb; --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781; --grid: #e1e0d9; --baseline: #c3c2b7; --border: rgba(11, 11, 11, 0.10); --accent: #2a78d6; --accent-dark: #1c5cab; --accent-wash: #edf3fb; --good: #0ca30c; --good-text: #006300; --radius: 12px; --shadow-1: 0 1px 2px rgba(11,11,11,0.04), 0 1px 3px rgba(11,11,11,0.05); --shadow-2: 0 4px 14px rgba(11,11,11,0.07), 0 2px 4px rgba(11,11,11,0.05); } * { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; } body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--page); color: var(--ink); line-height: 1.65; font-size: 16px; } .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; } a { color: var(--accent-dark); text-decoration: none; } a:hover { text-decoration: underline; } code, pre, .mono-small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } ::selection { background: #cde2fb; } /* ---------------------------------------------------------------- header */ .site-header { position: sticky; top: 0; z-index: 40; background: rgba(252, 252, 251, 0.85); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--grid); } .header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; } .brand { font-weight: 750; font-size: 18.5px; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; white-space: nowrap; } .brand-logo { display: block; border-radius: 7px; } .brand-dim { color: var(--muted); font-weight: 500; } .site-nav { display: flex; gap: 2px; flex-wrap: wrap; } .site-nav a { padding: 7px 13px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 550; transition: background 0.15s, color 0.15s; } .site-nav a:hover { background: var(--accent-wash); text-decoration: none; color: var(--accent-dark); } .site-nav a.active { color: var(--accent-dark); background: var(--accent-wash); font-weight: 650; } .nav-toggle { display: none; } /* ---------------------------------------------------------------- hero */ .hero { padding: 72px 0 16px; background: radial-gradient(1000px 380px at 15% -20%, rgba(42,120,214,0.10), transparent 65%), radial-gradient(800px 300px at 90% -30%, rgba(27,175,122,0.07), transparent 60%); margin: 0 -24px; padding-left: 24px; padding-right: 24px; } .kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 700; color: var(--accent-dark); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; } .kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; } .hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.028em; margin: 0 0 18px; font-weight: 780; } .lede { font-size: 18.5px; color: var(--ink-2); max-width: 780px; margin: 0 0 14px; } .lede-small { color: var(--ink-2); max-width: 780px; } .lede-eq code { font-size: 13px; background: var(--surface); border: 1px solid var(--grid); border-radius: 8px; padding: 8px 14px; color: var(--ink-2); display: inline-block; box-shadow: var(--shadow-1); } /* ---------------------------------------------------------------- tiles */ .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 36px 0; } .tile { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; } .tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent), #6da7ec); } .tile-value { font-size: 36px; font-weight: 760; letter-spacing: -0.025em; line-height: 1.1; } .tile-denom { font-size: 20px; color: var(--muted); font-weight: 500; } .tile-label { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; } /* ---------------------------------------------------------------- cards */ .split { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; margin: 8px 0 20px; } .card { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow-1); } .card h2 { margin-top: 0; font-size: 20px; letter-spacing: -0.015em; font-weight: 700; } .more { font-weight: 650; font-size: 14px; } .card-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } .btn { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 10px 20px; border-radius: 9px; font-size: 14.5px; font-weight: 650; cursor: pointer; transition: background 0.15s, transform 0.1s; font-family: inherit; } .btn:hover { background: var(--accent-dark); } .btn:active { transform: translateY(1px); } /* ---------------------------------------------------------------- phases */ .phases { list-style: none; margin: 0; padding: 0; } .phase { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--grid); } .phase:last-child { border-bottom: 0; } .phase strong { display: block; font-size: 14.5px; } .phase-detail { font-size: 13px; color: var(--muted); } .phase-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: var(--baseline); } .phase.done .phase-dot { background: var(--good); box-shadow: 0 0 0 3px rgba(12,163,12,0.14); } .phase.in-progress .phase-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(42,120,214,0.16); } .phase .badge { margin-left: auto; } .badge { font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 20px; white-space: nowrap; align-self: center; border: 1px solid var(--grid); color: var(--ink-2); } .badge-done { color: var(--good-text); background: #eef7ee; border-color: #cfe8cf; } .badge-in-progress, .badge-has-results { color: var(--accent-dark); background: var(--accent-wash); border-color: #cfe0f5; } .badge-pending, .badge-scaffolded { color: var(--muted); background: var(--page); } /* ---------------------------------------------------------------- doc cards */ .page-title { font-size: 32px; letter-spacing: -0.025em; margin: 44px 0 10px; font-weight: 760; } .section-title { font-size: 20px; margin: 34px 0 10px; font-weight: 700; } .doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 18px 0; } .doc-card { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 20px 22px; color: var(--ink); display: block; box-shadow: var(--shadow-1); transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s; } .doc-card:hover { border-color: #b9d2f0; text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-2px); } .doc-card.disabled { opacity: 0.55; pointer-events: none; } .doc-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 680; } .doc-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); } .runs { font-size: 12px; color: var(--muted); margin-left: 8px; } .note-line { color: var(--ink-2); font-size: 14px; } /* ---------------------------------------------------------------- doc view */ .doc { max-width: 860px; margin: 32px auto; } .crumb { font-size: 13px; color: var(--muted); margin: 26px 0 4px; } .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; } .chip { font-size: 12px; background: var(--surface); border: 1px solid var(--grid); border-radius: 20px; padding: 3px 12px; color: var(--ink-2); } .chip-k { color: var(--muted); margin-right: 6px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; } .doc-head { margin: 30px 0 6px; } .doc-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .doc-head h1 { font-size: 32px; letter-spacing: -0.025em; margin: 0; font-weight: 760; } .doc-head h1::first-letter { text-transform: uppercase; } .doc-head-meta { color: var(--muted); font-size: 13px; margin: 6px 0 0; font-family: ui-monospace, Menlo, monospace; } .doc-layout { display: block; margin-top: 18px; } .doc-layout.has-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; } .doc-layout .doc { margin: 0; max-width: 820px; } .toc { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 16px 18px; max-height: calc(100vh - 104px); overflow-y: auto; box-shadow: var(--shadow-1); } .toc-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; } .toc ul { list-style: none; margin: 10px 0 0; padding: 0; } .toc li { padding: 3px 0; line-height: 1.35; } .toc li a { color: var(--ink-2); font-size: 13px; display: block; border-left: 2px solid transparent; padding-left: 8px; margin-left: -8px; } .toc li a:hover { color: var(--accent-dark); text-decoration: none; border-left-color: var(--accent); } .toc-d3 { padding-left: 14px !important; } .toc-d3 a { font-size: 12.5px !important; color: var(--muted) !important; } .hanchor { opacity: 0; margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 0.85em; } h2:hover .hanchor, h3:hover .hanchor, h4:hover .hanchor { opacity: 1; text-decoration: none; } /* markdown body */ .md { overflow-wrap: break-word; } .md h1 { font-size: 28px; letter-spacing: -0.02em; } .md h2 { font-size: 21px; margin-top: 38px; border-bottom: 1px solid var(--grid); padding-bottom: 7px; letter-spacing: -0.01em; } .md h3 { font-size: 17px; margin-top: 28px; } .md code { background: #f1f0ec; border-radius: 5px; padding: 1px 6px; font-size: 0.88em; } .md pre code, .codeblock code { background: none; padding: 0; font-size: 13px; } .codeblock, .md pre { background: #f6f5f2; border: 1px solid var(--grid); border-radius: 10px; padding: 15px 18px; overflow-x: auto; line-height: 1.55; } .md table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; } .md th, .md td { border: 1px solid var(--grid); padding: 7px 11px; text-align: left; vertical-align: top; } .md th { background: var(--page); } .md blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 16px; color: var(--ink-2); } /* ---------------------------------------------------------------- log */ .log-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; } .log-entry h3 { font-size: 15px; margin: 2px 0 8px; } .timeline { margin: 26px 0; max-width: 880px; } .tl-entry { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; } .tl-rail { position: relative; } .tl-rail::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: -18px; width: 2px; background: var(--grid); } .tl-entry:last-child .tl-rail::before { bottom: auto; height: 24px; } .tl-dot { position: absolute; left: 5px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--page); box-shadow: 0 0 0 1px var(--grid); } .tl-card { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; min-width: 0; box-shadow: var(--shadow-1); } .tl-time { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; } .tl-card h3 { margin: 4px 0 10px; font-size: 16.5px; letter-spacing: -0.01em; } .md-compact { font-size: 14px; color: var(--ink-2); } .md-compact ul { padding-left: 18px; margin: 6px 0; } .md-compact li { margin: 3px 0; } .md-compact p { margin: 6px 0; } .md-compact strong { color: var(--ink); } .md-compact pre { font-size: 12px; padding: 10px 12px; } /* ---------------------------------------------------------------- tables/files */ .results-table, .kv-table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); } .results-table th, .results-table td, .kv-table th, .kv-table td { border: 1px solid var(--grid); padding: 9px 13px; text-align: left; } .results-table th { background: var(--page); } .kv-table th { background: var(--page); width: 190px; } .file-list { list-style: none; padding: 0; } .file-list li { padding: 7px 0; border-bottom: 1px solid var(--grid); } .tree { list-style: none; padding-left: 0; } .tree ul { list-style: none; padding-left: 20px; } .tree-root { margin-bottom: 14px; } .tree li { padding: 2px 0; font-size: 14.5px; } .mono-small { font-size: 12.5px; color: var(--muted); } .file-card { padding: 0; overflow: hidden; } .file-head { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--grid); background: var(--page); } .file-card .codeblock { border: 0; border-radius: 0; margin: 0; } /* ---------------------------------------------------------------- chart */ .chart-fig { margin: 18px 0 8px; position: relative; } .chart-fig svg { width: 100%; height: auto; } .chart-fig .grid { stroke: var(--grid); stroke-width: 1; } .chart-fig .axis { stroke: var(--baseline); stroke-width: 1; } .chart-fig .tick { fill: var(--muted); font-size: 11px; font-family: ui-monospace, Menlo, monospace; } .chart-fig .axis-title { fill: var(--ink-2); font-size: 12px; } .chart-fig .series-label { font-size: 12px; font-weight: 600; } .chart-fig .pt { cursor: pointer; } .chart-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; } .chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 5px 10px; border-radius: 7px; white-space: nowrap; z-index: 5; } /* ---------------------------------------------------------------- comments */ .comments-wrap { max-width: 720px; margin: 0 auto; } .comment-form { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); box-shadow: var(--shadow-1); margin: 26px 0 40px; overflow: hidden; } .cf-head { padding: 14px 22px; font-weight: 700; font-size: 15px; background: linear-gradient(180deg, var(--accent-wash), var(--surface)); border-bottom: 1px solid var(--grid); } .cf-body { padding: 20px 22px 22px; } .field { display: block; margin-bottom: 16px; } .field-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; } .comment-form input, .comment-form textarea { width: 100%; border: 1.5px solid var(--grid); border-radius: 10px; background: var(--page); padding: 11px 14px; font-size: 15px; font-family: inherit; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; resize: vertical; } .comment-form input::placeholder, .comment-form textarea::placeholder { color: var(--baseline); } .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(42,120,214,0.12); } .cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; } .cf-hint { font-size: 12.5px; color: var(--muted); } .hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; border: 0; padding: 0; } .cl-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 20px; } .cl-head h2 { margin: 0; font-size: 18px; font-weight: 750; } .comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--grid); } .comment:last-child { border-bottom: 0; } .avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 750; font-size: 17px; } .comment-main { min-width: 0; flex: 1; } .comment-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; } .comment-name { font-weight: 720; font-size: 15px; } .comment-time { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; } .comment-body { margin: 5px 0 0; font-size: 15px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.6; } .empty-state { text-align: center; padding: 44px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--baseline); border-radius: var(--radius); } .empty-icon { font-size: 30px; display: block; margin-bottom: 8px; } .flash { background: #eef7ee; border: 1px solid #cfe8cf; color: var(--good-text); border-radius: 10px; padding: 11px 18px; margin: 16px 0; font-size: 14px; font-weight: 600; } .flash-err { background: #fdf0ef; border-color: #f2cfcc; color: #a13430; } /* ---------------------------------------------------------------- footer */ .site-footer { border-top: 1px solid var(--grid); margin-top: 56px; background: var(--surface); font-size: 14px; color: var(--ink-2); } .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding: 32px 24px 20px; } .footer-brand { font-weight: 750; color: var(--ink); font-size: 15px; } .footer-tag { font-size: 13px; color: var(--muted); max-width: 340px; margin: 6px 0 0; } .footer-h { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 8px; } .footer-col { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; } .footer-meta { color: var(--muted); font-size: 12px; } .footer-legal { border-top: 1px solid var(--grid); padding: 14px 24px 26px; font-size: 12.5px; color: var(--muted); } /* ---------------------------------------------------------------- mobile */ @media (max-width: 880px) { .split { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } } @media (max-width: 720px) { body { font-size: 15px; } .wrap { padding: 0 16px; } .header-row { height: 56px; } .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; z-index: 60; } .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.22s, opacity 0.18s; } .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .nav-toggle.open span:nth-child(2) { opacity: 0; } .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .site-nav { position: fixed; top: 56px; left: 0; right: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--grid); flex-direction: column; gap: 0; padding: 8px 12px 14px; box-shadow: var(--shadow-2); display: none; } .site-nav.open { display: flex; } .site-nav a { padding: 13px 12px; font-size: 16px; border-radius: 8px; border-bottom: 1px solid var(--grid); } .site-nav a:last-child { border-bottom: 0; } html { scroll-padding-top: 64px; } .hero { padding: 32px 16px 8px; margin: 0 -16px; } .hero h1 { font-size: 27px; } .lede { font-size: 16px; } .lede-eq code { font-size: 11px; white-space: normal; word-break: break-word; } .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; } .tile { padding: 15px 16px; } .tile-value { font-size: 27px; } .card { padding: 18px 18px; } .page-title { font-size: 25px; margin-top: 26px; } .doc-head h1 { font-size: 23px; } .doc-layout.has-toc { display: block; } .toc { position: static; max-height: none; margin-bottom: 16px; } .tl-entry { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; } .tl-card { padding: 13px 15px; } .md h1 { font-size: 22px; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md pre, .codeblock { font-size: 12px; padding: 10px 12px; } .results-table, .kv-table { font-size: 13px; display: block; overflow-x: auto; box-shadow: none; } .kv-table th { width: auto; } .file-head { flex-direction: column; gap: 2px; } .footer-grid { grid-template-columns: 1fr; gap: 18px; } .chart-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; } .chart-fig svg { min-width: 560px; } } @media (max-width: 420px) { .hero h1 { font-size: 24px; } } /* ---- publications ---------------------------------------------------------- */ .pub-list { max-width: 860px; margin: 24px 0; } .pub-card { display: block; background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 18px; color: var(--ink); box-shadow: var(--shadow-1); transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s; } .pub-card:hover { border-color: #b9d2f0; box-shadow: var(--shadow-2); transform: translateY(-2px); text-decoration: none; } .pub-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .pub-card h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; } .pub-authors { margin: 0 0 10px; font-size: 14px; color: var(--accent-dark); font-weight: 600; } .pub-abstract { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); } .md img { max-width: 100%; height: auto; display: block; margin: 20px auto 6px; background: #fff; border: 1px solid var(--grid); border-radius: 10px; padding: 12px; } .md img + em, .md p > img ~ em { display: block; text-align: center; }