:root { color-scheme: dark light; --ink: #ece4d8; --ink-soft: #b7ab9b; --paper: #14110f; --paper-raised: #1d1916; --rule: #3a322c; --accent: #f2b84b; --accent-ink: #14110f; --link: #f7cd78; --danger: #f2958b; --radius: 14px; --measure: 68ch; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; } @media (prefers-color-scheme: light) { :root { --ink: #2a221c; --ink-soft: #62564c; --paper: #f7f1e7; --paper-raised: #fffaf2; --rule: #dccfbe; --accent: #9a5b00; --accent-ink: #fffaf2; --link: #8a4f00; --danger: #a3271b; } } *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } } body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; } a { color: var(--link); text-underline-offset: 0.2em; } a:hover { text-decoration-thickness: 2px; } :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; } .visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .skip { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; padding: 0.5rem 1rem; background: var(--accent); color: var(--accent-ink); border-radius: 8px; z-index: 10; } .skip:focus { inset-block-start: 1rem; } .masthead, main > section, .footer { inline-size: min(100% - 2rem, 76rem); margin-inline: auto; } .masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; } .wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 1.15rem var(--mono); color: var(--ink); text-decoration: none; } /* The same mark as the favicon and home-screen icon. */ .wordmark img { display: block; inline-size: 1.75rem; block-size: 1.75rem; } .masthead ul { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; } .masthead nav a { color: var(--ink-soft); text-decoration: none; } .masthead nav a:hover { color: var(--ink); } .hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) 1.5rem; } h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; } h1 { margin: 0 0 1.25rem; font-size: clamp(2.6rem, 7vw, 4.25rem); letter-spacing: -0.02em; } h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1.5rem; } h3 { font-size: 1.3rem; margin: 0 0 0.5rem; } .lede { max-inline-size: var(--measure); font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 0.75rem; } .try-hint { color: var(--accent); font-family: var(--mono); font-size: 1rem; } .try-hint::after { content: " ↓" / ""; } /* The machine. */ .stage { padding-block: 1rem 4rem; } .window { border: 1px solid var(--rule); border-radius: var(--radius); background: #14110f; overflow: hidden; box-shadow: 0 1px 0 #ffffff10 inset, 0 30px 80px -30px #000000c0, 0 0 0 6px color-mix(in srgb, var(--accent) 7%, transparent); } .window-bar { display: flex; align-items: center; gap: 1rem; padding: 0.55rem 0.9rem; background: #1d1916; border-block-end: 1px solid #3a322c; color: #b7ab9b; font: 0.85rem var(--mono); } .lights { display: flex; gap: 6px; } .lights i { inline-size: 11px; block-size: 11px; border-radius: 50%; background: #3a322c; } .window-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .window-actions { display: flex; gap: 0.5rem; } button { font: inherit; cursor: pointer; } .ghost { padding: 0.2rem 0.65rem; border: 1px solid #3a322c; border-radius: 999px; background: transparent; color: #d8cfc2; } .ghost:hover { border-color: #f2b84b; color: #fbf6ee; } .screen { position: relative; block-size: clamp(26rem, 68vh, 44rem); } .console { position: absolute; inset: 0.75rem; opacity: 0; transition: opacity 400ms ease; } .console.live { opacity: 1; } /* Narrower than libbui's smallest layout: keep it readable and pan. */ .console.pans { overflow-x: auto; } /* xterm's textarea holds focus; show it on the whole window, and only there. */ .window:has(.xterm-helper-textarea:focus) { outline: 3px solid var(--accent); outline-offset: 3px; } .xterm .xterm-helper-textarea:focus-visible { outline: none; } /* Once libbui is running, a press around the terminal goes to it too. */ .window:has(.console.live):has(.boot[hidden]) .screen { cursor: text; } .boot { position: absolute; inset: 0; display: grid; align-content: start; justify-content: center; justify-items: center; padding-block-start: clamp(2rem, 12vh, 6rem); gap: 0.9rem; padding: 2rem; text-align: center; color: #d8cfc2; font-family: var(--mono); } /* Fades out as libbui fades in, and back in if libbui stops. */ .boot { transition: opacity 360ms ease, display 360ms allow-discrete; } @starting-style { .boot { opacity: 0; } } .boot[hidden] { display: none; opacity: 0; } .boot-line { margin: 0; font-size: 1.05rem; } .boot-line::before { content: ""; display: inline-block; inline-size: 0.6em; block-size: 1.1em; margin-inline-end: 0.6em; vertical-align: -0.15em; background: #f2b84b; animation: blink 1s steps(1) infinite; } .boot-detail { margin: 0; min-block-size: 1.5em; font-size: 0.85rem; color: #8a7e72; } /* * The shelf. Books drop onto it as the downloads come in, a leaning book * marks the downloads done, and a small pile keeps stacking while libbui * starts and there is nothing left to count. The window is dark in both * themes, so these colours are the window's, not the page's. */ .shelf { display: block; inline-size: min(15rem, 100%); block-size: auto; } .shelf .plank { fill: #6b6058; } .shelf .slot { fill: #221c18; transition: opacity 400ms ease; } .shelf .band { fill: #14110f; opacity: 0.2; } .shelf .spine, .shelf .flat { transform-box: fill-box; transform-origin: left bottom; } .shelf .spine { opacity: 0; transform: translateY(-60px); transition: transform 560ms cubic-bezier(0.3, 1.45, 0.55, 1), opacity 200ms ease; } .shelf .book.on .spine { opacity: 1; transform: none; } /* Like the third book in the logo. */ .shelf .lean .spine { transform: translateY(-60px) rotate(-12deg); } .shelf .book.lean.on .spine { transform: rotate(-12deg); } .shelf .flat { opacity: 0; transition: opacity 300ms ease; } .boot.busy .flat { opacity: 1; } .boot.busy .flat-1 { animation: stack-1 3.6s infinite; } .boot.busy .flat-2 { animation: stack-2 3.6s infinite; } .boot.busy .flat-3 { animation: stack-3 3.6s infinite; } @keyframes stack-1 { 0% { opacity: 0; transform: translateY(-36px); animation-timing-function: cubic-bezier(0.3, 1.4, 0.55, 1); } 12%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } } @keyframes stack-2 { 0%, 15% { opacity: 0; transform: translateY(-36px); animation-timing-function: cubic-bezier(0.3, 1.4, 0.55, 1); } 27%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } } @keyframes stack-3 { 0%, 30% { opacity: 0; transform: translateY(-36px); animation-timing-function: cubic-bezier(0.3, 1.4, 0.55, 1); } 42%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } } /* Waiting to be asked: a few books rest on the shelf, like the logo. */ .boot:has(#begin:not([hidden])) :is(.book:nth-child(-n + 2), .lean) .spine { opacity: 1; transform: none; } .boot:has(#begin:not([hidden])) .book.lean .spine { transform: rotate(-12deg); } /* It could not start: the books slump against the first one, calmly. */ .boot.failed .slot { opacity: 0; } .boot.failed .spine { opacity: 1; transform: translateX(var(--fall-x, 0px)) rotate(var(--fall-r, -20deg)); transition: transform 1100ms cubic-bezier(0.45, 0, 0.25, 1) calc(var(--i) * 60ms), opacity 300ms ease; } .boot.failed .lean .spine { transform: translateY(-11px) rotate(90deg); } .boot.failed .flat { animation: none; opacity: 0; } /* Words for the shelf. Shown when the books stay still. */ .meter { font-size: 0.85rem; color: #b7ab9b; font-variant-numeric: tabular-nums; } .boot.failed .boot-line::before, .boot.failed .meter, .boot:has(#begin:not([hidden])) .boot-line::before, .boot:has(#begin:not([hidden])) .meter { display: none; } .start { border: 1px solid #f2b84b; border-radius: 8px; padding: 0.55rem 1.1rem; background: #f2b84b; color: #14110f; font: inherit; font-weight: 600; } .start:focus-visible { outline: 3px solid #fbf6ee; outline-offset: 3px; } .keys { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0.75rem 0.75rem; border-block-start: 1px solid #3a322c; } .keys[hidden] { display: none; } .keys button { flex: 1 0 auto; min-inline-size: 2.75rem; min-block-size: 2.75rem; border: 1px solid #3a322c; border-radius: 6px; background: #1f1a17; color: #ece4d8; font-family: var(--mono); } .boot.failed .boot-detail { color: #f2958b; } .unsupported { max-inline-size: 34rem; font-family: var(--sans); color: #d8cfc2; } .unsupported h3 { color: #fbf6ee; } .unsupported a { color: #f7cd78; } @keyframes blink { 50% { opacity: 0; } } .help { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.95rem; } kbd { display: inline-block; min-inline-size: 1.6em; padding: 0 0.35em; border: 1px solid var(--rule); border-block-end-width: 2px; border-radius: 5px; background: var(--paper-raised); font: 0.85em var(--mono); text-align: center; } /* Below the fold. */ .pillars, .install { padding-block: 3rem; border-block-start: 1px solid var(--rule); } .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } .grid-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); } .install > .platforms { max-inline-size: var(--measure); margin: 1.5rem 0 0; color: var(--ink-soft); } .grid article, .steps li { padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised); } .grid p, .steps p { margin: 0; color: var(--ink-soft); } .install > p { max-inline-size: var(--measure); color: var(--ink-soft); margin: 0 0 2rem; } .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; } .steps li { counter-increment: step; min-inline-size: 0; } .steps li:first-child { grid-column: 1 / -1; } .steps h3::before { content: counter(step) ". "; color: var(--accent); } code { font-family: var(--mono); font-size: 0.9em; } .code { display: flex; align-items: stretch; margin-block-start: 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); overflow: hidden; } .code pre { flex: 1; margin: 0; padding: 0.9rem 1rem; overflow-x: auto; } .copy { border: 0; border-inline-start: 1px solid var(--rule); padding-inline: 1.1rem; background: transparent; color: var(--ink); } .code pre:focus-visible, .copy:focus-visible { outline-offset: -4px; } .copy:hover { background: var(--accent); color: var(--accent-ink); } .footer { padding-block: 2.5rem 3rem; border-block-start: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.95rem; } .footer p { margin: 0 0 0.5rem; } .fine { font-size: 0.85rem; } @media (max-width: 64rem) { .grid-thirds { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 40rem) { .grid, .steps { grid-template-columns: minmax(0, 1fr); } .masthead ul { gap: 0.9rem; font-size: 0.95rem; } .window-title { display: none; } .window-actions { margin-inline-start: auto; } .screen { block-size: 70svh; } } /* Wide screens: the words on the left, libbui on the right. */ @media (min-width: 64rem) { main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: clamp(2rem, 4vw, 4.5rem); inline-size: min(100% - 2rem, 76rem); margin-inline: auto; } main > section { grid-column: 1 / -1; inline-size: auto; margin-inline: 0; } .hero { grid-column: 1; align-self: center; padding-block: 2rem 5rem; } .hero h1 { font-size: clamp(2.6rem, 3.7vw, 3.6rem); } .hero .lede { font-size: 1.15rem; } .stage { grid-column: 2; padding-block-start: 2rem; } .try-hint::after { content: " →" / ""; } }