/* zash - palette from packaging/zash-logo.svg: mainframe navy, periwinkle, and the green of a prompt. The site is dark only, on purpose. */ :root { color-scheme: dark; --bg: #060910; --bg-soft: #0a1020; --panel: #0c1322; --panel-2: #111a2e; --line: #1c2743; --line-soft: #141c30; --fg: #e9eefb; --muted: #93a4c9; --dim: #7286b1; --accent: #8494ff; --accent-ink: #08101f; --accent-soft: #182348; --ok: #7ce0a8; --warn: #ffcc66; --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; --wrap: 76rem; --radius: 6px; } *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 5rem; } body { margin: 0; background: radial-gradient(64rem 30rem at 10% -14rem, #121c3c 0%, transparent 70%), var(--bg); color: var(--fg); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; } /* A blueprint grid under the top of the page, faded out before it reaches the text. Fixed, so it does not move while the page scrolls. */ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px), linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px); background-size: 72px 72px; opacity: .3; mask-image: radial-gradient(50rem 26rem at 50% -10rem, #000 10%, transparent 68%); } ::selection { background: #8494ff45; color: var(--fg); } a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; } a:hover { color: #a6b4ff; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; } .skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem .75rem; background: var(--panel-2); border-radius: var(--radius); } /* ---------------------------------------------------------------- chrome */ header.site { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1px solid var(--line-soft); } /* A single lit hairline under the header, periwinkle into prompt green. */ header.site::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 32%, var(--ok) 58%, transparent 92%); opacity: .4; } header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: var(--wrap); margin: 0 auto; padding: .65rem 1.5rem; } header.site .brand { display: flex; align-items: center; gap: .55rem; color: var(--fg); font: 600 1.05rem/1 var(--mono); letter-spacing: .01em; text-decoration: none; } header.site .brand img { width: 26px; height: 26px; border-radius: 4px; } header.site nav { display: flex; align-items: center; gap: 1.4rem; font: 500 .92rem/1 var(--sans); } header.site nav a { color: var(--muted); text-decoration: none; } header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--fg); } footer.site { margin-top: 6rem; border-top: 1px solid var(--line-soft); padding: 2.5rem 1.5rem 3rem; color: var(--muted); font-size: .92rem; } footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; max-width: var(--wrap); margin: 0 auto; } footer.site .about { max-width: 24rem; } footer.site .mark { font: 600 1rem/1 var(--mono); color: var(--fg); } footer.site h2 { margin: .1rem 0 .7rem; font: .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); } footer.site p { margin: .6rem 0 0; } footer.site a { display: block; color: var(--muted); padding: .18rem 0; text-decoration: none; } footer.site a:hover { color: var(--fg); } footer.site .fine { max-width: var(--wrap); margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); color: var(--dim); font: .78rem/1.6 var(--mono); } /* ------------------------------------------------------------------ home */ .hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 0; } .kicker { margin: 0 0 1.4rem; font: 500 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); } .hero h1 { margin: 0; font: 700 clamp(4rem, 13vw, 9.5rem)/.82 var(--mono); letter-spacing: -.055em; } .hero h1 .chev { color: var(--accent); } .hero h1 .word { background: linear-gradient(180deg, #f6f8ff 8%, #a9b8e6 62%, #7185b6); -webkit-background-clip: text; background-clip: text; color: transparent; } .hero h1 .cursor { display: inline-block; width: .34em; height: .62em; margin-left: .08em; background: var(--accent); box-shadow: 0 0 28px #8494ffb0; animation: blink 1.1s steps(1) infinite; } .hero .lede { margin: 1.8rem 0 0; max-width: 40rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: #c3d0ec; } .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.9rem 0 0; } .btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 .95rem/1 var(--sans); text-decoration: none; } .btn:hover { border-color: var(--accent); color: var(--fg); } .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { background: #a2aeff; color: var(--accent-ink); } .showcase { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 0; } .caption { margin: 1rem 0 0; font-size: .9rem; color: var(--dim); } .spec-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 0; font: .78rem/1.6 var(--mono); color: var(--dim); } .spec-strip span + span::before { content: " / "; color: var(--line); } /* terminal card */ .term { border: 1px solid #26325a; border-radius: var(--radius); background: linear-gradient(180deg, #0b1222, #070c16); box-shadow: 0 40px 90px -55px #000, 0 18px 70px -45px #8494ff33, inset 0 1px 0 #ffffff0a; overflow: hidden; } .term-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line-soft); background: #0a101d; } .term-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #26324f; } .term-bar .title { margin-left: auto; font: 400 .76rem/1 var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .term pre { margin: 0; padding: 1.2rem 1.35rem 1.4rem; white-space: pre; overflow-x: auto; font: .88rem/1.75 var(--mono); background: none; } .term .cmd::before { content: "$ "; color: var(--ok); } .term .out { color: var(--dim); } .term .ok { color: var(--ok); } .term .cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; vertical-align: -.15em; background: var(--accent); animation: blink 1.1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } @media (prefers-reduced-motion: reduce) { .hero h1 .cursor, .term .cursor { animation: none; } } /* ---------------------------------------------------------------- article */ article { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 0; } article h1, .docs-head h1 { margin: 0 0 .5rem; font: 700 clamp(2rem, 4vw, 2.6rem)/1.12 var(--sans); letter-spacing: -.025em; } /* The home page's text keeps a reading measure while its lists and the benchmark table use the full width. */ .home-content { max-width: var(--wrap); } .home-content > p, .home-content > h2, .home-content > h3, .home-content > ul:not(.specs), .home-content > ol, .home-content > blockquote { max-width: 46rem; } article h2 { margin: 3.5rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font: 650 1.5rem/1.25 var(--sans); letter-spacing: -.012em; } article h3 { margin: 2.2rem 0 .5rem; font: 600 1.1rem/1.4 var(--sans); } article ul, article ol { padding-left: 1.2rem; } article li { margin: .35rem 0; } article hr { border: 0; border-top: 1px solid var(--line-soft); margin: 3rem 0; } article .term { margin: 1.5rem 0; } /* --------------------------------------------------------------- specs */ .specs { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; } .specs li { border-top: 1px solid var(--line); padding: 1.4rem 0 1.9rem; } .specs .n { display: block; margin-bottom: .6rem; font: .72rem/1 var(--mono); letter-spacing: .14em; color: var(--dim); } .specs h3 { margin: 0 0 .45rem; font: 600 1.12rem/1.3 var(--sans); } .specs p { margin: 0; font-size: .97rem; color: var(--muted); } /* ------------------------------------------------------------------- docs */ .docs { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.5rem 0; } .docs.has-toc { grid-template-columns: 13rem minmax(0, 1fr) 12rem; } .docs > aside:first-of-type { padding-right: 1.4rem; } /* The rule between the page's navigation and its text runs the height of the text, not the height of the (sticky) navigation. */ .docs > article { padding-left: 1.8rem; border-left: 1px solid var(--line-soft); } .docs aside { position: sticky; top: 4.75rem; align-self: start; max-height: calc(100vh - 6.5rem); overflow-y: auto; font-size: .9rem; scrollbar-width: thin; } .docs aside .group { margin: 0 0 1.7rem; } .docs aside h2 { margin: 0 0 .45rem; font: .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); } .docs aside a { display: block; padding: .28rem .55rem; border-radius: 4px; color: var(--muted); text-decoration: none; } .docs aside a:hover { color: var(--fg); background: var(--panel); } .docs aside a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); } .docs aside.toc { font-size: .86rem; } .docs aside.toc ul { margin: 0; padding: 0; list-style: none; } .docs aside.toc ul ul { margin: .1rem 0 .3rem; padding-left: .8rem; } .docs aside.toc ul { border-left: 1px solid var(--line-soft); padding-left: .55rem; } .docs aside.toc a { padding: .24rem .5rem; line-height: 1.35; } .docs article { max-width: none; margin: 0; padding: 0; } .docs-head { margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); } .docs-head .kicker { margin: 0 0 .9rem; text-transform: none; letter-spacing: .02em; } .docs-head .kicker a { color: var(--dim); text-decoration: none; } .docs-head .kicker a:hover { color: var(--accent); } .docs-head > p { max-width: 46rem; } /* ------------------------------------------------------------ code & data */ code, pre, kbd { font-family: var(--mono); /* <<, <= and ->> are shell syntax, not \u00ab and \u2264 */ font-variant-ligatures: none; } :not(pre) > code { padding: .12em .38em; border: 1px solid var(--line-soft); border-radius: 4px; background: #0e1728; font-size: .88em; color: #cfe0ff; } pre { position: relative; margin: 1.25rem 0; padding: .95rem 1.1rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #080d1a; overflow-x: auto; font-size: .88rem; line-height: 1.65; } pre code { background: none; padding: 0; border: 0; } .chroma { background: none !important; } .copy { position: absolute; top: .5rem; right: .5rem; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 4px; background: #0e1626; color: var(--dim); font: .72rem/1 var(--mono); cursor: pointer; opacity: .5; transition: opacity .15s; } pre:hover .copy, .copy:focus-visible { opacity: 1; } .copy:hover { color: var(--fg); border-color: var(--accent); } table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .92rem; } th, td { padding: .55rem .7rem; border-bottom: 1px solid var(--line-soft); text-align: left; } thead th { font: .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom-color: var(--line); } tbody tr:hover { background: #0a1120; } /* Numbers line up; prose in a table does not. td:not(:first-child), th:not(:first-child) { text-align: left; font-variant-numeric: tabular-nums; } .home-content td:not(:first-child), .home-content th:not(:first-child) { text-align: right; } /* the home page's benchmark table: zash's column is the one to read */ .home-content td:first-child { font-family: var(--mono); font-size: .85rem; } .home-content thead th:nth-child(2), .home-content tbody td:nth-child(2) { color: var(--fg); background: #0d1730; font-weight: 600; } blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--accent-soft); color: var(--muted); } /* ------------------------------------------------------------------- list */ .pages { max-width: 48rem; list-style: none; padding: 0; margin: 2rem 0 0; } .pages li { border-bottom: 1px solid var(--line-soft); } .pages a { display: block; padding: 1rem 0; font-weight: 600; text-decoration: none; color: var(--fg); } .pages a:hover { color: var(--accent); } .pages .summary { display: block; margin-top: .2rem; color: var(--muted); font-weight: 400; font-size: .94rem; } /* ------------------------------------------------------------------ 404 */ .notfound { max-width: var(--wrap); margin: 0 auto; padding: 6rem 1.5rem; text-align: center; } .notfound h1 { margin: 0 0 1rem; font: 700 clamp(3rem, 10vw, 5rem)/1 var(--mono); color: var(--accent); } /* ------------------------------------------------------------------ small */ @media (max-width: 78rem) { .docs.has-toc { grid-template-columns: 13rem minmax(0, 1fr); } .docs aside.toc { display: none; } } @media (max-width: 60rem) { body::before { opacity: .18; } .hero { padding-top: 3rem; } .specs { grid-template-columns: minmax(0, 1fr); } .docs, .docs.has-toc { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } .docs > aside:first-of-type { padding-right: 0; } .docs > article { padding-left: 0; border-left: 0; } .docs aside { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); } .docs aside .group { margin: 0; } .docs aside h2, .docs aside.toc, .docs aside .group.source { display: none; } .docs aside a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 100px; font-size: .85rem; } .docs aside a[aria-current="page"] { box-shadow: none; } } @media (max-width: 36rem) { header.site .bar { padding: .6rem 1rem; } header.site nav { gap: .9rem; font-size: .88rem; } .hero, .showcase, .docs, article, footer.site { padding-left: 1rem; padding-right: 1rem; } footer.site .cols { grid-template-columns: 1fr; gap: 1.6rem; } /* The terminal wraps rather than scrolling under a phone's width. */ .term pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; } article table { display: block; overflow-x: auto; font-size: .85rem; } }