/* ============================================================================ * Project : anomaly-atlas * File : web/public/style.css * Purpose : Editorial light theme, mobile-first responsive, CSS-only menu * Author : Simon-Pierre Boucher * Contact : contact@spboucher.ai * Data src : hfmarketdata.io (sole data source) * 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; --paper: #faf8f4; --card: #fffdf9; --ink: #1a1c20; --muted: #5d6167; --faint: #8b8f96; --hairline: #e5e1d6; --hairline-2: #d8d3c4; --accent: #2456c4; --accent-ink: #173a85; --accent-soft: #e8eefb; --warn-bg: #fdf4e3; --warn-border: #ecd9b0; --warn-ink: #6b5322; --ok: #1e7a4d; --ok-soft: #e7f4ec; --pending: #8b8f96; --pending-soft: #efede6; --code-bg: #f3f1ea; --shadow: 0 1px 2px rgba(26, 28, 32, .04), 0 8px 24px -12px rgba(26, 28, 32, .10); --radius: 14px; --font-display: "Fraunces", "Iowan Old Style", Georgia, serif; --font-text: "Inter", -apple-system, "SF Pro Text", "Segoe UI", sans-serif; --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; } * { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } body { margin: 0; background: radial-gradient(1200px 500px at 85% -100px, #f2ede1 0%, transparent 60%), var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } main { flex: 1; width: 100%; } .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; } ::selection { background: var(--accent-soft); } /* ---------------------------------------------------------------- header */ .site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--hairline); } .header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; } .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 640; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); } .brand-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; } .brand:hover { text-decoration: none; } .brand-dim { color: var(--faint); font-weight: 420; font-style: italic; } .site-nav { display: flex; gap: 2px; flex-wrap: wrap; } .site-nav a { color: var(--muted); font-size: .92rem; font-weight: 520; padding: 7px 12px; border-radius: 999px; } .site-nav a:hover { color: var(--ink); background: var(--pending-soft); text-decoration: none; } .site-nav a.active { color: var(--accent-ink); background: var(--accent-soft); } /* CSS-only mobile menu: opaque dropdown panel, no backdrop-filter anywhere */ .nav-toggle { display: none; } .nav-burger { display: none; cursor: pointer; padding: 10px; margin: -10px; } .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; } @media (max-width: 820px) { .nav-burger { display: block; } .site-nav { display: none; position: absolute; left: -20px; right: -20px; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--hairline-2); box-shadow: 0 18px 30px -18px rgba(26, 28, 32, .25); padding: 6px 12px 14px; } .nav-toggle:checked ~ .site-nav { display: flex; } .site-nav a { font-size: 1.05rem; padding: 13px 12px; border-radius: 10px; border-bottom: 1px solid var(--hairline); } .site-nav a:last-child { border-bottom: 0; } .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; } .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } } /* ------------------------------------------------------------ honesty bar */ .honesty-banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-border); color: var(--warn-ink); font-size: .8rem; line-height: 1.5; padding: 9px 0; } .honesty-banner strong { color: #4a3a14; } /* ------------------------------------------------------------------ hero */ .hero { padding: 56px 0 8px; max-width: 60rem; } .kicker { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; } .hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 620; margin: 0 0 18px; } .lede { font-size: 1.08rem; color: var(--muted); max-width: 46rem; margin: 0 0 14px; } .lede em { color: var(--ink); } .lede-eq { margin: 18px 0 0; } .lede-eq code { display: inline-block; font-family: var(--font-mono); font-size: .8rem; background: var(--code-bg); border: 1px solid var(--hairline); border-radius: 10px; padding: 9px 14px; color: var(--ink); overflow-x: auto; max-width: 100%; } .lede-small { color: var(--muted); max-width: 46rem; } .page-title { font-family: var(--font-display); font-weight: 620; letter-spacing: -.015em; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 42px 0 10px; } .section-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 40px 0 6px; } /* ----------------------------------------------------------------- tiles */ .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 34px 0; } .tile { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 2px; } .tile-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 620; line-height: 1; letter-spacing: -.02em; } .tile-denom { font-size: 1.15rem; color: var(--faint); font-weight: 480; } .tile-label { font-size: .8rem; color: var(--muted); } /* ----------------------------------------------------------------- cards */ .split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin: 8px 0 16px; } @media (max-width: 900px) { .split { grid-template-columns: 1fr; } } .card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 16px 0; min-width: 0; } .card h2 { font-family: var(--font-display); font-weight: 620; letter-spacing: -.01em; font-size: 1.3rem; margin: 0 0 12px; } .card-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .more { font-weight: 560; font-size: .92rem; white-space: nowrap; } /* ---------------------------------------------------------------- phases */ .phases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } .phase { display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--hairline); } .phase:last-child { border-bottom: 0; } .phase > div { flex: 1; min-width: 0; } .phase strong { display: block; font-size: .92rem; font-weight: 600; } .phase-detail { font-size: .8rem; color: var(--muted); } .phase-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--pending); } .phase.done .phase-dot { background: var(--ok); } .phase.in-progress .phase-dot { background: var(--accent); } /* ---------------------------------------------------------------- badges */ .badge { display: inline-block; font-size: .7rem; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--pending-soft); color: var(--muted); } .badge-done { background: var(--ok-soft); color: var(--ok); } .badge-in-progress { background: var(--accent-soft); color: var(--accent-ink); } .badge-pending { background: var(--pending-soft); color: var(--pending); } .badge-level-0 { background: var(--pending-soft); color: var(--muted); } .badge-level-1 { background: var(--accent-soft); color: var(--accent-ink); } .badge-level-2 { background: var(--ok-soft); color: var(--ok); } .badge-level-3 { background: #14331f; color: #d9f5e3; } /* --------------------------------------------------------------- doc grid */ .doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 18px 0; } .doc-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; color: var(--ink); min-width: 0; transition: transform .12s ease, border-color .12s ease; } .doc-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--hairline-2); } .doc-card h3 { margin: 0; font-size: 1.02rem; font-weight: 640; letter-spacing: -.01em; } .doc-card p { margin: 0; font-size: .85rem; color: var(--muted); } .doc-card.disabled { opacity: .55; pointer-events: none; } .runs { font-size: .75rem; color: var(--faint); } /* --------------------------------------------------------------- markdown */ .crumb { font-size: .82rem; color: var(--faint); margin: 26px 0 4px; font-family: var(--font-mono); } .doc-head { margin: 8px 0 14px; } .doc-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .doc-head-row h1 { font-family: var(--font-display); font-weight: 620; letter-spacing: -.015em; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; text-transform: capitalize; } .doc-head-meta { font-family: var(--font-mono); font-size: .74rem; color: var(--faint); margin: 6px 0 0; } .doc-layout { display: block; } .doc-layout.has-toc { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; } @media (max-width: 1000px) { .doc-layout.has-toc { display: block; } .toc { display: none; } } .toc { position: sticky; top: 76px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--card); padding: 14px 16px; font-size: .82rem; max-height: calc(100vh - 100px); overflow-y: auto; } .toc-title { font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); } .toc ul { list-style: none; margin: 8px 0 0; padding: 0; } .toc li { margin: 5px 0; } .toc-d3 { padding-left: 14px; } .toc a { color: var(--muted); } .doc { min-width: 0; } .md { font-size: .96rem; } .md h1, .md h2, .md h3 { font-family: var(--font-display); font-weight: 620; letter-spacing: -.01em; margin: 1.6em 0 .5em; line-height: 1.2; } .md h1 { font-size: 1.7rem; } .md h2 { font-size: 1.35rem; } .md h3 { font-size: 1.1rem; } .md p { margin: .7em 0; } .md li { margin: .3em 0; } .md code { font-family: var(--font-mono); font-size: .82em; background: var(--code-bg); border: 1px solid var(--hairline); border-radius: 6px; padding: .1em .4em; overflow-wrap: break-word; } .md pre code, .codeblock code { background: none; border: 0; padding: 0; } .md blockquote { margin: 1em 0; padding: 2px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--accent-ink); } .md table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; margin: 1em 0; } .md th, .md td { border: 1px solid var(--hairline-2); padding: 7px 12px; font-size: .86rem; text-align: left; white-space: nowrap; } .md th { background: var(--code-bg); font-weight: 640; } .md hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; } .md-compact { font-size: .87rem; } .md-compact p { margin: .4em 0; } .hanchor { opacity: 0; margin-left: 8px; font-size: .8em; color: var(--faint); } .md h1:hover .hanchor, .md h2:hover .hanchor, .md h3:hover .hanchor { opacity: 1; } .codeblock { background: var(--code-bg); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-family: var(--font-mono); font-size: .8rem; line-height: 1.55; max-width: 100%; } .note-line { color: var(--muted); font-size: .9rem; margin: 26px 0 40px; } /* highlight.js — quiet light theme */ .hljs { color: var(--ink); } .hljs-comment, .hljs-quote { color: #8a8f7c; font-style: italic; } .hljs-keyword, .hljs-selector-tag, .hljs-meta { color: #9d3b8f; } .hljs-string, .hljs-attr, .hljs-regexp { color: #1e7a4d; } .hljs-number, .hljs-literal { color: #b25710; } .hljs-title, .hljs-name, .hljs-section { color: var(--accent-ink); font-weight: 600; } .hljs-built_in, .hljs-type { color: #0f6f74; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: 700; } /* --------------------------------------------------------------- log/time */ .log-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } .log-entry { min-width: 0; } .log-entry h3 { font-size: 1rem; margin: 4px 0 6px; font-weight: 640; } .tl-time { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); letter-spacing: .05em; } .timeline { display: flex; flex-direction: column; margin: 22px 0 40px; } .tl-entry { display: grid; grid-template-columns: 26px 1fr; gap: 14px; } .tl-rail { position: relative; } .tl-rail::before { content: ""; position: absolute; left: 12px; top: 4px; bottom: -4px; width: 2px; background: var(--hairline-2); } .tl-entry:last-child .tl-rail::before { bottom: auto; height: 30px; } .tl-dot { position: absolute; left: 7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); } .tl-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 18px; min-width: 0; } .tl-card h3 { margin: 4px 0 8px; font-size: 1.05rem; font-weight: 660; } @media (max-width: 640px) { .tl-entry { grid-template-columns: 1fr; } .tl-rail { display: none; } } /* ---------------------------------------------------------------- tables */ .results-table, .kv-table { width: 100%; border-collapse: collapse; margin: 18px 0 40px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: .88rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .results-table thead tr { background: var(--code-bg); } .results-table th, .kv-table th { text-align: left; font-weight: 640; padding: 10px 16px; white-space: nowrap; } .results-table td, .kv-table td { padding: 9px 16px; border-top: 1px solid var(--hairline); } .kv-table th { width: 180px; vertical-align: top; color: var(--muted); } .mono-small { font-family: var(--font-mono); font-size: .74rem; color: var(--faint); } .file-list { list-style: none; padding: 0; margin: 0; } .file-list li { padding: 7px 0; border-bottom: 1px dashed var(--hairline); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .file-list li:last-child { border-bottom: 0; } .tree { list-style: none; padding: 0; margin: 18px 0 40px; } .tree-root { margin: 14px 0; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px 18px; } .tree-root > strong { font-family: var(--font-mono); font-size: .85rem; } .tree-root ul { list-style: none; padding: 6px 0 0 10px; margin: 0; columns: 2; column-gap: 30px; } .tree-root li { font-family: var(--font-mono); font-size: .8rem; padding: 2px 0; break-inside: avoid; } @media (max-width: 700px) { .tree-root ul { columns: 1; } } .file-card { padding: 0; overflow: hidden; } .file-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--hairline); background: var(--code-bg); } .file-card .codeblock { border: 0; border-radius: 0; margin: 0; } .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; } .chip { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); background: var(--code-bg); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 10px; } .chip-k { color: var(--faint); margin-right: 5px; text-transform: uppercase; letter-spacing: .06em; } /* --------------------------------------------------------------- figures */ .chart-fig { margin: 18px 0 6px; } .chart-fig svg { width: 100%; height: auto; display: block; font-family: var(--font-text); } .chart-fig figcaption { font-size: .78rem; color: var(--faint); margin-top: 8px; line-height: 1.5; border-top: 1px solid var(--hairline); padding-top: 8px; } /* ----------------------------------------------------------- publications */ .pub-card { gap: 8px; } .pub-id { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); } .pub-sub { color: var(--accent-ink) !important; font-style: italic; } .pub-head { margin: 40px 0 10px; max-width: 56rem; } .pub-head h1 { font-family: var(--font-display); font-weight: 640; letter-spacing: -.02em; font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1.12; margin: 10px 0 8px; } .pub-subtitle { font-family: var(--font-display); font-style: italic; font-weight: 460; font-size: 1.15rem; color: var(--muted); margin: 0 0 14px; } .pub-meta { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .abstract { background: var(--card); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); padding: 18px 22px; margin: 20px 0 6px; } .abstract-k { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); } .abstract p { margin: 8px 0 0; font-size: .95rem; line-height: 1.65; } .pub-body { font-size: 1.01rem; line-height: 1.7; } .pub-body h2 { margin-top: 2em; padding-top: .8em; border-top: 1px solid var(--hairline); } .pub-body .chart-fig { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 12px; } .pub-footer { margin: 36px 0 20px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: .8rem; color: var(--faint); max-width: 56rem; } /* -------------------------------------------------------------- comments */ .comment-form { display: grid; gap: 12px; margin: 6px 0 10px; } .comment-form label { font-size: .82rem; font-weight: 640; color: var(--muted); display: block; margin-bottom: 4px; } .comment-form input[type="text"], .comment-form textarea { width: 100%; font-family: var(--font-text); font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--hairline-2); border-radius: 10px; padding: 10px 14px; } .comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); } .comment-form textarea { min-height: 120px; resize: vertical; } .comment-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; } .btn { display: inline-block; cursor: pointer; border: 0; background: var(--ink); color: var(--paper); font-family: var(--font-text); font-weight: 640; font-size: .95rem; padding: 11px 22px; border-radius: 999px; justify-self: start; } .btn:hover { background: var(--accent-ink); } .form-note { font-size: .78rem; color: var(--faint); margin: 0; } .form-error { background: #fbecec; border: 1px solid #eac3c3; color: #8a2a2a; border-radius: 10px; padding: 10px 14px; font-size: .88rem; } .form-ok { background: var(--ok-soft); border: 1px solid #bfe3cd; color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: .88rem; } .comment-list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 40px; } .comment { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; } .comment-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; } .comment-head strong { font-size: .95rem; } .comment-body { font-size: .92rem; color: var(--ink); white-space: pre-wrap; overflow-wrap: break-word; } .comment-page { font-family: var(--font-mono); font-size: .7rem; color: var(--faint); } /* ---------------------------------------------------------------- footer */ .site-footer { border-top: 1px solid var(--hairline); background: var(--card); margin-top: 48px; padding: 20px 0; font-size: .8rem; color: var(--muted); } .site-footer .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .footer-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); } @media (max-width: 640px) { body { font-size: 15px; } .hero { padding-top: 34px; } .card { padding: 18px; } .tiles { grid-template-columns: repeat(2, 1fr); } .site-footer .wrap { flex-direction: column; } }