praus-benchmarks / styles.css
joinalignedai's picture
Align Methodology heading with body text padding
728412d verified
Raw History Blame
20.5 kB
/*
* Praus Benchmarks — Ortelan lab presentation.
* Vocabulary from ortelan.com/praus (eyebrow, display, sticky tabs,
* featured score + dense ranking, pl-frame corner ticks).
* Layout is distinct from stacked-card lab Spaces.
*/
:root {
--bg: #000;
--bg-2: #0B0B0B;
--card: #0F0F0F;
--card-h: #141414;
--line: rgba(255, 255, 255, 0.10);
--line-2: rgba(255, 255, 255, 0.18);
--fg: #F5F5F4;
--fg-2: rgba(245, 245, 244, 0.64);
--fg-3: rgba(245, 245, 244, 0.42);
--meridian: #2F5BFF;
--meridian-deep: #1B3ACC;
--meridian-wash: rgba(47, 91, 255, 0.12);
--meridian-ring: rgba(47, 91, 255, 0.45);
--pl: rgba(255, 255, 255, 0.09);
--pl-2: rgba(255, 255, 255, 0.26);
--track: rgba(255, 255, 255, 0.06);
--bar-muted: rgba(255, 255, 255, 0.42);
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--dur: 200ms;
--dur-hover: 220ms;
--font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--font-head: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--radius: 2px;
--page: min(1120px, calc(100% - 48px));
--gutter: 24px;
--mast-h: 48px;
--tabs-h: 56px;
--section-y: clamp(36px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font-family: var(--font);
font-size: 15px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
font-optical-sizing: auto;
overflow-x: clip;
}
::selection { background: var(--meridian); color: #fff; }
a {
color: inherit;
text-decoration-color: var(--line-2);
text-underline-offset: 3px;
transition: color var(--dur-hover) var(--ease-out),
text-decoration-color var(--dur-hover) var(--ease-out);
}
a:hover { color: var(--meridian); text-decoration-color: var(--meridian); }
a:focus-visible,
button:focus-visible,
.bm-row:focus-visible {
outline: 2px solid var(--meridian);
outline-offset: 3px;
}
.page {
width: var(--page);
margin: 0 auto;
padding: 0;
display: flex;
flex-direction: column;
gap: 0;
}
/* ---------- instrument frame (Ortelan pl-frame corner ticks) ---------- */
.pl-frame {
position: relative;
border: 1px solid var(--line);
background: var(--bg-2);
padding: clamp(22px, 3vw, 32px);
border-radius: var(--radius);
}
.pl-frame::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
z-index: 2;
--c: var(--pl-2);
--k: 12px;
background:
linear-gradient(var(--c), var(--c)) 0 0 / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--k) no-repeat,
linear-gradient(var(--c), var(--c)) 100% 0 / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--k) no-repeat,
linear-gradient(var(--c), var(--c)) 0 100% / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--k) no-repeat,
linear-gradient(var(--c), var(--c)) 100% 100% / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--k) no-repeat;
transition: inset var(--dur-hover) var(--ease-out);
}
.pl-frame:hover::after { --c: rgba(255, 255, 255, 0.42); }
.pl-frame--chart {
padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) clamp(14px, 2vw, 18px);
}
/* ---------- sticky mast ---------- */
.mast {
position: sticky;
top: 0;
isolation: isolate;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
height: var(--mast-h);
margin: 0;
padding: 0;
background: rgba(0, 0, 0, 0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--line);
}
.mast::before {
content: "";
position: absolute;
left: calc(50% - 50vw);
right: calc(50% - 50vw);
top: 0;
bottom: 0;
width: auto;
background: rgba(0, 0, 0, 0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--line);
z-index: -1;
pointer-events: none;
}
.mast-brand {
display: inline-flex;
align-items: center;
gap: 9px;
text-decoration: none;
color: var(--fg);
font-family: var(--font-head);
font-weight: 500;
font-size: 14px;
letter-spacing: -0.015em;
}
.mast-brand img {
width: 18px;
height: 18px;
border-radius: 2px;
display: block;
}
.mast-brand:hover { color: var(--fg); }
.mast-nav {
display: flex;
gap: 20px;
font-size: 13px;
color: var(--fg-2);
}
.mast-nav a {
text-decoration: none;
transition: color var(--dur-hover) var(--ease-out);
}
.mast-nav a:hover { color: var(--fg); }
/* ---------- hero ---------- */
.hero {
padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
border-bottom: 1px solid var(--line);
}
.eyebrow {
margin: 0 0 12px;
font-family: var(--font);
font-size: 12px;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--fg-3);
}
.display, .h1 {
margin: 0;
font-family: var(--font-head);
font-weight: 500;
letter-spacing: -0.03em;
color: var(--fg);
text-wrap: balance;
}
.display {
font-size: clamp(40px, 6.2vw, 64px);
line-height: 1.02;
max-width: 12ch;
letter-spacing: -0.035em;
}
.lede {
margin: 18px 0 0;
max-width: 48ch;
font-size: 16px;
line-height: 1.55;
color: var(--fg-2);
text-wrap: pretty;
}
.meta-row {
margin-top: 22px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 0;
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.01em;
color: var(--fg-3);
}
.meta-row > span:not(.meta-sep) { padding-right: 12px; }
.meta-sep {
width: 1px;
height: 10px;
background: var(--line-2);
margin-right: 12px;
}
/* ---------- suite / sticky tabs ---------- */
.suite {
padding: clamp(32px, 4.5vw, 52px) 0 0;
}
.suite-head {
margin-bottom: 20px;
max-width: 52ch;
}
.suite-head .h1 {
font-size: clamp(28px, 3.8vw, 40px);
line-height: 1.08;
letter-spacing: -0.03em;
}
.suite-lede {
margin: 10px 0 0;
font-size: 15px;
color: var(--fg-2);
line-height: 1.5;
}
.bm-tabs-wrap {
position: sticky;
top: var(--mast-h);
z-index: 15;
isolation: isolate;
margin: 0;
}
.bm-tabs-wrap::before,
.bm-tabs-wrap::after {
content: "";
position: absolute;
top: 1px;
bottom: 1px;
width: 40px;
z-index: 2;
pointer-events: none;
opacity: 0;
transition: opacity var(--dur-hover) var(--ease-out);
}
.bm-tabs-wrap::before {
left: 0;
background: linear-gradient(90deg, rgba(0,0,0,.95), transparent);
}
.bm-tabs-wrap::after {
right: 0;
background: linear-gradient(270deg, rgba(0,0,0,.95), transparent);
}
.bm-tabs-wrap.is-overflow-start::before,
.bm-tabs-wrap.is-overflow-end::after { opacity: 1; }
.bm-tabs {
position: relative;
display: flex;
flex-wrap: nowrap;
gap: 4px;
overflow-x: auto;
overscroll-behavior-x: contain;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
background: rgba(0, 0, 0, 0.94);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
margin: 0;
padding: 8px 12px;
scroll-padding-inline: 12px;
scroll-snap-type: x proximity;
}
.bm-tabs::before {
content: "";
position: absolute;
left: calc(50% - 50vw);
right: calc(50% - 50vw);
top: 0;
bottom: 0;
width: auto;
background: rgba(0, 0, 0, 0.94);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
z-index: -1;
pointer-events: none;
}
.bm-tabs::-webkit-scrollbar { display: none; }
.bm-tab {
appearance: none;
-webkit-appearance: none;
position: relative;
flex: 0 0 auto;
display: inline-flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 4px;
min-width: 112px;
min-height: 56px;
padding: 10px 14px;
margin: 0;
border: 1px solid transparent;
border-radius: var(--radius);
background: transparent;
color: var(--fg-3);
cursor: pointer;
font: inherit;
text-align: left;
scroll-snap-align: start;
transition: color var(--dur-hover) var(--ease-out),
background-color var(--dur-hover) var(--ease-out),
border-color var(--dur-hover) var(--ease-out),
box-shadow var(--dur-hover) var(--ease-out);
}
.bm-tab::after { display: none; }
.bm-tab__bar { display: none; }
.bm-tab__t {
font-family: var(--font-head);
font-size: 13px;
font-weight: 500;
letter-spacing: -0.015em;
white-space: nowrap;
color: inherit;
}
.bm-tab__s {
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.01em;
color: var(--fg-3);
font-variant-numeric: tabular-nums;
transition: color var(--dur-hover) var(--ease-out);
}
.bm-tab:hover {
color: var(--fg-2);
background: rgba(255, 255, 255, 0.04);
border-color: var(--line);
}
.bm-tab:hover .bm-tab__s { color: var(--fg-2); }
.bm-tab:focus-visible {
color: var(--fg);
outline: 2px solid var(--meridian);
outline-offset: 2px;
}
.bm-tab[aria-selected="true"] {
color: var(--fg);
background: var(--meridian-wash);
border-color: rgba(47, 91, 255, 0.45);
box-shadow: inset 0 -2px 0 var(--meridian);
}
.bm-tab[aria-selected="true"] .bm-tab__s {
color: var(--meridian);
}
.bm-stage {
padding: clamp(24px, 3.5vw, 40px) 0 var(--section-y);
}
/* ---------- board panel: summary + chart ---------- */
.bm-panel {
display: grid;
grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
gap: clamp(20px, 3.5vw, 36px);
align-items: stretch;
animation: bm-in 220ms var(--ease-out);
}
@keyframes bm-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.bm-panel { animation: none; }
}
.bm-sum {
display: flex;
flex-direction: column;
height: 100%;
min-height: 100%;
box-sizing: border-box;
/* shift primary copy down so the frame feels proportional to the ranking */
padding-top: clamp(36px, 5.5vw, 64px);
padding-bottom: clamp(28px, 4vw, 40px);
}
.bm-sum .bm-cat { margin-top: 0; }
.bm-sum .bm-d { margin-top: 22px; }
.bm-sum .bm-sample,
.bm-sum .bm-links {
margin-top: auto;
padding-top: 28px;
}
.bm-panel[hidden] { display: none !important; }
.bm-cat {
margin: 0 0 8px;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--fg-3);
}
.bm-name {
margin: 0;
font-family: var(--font-head);
font-size: 15px;
font-weight: 500;
letter-spacing: -0.01em;
line-height: 1.35;
color: var(--fg-2);
}
.bm-score {
margin: 22px 0 0;
display: flex;
align-items: baseline;
gap: 2px;
color: var(--fg);
white-space: nowrap;
}
.bm-num {
font-family: var(--font-head);
font-size: clamp(56px, 7.2vw, 96px);
font-weight: 500;
letter-spacing: -0.04em;
line-height: 0.92;
font-variant-numeric: tabular-nums;
font-feature-settings: "tnum" 1, "lnum" 1;
}
.bm-panel:has(.bm-chart--cost) .bm-num {
font-size: clamp(40px, 5.2vw, 68px);
}
.bm-u {
font-family: var(--font-head);
font-size: 0.38em;
font-weight: 500;
color: var(--fg-2);
letter-spacing: 0;
margin-left: 2px;
}
.bm-rank {
display: inline-flex;
align-items: center;
min-height: 28px;
margin: 18px 0 0;
padding: 0 11px;
border: 1px solid var(--line-2);
border-radius: var(--radius);
font-family: var(--font-mono);
font-size: 12px;
letter-spacing: 0.01em;
color: var(--meridian);
background: var(--meridian-wash);
border-color: rgba(47, 91, 255, 0.35);
}
.bm-d {
margin: 18px 0 0;
max-width: 46ch;
font-size: 15px;
line-height: 1.55;
color: var(--fg-2);
text-wrap: pretty;
}
.bm-sample, .bm-links, .bm-foot, .bm-scale {
margin: 14px 0 0;
font-size: 12px;
line-height: 1.45;
color: var(--fg-3);
}
.bm-links a {
text-decoration: none;
border-bottom: 1px solid var(--line-2);
transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.bm-links a:hover { border-bottom-color: var(--meridian); color: var(--meridian); }
/* ---------- ranking ---------- */
.bm-chart {
--bm-cols: 28px 18px minmax(110px, 1.15fr) minmax(90px, 1.7fr) 56px;
--bm-gap: 12px;
min-width: 0;
height: 100%;
display: flex;
flex-direction: column;
}
.bm-chart .bm-rows { flex: 1; }
.bm-axis {
display: grid;
grid-template-columns: var(--bm-cols);
column-gap: var(--bm-gap);
height: 18px;
margin: 0 0 4px;
font-family: var(--font-mono);
font-size: 10px;
line-height: 1;
color: var(--fg-3);
font-variant-numeric: tabular-nums;
}
.bm-axis__in {
grid-column: 4;
position: relative;
display: block;
height: 14px;
}
.bm-axis__in span {
position: absolute;
top: 0;
transform: translateX(-50%);
white-space: nowrap;
}
.bm-axis__in span:first-child { transform: none; left: 0 !important; }
.bm-axis__in span:last-child { transform: translateX(-100%); }
.bm-rows {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
border-bottom: 1px solid var(--line);
}
.bm-row {
--k: 0;
display: grid;
grid-template-columns: var(--bm-cols);
column-gap: var(--bm-gap);
align-items: center;
min-height: 40px;
padding: 6px 4px;
margin: 0 -4px;
border-top: 1px solid var(--line);
border-radius: var(--radius);
font-size: 13px;
outline: none;
transition: background-color var(--dur-hover) var(--ease-out);
}
.bm-row:first-child { border-top-color: transparent; }
.bm-row:hover {
background: rgba(255, 255, 255, 0.03);
}
.bm-row:focus-visible {
background: rgba(47, 91, 255, 0.08);
box-shadow: inset 0 0 0 1px var(--meridian-ring);
outline: none;
}
.bm-r {
font-family: var(--font-mono);
font-size: 11px;
color: var(--fg-3);
font-variant-numeric: tabular-nums;
}
.bm-logo {
width: 15px;
height: 15px;
flex-shrink: 0;
object-fit: contain;
opacity: 0.72;
}
.bm-logo.is-praus {
opacity: 1;
border-radius: 2px;
}
.bm-n {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fg-2);
font-size: 13px;
letter-spacing: -0.01em;
}
/* Muted track + short fill — not hairline */
.bm-track {
position: relative;
display: block;
height: 8px;
background: var(--track);
border-radius: 1px;
overflow: hidden;
}
.bm-track i {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: var(--w, 0%);
min-width: 2px;
background: var(--bar-muted);
border-radius: 1px;
transform-origin: left center;
transition: width 280ms var(--ease-out);
}
/* Praus: solid meridian + wash row */
.bm-row.is-us {
background: var(--meridian-wash);
}
.bm-row.is-us:hover {
background: rgba(47, 91, 255, 0.18);
}
.bm-row.is-us .bm-r,
.bm-row.is-us .bm-v {
color: var(--meridian);
font-weight: 500;
}
.bm-row.is-us .bm-n {
color: var(--fg);
font-weight: 500;
}
.bm-row.is-us .bm-track i {
background: var(--meridian);
box-shadow: 0 0 12px rgba(47, 91, 255, 0.35);
}
.bm-v {
text-align: right;
font-family: var(--font-mono);
font-size: 12px;
font-variant-numeric: tabular-nums;
color: var(--fg-2);
}
.bm-scale { margin-top: 12px; }
.bm-foot { margin-top: 10px; max-width: 62ch; }
.pending-slot {
margin: 12px 0 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 72px;
border: 1px dashed var(--line-2);
font-size: 12px;
color: var(--fg-3);
border-radius: var(--radius);
}
.meta-plain {
margin: 14px 0 0;
font-family: var(--font-mono);
font-size: 12px;
letter-spacing: 0.01em;
color: var(--fg-3);
}
/* ---------- methodology ---------- */
.method {
border-top: 1px solid var(--line);
padding: 24px 0 0;
}
.method-panel {
position: relative;
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 0;
}
.method-panel::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
z-index: 2;
--c: var(--pl);
--k: 10px;
background:
linear-gradient(var(--c), var(--c)) 0 0 / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--k) no-repeat,
linear-gradient(var(--c), var(--c)) 100% 0 / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--k) no-repeat,
linear-gradient(var(--c), var(--c)) 0 100% / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--k) no-repeat,
linear-gradient(var(--c), var(--c)) 100% 100% / var(--k) 1px no-repeat,
linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--k) no-repeat;
}
.method-panel > summary {
cursor: pointer;
list-style: none;
padding: 14px 18px;
font-family: var(--font-head);
font-size: 13px;
font-weight: 500;
letter-spacing: -0.01em;
color: var(--fg-2);
transition: color var(--dur-hover) var(--ease-out);
}
.method-panel > summary::-webkit-details-marker { display: none; }
.method-panel > summary::after {
content: "+";
float: right;
color: var(--fg-3);
font-family: var(--font-mono);
}
.method-panel[open] > summary::after { content: "–"; }
.method-panel[open] > summary {
border-bottom: 1px solid var(--line);
color: var(--fg);
}
.method ol {
margin: 0;
padding: 4px 18px 16px;
list-style: none;
}
.method li {
padding: 10px 0;
border-top: 1px solid var(--line);
font-size: 12px;
line-height: 1.55;
color: var(--fg-3);
}
.method li:first-child { border-top: 0; }
.method li::before { content: none; }
/* ---------- site footer ---------- */
.site-foot {
margin: 28px 0 0;
padding: 20px 0 48px;
border-top: 1px solid var(--line);
display: flex;
flex-wrap: wrap;
gap: 12px 24px;
align-items: center;
font-size: 12px;
color: var(--fg-3);
}
.foot-brand {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--fg);
font-family: var(--font-head);
font-weight: 500;
font-size: 13px;
text-decoration: none;
letter-spacing: -0.015em;
}
.foot-brand img { border-radius: 2px; display: block; }
.foot-copy { flex: 1; min-width: 200px; }
.foot-links { margin-left: auto; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--meridian); }
/* ---------- tooltip ---------- */
.tooltip {
position: fixed;
z-index: 50;
pointer-events: none;
min-width: 150px;
max-width: 260px;
background: var(--card-h);
color: var(--fg);
border: 1px solid var(--line-2);
padding: 8px 10px;
font-size: 12px;
line-height: 1.4;
border-radius: var(--radius);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
opacity: 0;
transform: translate(-50%, calc(-100% - 6px));
transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.tooltip.show {
opacity: 1;
transform: translate(-50%, calc(-100% - 10px));
}
.tooltip b {
display: block;
font-size: 13px;
font-family: var(--font-head);
font-weight: 500;
}
.tooltip .tv {
color: #8FA8FF;
font-family: var(--font-mono);
font-weight: 500;
font-variant-numeric: tabular-nums;
}
.tooltip .ts {
display: block;
margin-top: 2px;
color: var(--fg-3);
font-size: 11px;
}
/* ---------- mobile ---------- */
@media (max-width: 900px) {
:root {
--page: calc(100% - 32px);
--gutter: 16px;
--tabs-h: 52px;
}
.bm-panel { grid-template-columns: 1fr; }
.bm-chart {
--bm-cols: 24px 16px minmax(0, 1.1fr) minmax(64px, 1.2fr) 48px;
--bm-gap: 8px;
}
.display { max-width: none; }
.site-foot .foot-links { margin-left: 0; }
.bm-num { font-size: clamp(52px, 14vw, 80px); }
.bm-panel:has(.bm-chart--cost) .bm-num {
font-size: clamp(36px, 10vw, 56px);
}
}
@media (max-width: 560px) {
.bm-chart {
--bm-cols: 20px 14px minmax(0, 1fr) 48px;
}
.bm-axis { display: none; }
.bm-track { grid-column: 3 / -1; grid-row: 2; }
.bm-row {
row-gap: 8px;
padding: 10px 4px 12px;
min-height: 0;
}
.bm-v { grid-column: 4; grid-row: 1; }
.mast-nav { gap: 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
transition: none !important;
animation: none !important;
}
}
/* Stacked boards — no tabs */
.bm-stack {
display: flex;
flex-direction: column;
gap: 28px;
}
.bm-stack .bm-panel {
display: grid;
}
.method-panel.is-open {
display: block;
}
.method-panel .method-h {
font-family: var(--font-sans);
font-size: 15px;
font-weight: 560;
letter-spacing: -0.01em;
color: var(--fg);
margin: 0;
padding: 14px 18px 0;
}
.bm-score .bm-u { display: none; }