nuckcrews's picture
Publish CPU Floor Lab
5cfb9fc verified
Raw History Blame Contribute Delete
5.36 kB
:root {
color-scheme: light;
--ink: #18201d;
--muted: #66706b;
--paper: #f2efe8;
--card: #fbfaf6;
--line: #d7d2c7;
--orange: #ed6a35;
--teal: #167b72;
--blue: #4466b0;
--yellow: #b8860b;
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
font-synthesis: none;
-webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
.topbar, main, footer { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 760; text-decoration: none; }
.brand span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; background: var(--ink); color: white; font: 700 12px/1 ui-monospace, monospace; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.hero { max-width: 1000px; padding: clamp(72px, 11vw, 138px) 0 64px; }
.kicker { margin: 0 0 13px; color: var(--orange); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
h1 { margin: 0; max-width: 930px; font-size: clamp(44px, 7.5vw, 91px); line-height: .98; letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; }
h3 { margin: 14px 0 7px; font-size: 16px; }
.lede { max-width: 740px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.lab { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 24px 70px rgba(46, 40, 28, .08); }
.lab-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
#selection-summary { margin: 0; color: var(--muted); font: 500 12px/1.4 ui-monospace, monospace; text-align: right; }
.controls { display: grid; grid-template-columns: 1fr minmax(210px, .35fr); gap: 16px; margin-bottom: 24px; }
fieldset, .select-control { min-width: 0; margin: 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; }
legend, .select-control { color: var(--muted); font-size: 12px; }
fieldset label { display: inline-flex; align-items: center; gap: 8px; margin: 6px 20px 4px 0; color: var(--ink); font-size: 14px; }
input { width: 17px; height: 17px; accent-color: var(--orange); }
select { width: 100%; min-height: 40px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
input:focus-visible, select:focus-visible, a:focus-visible, .table-wrap:focus-visible { outline: 3px solid rgba(237,106,53,.28); outline-offset: 2px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font: 650 10px/1.2 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 13px; line-height: 1.45; }
td:first-child, td:nth-child(4) { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.values { display: grid; gap: 4px; color: var(--muted); font-family: ui-monospace, monospace; }
.floor-value { color: var(--ink); font-weight: 750; }
.rule { display: inline-flex; min-width: 48px; padding: 5px 8px; justify-content: center; border-radius: 6px; color: white; font: 750 10px/1 ui-monospace, monospace; }
.rule.flags { background: var(--teal); }
.rule.numeric { background: var(--blue); }
.rule.pin { background: var(--orange); }
.rule.ignore { background: var(--yellow); }
.semantics { display: grid; grid-template-columns: .42fr 1fr; gap: clamp(32px, 6vw, 80px); padding: 90px 0; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(251,250,246,.55); }
.rule-grid p, .warning p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.warning { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-bottom: 70px; padding: 28px; border: 1px solid rgba(237,106,53,.36); border-radius: 14px; background: #fff1e8; }
.warning > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-weight: 800; }
.warning h2 { margin-bottom: 8px; font-size: 24px; }
footer { min-height: 90px; border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
.controls, .semantics { grid-template-columns: 1fr; }
.lab-head, footer { align-items: flex-start; flex-direction: column; }
#selection-summary { text-align: left; }
.rule-grid { grid-template-columns: 1fr; }
footer { justify-content: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }