:root { --bg: #fcfaf7; --fg: #181818; --muted: #6a6a6a; --line: #e1dfdd; --hover: #f2f0ed; --accent: #3772bb; --overlay: #ffffff; --iso-paper: #ffffff; --iso-soft: #e3dfda; --iso-ink: #2b2927; --iso-accent: #3772bb; --sans: "Geist Variable", system-ui, sans-serif; --mono: "Geist Mono Variable", ui-monospace, monospace; color-scheme: light; } :root.dark { --bg: #131110; --fg: #f3f1f0; --muted: #94928f; --line: #2c2b29; --hover: #252422; --accent: #69a1e8; --overlay: #1c1a19; --iso-paper: #2e2b29; --iso-soft: #45413d; --iso-ink: #d8d4cf; --iso-accent: #69a1e8; color-scheme: dark; } * { box-sizing: border-box; } html, body { margin: 0; background: var(--bg); color: var(--fg); } body { font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; } a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; } .skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--fg); color: var(--bg); border-radius: 8px; z-index: 30; } .skip:focus { top: 8px; } .icon { display: inline-flex; width: 24px; height: 24px; flex: none; } .icon svg { width: 24px; height: 24px; } .label { font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); } /* Geometry: circle, square, triangle, the site's three marks. */ i.circle, i.square, i.triangle { display: inline-block; width: 16px; height: 16px; flex: none; } i.circle { border-radius: 50%; background: var(--accent); } i.square { background: var(--fg); } i.triangle { background: var(--fg); clip-path: polygon(50% 0, 100% 100%, 0 100%); } /* The dioramas' one canvas; each draws in its host's box. */ canvas.iso { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; } .iso-host { position: relative; cursor: crosshair; } /* Header */ .bar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); } .bar .mark { font-weight: 600; font-size: 18px; line-height: 28px; } .bar nav { display: flex; gap: 4px; } .bar .end { margin-left: auto; display: flex; align-items: center; gap: 4px; } .link { padding: 4px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); } .link:hover, .link[aria-current="page"], .link[aria-expanded="true"] { color: var(--fg); } .tool { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); } .tool:hover, .tool[aria-pressed="true"] { color: var(--fg); } .find { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px; border-radius: 8px; color: var(--muted); font-size: 14px; } .find:hover { color: var(--fg); } .find kbd { font: 500 12px/16px var(--mono); } /* Cascading menu */ .menu { position: fixed; z-index: 25; min-width: 240px; max-height: min(480px, 70vh); overflow-y: auto; padding: 4px; background: var(--overlay); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.12); } .menu a, .menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 8px; min-height: 32px; border-radius: 8px; font-size: 14px; line-height: 20px; text-align: left; } .menu a:hover, .menu button:hover, .menu [aria-expanded="true"], .menu :focus-visible { background: var(--hover); outline: none; } /* Components page */ .docs { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 56px); } .side { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; padding: 24px 16px 48px; border-right: 1px solid var(--line); } .side input { appearance: none; width: 100%; height: 32px; margin-bottom: 16px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 8px; } .side input::placeholder { color: var(--muted); } .side input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; } .side .chapter { display: flex; gap: 8px; align-items: center; width: 100%; padding: 4px 0; min-height: 32px; font-size: 14px; line-height: 20px; color: var(--muted); } .side .chapter .n { font: 500 12px/16px var(--mono); width: 24px; } .side .chapter:hover { color: var(--fg); } .side .chapter[aria-current="true"] { color: var(--fg); font-weight: 500; } .side ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 32px; } .side li a { display: block; padding: 4px 0; font-size: 14px; line-height: 20px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .side li a:hover { color: var(--fg); } .side li a[aria-current="page"] { color: var(--fg); font-weight: 500; } .side .none { padding: 8px 0; font-size: 14px; color: var(--muted); } .detail { padding: 48px 48px 96px; max-width: 1136px; } .crumb { font-size: 14px; line-height: 20px; color: var(--muted); } .crumb a:hover { color: var(--fg); } .detail h1 { margin: 4px 0 4px; font-size: 18px; line-height: 28px; font-weight: 600; } .names { margin: 0 0 32px; font: 500 12px/16px var(--mono); color: var(--muted); } .stage { position: relative; height: 640px; overflow: hidden; background: var(--bg); } .stage iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); } .stage .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); background: var(--bg); } .stage .state[hidden] { display: none; } .stage .actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 150ms ease-out; } .stage:hover .actions, .stage:focus-within .actions { opacity: 1; } .stage .actions .tool { background: var(--bg); } .stage.full { position: fixed; inset: 0; z-index: 40; height: auto; } .spin { width: 16px; height: 16px; border: 1.5px solid var(--line); border-top-color: var(--muted); border-radius: 50%; animation: spin 800ms linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .stage-skip { position: absolute; left: -9999px; } .stage-skip:focus { position: static; display: inline-block; margin-bottom: 8px; font-size: 14px; color: var(--accent); } .pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); } .pager a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; font-size: 14px; line-height: 20px; } .pager a:hover { color: var(--accent); } .pager a.next { text-align: right; margin-left: auto; } .pager .label { display: flex; align-items: center; gap: 4px; } .pager a.next .label { justify-content: flex-end; } .index { padding: 48px; max-width: 1136px; } .index h1 { margin: 0 0 8px; font-size: 18px; line-height: 28px; font-weight: 600; } .index p { margin: 0 0 48px; color: var(--muted); max-width: 640px; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); } .grid a { display: flex; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); } .grid a:hover strong { color: var(--accent); } .grid .n { font: 500 12px/16px var(--mono); color: var(--muted); width: 24px; } .grid strong { font-weight: 500; display: block; } .grid small { font-size: 14px; line-height: 20px; color: var(--muted); } /* Palette */ .scrim { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.24); display: flex; justify-content: center; align-items: flex-start; padding: 96px 16px 16px; } .palette { width: min(640px, 100%); max-height: calc(100vh - 128px); display: flex; flex-direction: column; background: var(--overlay); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgb(0 0 0 / 0.2); overflow: hidden; } .palette input { flex: none; appearance: none; height: 56px; padding: 0 16px; font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; } .palette ol { list-style: none; margin: 0; padding: 4px; overflow-y: auto; } .palette li a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; } .palette li a span:last-child { color: var(--muted); white-space: nowrap; } .palette li[aria-selected="true"] a { background: var(--hover); } .palette .none { padding: 16px; color: var(--muted); font-size: 14px; } /* Home */ .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; min-height: calc(100vh - 56px); padding: 48px; } .hero-iso { height: min(720px, calc(100vh - 152px)); } .words { max-width: 440px; } .glyphs { display: flex; gap: 8px; margin-bottom: 32px; } .hero h1 { margin: 0 0 16px; font-size: 18px; line-height: 28px; font-weight: 400; } .hero h1 strong { display: block; font-weight: 600; } .hero p { margin: 0 0 32px; color: var(--muted); } .cta { display: flex; gap: 12px; flex-wrap: wrap; } .button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; } .button:hover { color: var(--accent); } .button.primary { background: var(--fg); color: var(--bg); } .button.primary:hover { color: var(--bg); opacity: 0.88; } .show { padding: 96px 48px 48px; border-top: 1px solid var(--line); } .show .mark { display: grid; grid-template-columns: 16px 32px auto; align-items: center; column-gap: 16px; row-gap: 8px; margin-bottom: 48px; } .show .mark .n { font: 500 12px/16px var(--mono); color: var(--muted); } .show .mark h2 { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; } .show .mark p { grid-column: 3; margin: 0; max-width: 560px; color: var(--muted); } .pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-bottom: 48px; } .show .mark { margin-bottom: 0; } .pair .iso-host { height: 400px; } .show .stage { height: 640px; } .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; padding: 96px 48px; border-top: 1px solid var(--line); } .facts strong { display: block; font: 500 18px/28px var(--mono); } .facts span { color: var(--muted); font-size: 14px; line-height: 20px; } .foot { padding: 24px 48px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; } .foot a { text-decoration: underline; text-underline-offset: 2px; } @media (max-width: 1023px) { .hero, .pair { grid-template-columns: 1fr; } .hero-iso { height: 60vh; } .pair .iso-host { height: 320px; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 767px) { .bar { padding: 0 16px; gap: 12px; } .bar nav .link { padding: 4px 8px; } .find > span:not(.icon), .find kbd { display: none; } .docs { grid-template-columns: 1fr; } .side { position: static; height: auto; max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); } .detail, .index { padding: 24px 16px 64px; } .stage, .show .stage { height: 480px; } .hero, .show, .facts { padding: 48px 16px; } .foot { padding: 24px 16px; } } @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }