:root {
  color-scheme: dark;
  --bg: #111315;
  --fg: #f2f1ec;
  --subtle: #adafad;
  --blue: #03befc;
  --rule: #36393b;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--bg);
  color: var(--fg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { color: var(--bg); background: var(--blue); }
.page {
  width: min(100% - clamp(2.5rem, 13vw, 14rem), 76rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.35rem, 3.4vh, 2.75rem);
  border-bottom: 1px solid var(--rule);
  font-size: .875rem;
}
.wordmark { display: flex; align-items: center; gap: .85rem; }
.mark { color: var(--blue); font-weight: 700; font-size: 1.35rem; letter-spacing: -.16em; padding-right: .16em; }
.clock { display: flex; align-items: center; gap: .85rem; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.clock span { color: var(--subtle); }
main { flex: 1; display: flex; flex-direction: column; }
.greeting { margin-block: auto; padding-block: clamp(5rem, 15vh, 12rem); }
.command { margin: 0 0 clamp(1.35rem, 4vh, 3rem); color: var(--subtle); font-size: 1rem; line-height: 1.5; }
.command > span, label > span:first-child { color: var(--blue); }
.command > span { margin-right: .42em; }
h1 {
  margin: 0 0 clamp(1.5rem, 3.9vh, 2.65rem) -.058em;
  max-width: 100%;
  font-size: clamp(3.25rem, 8.4vw, 7.8rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.08em;
}
.last { white-space: nowrap; }
.cursor { display: inline-block; width: .45em; height: .84em; margin-left: .13em; vertical-align: -.06em; background: var(--blue); }
.signature { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .85rem; margin: 0; color: var(--subtle); line-height: 1.65; font-size: clamp(.95rem, 1.35vw, 1.125rem); }
.signature strong { color: var(--fg); font-weight: 500; }
.slash { color: #818788; }
.shell { border-top: 1px solid var(--rule); padding-block: .75rem clamp(1.4rem, 3.6vh, 3rem); }
form { display: flex; align-items: center; gap: .9rem; }
form:focus-within { outline: 1px solid #415058; outline-offset: .2rem; }
label { white-space: nowrap; }
input, button { font: inherit; color: inherit; }
.entry-wrap { position: relative; flex: 1; min-width: 0; }
input { display: block; width: 100%; min-width: 0; border: 0; background: transparent; padding: .9rem 0; caret-color: var(--blue); outline: none; }
input::placeholder { color: #a3a6a6; opacity: 1; }
button { background: transparent; border: 0; color: var(--blue); padding: .85rem .2rem; cursor: pointer; }
button:hover { text-decoration: underline; text-underline-offset: .24em; }
button:focus-visible, .history:focus-visible { outline: 2px solid var(--blue); outline-offset: .12rem; }
#suggestion { position: absolute; inset-block: 0; inset-inline-start: var(--typed-width, 0ch); display: flex; align-items: center; gap: .9ch; max-width: 100%; padding: 0; color: #a1aaad; white-space: nowrap; }
#suggestion:hover { color: var(--fg); text-decoration: none; }
#suggestion small { font-size: .75rem; color: var(--subtle); padding: .12rem .35rem; border: 1px solid var(--rule); border-radius: .2rem; }
.tap-hint { display: none; }
@media (pointer: coarse) {
  .key-hint { display: none; }
  .tap-hint { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes type-ghost { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  #suggestion.intro .ghost-word { animation: type-ghost .72s steps(6, end) .2s backwards; }
}
.history { max-height: min(24vh, 12rem); overflow: auto; margin-bottom: .4rem; line-height: 1.6; font-size: .9rem; }
.history p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.history .echo { margin-top: .65rem; color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 42rem) {
  h1 { font-size: clamp(3.5rem, 13vw, 5.75rem); }
  .signature { gap: .25rem .6rem; }
  .clock { flex-direction: column; gap: .15rem; align-items: end; }
}
@media (max-width: 23rem) {
  .page { width: calc(100% - 2rem); }
  .signature { flex-direction: column; }
  .slash { display: none; }
}
