@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root { --ink:#19352f; --muted:#66736d; --paper:#f6f5ef; --panel:#fffef9; --green:#148a5d; --green-soft:#dcecdf; --coral:#ec5e4f; --line:#d9ded5; --grid:#dce3dd; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"DM Sans",sans-serif; }
main { width:min(1180px, calc(100% - 48px)); margin:auto; }
.nav { height:94px; display:flex; align-items:center; gap:28px; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); text-decoration:none; font-family:Fraunces,serif; font-size:31px; letter-spacing:-1.8px; display:flex; align-items:center; gap:7px; }
.brand-mark { width:26px; height:26px; color:var(--panel); background:var(--green); border-radius:50%; display:grid; place-items:center; font:500 22px/1 Fraunces; padding-bottom:4px; }
.nav-note { color:var(--muted); font:500 12px "DM Mono",monospace; text-transform:uppercase; letter-spacing:.08em; }
.pulse { width:7px; height:7px; display:inline-block; margin-right:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px #d3e8dc; }
.nav-link { color:var(--ink); font-size:14px; text-decoration:none; border-bottom:1px solid var(--ink); padding-bottom:2px; }.nav-link-first { margin-left:auto; }.nav-link.current { color:var(--green); border-color:var(--green); }
.hero { padding:94px 0 60px; max-width:820px; }
.eyebrow { margin:0 0 14px; color:var(--green); font:500 11px "DM Mono",monospace; letter-spacing:.13em; text-transform:uppercase; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:25px; font:600 clamp(52px,8vw,92px)/.98 Fraunces,serif; letter-spacing:-.065em; color:var(--ink); }
.intro { max-width:635px; color:#4f5f58; font-size:19px; line-height:1.55; }
.explorer { display:grid; grid-template-columns:1fr; gap:20px; }
.query-panel,.chart-panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; box-shadow:0 9px 22px rgba(29,48,40,.035); }
.query-panel { padding:27px 30px 22px; }
label { display:block; font:600 15px "DM Sans"; margin-bottom:12px; }
.search-row { display:flex; gap:10px; }
.search-wrap { flex:1; position:relative; }
input { width:100%; height:50px; padding:0 45px 0 15px; color:var(--ink); background:#fff; border:1px solid #bdc9c0; border-radius:5px; font:16px "DM Sans"; outline:none; transition:border .2s,box-shadow .2s; }
input:focus { border-color:var(--green); box-shadow:0 0 0 3px #dcecdf; }
.search-icon { position:absolute; right:15px; top:11px; font:26px/1 sans-serif; color:#77847d; transform:rotate(-20deg); }
.button { min-width:142px; height:50px; border:0; border-radius:5px; cursor:pointer; padding:0 18px; font:600 14px "DM Sans"; transition:transform .15s, background .15s; }
.button:hover { transform:translateY(-1px); }.button:disabled { cursor:wait; opacity:.7; transform:none; }
.button-dark { color:white; background:var(--ink); }.button-dark:hover { background:#275147; }
.field-help { margin:10px 0 18px; color:var(--muted); font-size:13px; }
.quick-picks { display:flex; gap:9px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:12px; }
.quick-picks span { margin-right:3px; }.quick-picks button { color:#2d6250; background:#edf3ed; border:0; border-radius:99px; padding:6px 10px; cursor:pointer; font:500 12px "DM Sans"; }.quick-picks button:hover { background:#dcecdf; }
.results { display:none; z-index:3; position:absolute; top:55px; left:0; right:0; overflow:auto; max-height:280px; padding:4px; background:white; border:1px solid #bdc9c0; border-radius:5px; box-shadow:0 10px 24px rgba(19,46,37,.12); }.results.visible { display:block; }
.result { width:100%; display:block; cursor:pointer; text-align:left; color:var(--ink); background:transparent; border:0; border-radius:3px; padding:10px 11px; font:14px "DM Sans"; }.result:hover { background:#eff5ef; }.result small { display:block; color:var(--muted); margin-top:3px; font:11px "DM Mono"; }
.chart-panel { padding:31px 30px 24px; min-height:530px; }.chart-topline { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }.chart-topline .eyebrow { margin-bottom:7px; }.chart-topline h2 { font:600 27px/1.15 Fraunces,serif; letter-spacing:-.04em; }.status { color:var(--muted); margin-top:4px; white-space:nowrap; font:12px "DM Mono"; }.status-dot { display:inline-block; width:7px; height:7px; margin-right:5px; background:#b5c2b9; border-radius:50%; }.status.loading .status-dot { background:#e7a23a; animation:blink 1s ease-in-out infinite; }.status.ready .status-dot { background:var(--green); }@keyframes blink { 50%{opacity:.25} }
.chart-shell { position:relative; height:325px; border:1px solid var(--line); background:#fff; overflow:hidden; }.chart-shell canvas { width:100%; height:100%; display:block; }.chart-overlay { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; color:var(--muted); background:rgba(255,255,255,.88); text-align:center; font-size:14px; }.chart-overlay.hidden { display:none; }.loading-ring { width:24px; height:24px; margin-bottom:12px; border:2px solid #cfe4d9; border-top-color:var(--green); border-radius:50%; animation:spin .8s linear infinite; } @keyframes spin { to { transform:rotate(360deg); } }
.tooltip { z-index:2; position:absolute; padding:8px 10px; color:white; background:var(--ink); border-radius:4px; font:11px/1.5 "DM Mono"; pointer-events:none; transform:translate(-50%, calc(-100% - 12px)); }.tooltip:after { content:""; position:absolute; left:50%; bottom:-5px; width:9px; height:9px; background:var(--ink); transform:translateX(-50%) rotate(45deg); }
.chart-footer { display:flex; justify-content:space-between; gap:12px; margin-top:9px; color:var(--muted); font:11px "DM Mono"; }.stats { display:grid; grid-template-columns:repeat(4,1fr); margin-top:28px; border-top:1px solid var(--line); }.stats div { padding:16px 16px 2px 0; border-right:1px solid var(--line); }.stats div+div { padding-left:17px; }.stats div:last-child { border:0; }.stats span { display:block; margin-bottom:6px; color:var(--muted); text-transform:uppercase; font:10px "DM Mono"; letter-spacing:.03em; }.stats strong { color:var(--ink); font:600 15px "DM Sans"; }.source-line { margin:22px 0 0; color:var(--muted); font-size:11px; }.source-line a { color:inherit; }
.method { display:grid; grid-template-columns:.9fr 1.1fr; gap:80px; margin:106px 0 90px; padding:45px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.method h2 { margin:0; font:500 37px/1.06 Fraunces,serif; letter-spacing:-.045em; }.method-copy { padding-top:17px; color:#4f5f58; font-size:16px; line-height:1.65; }.method-copy p:last-child { margin:0; }.method-copy b { color:var(--green); }footer { display:flex; justify-content:space-between; padding:0 0 35px; color:var(--muted); font:11px "DM Mono"; }footer a { color:inherit; }
.article-page { max-width:980px; }.article-hero { max-width:760px; padding:94px 0 76px; }.article-hero h1 { margin-bottom:25px; }.article-hero > p:last-child { max-width:610px; color:#4f5f58; font-size:19px; line-height:1.55; }.algorithm-content { border-top:1px solid var(--line); }.algorithm-section { display:grid; grid-template-columns:110px 1fr; gap:38px; padding:54px 0; border-bottom:1px solid var(--line); }.section-number { color:var(--green); font:500 12px "DM Mono"; letter-spacing:.12em; }.algorithm-section h2,.source-card h2 { margin:0 0 17px; font:500 36px/1.06 Fraunces,serif; letter-spacing:-.045em; }.algorithm-section p,.source-card p { max-width:690px; color:#4f5f58; font-size:16px; line-height:1.7; }.algorithm-section code { color:#205b47; font:12px "DM Mono"; }.algorithm-section aside { max-width:690px; margin-top:25px; padding:15px 18px; color:#587067; background:#e8f0e9; border-left:3px solid var(--green); font-size:14px; line-height:1.55; }.algorithm-section aside strong { display:block; margin-bottom:3px; color:var(--ink); }.formula { display:flex; align-items:center; gap:18px; margin:29px 0 5px; padding:22px 24px; color:var(--ink); background:#fbfcf8; border:1px solid var(--line); font:18px/1.65 Fraunces,serif; }.formula .cases { border-left:1px solid #b7c4ba; padding-left:18px; }.formula b { color:var(--green); }.formula em { color:var(--coral); font-style:normal; font-weight:600; }.algorithm-section pre { overflow:auto; max-width:690px; margin:26px 0 0; padding:20px; color:#dcecdf; background:#17362e; border-radius:5px; font:13px/1.65 "DM Mono"; }.algorithm-section pre code { color:inherit; }.source-card { margin:72px 0 90px; padding:42px 46px; background:#dcecdf; border-radius:8px; }.source-card h2 { font-size:40px; }.source-card .button { display:inline-flex; align-items:center; justify-content:center; margin-top:9px; text-decoration:none; }
.gallery-hero { max-width:760px; padding:90px 0 50px; }.gallery-hero h1 { margin-bottom:23px; }.gallery-hero > p:not(.eyebrow) { max-width:610px; color:#4f5f58; font-size:18px; line-height:1.55; }.gallery-key { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:30px; color:var(--muted); font:11px "DM Mono"; }.gallery-disclaimer { max-width:660px; margin:24px 0 0; padding:13px 16px; color:#587067; background:#e8f0e9; border-left:3px solid var(--green); font-size:13px !important; line-height:1.55 !important; }.gallery-disclaimer strong { color:var(--ink); }.key-line { width:28px; height:2px; display:inline-block; margin-right:1px; background:linear-gradient(90deg,var(--green),var(--coral)); }.key-dot { width:7px; height:7px; display:inline-block; margin-left:10px; border-radius:50%; }.key-dot.green { background:var(--green); }.key-dot.coral { background:var(--coral); }.skew-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-bottom:85px; }.skew-card { position:relative; min-width:0; padding:13px 13px 11px; background:var(--panel); border:1px solid var(--line); border-radius:6px; transition:transform .18s,box-shadow .18s; }.skew-card:hover { z-index:1; transform:translateY(-3px); box-shadow:0 10px 20px rgba(29,48,40,.09); }.mini-skew { width:100%; height:105px; display:block; margin-bottom:11px; background:#fcfdf9; border:1px solid #edf0e9; }.skew-card-copy h2 { overflow:hidden; margin:0 0 4px; color:var(--ink); font:500 16px/1.1 Fraunces,serif; letter-spacing:-.025em; text-overflow:ellipsis; white-space:nowrap; }.skew-card-copy p { overflow:hidden; margin:0; color:var(--muted); font:9px "DM Mono"; text-overflow:ellipsis; white-space:nowrap; }.skew-extrema { display:flex; gap:10px; margin-top:11px; color:var(--muted); font:10px "DM Mono"; }.skew-extrema span:first-child { color:var(--green); }.skew-extrema span:last-child { color:var(--coral); }.gallery-loading { grid-column:1/-1; min-height:250px; display:grid; place-content:center; justify-items:center; color:var(--muted); text-align:center; font-size:14px; }.gallery-loading code { color:var(--green); font:12px "DM Mono"; }
.gallery-search { display:flex; align-items:end; gap:18px; margin:0 0 23px; padding:16px 18px; background:#e9f0e9; border-radius:6px; }.gallery-search label { margin:0 0 7px; font-size:12px; }.gallery-search-field { position:relative; flex:1; }.gallery-search-field input { height:42px; padding-right:38px; font-size:14px; }.gallery-search-field span { position:absolute; right:13px; top:7px; color:var(--muted); font-size:23px; transform:rotate(-20deg); }.gallery-search p { min-width:105px; margin:0 0 12px; color:var(--muted); text-align:right; font:11px "DM Mono"; }.gallery-more { display:flex; justify-content:center; margin:-48px 0 84px; }.gallery-more .button { width:auto; }.skew-card { color:inherit; text-decoration:none; }.card-arrow { position:absolute; top:11px; right:12px; color:var(--green); opacity:0; transition:opacity .18s; }.skew-card:hover .card-arrow,.skew-card:focus-visible .card-arrow { opacity:1; }.skew-card:focus-visible { outline:3px solid #a8d8ba; outline-offset:2px; }.details-page { max-width:980px; }.back-link { display:inline-block; margin-top:38px; color:var(--green); font:12px "DM Mono"; text-decoration:none; }.details-loading { min-height:500px; display:grid; place-content:center; justify-items:center; color:var(--muted); }.genome-details { padding:32px 0 90px; }.details-hero { margin-bottom:31px; }.details-hero h1 { max-width:850px; margin:0 0 13px; font:500 clamp(41px,6vw,72px)/1 Fraunces,serif; letter-spacing:-.06em; }.details-hero > p:not(.eyebrow) { color:var(--muted); font:13px "DM Mono"; }.source-button { display:inline-block; margin-top:8px; color:var(--ink); background:#dcecdf; border-radius:4px; padding:10px 12px; font:600 12px "DM Sans"; text-decoration:none; }.details-chart { padding:20px; background:#fffef9; border:1px solid var(--line); border-radius:6px; }.details-chart canvas { width:100%; height:330px; display:block; }.details-axis { display:flex; justify-content:space-between; padding:4px 4px 0 55px; color:var(--muted); font:10px "DM Mono"; }.details-stats { display:grid; grid-template-columns:repeat(4,1fr); margin:20px 0 75px; border-top:1px solid var(--line); }.details-stats div { padding:15px 14px 0 0; border-right:1px solid var(--line); }.details-stats div+div { padding-left:14px; }.details-stats div:last-child { border:0; }.details-stats span { display:block; margin-bottom:6px; color:var(--muted); font:10px "DM Mono"; text-transform:uppercase; }.details-stats strong { font:600 13px "DM Sans"; }.metadata { display:grid; grid-template-columns:.65fr 1.35fr; gap:40px; padding-top:40px; border-top:1px solid var(--line); }.metadata h2 { margin:0; font:500 34px/1 Fraunces,serif; letter-spacing:-.05em; }.metadata dl { display:grid; grid-template-columns:repeat(2,1fr); gap:0 18px; margin:0; }.metadata dl div { padding:12px 0; border-bottom:1px solid var(--line); }.metadata dt { margin-bottom:5px; color:var(--muted); font:10px "DM Mono"; text-transform:uppercase; }.metadata dd { margin:0; overflow-wrap:anywhere; color:var(--ink); font-size:13px; line-height:1.4; }
.gallery-filters { display:grid; grid-template-columns:1.15fr 1.85fr; gap:20px; margin:-8px 0 28px; padding:18px; background:var(--panel); border:1px solid var(--line); border-radius:6px; }.filter-preference { padding-right:19px; border-right:1px solid var(--line); }.filter-preference p { margin:9px 0 0 29px; color:var(--muted); font-size:12px; line-height:1.45; }.switch { display:flex; align-items:center; gap:9px; margin:0; cursor:pointer; font-size:13px; }.switch input { position:absolute; width:1px; height:1px; opacity:0; }.switch span { position:relative; width:32px; height:18px; flex:0 0 auto; border-radius:99px; background:#bdc9c0; transition:background .2s; }.switch span:after { content:""; position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:white; transition:transform .2s; }.switch input:checked + span { background:var(--green); }.switch input:checked + span:after { transform:translateX(14px); }.switch input:focus-visible + span { outline:3px solid #bfe0cb; outline-offset:2px; }.filter-fields { display:grid; grid-template-columns:1.1fr 1.2fr 1fr .75fr .75fr auto; align-items:end; gap:9px; }.filter-fields label { margin:0; color:var(--muted); font:10px "DM Mono"; text-transform:uppercase; }.filter-fields select,.filter-fields input { width:100%; height:37px; margin-top:6px; padding:0 9px; color:var(--ink); background:white; border:1px solid #bdc9c0; border-radius:4px; font:12px "DM Sans"; }.filter-fields .filter-max { color:transparent; }.filter-clear { height:37px; padding:0 10px; color:#2d6250; background:#e8f0e9; border:1px solid #c4d8ca; border-radius:4px; cursor:pointer; font:600 11px "DM Sans"; white-space:nowrap; }.filter-clear:hover { background:#dcecdf; }
.filter-legend { display:flex; flex-wrap:wrap; gap:7px 18px; margin:-12px 0 27px; color:var(--muted); font-size:11px; line-height:1.5; }.filter-legend strong { color:var(--ink); font:600 11px "DM Mono"; text-transform:uppercase; letter-spacing:.06em; }.filter-legend b { color:#2d6250; font-weight:600; }
@media (max-width:680px) { main{width:min(100% - 28px,1180px)} .nav{height:75px;gap:12px}.nav-note{display:none}.hero,.article-hero,.gallery-hero{padding:65px 0 42px}h1{font-size:55px}.intro{font-size:17px}.query-panel,.chart-panel{padding:22px 18px}.search-row{display:block}.button{margin-top:10px;width:100%}.quick-picks{margin-top:3px}.chart-topline{display:block}.status{margin:-5px 0 16px}.chart-shell{height:270px}.chart-footer{font-size:9px}.stats{grid-template-columns:repeat(2,1fr)}.stats div:nth-child(2){border:0}.stats div:nth-child(n+3){border-top:1px solid var(--line);padding-top:14px}.method{display:block;margin:76px 0 55px;padding:35px 0}.method h2{font-size:33px}.method-copy{padding-top:26px}.algorithm-section{grid-template-columns:1fr;gap:13px;padding:38px 0}.algorithm-section h2,.source-card h2{font-size:32px}.formula{display:block;padding:18px;font-size:16px}.formula .cases{display:block;margin-top:8px;padding-left:13px}.source-card{margin:55px 0;padding:29px 23px}.source-card .button{width:auto}.gallery-search{display:block;padding:14px}.gallery-search p{margin:10px 0 0;text-align:left}.gallery-filters{display:block;margin-top:-8px;padding:14px}.filter-preference{padding:0 0 15px;border:0;border-bottom:1px solid var(--line)}.filter-fields{grid-template-columns:repeat(2,1fr);margin-top:14px}.filter-clear{grid-column:1/-1}.skew-gallery{grid-template-columns:repeat(2,1fr);gap:9px}.skew-card{padding:9px}.mini-skew{height:84px;margin-bottom:8px}.skew-card-copy h2{font-size:14px}.skew-extrema{margin-top:8px;font-size:9px}.details-chart{padding:10px}.details-chart canvas{height:245px}.details-stats{grid-template-columns:repeat(2,1fr);margin-bottom:50px}.details-stats div:nth-child(2){border:0}.details-stats div:nth-child(n+3){border-top:1px solid var(--line);padding-top:13px}.metadata{display:block;padding-top:30px}.metadata dl{margin-top:27px;grid-template-columns:1fr}.details-hero h1{font-size:42px}footer{display:block;line-height:1.6}footer span{display:block}.nav-link{font-size:11px} }
