codehygiene / web /src /styles.css
brianbellx's picture
Deploy scoring-only Space: remove edit model and fix features
a1415e8 verified
Raw History Blame Contribute Delete
29.4 kB
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("@fontsource-variable/host-grotesk/files/host-grotesk-latin-wght-normal.woff2") format("woff2"); } @font-face { font-family: "Google Sans Code"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("@fontsource-variable/google-sans-code/files/google-sans-code-latin-wght-normal.woff2") format("woff2"); } :root { color-scheme: light dark; --page: light-dark(#f7f7f5, #161615); --surface: light-dark(#ffffff, #1c1c1b); --sunken: light-dark(#fafaf8, #191918); --fill: light-dark(#efeeeb, #262625); --fill-hover: light-dark(#e7e6e2, #2e2e2c); --hover: light-dark(rgba(28, 28, 26, 0.045), rgba(255, 255, 250, 0.045)); --selected: light-dark(rgba(28, 28, 26, 0.075), rgba(255, 255, 250, 0.075)); --line: light-dark(rgba(28, 28, 26, 0.085), rgba(255, 255, 250, 0.075)); --line-strong: light-dark(rgba(28, 28, 26, 0.15), rgba(255, 255, 250, 0.13)); --ink: light-dark(#1c1c1a, #ecebe6); --ink-2: light-dark(#4d4c48, #b5b3ac); --ink-3: light-dark(#6e6c66, #918f89); --ink-faint: light-dark(#adaba5, #5d5c58); --red: light-dark(#c8383e, #f2777b); --green: light-dark(#2c7a4d, #86c69a); --bg-del: light-dark(rgba(200, 56, 62, 0.065), rgba(242, 119, 123, 0.075)); --bg-add: light-dark(rgba(44, 122, 77, 0.075), rgba(134, 198, 154, 0.08)); --bg-flag: light-dark(rgba(200, 56, 62, 0.035), rgba(242, 119, 123, 0.045)); --tok-comment: light-dark(#74726b, #8c8a84); --tok-keyword: light-dark(#6a4fb0, #b9a7ea); --tok-string: light-dark(#8a5a14, #dbb889); --tok-number: light-dark(#1f6889, #8cc3da); --shadow-color: light-dark(rgba(28, 28, 26, 0.06), rgba(0, 0, 0, 0)); --shadow-stage: 0 1px 2px var(--shadow-color), 0 12px 32px -16px var(--shadow-color); --shadow-menu: 0 16px 40px light-dark(rgba(28, 28, 26, 0.12), rgba(0, 0, 0, 0.5)), 0 2px 6px light-dark(rgba(28, 28, 26, 0.06), rgba(0, 0, 0, 0.3)); --focus: light-dark(#4d4c48, #b5b3ac); --focus-moat: var(--page); --selection: light-dark(rgba(106, 79, 176, 0.16), rgba(185, 167, 234, 0.24)); --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 3 Q2 0.8 4 3 T8 3' fill='none' stroke='%23c8383e' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E"); --font-sans: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --radius-sm: 6px; --radius: 10px; --radius-stage: 14px; --gutter: 58px; --motion: 140ms; --ease: cubic-bezier(0.2, 0, 0, 1); --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); } @media (prefers-color-scheme: dark) { :root { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 3 Q2 0.8 4 3 T8 3' fill='none' stroke='%23f2777b' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E"); } } *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; } body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/22px var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ::selection { background: var(--selection); } h1, h2, p { margin: 0; } button, input { font: inherit; color: inherit; } button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; } a { color: inherit; text-decoration: none; } :is(a, button, [tabindex="0"]):focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-moat), 0 0 0 3.5px var(--focus); } [hidden] { display: none !important; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .sprite { position: absolute; width: 0; height: 0; } .icon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .icon-button { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-3); transition: background-color var(--motion) var(--ease), color var(--motion) var(--ease), transform 160ms var(--ease-out); } .icon-button:hover { background: var(--hover); color: var(--ink); transition-duration: 0s, 0s, 160ms; } .icon-button:active { background: var(--selected); transform: scale(0.94); transition-duration: 0s, 0s, 100ms; } .icon-button[aria-label="Copied"] { color: var(--green); } .icon-button[aria-label="Copied"] .icon { animation: copied-pop 220ms var(--ease-out) both; } .icon-button[aria-label="Copy failed"] { color: var(--red); } .icon-button.is-done { color: var(--green); } .icon-button.is-busy { color: var(--ink); cursor: progress; animation: breathe 1.2s ease-in-out infinite; } body:has(> .page) { display: flex; flex-direction: column; height: 100svh; } .page { display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; min-height: 600px; max-width: 1120px; margin: 0 auto; padding: 0 24px; } .banner { flex: none; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; line-height: 18px; } .banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; height: 36px; margin: 0 auto; padding: 0 24px; } .banner-stats { display: flex; align-items: center; gap: 20px; min-width: 0; border-radius: var(--radius-sm); white-space: nowrap; transition: color var(--motion) var(--ease); } .banner-stats::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: -12px; border-radius: 50%; background: var(--green); } .banner-stats:hover { color: var(--ink-2); } .banner-stat b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; } .banner-links { display: flex; flex: none; align-items: center; gap: 20px; margin-left: auto; } .banner-link { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-sm); color: var(--ink); } .banner-link[hidden] { display: none; } .banner-link .icon { width: 14px; height: 14px; } .banner-link .banner-link-arrow { width: 10px; height: 10px; color: var(--ink-3); transition: color var(--motion) var(--ease), transform 160ms var(--ease-out); } .banner-link:hover .banner-link-arrow { color: var(--ink); transform: translate(1px, -1px); } .banner:not([hidden]) + .page .intro { padding-top: 44px; } .rank-pill { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 28px; margin-right: 2px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color var(--motion) var(--ease); } .rank-pill:hover { background: var(--fill-hover); } .rank-pill .icon { width: 14px; height: 14px; color: var(--green); } main { display: flex; flex: 1; flex-direction: column; min-height: 0; } .intro { position: relative; padding-top: 64px; } .headline { text-align: center; font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; } .headline-link { border-radius: var(--radius-sm); text-decoration: underline 1.5px transparent; text-underline-offset: 5px; transition: text-decoration-color var(--motion) var(--ease); } .headline-link:hover { text-decoration-color: var(--line-strong); } .headline-arrow { display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.1em; vertical-align: 0.34em; overflow: visible; color: var(--ink-3); stroke-width: 1.75; transition: color var(--motion) var(--ease), transform 160ms var(--ease-out); } .headline-link:hover .headline-arrow { color: var(--ink); transform: translate(1px, -1px); } .sources { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; } .source { width: min(420px, 100%); } .sources-or { color: var(--ink-3); font-size: 13px; } .source-field { --focus-moat: var(--surface); position: relative; flex: 1; min-width: 0; } .source-icon { position: absolute; top: 13px; left: 16px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; transition: color var(--motion) var(--ease); } .source-field:focus-within .source-icon, .source-field:has(.source-input:not(:placeholder-shown)) .source-icon { color: var(--ink); } .intro:has(.source-progress:not([hidden])) .source-icon { animation: breathe 1.8s ease-in-out infinite; } .source-input { width: 100%; height: 44px; padding: 0 48px 0 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px var(--shadow-color); transition: border-color var(--motion) var(--ease), box-shadow var(--motion) var(--ease); } .source-input::placeholder { color: var(--ink-3); } .source-input:hover { border-color: var(--ink-faint); } .source-input:focus-visible { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 1px var(--ink-3), 0 0 0 5px var(--hover); } .intro:has(.source-error:not([hidden])) .source-input { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); } .source-submit { position: absolute; top: 6px; right: 6px; color: var(--ink); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms, background-color var(--motion) var(--ease), color var(--motion) var(--ease); } .source-input:placeholder-shown ~ .source-submit { visibility: hidden; opacity: 0; transform: translateX(-6px); pointer-events: none; } .ghost.source-upload { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 16px; font-weight: 500; } .source-upload .icon { width: 18px; height: 18px; color: var(--ink-2); } .source-progress, .source-error { position: absolute; top: 100%; right: 0; left: 0; margin-top: 12px; text-align: center; font-size: 13px; line-height: 20px; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); } @starting-style { .source-progress, .source-error { opacity: 0; transform: translateY(-3px); } } .source-progress { color: var(--ink-3); font-variant-numeric: tabular-nums; } .source-error { color: var(--red); } .run { display: flex; flex: 1; flex-direction: column; min-height: 0; margin-top: 44px; } .sample, .stage { view-transition-name: workspace; } .sample { --focus-moat: var(--page); position: relative; display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-stage); background: var(--surface); box-shadow: var(--shadow-stage); overflow: hidden; transition: border-color var(--motion) var(--ease); } .sample:hover { border-color: var(--ink-faint); } .sample:has(.sample-run:focus-visible) { box-shadow: 0 0 0 2px var(--page), 0 0 0 3.5px var(--focus); } .sample-head { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); } .sample .sample-code { overflow: hidden; mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); } .sample-run { position: absolute; z-index: 2; inset: 0; border-radius: inherit; } .sample-run:focus-visible { box-shadow: none; } ::view-transition-group(workspace) { overflow: clip; border-radius: var(--radius-stage); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-stage); animation-duration: 640ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); } ::view-transition-image-pair(workspace) { overflow: clip; } ::view-transition-old(workspace), ::view-transition-new(workspace) { width: auto; height: auto; object-fit: none; object-position: top left; } ::view-transition-old(workspace) { animation: workspace-out 200ms var(--ease) both; } ::view-transition-new(workspace) { animation: workspace-in 360ms var(--ease-out) 240ms both; } @media (max-width: 640px) { ::view-transition-group(workspace) { border-radius: 0; } } body:has(#source-progress:not([hidden])) :is(.stage-code, .tree-list, .sample) { pointer-events: none; animation: breathe 1.8s ease-in-out infinite; } .stage { --focus-moat: var(--surface); display: grid; flex: 1 1 0; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: 1fr; min-height: 360px; border: 1px solid var(--line-strong); border-radius: var(--radius-stage); background: var(--surface); box-shadow: var(--shadow-stage); overflow: hidden; } .stage.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); } .stage.is-collapsed .explorer { visibility: hidden; } .explorer { --focus-moat: var(--sunken); grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--sunken); } .editor { grid-area: 1 / 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; } .stage-head { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 12px; height: 52px; padding: 0 10px; border-bottom: 1px solid var(--line); } .head-tools { display: flex; align-items: center; justify-self: start; gap: 8px; min-width: 0; } .head-actions { display: flex; align-items: center; justify-self: end; gap: 6px; } #explorer-toggle { position: relative; } #explorer-toggle::before { content: ""; position: absolute; top: calc(50% - 5.33px); left: calc(50% - 6px); width: 4px; height: 10.67px; border-radius: 1.33px 0 0 1.33px; background: currentColor; opacity: 0; transition: opacity var(--motion) var(--ease); } #explorer-toggle[aria-expanded="true"]::before { opacity: 0.45; } .nav { display: flex; align-items: center; gap: 2px; min-width: 0; } .nav-step { width: 28px; height: 28px; border-radius: var(--radius-sm); } .tabs { display: none; } .nav-prev-icon { transform: rotate(180deg); } .stage-path { min-width: 0; padding: 0 6px; overflow: hidden; font: 500 14px/20px var(--font-mono); letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; } .path-dir { color: var(--ink-3); font-weight: 400; } .stage-meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 14px; line-height: 20px; white-space: nowrap; } .stage-status { color: var(--ink-3); } .stage-status[data-busy]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: breathe 1.2s ease-in-out infinite; } .stage-score { font-variant-numeric: tabular-nums; } .stage-score-value { display: inline-block; min-width: 2ch; text-align: right; font-weight: 500; } .stage-score-scale, .stage-score-word { color: var(--ink-3); } .stage-score-word { margin-left: 4px; transition: color 600ms var(--ease-out); } .stage-score-word.is-sloppy { color: var(--red); } .stage-score-word.is-clean { color: var(--green); } .tree-search { position: relative; flex: none; height: 52px; padding: 11px 10px; border-bottom: 1px solid var(--line); } .tree-search-icon { position: absolute; top: 19px; left: 20px; width: 14px; height: 14px; color: var(--ink-3); pointer-events: none; } .tree-filter { width: 100%; height: 29px; padding: 0 10px 0 30px; border: 1px solid transparent; border-radius: 8px; background: var(--hover); font-size: 13px; transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease); } .tree-filter::placeholder { color: var(--ink-3); } .tree-filter:hover { background: var(--selected); } .tree-filter:focus-visible { outline: none; border-color: var(--line-strong); background: var(--surface); } .tree-list { flex: 1; min-height: 0; padding: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; } .tree-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 10px 0 calc(6px + var(--depth, 0px)); border-radius: var(--radius-sm); color: var(--ink-2); font-size: 13.5px; text-align: left; transition: background-color var(--motion) var(--ease); } .tree-row:hover { background: var(--hover); transition-duration: 0s; } .tree-row:active, .tree-row.is-current { background: var(--selected); } .tree-row.has-issues { color: var(--red); } .tree-row.is-cleaned { color: var(--green); } .tree-row .icon { flex: none; width: 14px; height: 14px; color: var(--ink-3); } .tree-chevron { transition: transform var(--motion) var(--ease); } .tree-row[aria-expanded="true"] .tree-chevron { transform: rotate(90deg); } .tree-spacer { flex: none; width: 14px; } .tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tree-count { font: 500 11.5px/16px var(--font-mono); font-variant-numeric: tabular-nums; opacity: 0.85; } .tree-mark { flex: none; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: currentColor; } .tree-empty { padding: 6px 10px; color: var(--ink-3); font-size: 13px; } .stage-code { flex: 1; min-height: 0; padding: 10px 0 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; font: 400 13.5px/24px var(--font-mono); font-variant-ligatures: none; tab-size: 4; } .stage-code:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 1.5px var(--focus); } .line { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr) auto; padding-right: 20px; transition: background-color 400ms var(--ease), box-shadow 240ms var(--ease); } .ln { position: relative; padding-right: 22px; color: color-mix(in srgb, var(--ink-3) 80%, var(--surface)); text-align: right; user-select: none; font-variant-numeric: tabular-nums; } .lead { white-space: pre; } .src { padding-left: calc((var(--indent, 0) + 4) * 1ch); text-indent: calc((var(--indent, 0) + 4) * -1ch); white-space: pre-wrap; overflow-wrap: anywhere; } .squiggle { padding-bottom: 3px; background: var(--wave) repeat-x left bottom; box-decoration-break: clone; -webkit-box-decoration-break: clone; } .note { padding-left: 24px; color: var(--red); font: 400 12.5px/24px var(--font-sans); white-space: nowrap; } .line.is-flagged { --row-tint: var(--bg-flag); background: var(--bg-flag); } .line.is-flagged .ln { color: var(--red); } .line.is-removed { --row-tint: var(--bg-del); --row-bar: var(--red); background: var(--bg-del); box-shadow: inset 2px 0 var(--red); } .line.is-removed .src, .line.is-removed .src span { color: var(--ink-3); } .line.is-added { --row-tint: var(--bg-add); --row-bar: var(--green); background: var(--bg-add); box-shadow: inset 2px 0 var(--green); } .line.is-added .ln, .line.is-reading .ln { color: var(--ink-2); } .line.is-removed .ln::after, .line.is-added .ln::after { position: absolute; top: 0; right: 7px; content: "\2212"; color: var(--red); font-weight: 500; } .line.is-added .ln::after { content: "+"; color: var(--green); } .line.is-reading { --row-tint: var(--selected); --row-bar: var(--ink-3); background: var(--selected); box-shadow: inset 2px 0 var(--ink-3); } .tok-com { color: var(--tok-comment); } .tok-kw { color: var(--tok-keyword); } .tok-str { color: var(--tok-string); } .tok-num { color: var(--tok-number); } .ghost { height: 32px; padding: 0 12px; border-radius: var(--radius); background: var(--fill); color: var(--ink); transition: background-color var(--motion) var(--ease), transform 160ms var(--ease-out); } .ghost:hover { background: var(--fill-hover); } .ghost:active { background: var(--fill-hover); transform: scale(0.97); transition-duration: 0s, 100ms; } .command { --focus-moat: var(--surface); display: flex; align-items: center; gap: 4px; min-width: 0; height: 36px; padding: 0 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); transition: border-color var(--motion) var(--ease); } .command:hover, .command:focus-within { border-color: var(--line-strong); } .command-text { min-width: 0; overflow: hidden; font: 400 12.5px/16px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; } .command-text::before { content: "$"; margin-right: 1ch; color: var(--ink-faint); user-select: none; } .command .icon-button { width: 28px; height: 28px; border-radius: var(--radius-sm); } .command .icon { width: 14px; height: 14px; } .foot { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 20px; padding: 18px 0; color: var(--ink-3); font-size: 12.5px; line-height: 18px; text-align: center; } .foot .command { max-width: 100%; } @media (min-width: 641px) { .explorer { transition: opacity 220ms var(--ease-expo), transform 220ms var(--ease-expo); } .stage.is-collapsed .explorer { opacity: 0; transform: translateX(-8px); transition-duration: 0s; } } @media (max-width: 640px) { :root { --gutter: 40px; } body:has(> .page) { height: auto; min-height: 100svh; } .page { min-height: 0; padding: 0 16px; } .intro, .banner:not([hidden]) + .page .intro { padding-top: 36px; } .banner-inner { padding: 0 16px; } .banner-stats { gap: 16px; } .banner-stats::before { margin-right: -8px; } .banner-links { gap: 16px; } .banner-stat.is-extra, .banner-link-text, .banner-link .banner-link-arrow { display: none; } .banner-stats[hidden] + .banner-links .banner-link-text { display: inline; } .headline { font-size: 24px; line-height: 30px; } .sources { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 20px; } .sources-or { text-align: center; } .ghost.source-upload { justify-content: center; } .source-progress, .source-error { margin-top: 6px; } .run { flex: none; margin-top: 32px; } .foot { flex-direction: column; gap: 14px; padding: 32px 0; } .sample-head { display: flex; justify-content: space-between; height: 44px; padding: 0 16px; } .sample-head .stage-path { order: -1; padding: 0; } .sample-head .stage-meta { padding: 0; } .stage { position: relative; flex: none; grid-template-columns: minmax(0, 1fr); height: min(calc(100svh - 24px), 780px); min-height: 420px; margin: 0 -16px; scroll-margin-top: 12px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; } .stage.is-collapsed { grid-template-columns: minmax(0, 1fr); } .editor { grid-area: 1 / 1; } .stage.is-collapsed .explorer { display: none; opacity: 0; transform: translateX(-16px); transition: opacity 160ms var(--ease), transform 160ms var(--ease), display 160ms allow-discrete; } .explorer { --focus-moat: var(--surface); position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); background: var(--surface); box-shadow: var(--shadow-menu); transition: opacity 240ms var(--ease-expo), transform 240ms var(--ease-expo), display 240ms allow-discrete; } @starting-style { .explorer { opacity: 0; transform: translateX(-16px); } } .stage-head { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "toggle tabs tabs" "meta meta actions"; gap: 0; height: auto; padding: 0; background: linear-gradient(var(--line), var(--line)) 0 44px / 100% 1px no-repeat; } .head-tools { display: contents; } #explorer-toggle { grid-area: toggle; justify-self: center; } .nav { display: none; } .tabs { position: relative; grid-area: tabs; display: flex; min-width: 0; height: 44px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } .tabs::-webkit-scrollbar { display: none; } .tab { position: relative; display: inline-flex; flex: none; align-items: center; gap: 6px; height: 44px; padding: 0 12px; color: var(--ink-3); font-size: 13.5px; white-space: nowrap; } .tab:last-child { margin-right: 28px; } .tab.has-issues { color: var(--red); } .tab.is-cleaned { color: var(--green); } .tab.is-current { font-weight: 500; } .tab.is-current:not(.has-issues, .is-cleaned) { color: var(--ink); } .tab.is-current::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; border-radius: 2px 2px 0 0; background: currentColor; } .tab-count { font: 500 11px/16px var(--font-mono); opacity: 0.85; } .tab.is-busy .tab-name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: breathe 1.2s ease-in-out infinite; } .stage-meta { grid-area: meta; align-self: center; padding: 0 16px; } .head-actions { grid-area: actions; min-height: 40px; padding-right: 4px; } .stage-code { display: grid; grid-template-columns: minmax(max-content, 1fr); align-content: start; padding: 8px 0 16px; overflow: auto; overscroll-behavior-x: contain; font-size: 12.5px; line-height: 20px; } .stage-code .line { grid-template-columns: var(--gutter) minmax(max-content, 1fr); padding-right: 24px; } .stage-code .ln { position: sticky; z-index: 1; left: 0; padding-right: 12px; background: linear-gradient(var(--row-tint, transparent), var(--row-tint, transparent)), var(--surface); box-shadow: inset 2px 0 var(--row-bar, transparent); } .line.is-removed .ln::after { right: 12px; } .line.is-added .ln { color: var(--green); } .line.is-added .ln::after { content: none; } .lead { font-size: 50%; } .stage-code .src { padding-left: 0; text-indent: 0; white-space: pre; overflow-wrap: normal; } .stage-code .note { position: sticky; left: var(--gutter); grid-column: 2; justify-self: start; padding: 0 0 4px; font-size: 12px; line-height: 16px; } } @media (pointer: coarse) { .icon-button, .nav-step { width: 40px; height: 40px; } .source-input, .tree-filter { font-size: 16px; } .command { height: 40px; } .command .icon-button { width: 36px; height: 36px; } .tree-row { height: 38px; } } .is-entering .note { animation: note-in 320ms var(--ease) var(--delay, 0ms) both; } .is-entering .squiggle { animation: squiggle-in 320ms var(--ease) var(--delay, 0ms) both; } @keyframes note-in { from { opacity: 0; transform: translateX(4px); } } @keyframes squiggle-in { from { background-position: left calc(100% + 6px); } } @keyframes workspace-out { to { opacity: 0; } } @keyframes workspace-in { from { opacity: 0; } } @keyframes copied-pop { from { opacity: 0; transform: scale(0.6); } } @keyframes breathe { 0%, 100% { opacity: 0.44; } 50% { opacity: 0.78; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } .intro:has(.source-progress:not([hidden])) .source-icon, body:has(#source-progress:not([hidden])) :is(.stage-code, .tree-list, .sample), .stage-status[data-busy]::before { animation: none; opacity: 0.58; } .icon-button:active, .ghost:active, .explorer, .stage.is-collapsed .explorer { transform: none; } }
@font-face {
font-family: "Host Grotesk";
font-style: normal;
font-weight: 300 800;
font-display: swap;
src: url("@fontsource-variable/host-grotesk/files/host-grotesk-latin-wght-normal.woff2") format("woff2");
}
@font-face {
font-family: "Google Sans Code";
font-style: normal;
font-weight: 300 800;
font-display: swap;
src: url("@fontsource-variable/google-sans-code/files/google-sans-code-latin-wght-normal.woff2") format("woff2");
}
:root {
color-scheme: light dark;
--page: light-dark(#f7f7f5, #161615);
--surface: light-dark(#ffffff, #1c1c1b);
--sunken: light-dark(#fafaf8, #191918);
--fill: light-dark(#efeeeb, #262625);
--fill-hover: light-dark(#e7e6e2, #2e2e2c);
--hover: light-dark(rgba(28, 28, 26, 0.045), rgba(255, 255, 250, 0.045));
--selected: light-dark(rgba(28, 28, 26, 0.075), rgba(255, 255, 250, 0.075));
--line: light-dark(rgba(28, 28, 26, 0.085), rgba(255, 255, 250, 0.075));
--line-strong: light-dark(rgba(28, 28, 26, 0.15), rgba(255, 255, 250, 0.13));
--ink: light-dark(#1c1c1a, #ecebe6);
--ink-2: light-dark(#4d4c48, #b5b3ac);
--ink-3: light-dark(#6e6c66, #918f89);
--ink-faint: light-dark(#adaba5, #5d5c58);
--red: light-dark(#c8383e, #f2777b);
--green: light-dark(#2c7a4d, #86c69a);
--bg-del: light-dark(rgba(200, 56, 62, 0.065), rgba(242, 119, 123, 0.075));
--bg-add: light-dark(rgba(44, 122, 77, 0.075), rgba(134, 198, 154, 0.08));
--bg-flag: light-dark(rgba(200, 56, 62, 0.035), rgba(242, 119, 123, 0.045));
--tok-comment: light-dark(#74726b, #8c8a84);
--tok-keyword: light-dark(#6a4fb0, #b9a7ea);
--tok-string: light-dark(#8a5a14, #dbb889);
--tok-number: light-dark(#1f6889, #8cc3da);
--shadow-color: light-dark(rgba(28, 28, 26, 0.06), rgba(0, 0, 0, 0));
--shadow-stage: 0 1px 2px var(--shadow-color), 0 12px 32px -16px var(--shadow-color);
--shadow-menu: 0 16px 40px light-dark(rgba(28, 28, 26, 0.12), rgba(0, 0, 0, 0.5)),
0 2px 6px light-dark(rgba(28, 28, 26, 0.06), rgba(0, 0, 0, 0.3));
--focus: light-dark(#4d4c48, #b5b3ac);
--focus-moat: var(--page);
--selection: light-dark(rgba(106, 79, 176, 0.16), rgba(185, 167, 234, 0.24));
--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 3 Q2 0.8 4 3 T8 3' fill='none' stroke='%23c8383e' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
--font-sans: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--radius-sm: 6px;
--radius: 10px;
--radius-stage: 14px;
--gutter: 58px;
--motion: 140ms;
--ease: cubic-bezier(0.2, 0, 0, 1);
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
--ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
:root {
--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 3 Q2 0.8 4 3 T8 3' fill='none' stroke='%23f2777b' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
}
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
scrollbar-width: thin;
scrollbar-color: var(--line-strong) transparent;
}
body {
margin: 0;
background: var(--page);
color: var(--ink);
font: 400 15px/22px var(--font-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::selection {
background: var(--selection);
}
h1,
h2,