@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600-latin.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-700-latin.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --ground: #161616; --bar: #202020; --line: #333; --text: #e6e6e6; --muted: #b8b8b8; --accent: #ef8090; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ground); color: var(--text); font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: #eed0d5; text-underline-offset: .22em; }
a:hover, button:hover { color: #fff; }
::selection { background: var(--accent); color: #161616; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.bar { height: 36px; display: flex; align-items: stretch; justify-content: space-between; background: var(--bar); border-bottom: 1px solid var(--line); white-space: nowrap; }
.bar-left, .bar-right { display: flex; align-items: stretch; min-width: 0; }
.brand { display: flex; align-items: center; padding: 0 17px; font: 700 15px "Barlow", system-ui, sans-serif; letter-spacing: -.03em; }
.workspace { display: grid; place-items: center; width: 37px; background: #404040; border-bottom: 2px solid var(--accent); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.bar-block { display: flex; align-items: center; padding: 0 15px; border-left: 1px solid var(--line); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
#demo-state { color: #f1e4e7; font-variant-numeric: tabular-nums; }
.bar-button { border: 0; border-left: 1px solid var(--line); background: transparent; }
.desktop { height: calc(100dvh - 36px); min-height: 0; padding: 7px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 420px); gap: 7px; }
.side { display: grid; min-height: 0; grid-template-rows: minmax(0, 1.42fr) minmax(0, 1fr); gap: 7px; }
.tile { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #191919; border: 1px solid var(--line); overflow: hidden; }
.tile.is-focused, .tile:focus-within { border-color: var(--accent); }
.titlebar { height: 29px; min-height: 29px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; background: #252525; border-bottom: 1px solid var(--line); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tile.is-focused > .titlebar, .tile:focus-within > .titlebar { background: #a45764; color: #fff; border-bottom-color: #a45764; }
.titlebar-mark { opacity: .65; }
.demo-tile iframe { width: 100%; height: 100%; min-height: 0; flex: 1; border: 0; background: var(--ground); }
.tile-content { padding: clamp(17px, 2.4vw, 29px); overflow: auto; scrollbar-color: #555 #191919; scrollbar-width: thin; }
h1 { font: 600 clamp(24px, 2.4vw, 34px)/1.05 "Barlow", system-ui, sans-serif; letter-spacing: -.02em; margin: 3px 0 18px; max-width: 12ch; text-wrap: balance; }
p { margin: 0 0 13px; max-width: 38ch; }
.quiet { color: var(--muted); }
.install-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 8px; color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.install-heading button { background: none; border: 0; border-bottom: 1px solid #777; padding: 2px 0; color: #f5d1d6; font: inherit; }
pre { margin: 0; padding: 14px 12px; border: 1px solid #3b3b3b; background: #111; color: #f0f0f0; font: 11px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.links { display: flex; flex-wrap: wrap; gap: 9px 19px; margin-top: 19px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.keys-content { display: grid; align-content: center; gap: 0; padding-top: 10px; padding-bottom: 10px; height: 100%; }
.key-row { display: grid; grid-template-columns: minmax(85px, .9fr) 1fr; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid #2b2b2b; color: var(--muted); font-size: 12px; }
.key-row:last-child { border: 0; }
kbd { color: var(--text); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.site-help[hidden] { display: none; }
.site-help { position: fixed; inset: 36px 0 0; z-index: 20; display: grid; place-items: center; padding: 15px; background: rgb(0 0 0 / 75%); }
.help-panel { width: min(540px, 100%); max-height: 100%; overflow: auto; padding: 20px 24px 25px; background: #202020; border: 1px solid #555; }
.help-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #3b3b3b; padding-bottom: 11px; }
.help-heading button { border: 0; background: none; color: #f5d1d6; }
.help-panel p { margin-top: 14px; color: var(--muted); }
.help-panel dl { margin: 19px 0 0; }
.help-panel dl div { display: grid; grid-template-columns: 190px 1fr; gap: 15px; padding: 7px 0; border-bottom: 1px solid #333; }
.help-panel dt, .help-panel dd { margin: 0; }
.help-panel dd { color: var(--muted); }
@media (max-width: 959px), (pointer: coarse) {
  .desktop { display: flex; flex-direction: column; height: auto; min-height: calc(100dvh - 36px); padding: 6px; gap: 6px; }
  .demo-tile { flex: none; height: calc((100vw - 12px) * 830 / 1217 + 65px); }
  .demo-tile iframe { height: calc((100vw - 12px) * 830 / 1217 + 36px); }
  .side { display: flex; flex-direction: column; gap: 6px; }
  .tile-content { overflow: visible; }
  .about-tile, .keys-tile { flex: none; }
}
@media (pointer: coarse) { .keys-tile { display: none; } }
@media (max-width: 650px) {
  .brand { padding: 0 10px; }
  .workspace { width: 30px; }
  .bar-block { padding: 0 8px; font-size: 11px; }
  #version { display: none; }
  .tile-content { padding: 19px; }
  h1 { max-width: none; }
}
